<!--Start piCalEventList-->
<{* HEADER *}>
<!-- piCal CategorySection -->
<{$cat_desc}>
<div id="PicalEventList">
	<div style='background:<{$calhead_bgcolor}>;' class='picalEventhead'>
		<{* CATEGORY SELECT FORM *}>
		<{$categories_selform}>
		<br />
		<{* DATE DESCRIPTION *}>
		<form action='<{$mod_url}>/index.php?smode=List&amp;num=<{$num}>&amp;cid=<{$now_cid}>&amp;order=<{$order}>' method='POST' class='pical-categoryform'>
	<{$ymdo_selects}><input type='submit' name='pical_jumpcaldate' value='<{$lang_button_jump}>' />
		</form>
		<{* ICONS *}>
		<p class="pcalIcons"><span><a href='<{$get_target}>?cid=<{$cid}>&amp;smode=Yearly&amp;caldate=<{$caldate}>'><img src='<{$images_url}>/year_on.gif' border='0' width='30' height='24' alt='<{$alt_yearly}>' title='<{$alt_yearly}>' /></a></span>
		<span><a href='<{$get_target}>?cid=<{$cid}>&amp;smode=Monthly&amp;caldate=<{$caldate}>'><img src='<{$images_url}>/month_on.gif' border='0' width='30' height='24' alt='<{$alt_monthly}>' title='<{$alt_monthly}>' /></a></span>
		<span><a href='<{$get_target}>?cid=<{$cid}>&amp;smode=Weekly&amp;caldate=<{$caldate}>'><img src='<{$images_url}>/week_on.gif' border='0' width='30' height='24' alt='<{$alt_weekly}>' title='<{$alt_weekly}>' /></a></span>
		<span><a href='<{$get_target}>?cid=<{$cid}>&amp;smode=Daily&amp;caldate=<{$caldate}>'><img src='<{$images_url}>/day_on.gif' border='0' width='30' height='24' alt='<{$alt_daily}>' title='<{$alt_daily}>' /></a></span></p>
	</div>
	
<{if $num_rows > 1}>
	      <!-- Start Sort -->
	<div class="sort">
	        <{if $for_print <> true}>
	        <{$lang_sortby}><br />
	        <{$lang_startdatetime}> (<a href="index.php?smode=List&amp;cid=<{$now_cid}>&amp;caldate=<{$caldate}>&amp;op=<{$op}>&amp;order=start"><img src="<{$images_url}>/up.gif" border="0" align="middle" alt="Ascending order" /></a><a href="index.php?smode=List&amp;cid=<{$now_cid}>&amp;caldate=<{$caldate}>&amp;op=<{$op}>&amp;order=start+DESC"><img src="<{$images_url}>/down.gif" border="0" align="middle" alt="Descending order" /></a>)
	        <{$lang_lastmodified}> (<a href="index.php?smode=List&amp;cid=<{$now_cid}>&amp;caldate=<{$caldate}>&amp;op=<{$op}>&amp;order=dtstamp"><img src="<{$images_url}>/up.gif" border="0" align="middle" alt="Ascending order" /></a><a href="index.php?smode=List&amp;cid=<{$now_cid}>&amp;caldate=<{$caldate}>&amp;op=<{$op}>&amp;order=dtstamp+DESC"><img src="<{$images_url}>/down.gif" border="0" align="middle" alt="Descending order" /></a>)
	        <{$lang_summary}> (<a href="index.php?smode=List&amp;cid=<{$now_cid}>&amp;caldate=<{$caldate}>&amp;op=<{$op}>&amp;order=summary"><img src="<{$images_url}>/up.gif" border="0" align="middle" alt="Ascending order" /></a><a href="index.php?smode=List&amp;cid=<{$now_cid}>&amp;caldate=<{$caldate}>&amp;op=<{$op}>&amp;order=summary+DESC"><img src="<{$images_url}>/down.gif" border="0" align="middle" alt="Descending order" /></a>)
	        <{$lang_submitter}> (<a href="index.php?smode=List&amp;cid=<{$now_cid}>&amp;caldate=<{$caldate}>&amp;op=<{$op}>&amp;order=uid"><img src="<{$images_url}>/up.gif" border="0" align="middle" alt="Ascending order" /></a><a href="index.php?smode=List&amp;cid=<{$now_cid}>&amp;caldate=<{$caldate}>&amp;op=<{$op}>&amp;order=uid+DESC"><img src="<{$images_url}>/down.gif" border="0" align="middle" alt="Descending order" /></a>)
	        <{/if}>
	        <!-- Sort of now -->
	        <p class="cursortby"><{$lang_cursortedby}> <{$lang_order}></p>
	      </div>
