<script>
    var session = "{$SESSION}";
</script>
<script src="{$rooturl}modules/calendar2/templates/{$theme}/js/event.js"></script>

<table border="0" cellpadding="0" cellspacing="0" bgcolor="#EFEFF2">
  <tr>
    <td class="category" width="1"><img src="{$imgpathmaster}/space.gif" width="1" height="1"></td>
    <td class="category" width="100%"><img src="{$imgpathmaster}/space.gif" width="1" height="1"></td>
    <td class="category" width="1"><img src="{$imgpathmaster}/space.gif" width="1" height="1"></td>
  </tr>
  <tr>
    <td class="category" width="1"><img src="{$imgpathmaster}/space.gif" width="1" height="1"></td>
    <td class="subnavback" width="100%"><div align="center">{$calendar2} - {$today}</div></td>
    <td class="category" width="1"><img src="{$imgpathmaster}/space.gif" width="1" height="1"></td>
</tr>
<tr>
  <td class="category" width="1"><img src="{$imgpathmaster}/space.gif" width="1" height="1"></td>
  <td class="category" width="100%"><img src="{$imgpathmaster}/space.gif" width="1" height="1"></td>
  <td class="category" width="1"><img src="{$imgpathmaster}/space.gif" width="1" height="1"></td>
</tr>

<tr>
  <td class="category" width="1"><img src="{$imgpathmaster}/space.gif" width="1" height="1"></td>

  <td class="tab" valign="top">
    <table border="0" cellpadding="3" width="100%">
      <tr><td>
	<table border="0" cellpadding="0" cellspacing="1" width="100%">
	  <tr>
	    <td valign="top" align="left" class="tab">{$hashmap.event_start_lang}</td>
		<td><img src="{$imgpathmaster}/space.gif" width="5" height="1"></td>
	    <td valign="top" align="left" class="tab">{$hashmap.event_end_lang}</td>
		<td><img src="{$imgpathmaster}/space.gif" width="5" height="1"></td>
	    <td valign="top" align="left" class="tab">{$hashmap.summary_lang}</td>
		<td><img src="{$imgpathmaster}/space.gif" width="5" height="1"></td>
	    <td valign="top" align="left" class="tab">{$hashmap.location}</td>
		<td><img src="{$imgpathmaster}/space.gif" width="5" height="1"></td>
	    <td valign="top" align="left" class="tab">{$hashmap.description_lang}</td>
	  </tr>
	  <tr>
        <td colspan="9" class="category" width="100%"><img src="{$imgpathmaster}/space.gif" width="1" height="1"></td>
	  </tr>
	  {section name=item loop=$all_day}
	  <tr>
	    <td class="tab" colspan="2">&nbsp;</td>
	  </tr>
	  <tr>
	    <td valign="top" class="tab" colspan="2" align="center"></td>
		<td></td>
	    <td valign="top" class="tab" align="left"><a href="#" onclick="openEventInfo('{$all_day[item][0]}','','','','','','{$rooturl}modules/calendar2/');">{$all_day[item][1]}</a></td>
		<td></td>
	    <td valign="top" class="tab" align="left">{$all_day[item][2]}</td>
		<td></td>
	    <td valign="top" class="tab" align="left">{$all_day[item][3]|smarty:nodefaults}</td>
	  </tr>	
	  {/section}
	  <tr>
	    <td class="tab" colspan="2"><img src="{$imgpathmaster}/space.gif" width="1" height="5"></td>
	  </tr>
	  <tr>
        <td colspan="9" class="category" width="100%"><img src="{$imgpathmaster}/space.gif" width="1" height="1"></td>
	  </tr>
	  <tr>
	    <td class="tab" colspan="2"><img src="{$imgpathmaster}/space.gif" width="1" height="10"></td>
	  </tr>
	  {section name=item loop=$day_events}
	  <tr>
	    <td valign="top" class="tab" align="left">{$day_events[item][1]}</td>
		<td></td>
	    <td valign="top" class="tab" align="left">{$day_events[item][2]}</td>
		<td></td>
	    <td valign="top" class="tab" align="left"><a href="#" onclick="openEventInfo('{$day_events[item][0]}','','','','','','{$rooturl}modules/calendar2/');">{$day_events[item][3]}</a></td>
		<td></td>
	    <td valign="top" class="tab" align="left" width="75">{$day_events[item][4]}</td>
		<td></td>
	    <td valign="top" class="tab" align="left" width="75">{$day_events[item][5]|smarty:nodefaults}</td>
	  </tr>	
	  <tr>
	    <td class="tab" colspan="2">&nbsp;</td>
	  </tr>
	  {/section}
	</table>
      </td></tr>
    </table> 
  </td>
  <td class="category" width="1"><img src="{$imgpathmaster}/space.gif" width="1" height="1"></td>

</tr>
<tr>
  <td class="category" width="1"><img src="{$imgpathmaster}/space.gif" width="1" height="1"></td>
  <td class="category"><img src="{$imgpathmaster}/space.gif" width="1" height="1"></td>
  <td class="category" width="1"><img src="{$imgpathmaster}/space.gif" width="1" height="1"></td>
</tr>
</table>
