{*
  Template for the club detailview
  $Id: show_competitions.tpl,v 1.00 2006/10/25 20:14:18
*}
{assign var=IMGWIDTH value="75"}
{assign var=IMGHEIGHT value="75"}
{assign var=CLUBWIDTH value="150"}
{assign var=CLUBHEIGHT value="150"}

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


<!-- content begin -->


<table id="tableshow" width="97%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="center" rowspan="2" width="{$CLUBWIDTH}">
    <div class="img-shadow">
		<a title="{$competition.longname}" href="{$link}">
		<img alt="{$competition.longname}" src="{$competition.imgurl}" border="0" hspace="5" vspace="5" width="150">
		</a>
	</div>
    </td>    	
  </tr>  
  <tr>
    <td>
      <table cellspacing="1" cellpadding="2" border="0" width="100%">
	  		<tr>
			<td class="td-opt" width="25%">{$lang.creation}:</td><td width="25%" class="td-value">{$competition.creation}</td>
			<td class="td-opt" width="25%">{$lang.country}:</td><td class="td-value" width="25%">{$competition.country}</td>
			</tr>		
            <tr>
			<td class="td-opt">{$lang.shortname}:</td><td class="td-value">{$competition.shortname}</td>			
			<td class="td-opt">{$lang.aka}:</td><td class="td-value">{$competition.aka}</td>
			</tr>
			<tr>
			<td class="td-opt" rowspan="2">{$lang.type}:</td><td class="td-value">{$compettype[$competition.type]}</td>			
			<td colspan="2">&nbsp;</td>
			</tr>
			<tr>
			<td class="td-value">{$competrange[$competition.range]}</td>
			<td colspan="2">&nbsp;</td>
			</tr>
			<tr>
			<td class="td-opt">{$lang.website}:</td><td class="td-value" colspan="3">{if $competition.website}<a href="{$competition.website}" target="_blank">{$competition.website}</a>{/if}</td>			
			</tr>
		</table>	
    </td>	
  </tr>


{if $statsactive}
<tr>
	<td class="td-opt" colspan="2"><a href="javascript:" onclick="blocking('bloc2','yes', 'block'); return false;"><b>» {$lang.statistics} :</b></a></td>