<{/if}>
	<br />
		<!-- piCalEventListTable -->
			<!-- PageNavigation -->
			<p class="picalPageNavi"><span><{$page_nav_info}></span><span><{$page_nav}></span></p>
	      <form name='MainForm' action='<{$mod_url}>/index.php' target='_blank' method='post' style='margin:0px;'>
	      <table cellspacing="0" summary="piCalEventList">
	      <thead>
	        <tr>
	          <th><{$lang_startdatetime}>&nbsp;-&nbsp;<{$lang_enddatetime}></th>
	          <th colspan="2"><{$lang_summary}>&nbsp;|&nbsp;<{$lang_rrule}>&nbsp;|&nbsp;<{$lang_submitter}>&nbsp;<{$lang_admission}></th>
	          <th><input type='checkbox' name='dummy' onclick="with(document.MainForm){for(i=0;i<length;i++){if(elements[i].type=='checkbox'){elements[i].checked=this.checked;}}}" /></th>
	        </tr>
	        </thead>
	        <!-- Start event loop -->
	        <tbody>
	        <{foreach item='event' from=$events}>
	        <tr class='<{cycle values="picalListA,picalListB"}>'>
	          <td class="picalEventCol1"><{$event.start_date_desc}><{$event.start_time_desc}><br />
	          &nbsp;-&nbsp;<{$event.end_date_desc}><{$event.end_time_desc}></td>
	          <td class="picalEventCol2"><p class="picalEventSummary"><a href='<{$mod_url}>/index.php?action=View&amp;event_id=<{$event.id}>'><{$event.summary}></a></p>
	          <{$event.rrule}>
	          <p class="picalEventSubmitter">Submitter&nbsp;&raquo;&nbsp;<{$event.submitter_info}></p>
	          </td>
	          <td class="picalEventCol3"><{$event.admission}>
	            <{if $event.editable == true}>
	            <br /><a href='<{$get_target}>?smode=Daily&amp;action=Edit&amp;event_id=<{$event.id}>&amp;caldate=<{$caldate}>'><img src='<{$images_url}>/addevent.gif' border='0' width='14' height='12' /><{$lang_editevent}></a><{/if}>
	          </td>
	          <td class="picalEventCol4"><input type='checkbox' name='ids[]' value='<{$event.target_id}>' /></td>
	        </tr>
	        <{/foreach}>
	        <!-- End event loop -->
			<!-- iCalendar -->
	        <{if $user_can_output_ics }>
	        <tr>
	          <td colspan='4' class='picaliCal'>
	            <{$lang_checkeditems}> &nbsp; <{$lang_icalendar_output}><input type='submit' name='output_ics_confirm' value='<{$lang_button_export}>' />
	          </td>
	        </tr>
	        <{/if}>
	        </tbody>
	      </table>
	
	<div id='picalcopy'><{$pical_copyright}>
		<{if $for_print <> true}>
			<a href="<{$print_link}>" target="_blank"><img src="<{$images_url}>/print.gif" alt="<{$alt_print}>" title="<{$alt_print}>" border="0" /></a></div>
		<{/if}>
	
	</form>
</div>
<!--End piCalEventList-->

<{include file='db:system_notification_select.html'}>