{include file="$gentemplates/_header.tpl"}

{include file="$gentemplates/_navi.tpl"}
{include file="$gentemplates/_contentheader.tpl" title=$header_date}

<table width="100%" border="0" class="contentback" cellspacing="0" cellpadding="0" height="300">
  <tr>
    <td valign="top">
      {* TABLE START *}
      <!-- one column added for inituser -->
      {if $calendarid eq "all"}
		{include file="$gentemplates/_th6.tpl" r1="$temp_col1" r2="$temp_col2" r3="$temp_inituser" r4="$temp_col3" r5="$temp_col4" r6="$temp_col5"}
      {else}
		{include file="$gentemplates/_th5.tpl" r1="$temp_col1" r2="$temp_col2" r3="$temp_col3" r4="$temp_col4" r5="$temp_col5"}
	  {/if}
	  {section name=content loop=$td}
		{include file="_calendar_day_row.tpl" r1=$td[content].from|smarty:nodefaults r2=$td[content].to|smarty:nodefaults r3=$td[content].inituser|smarty:nodefaults r4=$td[content].topic|smarty:nodefaults r5=$td[content].location|smarty:nodefaults r6=$td[content].rowactions|smarty:nodefaults class=$td[content].class|smarty:nodefaults }
      {/section}
      {include file="$gentemplates/_tfx.tpl"}
      {* TABLE END *}	
    </td>
    <td width="250" valign="top" align="center">
      {$month_cal|smarty:nodefaults}
    </td>
  </tr>
  <tr>
    <td>	
      &nbsp;&nbsp;&nbsp;&nbsp;<a class="edit" href="{$back_url}" style="text-decoration:none;">{$temp_back_label}</a>
    </td>
  </tr>
</table>
{include file="$gentemplates/_footer.tpl" aktUser=$username}
