1{* $Id$ *}
2<div class="table-responsive">
3	<table cellpadding="0" cellspacing="0" border="0" class="table normal table-striped table-hover" style="table-layout: fixed">
4		<tr>
5			<th style="min-width: 22em;"><a href="{$myurl}?sort_mode={if $sort_mode eq 'start_desc'}start_asc{else}start_desc{/if}">{tr}Start{/tr}</a></th>
6			<th><a href="{$myurl}?sort_mode={if $sort_mode eq 'end_desc'}end_asc{else}end_desc{/if}">{tr}End{/tr}</a></th>
7			<th><a href="{$myurl}?sort_mode={if $sort_mode eq 'name_desc'}name_asc{else}name_desc{/if}">{tr}Name{/tr}</a></th>
8			<th></th>
9		</tr>
10		{if $listevents|@count eq 0}{norecords _colspan=4}{/if}
11
12		{foreach from=$listevents item=event}
13			{assign var=calendarId value=$event.calendarId}
14			<tr class="{cycle}{if $event.start <= $smarty.now and $event.end >= $smarty.now} selected{/if} vevent">
15				<td class="date">
16					<div class="row">
17						<div class="dtstart col-sm-7 text-nowrap" title="{$event.start|tiki_short_date:'n'}">
18							<a href="{$myurl}?todate={$event.start}" title="{tr}Change Focus{/tr}">{$event.start|tiki_short_date:'n'}</a>
19						</div>
20						<div class="dtstart-time col-sm-5 text-right text-nowrap">
21							{if $event.allday}{tr}All day{/tr}{else}{$event.start|tiki_short_time}{/if}
22						</div>
23					</div>
24				</td>
25				<td class="date">
26					<div class="row">
27						{if $event.start|tiki_short_date:'n' ne $event.end|tiki_short_date:'n'}
28							<div class="dtend col-sm-7 text-nowrap" title="{$event.end|tiki_short_date:'n'}">
29								<a href="{$myurl}?todate={$event.end}" title="{tr}Change Focus{/tr}">{$event.end|tiki_short_date:'n'}</a>
30							</div>
31						{/if}
32						<div class="dtstart-time col-sm-5 text-right text-nowrap">
33							{if $event.start ne $event.end and $event.allday ne 1}{$event.end|tiki_short_time}{/if}
34						</div>
35					</div>
36				</td>
37				<td style="word-wrap:break-word; {if $infocals.$calendarId.custombgcolor ne ''}background-color:#{$infocals.$calendarId.custombgcolor};{/if}">
38					<a class="link" href="tiki-calendar_edit_item.php?viewcalitemId={$event.calitemId}" title="{tr}View{/tr}">
39					{if $infocals.$calendarId.customfgcolor ne ''}<span style="color:#{$infocals.$calendarId.customfgcolor};">{/if}
40					<span class="summary">{$event.name|escape}</span></a><br>
41					<span class="description" style="font-style:italic">{$event.parsed}</span>
42					{if $event.web}
43						<br><a href="{$event.web}" target="_other" class="calweb" title="{$event.web}"><img src="img/icons/external_link.gif" width="7" height="7" alt="&gt;"></a>
44						{if $infocals.$calendarId.customfgcolor ne ''}</span>{/if}
45					{/if}
46				</td>
47				<td class="action">
48					{if $event.modifiable eq "y"}
49						{actions}
50							{strip}
51								<action>
52									<a href="tiki-calendar_edit_item.php?calitemId={$event.calitemId}">
53										{icon name='edit' _menu_text='y' _menu_icon='y' alt="{tr}Edit{/tr}"}
54									</a>
55								</action>
56								<action>
57									<a class="text-danger" href="tiki-calendar_edit_item.php?calitemId={$event.calitemId}&amp;delete=1">
58										{icon name='remove' _menu_text='y' _menu_icon='y' alt="{tr}Remove{/tr}"}
59									</a>
60								</action>
61							{/strip}
62						{/actions}
63					{/if}
64				</td>
65			</tr>
66		{/foreach}
67	</table>
68</div>
69