{*
  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 id="tableshow" width="100%" border="0" cellspacing="0" cellpadding="1">
  <tr id="barre-classement">
  	<td colspan="6"><a href="show_matchs.php?competition={$competition.id}&season={$season}&day={$matchs.day}"><b>{$lang.matchday} {$matchs.day} :</b> {$dateday}</a></td>
  </tr>
  <tr id="barre-classement">
  	<td colspan="6">
		<table width="100%" border="0" cellspacing="1" cellpadding="2">
			<tr id="barre-classement">
			<td><b>{$lang.referee} :</b> <a title="{$matchs.refereelast} {$matchs.refereefirst}" href="show_persons.php?id={$matchs.refereeid}">{$matchs.refereelast} {$matchs.refereefirst}</a></td>
			<td><b>{$lang.stadium} :</b> <a title="{$matchs.stadium}" href="show_stadiums.php?id={$matchs.idstadium}">{$matchs.stadium}</a></td>
			</tr>
			<tr>
			<td><b>{$lang.spectators} :</b> {$matchs.spectators}</td>
			<td><b>{$lang.temperature} :</b> {$matchs.temperature}°</td>
			</tr>
		</table>
	</td>
  </tr>	
  {if $matchs.carac_ads}
  <tr>
	<td colspan="6" class="title-cat"><a href="javascript:" onclick="blocking('bloc0','yes', 'block'); return false;">» {$lang.additionalinfo}</a></td>
  </tr>
  <tr>
	<td colspan="6">
	<div id="bloc0" class="show_plot" style="display:none;">
	<table width="100%" style="top:0px" border="0" cellpadding="2" cellspacing="0">
		{foreach from=$matchs.carac_ads item=option}
		{if $option.genre != 7}
		{cycle values="lineeven,lineodd" assign=CLASS print=false}
		<tr class="{$CLASS}">
		<td class="td-opt" width="40%"><b>» {$option.name}:</b></td>
		{if $option.genre == 3}
		<td class="td-value"><a href="{$option.value}" target="_blank">{$option.name}</a></td>			  
		{elseif $option.genre == 4}
		<td class="td-value"><a href="mailto:{$option.value}" target="_blank">{$option.value}</a></td>			  
		{else}
		<td class="td-value">{$option.value}</td>
		{/if}
		</tr>
		{/if}			
		{/foreach}
	</table>
	</div>
	</td>
  </tr>
  {/if}

{foreach from=$stadium.carac_ads item=option}
	{if $option.genre == 7 && $option.value}
	<tr>
		<td class="title-cat" colspan="2"><b>» {$option.name}:</b></td>
	</tr>
	<tr>
		<td colspan="2">
		<div class="img-shadow">
		<a title="{$stadium.longname}" href="javascript:void(PopupImage('{$option.value}'))">
			<img alt="{$stadium.longname}" src="{$option.value}" border="0" hspace="5" vspace="5" width="{$IMG2WIDTH}">
		</a>
		</div>
		</td>    	
	  </tr> 
	{/if}			
{/foreach}


  <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 align="right" width="45%">
		<table width="100%" border="0" cellspacing="0" cellpadding="2">
			<tr><td>
				<table width="100%" height="{$IMGHEIGHT}" border="0" cellspacing="0" cellpadding="2">
					<tr>
						<td width="{$IMGWIDTH}" valign="top" align="center">
						<a title="{$matchs.domclub}" href="show_clubs.php?id={$matchs.id_candidate_dom}">
						<div class="img-shadow">
						<img alt="{$matchs.domclub}" src="{$matchs.domimg}" border="0" hspace="5" vspace="5" width="{$IMGWIDTH}">
						</div>
						</a>
						</td>
						<td valign="middle" align="center" colspan="2"><h1>{$matchs.buts_dom}</h1></td>
					</tr>
					<tr>
						<td valign="top" align="center"><a href="show_clubs.php?id={$matchs.id_candidate_dom}"><h1>{$matchs.domclub}</h1></a></td>
					</tr>
				</table>
			</td></tr>
			
			{if $goleadors}			
			<tr><td>
				<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=CLASS1 print=false}
					{if $goal.id_club == $matchs.id_candidate_dom}
						<tr>
							<td class="{$CLASS1}"><a title="{$goal.last} {$goal.first}" href="show_persons.php?id={$goal.id_person}">{$goal.last} {$goal.first}</a></td>
							<td class="{$CLASS1}" align="right">{$goal.goal_min}'</td>
						</tr>
					{else}
						<tr>
							<td class="{$CLASS1}" colspan="2">&nbsp;</td>
						</tr>	
					{/if}
				{/foreach}				
				</table>
			</td></tr>
			{/if}
			{if $cards}		
			<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=CLASS2 print=false}
				
					{if $card.id_club == $matchs.id_candidate_dom}
						<tr>
							<td class="{$CLASS2}"><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="{$CLASS2}" align="right">{$card.card_min}'</td>
						</tr>
					{else}
						<tr>
							<td class="{$CLASS2}" colspan="2">&nbsp;</td>
						</tr>	
					{/if}
				{/foreach}				
				</table>
			</td></tr>
			{/if}
			{if $rooster}
			<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_dom && $player.type == 2}
					{cycle values="lineeven,lineodd" assign=CLASS2 print=false}
						<tr>
							<td class="{$CLASS2}"><b>{$postype[$player.position][0]}</b> - 
							<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}
					{cycle values="lineeven,lineodd" assign=CLASS2 print=false}
						<tr>
							<td class="{$CLASS2}"><b>{$postype[$player.position][0]}</b> -
							<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>
			{/if}
		</table>	
	</td>
	<td>&nbsp;</td>
	<td align="left" width="45%">
		<table width="100%" border="0" cellspacing="0" cellpadding="2">
			<tr>
				<td>
				<table width="100%" height="{$IMGHEIGHT}" border="0" cellspacing="0" cellpadding="2">
					<tr>
						<td align="center" valign="top"><h1>{$matchs.buts_ext}</h1></td>
						<td align="center" width="{$IMGWIDTH}">
						<a title="{$matchs.extclub}" href="show_clubs.php?id={$matchs.id_candidate_ext}">
						<div class="img-shadow">
						<img alt="{$matchs.extclub}" src="{$matchs.extimg}" border="0" hspace="5" vspace="5" width="{$IMGWIDTH}">
						</div>
						</a>
						</td>
						
					</tr>
					<tr>
						<td colspan="2" valign="top" align="center"><a title="{$matchs.extclub}" href="show_clubs.php?id={$matchs.id_candidate_ext}"><h1>{$matchs.extclub}</h1></a></td>
					</tr>
				</table>
				</td>
			</tr>
			{if $goleadors}
			<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=CLASS3 print=false}
				
					{if $goal.id_club == $matchs.id_candidate_ext}
						<tr>
							<td class="{$CLASS3}"><a title="{$goal.last} {$goal.first}" href="show_persons.php?id={$goal.id_person}">{$goal.last} {$goal.first}</a></td>
							<td class="{$CLASS3}" align="right">{$goal.goal_min}'</td>
						</tr>
					{else}
						<tr>
							<td class="{$CLASS3}" colspan="2">&nbsp;</td>
						</tr>	
					{/if}
				{/foreach}
				</table>
			</td></tr>
			{/if}
			{if $cards}			
			<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=CLASS4 print=false}
					{if $card.id_club == $matchs.id_candidate_ext}
						<tr>
							<td class="{$CLASS4}"><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="{$CLASS4}" align="right">{$card.card_min}'</td>
						</tr>
					{else}
						<tr>
							<td class="{$CLASS4}" colspan="2">&nbsp;</td>
						</tr>	
					{/if}
				{/foreach}
				</table>
			</td></tr>
			{/if}
			{if $rooster}
			<tr><td>
				{if $rooster}
				<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}
					{cycle values="lineeven,lineodd" assign=CLASS2 print=false}
						<tr>
							<td class="{$CLASS2}"><b>{$postype[$player.position][0]}</b> -
							<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>
				{/if}
				{if $rooster}
				<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}
					{cycle values="lineeven,lineodd" assign=CLASS2 print=false}
						<tr>
							<td class="{$CLASS2}"><b>{$postype[$player.position][0]}</b> -
							<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>
				{/if}
			</td></tr>
			{/if}
		</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 -->
