{*
  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" 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>
    <td valign="top">
      <table cellspacing="0" cellpadding="2" border="0" width="100%">
	  		<tr>
			<td class="lineeven" width="30%" NOWRAP><b>» {$lang.creation} :</b></td>
			<td class="lineeven">{$competition.creation}</td>
			</tr>		
            <tr>
			<td class="lineodd"><b>» {$lang.country} :</b></td>
			<td class="lineodd">{$competition.country}</td>
			</tr>		
            <tr>
			<td class="lineeven"><b>» {$lang.shortname} :</b></td>
			<td class="lineeven">{$competition.shortname}</td>			
			</tr>		
            <tr>
			<td class="lineodd"><b>» {$lang.aka} :</b></td>
			<td class="lineodd">{$competition.aka}</td>
			</tr>
			<tr>
			<td class="lineeven" rowspan="2"><b>» {$lang.type} :</b></td>
			<td class="lineeven">{$compettype[$competition.type]}</td>			
			</tr>		
			<tr>
			<td class="lineeven">{$competrange[$competition.range]}</td>
			</tr>
			<tr>
				<td class="lineodd"><b>» {$lang.website} :</b></td>
				<td class="lineodd">{if $competition.website}<a href="{$competition.website}" target="_blank">{$competition.website}</a>{/if}</td>			
			</tr>
		</table>	
    </td>	
  </tr>


{if $statsactive}
<tr>
	<td class="title-cat" 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="lineodd"><b>{$lang.nummatchs}</b></td><td class="lineeven" align="center">{$competition.matchs.nummatchs}</td>
			<td class="lineodd"><b>{$lang.nummatchsplayed}</b></td><td class="lineeven" align="center">{$competition.matchsplayed.nummatchs}</td>
			<td class="lineodd"><b>{$lang.nummatchstobeplayed}</b></td><td class="lineeven" align="center">{$competition.matchstobeplayed.nummatchs}</td>
		</tr>
		<tr>
			<td class="lineeven"><b>{$lang.bestaffluence}</b></td>
			{if $competition.bestaffluence.spectators}
			<td colspan="5" class="lineeven" align="center">
			<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="lineeven" colspan="5">{$lang.nostats}</td>
			{/if}
		</tr>
		<tr>
			<td class="lineodd"><b>{$lang.bestwindom}</b></td><td colspan="5" class="lineodd" align="center">
			<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="lineeven"><b>{$lang.bestwinext}</b></td><td colspan="5" class="lineeven" align="center">
			<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="lineodd" colspan="2">&nbsp;</td>
			<td class="lineodd" colspan="2"><b>{$lang.averagebyday}</b></td>
			<td class="lineodd" colspan="2"><b>{$lang.averagebymatch}</b></td>
		</tr>		
		<tr>
			<td class="lineeven"><b>{$lang.numpoints}</b></td><td class="lineeven" align="center">{$competition.points.goals}</td>
			<td class="lineeven" colspan="2">{$competition.points.averagegoalsbyday}</td>
			<td class="lineeven" colspan="2">{$competition.points.averagegoalsbymatch}</td>
		</tr>
		<tr>
			<td class="lineodd"><b>{$lang.numpointsdom}</b></td><td class="lineodd" align="center">{$competition.points.goalsdom}</td>
			<td class="lineodd" colspan="2">{$competition.points.averagedomgoalsbyday}</td>
			<td class="lineodd" colspan="2">{$competition.points.averagedomgoalsbymatch}</td>
		</tr>
		<tr>
		<tr>
			<td class="lineeven"><b>{$lang.numpointsext}</b></td><td class="lineeven" align="center">{$competition.points.goalsext}</td>
			<td class="lineeven" colspan="2">{$competition.points.averageextgoalsbyday}</td>
			<td class="lineeven" colspan="2">{$competition.points.averageextgoalsbymatch}</td>
		</tr>
		<tr>
			<td class="lineodd"><b>{$lang.numredcards}</b></td>
			{if $competition.cards.redcards}
			<td class="lineodd" align="center">{$competition.cards.redcards}</td>
			<td class="lineodd" colspan="2">{$competition.cards.averageredcardsbyday}</td>
			<td class="lineodd" colspan="2">{$competition.cards.averageredcardsbymatch}</td>
			{else}
			<td class="lineodd" colspan="5">{$lang.nostats}</td>
			{/if}
		</tr>
		<tr>
		<tr>
			<td class="lineeven"><b>{$lang.numyellowcards}</b></td>
			{if $competition.cards.yellowcards}
			<td class="lineeven" align="center">{$competition.cards.yellowcards}</td>
			<td class="lineeven" colspan="2">{$competition.cards.averageyellowcardsbyday}</td>
			<td class="lineeven" colspan="2">{$competition.cards.averageyellowcardsbymatch}</td>
			{else}
			<td class="lineodd" colspan="5">{$lang.nostats}</td>
			{/if}
		</tr>
		<tr>
			<td class="lineodd"><b>{$lang.numspectators}</b></td>
			{if $competition.cards.numspectators}
			<td class="lineodd" align="center">{$competition.spectators.numspectators}</td>
			<td class="lineodd" colspan="2">{$competition.spectators.averagespectatorsbyday}</td>
			<td class="lineodd" colspan="2">{$competition.spectators.averagespectatorsbymatch}</td>
			{else}
			<td class="lineodd" colspan="5">{$lang.nostats}</td>
			{/if}
		</tr>
		</table>
		</div>
	</td>
</tr>
{/if}


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