{*
  calendar page
  $Id: login.tpl,v 1.5 2005/06/04 16:59:36 andig2 Exp $
*}


<div id="topspacer"></div>

<div id="content">

<div id="contentlogin">
<br/>
<table width="100%" cellspacing="2" cellpadding="5">
<tr>
<td align="center">

	<table width="100%" cellspacing="2" cellpadding="5">
	<tr><td colspan="7">{$month} - {$year}</td></tr>
	<tr id="libelle">
          <td class="daycalendar" align="center" width="14%">{$lang.day1}</td>
          <td class="daycalendar" align="center" width="14%">{$lang.day2}</td>
          <td class="daycalendar" align="center" width="14%">{$lang.day3}</td>
          <td class="daycalendar" align="center" width="14%">{$lang.day4}</td>
          <td class="daycalendar" align="center" width="14%">{$lang.day5}</td>
          <td class="daycalendar" align="center" width="14%">{$lang.day6}</td>
          <td class="daycalendar" align="center" width="14%">{$lang.day0}</td>
     </tr>

	{foreach item=week from=$dates}               
    <tr>
		  {foreach item=day from=$week}
          <td{if $day} class="td-value"{/if} height="90">{$day}<br>
		  	{if $mydates[$day]}
			<div class="calendar-date">
		  	{foreach item=mydate from=$mydates[$day]}	
		  	<a href="show_matchs.php?competition={$mydate.id_compet}&season={$mydate.id_season}&day={$mydate.day}">{$mydate.shortname} ({$mydate.count})</a><br />	
		  	{/foreach}
			</div>	
			{/if}
		  </td>
      	  {/foreach}                     
    </tr>
    {/foreach}
	<form action="calendar.php" methop="post">
	<tr>
	<td colspan="4">&nbsp;</td>
	<td class="td-opt">{$lang.gotomonth}</td>
	<td>
	<select name="mymonth" onchange="submit();">
	{counter start=0 print=false name=monthcount}
	{foreach item=mymonth from=$months}
	{counter assign=count name=monthcount}
	<option value="{$count}"{if $count == $pmonth} selected{/if}>{$mymonth}</option>
	{/foreach}	
	</select>
	</td>
	<td>
	<select name="myyear" onchange="submit();">
	{foreach item=myyear from=$years}
	<option value="{$myyear}"{if $myyear == $pyear} selected{/if}>{$myyear}</option>
	{/foreach}	
	</select>
	</td>
	</tr>
	</form>
	</table>



</td>
</tr>
</table>

</div>
<!-- /contentlogin -->

</div>
<!-- /content -->

