{* $header$ *}
<table cellpadding="0" cellspacing="0" border="0" class="normal" width="100%">
<tr>
<th style="width:20%"><a href="{$myurl}?sort_mode={if $sort_mode eq 'start_desc'}start_asc{else}start_desc{/if}">{tr}Start{/tr}</a></th>
<th style="width:20%"><a href="{$myurl}?sort_mode={if $sort_mode eq 'end_desc'}end_asc{else}end_desc{/if}">{tr}End{/tr}</a></th>
<th><a href="{$myurl}?sort_mode={if $sort_mode eq 'name_desc'}name_asc{else}name_desc{/if}">{tr}Name{/tr}</a></th>
<th>{tr}Action{/tr}</th>
</tr>
{if $listevents|@count eq 0}<tr><td colspan="4">{tr}No records found{/tr}</td></tr>{/if}
{cycle values="odd,even" print=false}
{section name=w loop=$listevents}
{assign var=calendarId value=$listevents[w].calendarId}
<tr class="{cycle}{if $listevents[w].start <= $smarty.now and $listevents[w].end >= $smarty.now} selected{/if} vevent">
<td>
<abbr class="dtstart" title="{$listevents[w].start|compactisodate}"><a href="{$myurl}?todate={$listevents[w].start}" title="{tr}Change Focus{/tr}">{$listevents[w].start|tiki_short_date}</a></abbr><br />
{if $listevents[w].allday} {tr}All-Day{/tr} {else} {$listevents[w].start|tiki_short_time} {/if}
</td>
<td>
{if $listevents[w].start|tiki_short_date ne $listevents[w].end|tiki_short_date}<abbr class="dtend" title="{$listevents[w].end|compactisodate}"><a href="{$myurl}?todate={$listevents[w].end}" title="{tr}Change Focus{/tr}">{$listevents[w].end|tiki_short_date}</a></abbr> {/if}<br />
{if $listevents[w].start ne $listevents[w].end and $listevents[w].allday ne 1}{$listevents[w].end|tiki_short_time}{/if}
</td>
<td style="{if $infocals.$calendarId.custombgcolor ne ''}background-color:#{$infocals.$calendarId.custombgcolor};{/if}">
<a class="link" href="tiki-calendar_edit_item.php?viewcalitemId={$listevents[w].calitemId}" title="{tr}View{/tr}">
{if $infocals.$calendarId.customfgcolor ne ''}<span style="color:#{$infocals.$calendarId.customfgcolor};">{/if}
<span class="summary">{$listevents[w].name|escape}</span></a><br />
<span class="description" style="font-style:italic">{$listevents[w].parsed}</span>
{if $listevents[w].web}
<br /><a href="{$listevents[w].web}" target="_other" class="calweb" title="{$listevents[w].web}"><img src="img/icons/external_link.gif" width="7" height="7" alt="&gt;" /></a>
{if $infocals.$calendarId.customfgcolor ne ''}</span>{/if}
{/if}
</td>
<td>
{if $listevents[w].modifiable eq "y"}<a class="link" href="tiki-calendar_edit_item.php?calitemId={$listevents[w].calitemId}" title="{tr}Edit{/tr}">{icon _id='page_edit'}</a>
<a class="link" href="tiki-calendar_edit_item.php?calitemId={$listevents[w].calitemId}&amp;delete=1" title="{tr}Remove{/tr}">{icon _id='cross' alt='{tr}Remove{/tr}'}</a>{/if}
</td></tr>
{/section}
</table>

