{*
  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">
<br /><br />

<!-- content begin -->
<table width="100%" border="0" cellspacing="0" cellpadding="5">
  <tr>
  	<td class="title-classement" colspan="3">{$dateday}</td>
  </tr>
  <tr>
  	<td class="title-classement">{$lang.stadium} : {if $matchs.stadium}<a href="show_stadiums.php?id={$matchs.id_stadium}">{$matchs.stadium}{else}&nbsp;{/if}</a></td>
	<td class="title-classement"></td>
	<td class="title-classement">{$lang.referee} : {if $matchs.referee}<a href="show_persons.php?id={$matchs.id_referee}">{$matchs.referee}{else}&nbsp;{/if}</a></td>
  </tr>
  <tr id="barre-classement">
  	<td align="right"><b>{$lang.dom}</b></td>
	<td align="center">&nbsp;</td>
	<td align="left"><b>{$lang.ext}</b></td>
  </tr>
  <tr>
  	<td class="td-classement" align="right" width="45%">
		<table width="100%">
			<tr><td>
				<table width="100%" border="0" cellspacing="0" cellpadding="2">
				<tr><td rowspan="2" width="100"><span class="img-shadow">
				<img alt="{$matchs.domclub}" src="{$matchs.domimg}" border="0" hspace="5" vspace="5" width="100">
				</span></td><td valign="top" align="center"><h1>{$matchs.domclub}</h1></td></tr>
				<tr><td valign="top" align="center"><h2>{$domstats.rang} / {$domstats.pts} {$lang.points_abr} / {if $domstats.diff>0}+{/if}{$domstats.diff}</h2></td></tr>
				</table>
			</td></tr>
			<tr><td>
				<table width="100%" cellspacing="0" cellpadding="2" border="0">
				<tr>
					<td colspan="2" class="title-classement">{$lang.average} {$lang.dom}</td>
				</tr>
				<tr>
					<td>{$lang.average} {$lang.scoredby} :</td><td>{math equation="x/y" x=$domstats.domsb y=$domstats.domplayed format="%.2f"}</td>
				</tr>
				<tr>
					<td>{$lang.average} {$lang.scoredagainst} :</td><td>{math equation="x/y" x=$domstats.domsa y=$domstats.domplayed format="%.2f"}</td>
				</tr>
				</table>
			</td></tr>
			<tr><td>
				<table width="100%" cellspacing="0" cellpadding="2" border="0">
				<tr>
					<td colspan="2" class="title-classement">{$lang.best} {$lang.striker} {$lang.dom}</td>
				</tr>
				{if $domgoleador.lastname}
				<tr>
					<td width="80" height="80"><span class="img-shadow">
					<img alt="{$domgoleador.lastname} {$domgoleador.firstname}" src="{$domgoleador.imgurl}" border="0" hspace="5" vspace="5" width="75">
					</span></td>
					<td><h2>{$domgoleador.lastname} {$domgoleador.firstname}<br>{$domgoleador.goals} {$lang.goals}</h2></td>
				</tr>
				{/if}
				</table>
			</td></tr>
			<tr><td>
				<table width="100%" cellspacing="0" cellpadding="2" border="0">
				<tr>
					<td colspan="2" class="title-classement">{$lang.stats} {$lang.dom}</td>
				</tr>
				<tr>
					<td>{$lang.victory} :</td><td>{$domstats.domwin}</td>
				</tr>
				<tr>
					<td>{$lang.nul} :</td><td>{$domstats.domnul}</td>
				</tr>
				<tr>
					<td>{$lang.defeat} :</td><td>{$domstats.domlost}</td>
				</tr>
				</table>
			</td></tr>			
			<tr><td>
				<table width="100%" cellspacing="0" cellpadding="2" border="0">
				<tr>
					<td colspan="4" class="title-classement">{$lang.lastmatchs}</td>
					<td class="title-classement" align="right">{foreach item=serie from=$domseries}<div class="abr_match">{$serie}</div>{/foreach}</td>
				</tr>
				<tr id="barre-classement"><td align="center">{$lang.matchday}</td><td align="center">{$lang.dom}</td><td colspan="2" align="center">{$lang.score}</td><td align="center">{$lang.ext}</td></tr>				
				{foreach item=dommatch from=$dommatchs}
				<tr><td align="center">{$dommatch.day}</td><td>{$matchs.domclub}</td><td align="center">{$dommatch.buts_dom}</td><td align="center">{$dommatch.buts_ext}</td><td>{$dommatch.shortname}</td></tr>
				{/foreach}
				</table>
			</td></tr>
		</table>	
	</td>
	<td class="td-classement">&nbsp;</td>
	<td class="td-classement" align="left" width="45%">
		<table width="100%">
			<tr><td>
				<table width="100%" border="0" cellspacing="0" cellpadding="2">
				<tr><td valign="top" align="center"><h1>{$matchs.extclub}</h1></td><td rowspan="2"><span class="img-shadow">
				<img alt="{$matchs.extclub}" src="{$matchs.extimg}" border="0" hspace="5" vspace="5" width="100">
				</span></td></tr>
				<tr><td valign="top" align="center"><h2>{$extstats.rang} / {$extstats.pts} {$lang.points_abr} / {if $extstats.diff>0}+{/if}{$extstats.diff}</h2></td></tr>
				</table>
			</td></tr>
			<tr><td>
				<table width="100%" cellspacing="0" cellpadding="2" border="0">
				<tr>
					<td colspan="2" class="title-classement">{$lang.average} {$lang.ext}</td>
				</tr>
				<tr>
					<td>{$lang.average} {$lang.scoredby} :</td><td>{math equation="x/y" x=$extstats.extsb y=$extstats.extplayed format="%.2f"}</td>
				</tr>
				<tr>
					<td>{$lang.average} {$lang.scoredagainst} :</td><td>{math equation="x/y" x=$extstats.extsa y=$extstats.extplayed format="%.2f"}</td>
				</tr>
				</table>
			</td></tr>
			<tr><td>
				<table width="100%" cellspacing="0" cellpadding="2" border="0">
				<tr>
					<td colspan="2" class="title-classement">{$lang.best} {$lang.striker} {$lang.ext}</td>
				</tr>
				{if $extgoleador.lastname}
				<tr>
					<td width="80" height="80"><span class="img-shadow">
					<img alt="{$extgoleador.lastname} {$extgoleador.firstname}" src="{$extgoleador.imgurl}" border="0" hspace="5" vspace="5" width="75">
					</span></td>
					<td><h2>{$extgoleador.lastname} {$extgoleador.firstname}<br>{$extgoleador.goals} {$lang.goals}</h2></td>
				</tr>
				{/if}
				</table>
			</td></tr>
			<tr><td>
				<table width="100%" cellspacing="0" cellpadding="2" border="0">
				<tr>
					<td colspan="2" class="title-classement">{$lang.stats} {$lang.ext}</td>
				</tr>
				<tr>
					<td>{$lang.victory} :</td><td>{$extstats.extwin}</td>
				</tr>
				<tr>
					<td>{$lang.nul} :</td><td>{$extstats.extnul}</td>
				</tr>
				<tr>
					<td>{$lang.defeat} :</td><td>{$extstats.extlost}</td>
				</tr>
				</table>
			</td></tr>
			<tr><td>
				<table width="100%" cellspacing="0" cellpadding="2" border="0">
				<tr>
					<td colspan="4" class="title-classement">{$lang.lastmatchs}</td>
					<td class="title-classement" align="right">{foreach item=serie from=$extseries}<div class="abr_match">{$serie}</div>{/foreach}</td>
				</tr>
				<tr id="barre-classement"><td align="center">{$lang.matchday}</td><td align="center">{$lang.dom}</td><td colspan="2" align="center">{$lang.score}</td><td align="center">{$lang.ext}</td></tr>				
				{foreach item=extmatch from=$extmatchs}
				<tr><td align="center">{$extmatch.day}</td><td>{$extmatch.shortname}</td><td align="center">{$extmatch.buts_dom}</td><td align="center">{$extmatch.buts_ext}</td><td>{$matchs.extclub}</td></tr>
				{/foreach}
				</table>
			</td></tr>
		</table>
	</td>
  </tr>
  <tr>
  <td align="center"><div style="background-color:rgb(255,0,0); color:#ffffff;">{$matchs.domclub}</div></td>
  <td>&nbsp;</td>
  <td align="center"><div style="background-color:rgb(0,106,54); color:#ffffff;">{$matchs.extclub}</div></td>
  </tr>
  <tr>
  <td colspan="3" align="center">
  <span class="img-shadow">
  <img src="{$mygraph}" border="0" hspace="5" vspace="5" width="740">
  </span>
  </td>
  </tr>  
</table>
<br />

</div>
<!-- /showheader -->


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