{include file="$gentemplates/_header.tpl"}
	
	<form name="f1" action="index.php" method="post">
	<input type="hidden" name="{$SESSIONNAME}" value="{$SESSIONID}">			
	<input type="hidden" name="id" value="{$td.id}">			


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


	<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="100%">
		<TR><TD CLASS="lines2" HEIGHT="2" WIDTH="1" COLSPAN="3"><IMG SRC="{$imgpathmaster}/space.gif" ALT="" WIDTH="1" HEIGHT="2" HSPACE="0" VSPACE="0" BORDER="0"></TD></TR>						
		<TR ALIGN="left">
			<TD CLASS="tab" HEIGHT="20"><IMG SRC="{$imgpathmaster}/space.gif" ALT="" WIDTH="60" HEIGHT="1" HSPACE="0" VSPACE="0" BORDER="0"></TD>
			<TD CLASS="tab">&nbsp;</TD>
			<TD CLASS="tab">&nbsp;</TD>
		</TR>

		<TR><TD CLASS="lines2" HEIGHT="1" WIDTH="1" COLSPAN="3"><IMG SRC="{$imgpathmaster}/space.gif" ALT="" WIDTH="1" HEIGHT="1" HSPACE="0" VSPACE="0" BORDER="0"></TD></TR>
                        <TR ALIGN="left">                
			<TD width="20">&nbsp;</TD>                
			<TD>
                          <TABLE WIDTH="600">
                              {section name=all loop=$tout}
                               <TR>                                                           
                                <TD WIDTH="5">&nbsp;</TD>
                                <TD><h4>{$smarty.section.all.iteration}</h4></TD>
                                {if ($tout[all].nblastday > 0)}
                                  <TD colspan="{$tout[all].nblastday}" class="histoemptyline">&nbsp;</TD>
                                {/if}
                                <TD colspan="{$tout[all].nbday}" class="histo_{$tout[all].class}">&nbsp;</TD>
                                {if ($tout[all].nbnextday > 0)}                                
                                  <TD colspan="{$tout[all].nbnextday}" class="histoemptyline">&nbsp;</TD>                                 
                                {/if}                                  
                                
                                </TR>                                 
                              {/section}

                          </TABLE>
                        </TD>
			<TD ><IMG SRC="{$imgpathmaster}/space.gif" ALT="" WIDTH="60" HEIGHT="1" HSPACE="0" VSPACE="0" BORDER="0"></TD>                                        
                        </TR>
		<TR><TD CLASS="lines" HEIGHT="1" WIDTH="1" COLSPAN="3"><IMG SRC="{$imgpathmaster}/space.gif" ALT="" WIDTH="1" HEIGHT="1" HSPACE="0" VSPACE="0" BORDER="0"></TD></TR>
	</TABLE>
	
	</form>

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