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

{include file="$gentemplates/_navi.tpl" submenu="5"}

<script type="text/javascript" src="{$rooturl}modules/calendar/templates/{$theme}/js/overdiv_style.js"></script>

{include file="_cal_contentheader.tpl" title=$header_date nav_links=$nav_links|smarty:nodefaults nav_rechts=$nav_rechts|smarty:nodefaults}

<table width="100%" border="0" class="contentback" cellspacing="0" cellpadding="0" height="300">
  <tr>
    <td valign="top">
      {* TABLE START *}
      {include file="_calendar_month_h.tpl" r1="$gentemp_week_short" r2="$gentemp_weekday_2" r3="$gentemp_weekday_3" r4="$gentemp_weekday_4"
      r5="$gentemp_weekday_5" r6="$gentemp_weekday_6" r7="$gentemp_weekday_7" r8="$gentemp_weekday_1"
  	  h_klass2=$cm_header.h_klass2 h_klass3=$cm_header.h_klass3 h_klass4=$cm_header.h_klass4 h_klass5=$cm_header.h_klass5
	  h_klass6=$cm_header.h_klass6 h_klass7=$cm_header.h_klass7 h_klass8=$cm_header.h_klass8
	  }

	  {section name=monat loop=$cm}
      {include file="_calendar_month_row.tpl"
      r0=$cm[monat].height|smarty:nodefaults r1=$cm[monat].kw|smarty:nodefaults r2=$cm[monat].Mon|smarty:nodefaults r3=$cm[monat].Tue|smarty:nodefaults r4=$cm[monat].Wed|smarty:nodefaults
      r5=$cm[monat].Thu|smarty:nodefaults r6=$cm[monat].Fri|smarty:nodefaults r7=$cm[monat].Sat|smarty:nodefaults r8=$cm[monat].Sun|smarty:nodefaults
	  cla2 = $cm[monat].col_Mon cla3 = $cm[monat].col_Tue cla4 = $cm[monat].col_Wed cla5 = $cm[monat].col_Thu
      cla6 = $cm[monat].col_Fri cla7 = $cm[monat].col_Sat cla8 = $cm[monat].col_Sun
      }
	  
	  {* cla2 = "tab" cla3 = "tab" cla4 = "tab" cla5 = "tab"
      cla6 = "tab" cla7 = "wochenende" cla8 = "wochenende"
	  *}
	  
	  
      {/section}
      {include file="$gentemplates/_tfx.tpl"}
      {* TABLE END *}
	  
	  {include file="_calendar_appt_type_legend.tpl" appt_type_legend=$appt_type_legend}
	  
    </td>
    <td width="250" valign="top" align="center">
      <table border="0" cellpadding="0" cellspacing="0" width="180">
	<tr>
	  <td>
	    {include file="_actual_calendar_owner.tpl"}
	  </td>
	</tr>
	<tr align="left"><td class="stand"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="10" /></td></tr>
	<tr>
	  <td>
	    {include file="_select_calendar_owner.tpl"}
	  </td>
	</tr>
	
	<tr align="left"><td class="stand"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="10" /></td></tr>
	
	<tr>
	  <td>
	    {$kalender|smarty:nodefaults}
	  </td>
	</tr>
	<tr align="left" heigth="10"><td class="stand"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="10" /></td></tr>
	<tr>
	  <td>
	    {include file="jump_to.tpl"}
	  </td>
	</tr>
	
	<tr align="left"><td class="stand"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="10" /></td></tr>
	<tr>
	  <td>{include file="calendar_legend.tpl"}</td>
	</tr>
      </table>
    </td>
  </tr>
</table>
{include file="$gentemplates/_footer.tpl" aktUser=$username}
