{*
  Template for the club detailview
  $Id: show_stadiums.tpl,v 1.00 2006/10/25 20:14:18
*}

<!-- {$smarty.template} -->
<div id="title"><a href="show_competitions.php?id={$competition}&season={$season}">{$namecompet.longname} - {$nameseason.season}</a></div>

<div id="actions">
    <div id="barre-onglet">
	<form action="show_competitions.php" name="editform">
            <input type="hidden" name="id" value="{$competition}"/>
            <input type="hidden" name="action" value="card"/>
            <input type="submit" class="{if $action=='card'}onglet-on{else}onglet{/if}" value="{$lang.card}" />
    </form>
	{if $haveseason}
	<form action="show_calendar.php" name="calendarform">
				<input type="hidden" name="competition" value="{$competition}"/>
				<input type="submit" class="onglet" value="{$lang.calendar}" {if !$competition}disabled="disabled"{/if} />
	</form>
	{/if}
	{if $seegallery}
        <form action="gallery.php" name="galleryform">
            <input type="hidden" name="subcat" value="{$competition}"/>
            <input type="hidden" name="cat" value="2" />
            <input type="submit" value="{$lang.gallery}" class="onglet"/>
        </form>
	{/if}
	{if $commentable}
			<form action="comments.php" name="mkcommentform">
				<input type="hidden" name="subcat" value="{$competition}"/>
				<input type="hidden" name="cat" value="2" />
				<input type="submit" value="{$lang.comments}" class="onglet"/>
			</form>
	{/if}
	{if $prev_id || $next_id}
			<form action="show_competitions.php" name="prevform">
				<input type="hidden" name="id" value="{$prev_id}"/>
				<input type="submit" class="onglet" value="<" {if !$prev_id}disabled="disabled"{/if} accesskey="," />
			</form>
			<form action="show_competitions.php" name="nextform">
				<input type="hidden" name="id" value="{$next_id}"/>
				<input type="submit" class="onglet" value=">" {if !next_id}disabled="disabled"{/if} accesskey="." />
			</form>			
	{/if}
			<b>{$lang.seasons} :</b> <form action="show_competitions.php" name="seasonform">
			{$seasonselect}
			</form>	
    </div>
	
{if $editable}
	<div id="barre-season">
	{if $editable}
		<form action="edit_competitions.php" name="editform">
				<input type="hidden" name="id" value="{$competition}"/>
				<input type="submit" value="{$lang.edit}" class="onglet"/>
		</form>
		<form action="edit_candidates.php" name="candidateform">
				<input type="hidden" name="competition" value="{$competition}"/>
				<input type="hidden" name="season" value="{$season}"/>				
				<input type="submit" value="{$lang.editseason}" class="onglet"/>
		</form>
		<form action="edit_penalitys.php" name="penalityform">
				<input type="hidden" name="competition" value="{$competition}"/>
				<input type="hidden" name="season" value="{$season}"/>				
				<input type="submit" value="{$lang.editpenality}" class="onglet"/>
		</form>
		<form action="edit_days.php" name="dayform">
				<input type="hidden" name="competition" value="{$competition}"/>
				<input type="hidden" name="season" value="{$season}"/>				
				<input type="submit" value="{$lang.editday}" class="onglet"/>
		</form>
	{/if}
	</div>
{/if}
</div>


<script language="JavaScript" type="text/javascript" src="javascript/look.js"></script>

<div id="pagecontent">

<form action="edit_matchs.php" id="edi" name="edi" method="post">
  <input type="hidden" name="competition" id="compet" value="{$competition}" />
  <input type="hidden" name="season" id="season" value="{$season}" />
  <table>
  	<tr>
		{counter start=0 print=false name=daycount}
		{section name="loopday" start=0 loop=$numdays/2}
		<td><input type="submit" class="button" name="day" value="{$count+1}"></td>
		{counter assign=count name=daycount}		
		{/section}
	</tr>
		<tr>		
		{counter start=$numdays/2 print=false name=daycount}
		{section name="loopday" start=$numdays/2 loop=$numdays}
		<td><input type="submit" class="button" name="day" value="{$count+1}"></td>
		{counter assign=count name=daycount}		
		{/section}		
	</tr>
  </table>
</form>

<!-- content begin -->
<table width="70%" border="0" cellspacing="5" cellpadding="5">
  <tr>
      <td>
		<table width="100%" border="0">
			<tr><td colspan="5">{$matchs[0].date_day}</td></tr>
			<tr><td>{$lang.dom}</td><td colspan="2">{$lang.score}</td><td>{$lang.ext}</td><td>&nbsp;</td></tr>
			  {counter start=0 print=false name=matchcount}
			  {foreach item=match from=$matchs}
			   <tr><td>{$match.domclubname}</td><td>{$match.buts_dom}</td><td>{$match.buts_ext}</td><td>{$match.extclubname}</td><td width="10%"><a href="javascript:" onclick="blocking('bloc{$count+1}','yes', 'block'); return false;"><h3>{$lang.details}:</h3></a></td></tr>
			   <tr><td colspan="5"><div id="bloc{$count+1}" class="show_plot" style="display: block; display:none;">{$match.plot}</div></td></tr>
			  {counter assign=count name=matchcount}		
			  {/foreach}
		</table>
	  </td>
  </tr>  
</table>
</div>
<!-- /showheader -->


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