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


{* ****** submenu = aujourd'hui  / temp_title = ????? *}
{include file="$gentemplates/_navi.tpl" submenu="$submenu"}

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

{* include file="$gentemplates/_contentheader.tpl" title="$temp_title" *}

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

<table cellpadding="0" cellspacing="0" border="0"><tr><td valign="top">
  <table cellpadding="0" cellspacing="1" border="0">
  	   
	   
    {section name=rows loop=$rows}
	{if $smarty.section.rows.index%10 == 0} {* display header each 10 lines *}
		
			<!-- head -->
			<tr>
				<td class="user" colspan="{$num_of_cells}" height="1"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td>
			</tr>
		    {section name=rows2 loop=$rowhead}
		    <tr>	
		      <td class="formhead" width="200" height="20" align="right"><U>{$schedules}</U>&nbsp;</td>
		      {section name=cols2 loop=$rowhead[rows2].dates}
		      {if $rowhead[rows2].dates[cols2].mins eq 0}
		      <td colspan="{$col_grp}" class="formhead" align="center">
			{$rowhead[rows2].dates[cols2].hour}
		      </td>
		      {/if}
		      {/section}
		    </tr>
		    <tr>
			  <td class="user" width="200" height="1"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td>	
		      {section name=cols2 loop=$rowhead[rows2].dates}
		    	<td class="formhead" align="center" rowspan="2">
				{$rowhead[rows2].dates[cols2].mins}
		        </td>
		      {/section}
	    </tr>
	    	<tr>
		      <td width="201" height="20">
			  	<table cellpadding="0" cellspacing="0" border="0">
					<tr class="tab">
						<td  class="tab" width="200" height="20">&nbsp;<B><U>{$rowhead[rows2].name}</U></B></td>
						<td class="user" width="1" height="20"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="20"></td>			
					</tr>
				</table>
				</td>  
			</tr>
			{/section}
			
			<tr class="tab">
				<td class="tab" width="200" height="1"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td>
				<td class="user" colspan="{$num_of_cells}" height="1"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td>
			</tr>
			<!-- ---------- end head -------------- -->
		
	{/if} {* /if for header *}
	
	
	<tr class="tab">	
      <td class="tab" width="200" height="20">&nbsp;{$rows[rows].name}</td>	
      {section name=cols loop=$rows[rows].dates}
      <td width="20" {if $rows[rows].dates[cols].value eq 0}class="tab"> &nbsp;
	  				 {elseif $rows[rows].dates[cols].value eq 1}
					   {* class="feiertag" *}
					   STYLE="background-color:{$rows[rows].dates[cols].bgcolor};">

			{if $rows[rows].dates[cols].display == "1"}
				 {* private ? *}
				 {if $rows[rows].dates[cols].private=="1"}
	  				<a href="javascript:void(0);" onmouseover="return overlib('{$gentemp_private}',CAPTION,'{$rows[rows].dates[cols].appt_type} :',FGCOLOR,'{$rows[rows].dates[cols].bgcolor}',STATUS,' ');" onmouseout="return nd();">
	  					{include file="$gentemplates/_img_png.tpl"  localimgsrc="$localimgpath/private.png" imgsrc="$imgpath/private.png"}
	  				</a> 
  				 {else}
			  		<a href="javascript:void(0);" onmouseover="return overlib('{$rows[rows].dates[cols].subject_summ|smarty:nodefaults}<BR><B>{$temp_city}:</B>&nbsp;{$rows[rows].dates[cols].location|smarty:nodefaults}<BR>{$rows[rows].dates[cols].avail_text|smarty:nodefaults}',CAPTION,'{$rows[rows].dates[cols].appt_type} :',FGCOLOR,'{$rows[rows].dates[cols].bgcolor}',STATUS,' ');" onmouseout="return nd();">
						{if $rows[rows].dates[cols].avail == "1"}
							{include file="$gentemplates/_img_png.tpl" localimgsrc="$localimgpath/avail.png" imgsrc="$imgpath/avail.png"}
						{else}
							{include file="$gentemplates/_img_png.tpl" localimgsrc="$localimgpath/not_avail.png" imgsrc="$imgpath/not_avail.png"}
						{/if}
					</a>
  				{/if}
			{/if} {* /if display *}
				
		 {/if} {* /if value eq 0*}
      </td>
      {/section}
    </tr>
    {/section}
	
  </table>
</td>

	<td width="250" valign="top" align="center">
	
	    <table border="0" cellpadding="0" cellspacing="0" width="180" >
			<tr>
				<td>
					{include file="_select_calendar_multiple_owners.tpl"}
				</td>
			</tr>
			<tr align="left">
				<td class="stand">
					<img src="{$imgpathmaster}/space.gif" alt="" width="1" height="10">
				</td>
			</tr>
			<tr>
				<td>
					{$month_calendar|smarty:nodefaults}
				</td>
			</tr>
			<tr align="left">
				<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="_calendar_appt_type_legend.tpl" appt_type_legend=$appt_type_legend}

{include file="$gentemplates/_footer.tpl" aktUser=$username}

