{*
  Template for the club detailview
  $Id: show_stadiums.tpl,v 1.00 2006/10/25 20:14:18
*}
{assign var=IMGWIDTH value="150"}
{assign var=IMGHEIGHT value="100"}
<script language="JavaScript" type="text/javascript" src="javascript/look.js"></script>

<div id="pagecontent">
<!-- content begin -->
<table width="90%" border="0" cellspacing="0" cellpadding="2">
	<tr>
		<td align="left">
		<a href="show_clubs.php?id={$matchs.id_candidate_dom}">{html_image alt="$matchs.domclub" file=$matchs.domimg align="left" max_width="150" max_height="150" border="0"}</a>
		</td>
		<td>&nbsp;</td>
		<td align="right">
		<a href="show_clubs.php?id={$matchs.id_candidate_dom}">{html_image alt="$matchs.domclub" file=$matchs.extimg align="right" max_width="150" max_height="150" border="0"}</a>
		</td>
	</tr>
	<tr>
		<td align="center"><h2>{$matchs.domclub}</h2></td>
		<td align="center"><h2> {$matchs.buts_dom} - {$matchs.buts_ext} </h2></td>
		<td align="center"><h2>{$matchs.extclub}</h2></td>
	</tr>	
</table>
<table width="90%" border="0" cellspacing="0" cellpadding="2">
	<tr>
		<td>
		<table width="100%" border="0" cellspacing="0" cellpadding="5">
			<tr>
				<td class="title-classement" colspan="2"><b>{$lang.matchday} {$matchs.day} :</b> <a href="show_matchs.php?competition={$competition.id}&season={$season}&day={$matchs.day}">{$dateday} - {$matchs.date_day|date_format:"%HH%M"}</a></td>
			</tr>
			<tr>
				<td class="title-classement"><b>{$lang.referee} :</b> <a title="{$matchs.refereelast} {$matchs.refereefirst}" href="show_persons.php?id={$matchs.refereeid}">{$matchs.refereelast} {$matchs.refereefirst}</a></td>
				<td class="title-classement"><b>{$lang.stadium} :</b> <a title="{$matchs.stadium}" href="show_stadiums.php?id={$matchs.idstadium}">{$matchs.stadium}</a></td>
			</tr>
			<tr>
				<td class="title-classement"><b>{$lang.spectators} :</b> {$matchs.spectators}</td>
				<td class="title-classement"><b>{$lang.temperature} :</b> {$matchs.temperature}°</td>
			</tr>
		</table>
		</td>
	</tr>
