{*
  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>
{assign var=IMGWIDTH value="150"}
{assign var=IMGHEIGHT value="150"}
<div id="pagecontent">
<!-- content begin -->
<table width="90%" border="0" cellspacing="0" cellpadding="5">
  <tr>
  	<td class="title-classement" colspan="6">{$dateday}</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 width="{$IMGWIDTH}" height="{$IMGHEIGHT}" align="center">
						<img alt="{$matchs.domclub}" src="{$matchs.domimg}" border="0" hspace="5" vspace="5" width="{$IMGWIDTH}">
					</td>
					
				</tr>
				<tr>
					<td valign="top" align="center"><h1>{$matchs.domclub}</h1></td>
				</tr>
				<tr>
					<td valign="top" align="center">{$domstats.rang} / {$domstats.pts} {$lang.points_abr} / {if $domstats.diff>0}+{/if}{$domstats.diff}</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 class="lineeven">
					<td>{$lang.average} {$lang.scoredby} :</td><td>{math equation="x/y" x=$domstats.domsb y=$domstats.domplayed format="%.2f"}</td>
				</tr>
				<tr class="lineodd">
					<td>{$lang.average} {$lang.scoredagainst} :</td><td>{math equation="x/y" x=$domstats.domsa y=$domstats.domplayed format="%.2f"}</td>
				</tr>
				</table>
			</td></tr>
			{if $domgoleador.lastname}
			<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>
				
				<tr class="lineeven">
					<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>{$domgoleador.lastname} {$domgoleador.firstname}<br>{$domgoleador.goals} {$lang.goals}</td>
				</tr>
				
				</table>
			</td></tr>
			{/if}
			<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 class="lineodd">
						<td>{$lang.victory} :</td><td>{$domstats.domwin}</td>
					</tr>
					<tr class="lineeven">
						<td>{$lang.nul} :</td><td>{$domstats.domnul}</td>
					</tr>
					<tr class="lineodd">
						<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}
				{cycle values="lineeven,lineodd" assign=CLASS print=false}
    			<tr class="{$CLASS}"><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 width="{$IMGWIDTH}" height="{$IMGHEIGHT}" align="center">
						<img alt="{$matchs.extclub}" src="{$matchs.extimg}" border="0" hspace="5" vspace="5" width="{$IMGWIDTH}">
					</td>
				</tr>
				<tr>
					<td valign="top" align="center"><h1>{$matchs.extclub}</h1></td>
				</tr>
				<tr>
					<td valign="top" align="center">{$extstats.rang} / {$extstats.pts} {$lang.points_abr} / {if $extstats.diff>0}+{/if}{$extstats.diff}</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 class="lineeven">
					<td>{$lang.average} {$lang.scoredby} :</td><td>{math equation="x/y" x=$extstats.extsb y=$extstats.extplayed format="%.2f"}</td>
				</tr>
				<tr class="lineodd">
					<td>{$lang.average} {$lang.scoredagainst} :</td><td>{math equation="x/y" x=$extstats.extsa y=$extstats.extplayed format="%.2f"}</td>
				</tr>
				</table>
			</td></tr>
			{if $extgoleador.lastname}
			<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>
				
				<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>{$extgoleador.lastname} {$extgoleador.firstname}<br>{$extgoleador.goals} {$lang.goals}</td>
				</tr>
				
				</table>
			</td></tr>
			{/if}
			<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 class="lineodd">
					<td>{$lang.victory} :</td><td>{$extstats.extwin}</td>
				</tr>
				<tr class="lineeven">
					<td>{$lang.nul} :</td><td>{$extstats.extnul}</td>
				</tr>
				<tr class="lineodd">
					<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}
				{cycle values="lineeven,lineodd" assign=CLASS print=false}
				<tr class="{$CLASS}"><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>
{if $mygraph}
  <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">
  <img src="{$mygraph}" border="0" hspace="5" vspace="5" width="455">
  </td>
  </tr> 
{/if}
 
</table>
<br />

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


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