</tr>
<tr>
	<td colspan="2">
		<div id="bloc2" style="display: block;">
		<table width="100%" border="0" cellpadding="2" cellspacing="1">
		<tr>
			<td class="td-opt"><b>{$lang.nummatchs}</b></td><td class="td-value" align="center">{$competition.matchs.nummatchs}</td>
			<td class="td-opt"><b>{$lang.nummatchsplayed}</b></td><td class="td-value" align="center">{$competition.matchsplayed.nummatchs}</td>
			<td class="td-opt"><b>{$lang.nummatchstobeplayed}</b></td><td class="td-value" align="center">{$competition.matchstobeplayed.nummatchs}</td>
		</tr>
		<tr>
			<td class="td-opt"><b>{$lang.bestaffluence}</b></td>
			{if $competition.bestaffluence.spectators}
				<td colspan="5" class="td-value">
				<a href="show_matchs.php?competition={$competition.id}&season={$season}&day={$competition.bestaffluence.day}">{$lang.matchday} {$competition.bestaffluence.day}</a> -
				{$competition.bestaffluence.spectators} {$lang.spectators} - <a href="show_match.php?id={$competition.bestaffluence.id_match}">{$competition.bestaffluence.domclub} {$competition.bestaffluence.buts_dom} - {$competition.bestaffluence.buts_ext} {$competition.bestaffluence.extclub}</a>
				</td>
			{else}
				<td class="td-value" colspan="5">{$lang.nostats}</td>
			{/if}
		</tr>
		<tr>
			<td class="td-opt"><b>{$lang.bestwindom}</b></td>
			<td colspan="5" class="td-value">
			<a href="show_matchs.php?competition={$competition.id}&season={$season}&day={$competition.bestwindom.day}">{$lang.matchday} {$competition.bestwindom.day}</a> - <a href="show_match.php?id={$competition.bestwindom.id_match}">{$competition.bestwindom.domclub} {$competition.bestwindom.buts_dom} - {$competition.bestwindom.buts_ext} {$competition.bestwindom.extclub}</a>
			</td>
		</tr>
		<tr>
			<td class="td-opt"><b>{$lang.bestwinext}</b></td>
			<td colspan="5" class="td-value">
			<a href="show_matchs.php?competition={$competition.id}&season={$season}&day={$competition.bestwinext.day}">{$lang.matchday} {$competition.bestwinext.day}</a> - <a href="show_match.php?id={$competition.bestwinext.id_match}">{$competition.bestwinext.domclub} {$competition.bestwinext.buts_dom} - {$competition.bestwinext.buts_ext} {$competition.bestwinext.extclub}</a>
			</td>
		</tr>
		<tr>
			<td class="td-opt" colspan="2">&nbsp;</td>
			<td class="td-opt" colspan="2" align="center"><b>{$lang.averagebyday}</b></td>
			<td class="td-opt" colspan="2" align="center"><b>{$lang.averagebymatch}</b></td>
		</tr>		
		<tr>
			<td class="td-opt"><b>{$lang.numpoints}</b></td>
			<td class="td-value" align="center">{$competition.points.goals}</td>
			<td class="td-value" colspan="2" align="center">{$competition.points.averagegoalsbyday}</td>
			<td class="td-value" colspan="2" align="center">{$competition.points.averagegoalsbymatch}</td>
		</tr>
		<tr>
			<td class="td-opt"><b>{$lang.numpointsdom}</b></td>
			<td class="td-value" align="center">{$competition.points.goalsdom}</td>
			<td class="td-value" colspan="2" align="center">{$competition.points.averagedomgoalsbyday}</td>
			<td class="td-value" colspan="2" align="center">{$competition.points.averagedomgoalsbymatch}</td>
		</tr>
		<tr>
		<tr>
			<td class="td-opt"><b>{$lang.numpointsext}</b></td>
			<td class="td-value" align="center">{$competition.points.goalsext}</td>
			<td class="td-value" colspan="2" align="center">{$competition.points.averageextgoalsbyday}</td>
			<td class="td-value" colspan="2" align="center">{$competition.points.averageextgoalsbymatch}</td>
		</tr>
		<tr>
			<td class="td-opt"><b>{$lang.numredcards}</b></td>
			{if $competition.cards.redcards}
			<td class="td-value" align="center">{$competition.cards.redcards}</td>
			<td class="td-value" colspan="2" align="center">{$competition.cards.averageredcardsbyday}</td>
			<td class="td-value" colspan="2" align="center">{$competition.cards.averageredcardsbymatch}</td>
			{else}
			<td class="td-value" colspan="5">{$lang.nostats}</td>
			{/if}
		</tr>
		<tr>
		<tr>
			<td class="td-opt"><b>{$lang.numyellowcards}</b></td>
			{if $competition.cards.yellowcards}
			<td class="td-value" align="center">{$competition.cards.yellowcards}</td>
			<td class="td-value" colspan="2" align="center">{$competition.cards.averageyellowcardsbyday}</td>
			<td class="td-value" colspan="2" align="center">{$competition.cards.averageyellowcardsbymatch}</td>
			{else}
			<td class="td-value" colspan="5">{$lang.nostats}</td>
			{/if}
		</tr>
		<tr>
			<td class="td-opt"><b>{$lang.numspectators}</b></td>
			{if $competition.cards.numspectators}
			<td class="td-value" align="center">{$competition.spectators.numspectators}</td>
			<td class="td-value" colspan="2" align="center">{$competition.spectators.averagespectatorsbyday}</td>
			<td class="td-value" colspan="2" align="center">{$competition.spectators.averagespectatorsbymatch}</td>
			{else}
			<td class="td-value" colspan="5">{$lang.nostats}</td>
			{/if}
		</tr>
		</table>
		</div>
	</td>
</tr>
{/if}


</table> 
<!-- /content -->
