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

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

<div id="pagecontent">
<table width="90%" border="0" cellspacing="0" cellpadding="2">
	<tr>
		<form action="show_kickers.php" id="edi" name="edi" method="post">
		
			<input type="hidden" name="competition" id="competition" value="{$competition.id}" />
			<input type="hidden" name="season" id="season" value="{$season}" />
		<td class="title-classement" align="right">
			<select class="title-classement" name="season" onchange="submit();">
			<option value="0">---{$lang.season}---</option>
				{foreach item=myseason from=$seasonselect}
				{assign var="nextyear" value="`$myseason.season+1`"}
				{if $competition.oneyear}
					<option value="{$myseason.id_season}" {if $myseason.id_season == $season}Selected{/if}>{$lang.season} {$myseason.season}</option>
				{else}
					{if $competition.range == 3}
						<option value="{$myseason.id_season}" {if $myseason.id_season == $season}Selected{/if}>{$lang.season} {$myseason.season}</option>
					{else}
						<option value="{$myseason.id_season}" {if $myseason.id_season == $season}Selected{/if}>{$lang.season} {$myseason.season} / {$nextyear}</option>
					{/if}
				{/if}
				{/foreach}
			</select>
			<select class="title-classement" name="day" onchange="submit();">
				{counter start=0 print=false name=daycount}
				{section name="loopday" start=0 loop=$maxday}
				{counter assign=count name=daycount}		
				<option value="{$count}"{if $count == $day} selected{/if}>{$lang.matchday} {$count}</option>
				{/section}		
			</select>
			<select class="title-classement" name="limit" onchange="submit();">
				<option value="0">----- {$lang.limit} ------</option>
				<option value="10"{if $limit == 10} selected{/if}>10 {$lang.lines}</option>
				<option value="15"{if $limit == 15} selected{/if}>15 {$lang.lines}</option>
				<option value="20"{if $limit == 20} selected{/if}>20 {$lang.lines}</option>
				<option value="25"{if $limit == 25} selected{/if}>25 {$lang.lines}</option>
				<option value="30"{if $limit == 30} selected{/if}>30 {$lang.lines}</option>
				<option value="35"{if $limit == 35} selected{/if}>35 {$lang.lines}</option>
				<option value="40"{if $limit == 40} selected{/if}>40 {$lang.lines}</option>
				<option value="45"{if $limit == 45} selected{/if}>45 {$lang.lines}</option>
				<option value="50"{if $limit == 50} selected{/if}>50 {$lang.lines}</option>
			</select>
			<select class="title-classement" name="club" onchange="submit();">
			<option value="0">----- {$lang.clubs} ------</option>
			{foreach item=candidate from=$candidates}
			<option value="{$candidate.id}"{if $candidate.id == $club} selected{/if}>{$candidate.clubname}</option>
			{/foreach}		
			</select>
		</td>
		</form>
	</tr>	
</table>

<!-- content begin -->
<table width="90%" border="0" cellspacing="0">
	<tr>
		<td class="title-classement">&nbsp;</td>
		<td class="title-classement">{$lang.teams}</td>
		<td class="title-classement">{$lang.name}</td>
		<td class="title-classement">{$lang.goals}</td>
		<td class="title-classement">{$lang.penalty}</td>
	</tr>
	{if $kickers}
		{counter start=0 print=false name=matchcount}
		{foreach item=kicker from=$kickers name=kickers}
		{counter assign=count name=kickercount}
		{cycle values="lineeven,lineodd" assign=CLASS print=false}
		<tr>
			<td class="{$CLASS}" align="center">{$count}</td>
			<td class="{$CLASS}"><a href="show_clubs.php?id={$kicker.id_club}">{$kicker.shortname}</a></td>
			<td class="{$CLASS}"><a href="show_persons.php?id={$kicker.id_person}">{$kicker.lastname} {$kicker.firstname}</a></td>
			<td class="{$CLASS}">{if !$kicker.goals}0{else}{$kicker.goals}{/if}</td>
			<td class="{$CLASS}">{if !$kicker.penalty}0{else}{$kicker.penalty}{/if}</td>
		</tr>
		{/foreach}
	{else}
	<tr>
			<td class="lineeven" colspan="5" align="center"><br><b>{$lang.nokickerstable}</b><br></td>
	</tr>
	{/if}
</table>
</div>
<!-- /content -->