</table>
<table width="90%" border="0" cellspacing="0" cellpadding="2">
	<tr>
		<td width="45%">
		<table width="100%" cellspacing="0" cellpadding="2" border="0">
			<tr>
				<td colspan="2" class="title-classement">{$lang.striker} {$lang.dom}</td>
			</tr>
			{foreach item=goal from=$goleadors}
			{cycle values="lineeven,lineodd" assign=CLASS print=false}
			{if $goal.id_club == $matchs.id_candidate_dom}
			<tr>
				<td class="{$CLASS}"><a title="{$goal.last} {$goal.first}" href="show_persons.php?id={$goal.id_person}">{$goal.last} {$goal.first}</a></td>
				<td class="{$CLASS}" align="right">{$goal.goal_min}'</td>
			</tr>
			{else}
			<tr>
				<td class="{$CLASS}" colspan="2">&nbsp;</td>
			</tr>	
			{/if}
			{/foreach}				
			<tr>
				<td colspan="2">
				<table width="100%" cellspacing="0" cellpadding="2" border="0">
				<tr>
					<td colspan="2" class="title-classement">{$lang.advertissements}</td>
				</tr>
				{foreach item=card from=$cards}
				{if $card.id_club == $matchs.id_candidate_dom}
				{cycle values="lineeven,lineodd" assign=CLASS print=false}
				<tr>
					<td class="{$CLASS}"><img src="images/{if $card.card_red}card_red.gif{else}card_yellow.gif{/if}" border="0" width="10" height="10">
					<a title="{$card.last} {$card.first}" href="show_persons.php?id={$card.id_person}">{$card.last} {$card.first}</a>
					</td>
					<td class="{$CLASS}" align="right">{$card.card_min}'</td>
				</tr>
				{else}
				<tr>
					<td class="{$CLASS}" colspan="2">&nbsp;</td>
				</tr>	
				{/if}
				{/foreach}				
				</table>
				</td>
			</tr>
			<tr>
				<td colspan="2">
				<table width="100%" cellspacing="0" cellpadding="2" border="0">
					<tr>
						<td colspan="2" class="title-classement">{$lang.titular}</td>
					</tr>
					{foreach item=player from=$rooster}
					{if $player.id_club == $matchs.id_candidate_dom && $player.type == 2}
					<tr>
						<td style="text-transform:capitalize;" align="center"><b>{$postype[$player.position][0]}</b></td> 
						<td><a title="{$player.last} {$player.first}" href="show_persons.php?id={$player.id_person}">{$player.last} {$player.first}</a>
						{if $player.captain} <b>({$lang.captain_abr})</b>{/if}
						{if $player.subsmin_in} <img src="images/in.jpg" width="9" height="9" hspace="3" border="0"><b>{$player.subsmin_in}'</b>{/if}
						{if $player.subsmin_out} <img src="images/out.jpg" width="9" height="9" hspace="3" border="0"><b>{$player.subsmin_out}'</b>{/if}
						</td>
					</tr>
					{/if}
					{/foreach}
				</table>
				<table width="100%" cellspacing="0" cellpadding="2" border="0">
					<tr>
						<td colspan="2" class="title-classement">{$lang.substitutes}</td>
					</tr>
					{foreach item=player from=$rooster}
					{if $player.id_club == $matchs.id_candidate_dom && $player.type == 3}
					<tr>
						<td style="text-transform:capitalize;" align="center"><b>{$postype[$player.position][0]}</b></td>
						<td><a title="{$player.last} {$player.first}" href="show_persons.php?id={$player.id_person}">{$player.last} {$player.first}</a>
						{if $player.subsmin_in} <img src="images/in.jpg" width="9" height="9" hspace="3" border="0"><b>{$player.subsmin_in}'</b>{/if}
						{if $player.subsmin_out} <img src="images/out.jpg" width="9" height="9" hspace="3" border="0"><b>{$player.subsmin_out}'</b>{/if}
						</td>
					</tr>
					{/if}
					{/foreach}
				</table>
				</td>
			</tr>
		</table>	
		</td>
		<td>&nbsp;</td>
		<td align="left" width="45%">
			<table width="100%" border="0" cellspacing="0" cellpadding="2">
				<tr><td>
					<table width="100%" cellspacing="0" cellpadding="2" border="0">
					<tr>
						<td colspan="2" class="title-classement">{$lang.striker} {$lang.ext}</td>
					</tr>
					{foreach item=goal from=$goleadors}
					{cycle values="lineeven,lineodd" assign=CLASS print=false}
					{if $goal.id_club == $matchs.id_candidate_ext}
					<tr>
						<td class="{$CLASS}"><a title="{$goal.last} {$goal.first}" href="show_persons.php?id={$goal.id_person}">{$goal.last} {$goal.first}</a></td>
						<td class="{$CLASS}" align="right">{$goal.goal_min}'</td>
					</tr>
					{else}
					<tr>
						<td class="{$CLASS}" colspan="2">&nbsp;</td>
					</tr>	
					{/if}
					{/foreach}
					</table>
				</td></tr>
				
				<tr><td>
					<table width="100%" cellspacing="0" cellpadding="2" border="0">
					<tr>
						<td colspan="2" class="title-classement">{$lang.advertissements}</td>
					</tr>
					{foreach item=card from=$cards}
					{cycle values="lineeven,lineodd" assign=CLASS print=false}
					{if $card.id_club == $matchs.id_candidate_ext}
					<tr>
						<td class="{$CLASS}"><img src="images/{if $card.card_red}card_red.gif{else}card_yellow.gif{/if}" border="0" width="10" height="10">
						<a title="{$card.last} {$card.first}" href="show_persons.php?id={$card.id_person}">{$card.last} {$card.first}</a></td>
						<td class="{$CLASS}" align="right">{$card.card_min}'</td>
					</tr>
					{else}
					<tr>
						<td class="{$CLASS}" colspan="2">&nbsp;</td>
					</tr>	
					{/if}
					{/foreach}
					</table>
				</td></tr>
				<tr><td>
					<table width="100%" cellspacing="0" cellpadding="2" border="0">
					<tr>
						<td colspan="2" class="title-classement">{$lang.titular}</td>
					</tr>
					{foreach item=player from=$rooster}
					{if $player.id_club == $matchs.id_candidate_ext && $player.type == 2}
					<tr>
						<td style="text-transform:capitalize;" align="center"><b>{$postype[$player.position][0]}</b></td>
						<td>
						<a title="{$player.last} {$player.first}" href="show_persons.php?id={$player.id_person}">{$player.last} {$player.first}</a>
						{if $player.captain} <b>({$lang.captain_abr})</b>{/if}
						{if $player.subsmin_in} <img src="images/in.jpg" width="9" height="9" hspace="3" border="0"><b>{$player.subsmin_in}'</b>{/if}
						{if $player.subsmin_out} <img src="images/out.jpg" width="9" height="9" hspace="3" border="0"><b>{$player.subsmin_out}'</b>{/if}
						</td>
					</tr>
					{/if}
					{/foreach}
					</table>
					<table width="100%" cellspacing="0" cellpadding="2" border="0">
					<tr>
						<td colspan="2" class="title-classement">{$lang.substitutes}</td>
					</tr>
					{foreach item=player from=$rooster}
					{if $player.id_club == $matchs.id_candidate_ext && $player.type == 3}
					<tr>
						<td style="text-transform:capitalize;" align="center"><b>{$postype[$player.position][0]}</b></td>
						<td>
						<a title="{$player.last} {$player.first}" href="show_persons.php?id={$player.id_person}">{$player.last} {$player.first}</a>
						{if $player.subsmin_in} <img src="images/in.jpg" width="9" height="9" hspace="3" border="0"><b>{$player.subsmin_in}'</b>{/if}
						{if $player.subsmin_out} <img src="images/out.jpg" width="9" height="9" hspace="3" border="0"><b>{$player.subsmin_out}'</b>{/if}
						</td>
					</tr>
					{/if}
					{/foreach}
					</table>
				</td></tr>
			</table>
		</td>
	  </tr>
{if $matchs.plot}
  <tr>
	<td colspan="3"><a class="opt-group" href="javascript:" onclick="blocking('bloc1','yes', 'block'); return false;">»{$lang.comment}</a></td>
  </tr>
  <tr>
	<td colspan="3"><div id="bloc1" class="show_plot" style="display: block;">{$matchs.plot}</div></td>
  </tr>
{/if}
</table>
<br />

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


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