{*
  Template for the club detailview
  $Id: show_stadiums.tpl,v 1.00 2006/10/25 20:14:18
*}

<!-- {$smarty.template} -->
{assign var="namenextyear" value="`$nameseason.season+1`"}
<div id="title"><a href="show_competitions.php?id={$competition}&season={$season}">{$namecompet.longname} - {$lang.season} {if $competdata.oneyear}{$nameseason.season}{else}{$nameseason.season} / {$namenextyear}</a>{/if}</div>

<table id="actions" border="0" cellpadding="0" cellspacing="0" width="100%">
	<tr>
		<td id="barre-onglet">
		<form action="show_competitions.php" name="editform">
				<input type="hidden" name="id" value="{$competition}"/>
				<input type="hidden" name="action" value="card"/>
				<input type="submit" class="{if $action=='card'}onglet-on{else}onglet{/if}" value="{$lang.card}" />
		</form>
		{if $season}
		<form action="show_matchs.php" name="calendarform">
					<input type="hidden" name="competition" value="{$competition}"/>
					<input type="hidden" name="season" value="{$season}"/>
					<input type="submit" class="onglet" value="{$lang.calendar}" {if !$competition}disabled="disabled"{/if} />
		</form>
			{if $statsactive}
			<form action="stats_competitions.php" name="statsform">
					<input type="hidden" name="id" value="{$competition}"/>
					<input type="hidden" name="season" value="{$season}"/>
					<input class="onglet" type="submit" value="{$lang.statistics}" {if !$competition} disabled="disabled"{/if} />
			</form>
			{/if}
		<form action="show_tables.php" name="tableform">
					<input type="hidden" name="competition" value="{$competition}"/>
					<input type="hidden" name="season" value="{$season}"/>
					<input type="submit" class="onglet" value="{$lang.classement}" {if !$competition}disabled="disabled"{/if} />
		</form>
		{/if}
		{if $seegallery}
			<form action="gallery.php" name="galleryform">
				<input type="hidden" name="subcat" value="{$competition}"/>
				<input type="hidden" name="cat" value="2" />
				<input type="submit" value="{$lang.gallery}" class="onglet"/>
			</form>
		{/if}
		{if $commentable}
				<form action="comments.php" name="mkcommentform">
					<input type="hidden" name="subcat" value="{$competition}"/>
					<input type="hidden" name="cat" value="2" />
					<input type="submit" value="{$lang.comments}" class="onglet"/>
				</form>
		{/if}
		{if $prev_id || $next_id}
				<form action="show_competitions.php" name="prevform">
					<input type="hidden" name="id" value="{$prev_id}"/>
					<input type="submit" class="onglet" value="<" {if !$prev_id}disabled="disabled"{/if} accesskey="," />
				</form>
				<form action="show_competitions.php" name="nextform">
					<input type="hidden" name="id" value="{$next_id}"/>
					<input type="submit" class="onglet" value=">" {if !next_id}disabled="disabled"{/if} accesskey="." />
				</form>			
		{/if}
				<b>{$lang.season} : </b>
		  <select id="season" name="season" onchange="if(this.options[this.selectedIndex].value) window.location.href='edit_goals.php?competition={$competition}&season='+this.options[this.selectedIndex].value;">
		  {foreach item=myseason from=$seasonselect}
		  {assign var="nextyear" value="`$myseason.season+1`"}
				{if $competdata.oneyear}
				<option value='{$myseason.id_season}'{if $season==$myseason.id_season}selected{/if}>{$myseason.season}</option>
				{else}
				<option value='{$myseason.id_season}'{if $season==$myseason.id_season}selected{/if}>{$myseason.season} / {$nextyear}</option>
				{/if}
		  {/foreach}
		  </select>	
    </td>
	</tr>
	
{if $editable || $administrable}
	<tr>
		<td id="barre-season">
		{if $administrable}
			<form action="edit_competitions.php" name="editform">
				<input type="submit" value="{$lang.newdata}" class="onglet"/>
			</form>
			<form action="edit_competitions.php" name="editform">
					<input type="hidden" name="id" value="{$competition}"/>
					<input type="submit" value="{$lang.edit}" class="onglet"/>
			</form>
			<form action="delete.php" name="deleteform">
				<input type="hidden" name="id" value="{$competition}"/>
				<input type="hidden" name="cat" value="3"/>
				<input type="submit" value="{$lang.del}" onclick="return(confirm('{$actiontitle|escape:javascript}: {$lang.msg_really_del}?'))" class="onglet"/>
			</form>
		{/if}
		{if $editable || $administrable}
			<form action="edit_candidates.php" name="candidateform">
					<input type="hidden" name="competition" value="{$competition}"/>
					<input type="hidden" name="season" value="{$season}"/>				
					<input type="submit" value="{$lang.editseason}" class="onglet"/>
			</form>
			<form action="edit_penalitys.php" name="penalityform">
					<input type="hidden" name="competition" value="{$competition}"/>
					<input type="hidden" name="season" value="{$season}"/>				
					<input type="submit" value="{$lang.editpenality}" class="onglet"/>
			</form>
			<form action="edit_days.php" name="dayform">
					<input type="hidden" name="competition" value="{$competition}"/>
					<input type="hidden" name="season" value="{$season}"/>				
					<input type="submit" value="{$lang.editday}" class="onglet"/>
			</form>
			<form action="edit_matchs.php" name="matchsform">
					<input type="hidden" name="competition" value="{$competition}"/>
					<input type="hidden" name="season" value="{$season}"/>				
					<input type="submit" value="{$lang.editmatchs}" class="onglet"/>
			</form>
			<form action="edit_goals.php" name="matchsform">
					<input type="hidden" name="competition" value="{$competition}"/>
					<input type="hidden" name="season" value="{$season}"/>				
					<input type="submit" value="{$lang.editgoals}" class="onglet"/>
			</form>
		{/if}
	</td>
	</tr>
{/if}
</table>


<script language="JavaScript" type="text/javascript" src="javascript/look.js"></script>

<form action="edit_goals.php" id="day" name="day" method="post">
<input type="hidden" name="competition" id="compet" value="{$competition}" />
<input type="hidden" name="season" id="season" value="{$season}" />
<div id="pagecontent">
  <table width="100%" border="0" cellspacing="0" cellpadding="5">
  	<tr>
  	<td class="title-classement" colspan="4">{$dateday}</td>
  	<td class="title-classement" align="center" width="100"><select name="day" onchange="submit();">
		{counter start=0 print=false name=daycount}
		{section name="loopday" start=0 loop=$numdays}
		{counter assign=count name=daycount}		
		{if $namecompet.type == 1}
				{if $count == $numdays}		
					<option value="{$count}"{if $count == $day} selected{/if}>{$lang.final_game}</option>
				{else}
					<option value="{$count}"{if $count == $day} selected{/if}>1/{math equation="pow(2, ($numdays-$count+1))/2"} {$lang.final_game}</option>
				{/if}
		{else}
			<option value="{$count}"{if $count == $day} selected{/if}>{$lang.matchday} {$count}</option>
		{/if}
		{/section}		
		</select>
	</td>
  </tr>
  </table>
</form>

<!-- content begin -->

{if $match}
<form action="edit_goals.php" id="edi" name="edi" method="post">
			<input type="hidden" name="competition" id="compet" value="{$competition}" />
			<input type="hidden" name="season" id="season" value="{$season}" />
			<input type="hidden" name="day" id="day" value="{$day}" />
			<input type="hidden" name="match" id="match" value="{$match}" />
			<input type="hidden" name="advlines" id="match" value="{$advlines}" />
			<input type="hidden" name="save" id="save" value="1" />
			
	<table width="100%" cellpadding="0" cellspacing="0" border="0" style="border:1px solid #000000;">
			<tr>
			<td colspan="4" class="td-value" align="center"><h1>{$matchs[0].domclub} - {$matchs[0].buts_dom}
			: {$matchs[0].buts_ext} - {$matchs[0].extclub}</h1></td>
			</tr>
			<tr>
				<td class="td-opt">{$lang.matchdate}</td><td class="td-opt">{$lang.matchhour}</td><td class="td-opt">{$lang.spectators}</td><td class="td-opt">{$lang.temperature}</td>
			</tr>	
			<tr>
				<td class="td-value" align="center"><input type="text" name="datematch" value="{$matchs[0].matchdate}" size="8" maxlength="8"><a href="javascript:void(lookupCalendar(document.edi.datematch.value,'datematch'))">Calendar</a></td>
				<td class="td-value" align="center"><input type="text" name="hourmatch" value="{$matchs[0].matchhour}" size="5" maxlength="5"></td>
				<td class="td-value" align="center"><input type="text" name="spect" value="{$matchs[0].spectators}" size="7" maxlength="7"></td>
				<td class="td-value" align="center"><input type="text" name="temp" value="{$matchs[0].temperature}" size="2" maxlength="2"></td>
            </tr>
			<tr>
				<td colspan="2" class="td-value">
					<select name="ref" class="playerselect">
					<option value="0">---{$lang.referee}---</option>
					{foreach item=referee from=$refereeselect}
					<option value="{$referee.id}" {if $referee.id == $matchs[0].id_referee}Selected{/if}>{$referee.lastname} - {$referee.firstname}</option>
					{/foreach}
					</select>
				</td>
				<td class="td-value">
					<select name="stadium">
					<option value="0">---{$lang.stadium}---</option>
					{foreach item=stadium from=$stadiumselect}
					<option value="{$stadium.id}" {if $stadium.id == $matchs[0].id_stadium}Selected{/if}>{$stadium.longname}</option>
					{/foreach}
					</select>
				</td>
				<td class="td-value">
				<select name="weather">
				<option value="0">---{$lang.weather}---</option>
				{foreach item=weather from=$weatherselect}
				<option value="{$weather.id}" {if $weather.id == $matchs[0].id_weather}Selected{/if}>{$weather.val}</option>
				{/foreach}
				</select>
				</td>					
    		</tr>
			{foreach from=$matchs[0].carac_ads item=option}
			<tr>
			  <td class="td-opt" colspan="2"><b>{$option.name}:</b></td>
			  <td class="td-value" colspan="2">
				{if $option.genre == 1}
					<input type="text" size="20" name="{$option.lib_key}" id="{$option.key_lib}" value="{$option.value}" class="center" />
				{/if}
				{if $option.genre == 2}
					<input type="text" size="8" name="{$option.lib_key}" id="{$option.key_lib}" value="{$option.value}" class="center" />
				{/if}
				{if $option.genre == 3}
					<input type="text" size="8" name="{$option.lib_key}" id="{$option.key_lib}" value="{$option.value}" class="center" />
				{/if}
				{if $option.genre == 4}
					<input type="text" size="15" name="{$option.lib_key}" id="{$option.key_lib}" value="{$option.value}" class="center" />
				{/if}
				{if $option.genre == 5}
					<textarea cols="40" rows="4" name="{$option.lib_key}" id="{$option.key_lib}" wrap="virtual">{$option.value}</textarea>
				{/if}
				{if $option.genre == 6}
					{html_checkbox name=$option.key_lib id=$option.lib_key value=1 checked=$option.set}
				{/if}
				{if $option.genre == 7}	
					<input type="file" name="{$option.lib_key}" id="{$option.lib_key}" size="35" />
				{/if}
			  </td>
			</tr>
			{/foreach}
			<tr>
				<td colspan="4" class="td-opt">{$lang.comments}</td>
			</tr>
			<tr>
				<td colspan="4" class="td-value" align="center"><textarea style="width:98%;" name="plot" cols="70" rows="4">{$matchs[0].plot}</textarea></td>
			</tr>
		</table>			
<br>
<table width="100%" class="{$CLASS}" border="0" cellspacing="0" cellpadding="2">
		<tr>
			<td colspan="4"><b>{$lang.kickers}</b></td>
		</tr>
		<tr>
			<td width="45%">
				<table width="100%" cellspacing="0" cellpadding="2" border="0" style="border:1px solid #000000;">
					<tr>
						<td width="70%" class="td-opt">{$lang.player}</td>
						<td width="10%" class="td-opt">{$lang.minutes}</td>
						<td width="10%" class="td-opt">{$lang.owngoal}</td>
						<td width="10%" class="td-opt">{$lang.penalty}</td>
					</tr>
					{counter start=0 print=false name=countdom}
					{section name="countdom" start=1 loop=$matchs[0].buts_dom+1}
					{counter assign=count name=countdom}
					{assign var="foo" value="`$count-1`"}
					<tr>
						<td class="td-value">
								<select id="dom{$count}" name="dom{$count}" class="playerselect">
								<option value="0"{if !$matchs[0].goalsdom[$foo].id_person} selected{/if}>--------{$lang.dom}---------</option>
								
								{foreach item=teamdom from=$matchs[0].teamdom}
								<option value="{$teamdom.id}"{if $matchs[0].goalsdom[$foo].id_person == $teamdom.id} selected{/if}>{$teamdom.clubname} - {$teamdom.lastname} {$teamdom.firstname}</option>
								{/foreach}
								<option value="0">--------{$lang.ext}---------</option>
							
								{foreach item=teamext from=$matchs[0].teamext}
								<option value="{$teamext.id}"{if $matchs[0].goalsdom[$foo].id_person == $teamext.id} selected{/if}>{$teamext.clubname} - {$teamext.lastname} {$teamext.firstname}</option>
								{/foreach}
								</select>
							
						</td>
						<td class="td-value" align="center">
						<input type="text" size="3" value="{$matchs[0].goalsdom[$foo].goal_min}" id="mindom{$count}" name="mindom{$count}">
						</td>
						<td class="td-value" align="center">
						<input name="cscdom{$count}" id="cscdom{$count}" type="checkbox" value="1"{if $matchs[0].goalsdom[$foo].goal_csc} checked{/if}>
						</td>
						<td class="td-value" align="center">
						<input name="pendom{$count}" id="pendom{$count}" type="checkbox" value="1"{if $matchs[0].goalsdom[$foo].goal_pen} checked{/if}>
						</td>
					</tr>
					
					{/section}
				</table>
			</td>
			<td colspan="2">&nbsp;</td>
			<td width="45%">
				<table width="100%" cellspacing="0" cellpadding="2" border="0" style="border:1px solid #000000;">
					<tr>
						<td width="70%" class="td-opt">{$lang.player}</td>
						<td width="10%" class="td-opt" align="center">{$lang.minutes}</td>
						<td width="10%" class="td-opt" align="center">{$lang.owngoal}</td>
						<td width="10%" class="td-opt" align="center">{$lang.penalty}</td>
					</tr>
					{counter start=0 print=false name=countext}
					{section name="countext" start=1 loop=$matchs[0].buts_ext+1}
					{counter assign=count name=countext}
					{assign var="foo" value="`$count-1`"}
					<tr>
						<td class="td-value" align="center">
							<select name="ext{$count}" class="playerselect">
							<option value="0">--------{$lang.ext}---------</option>
							{foreach item=teamext from=$matchs[0].teamext}
							<option value="{$teamext.id}"{if $matchs[0].goalsext[$foo].id_person == $teamext.id} selected{/if}>{$teamext.clubname} - {$teamext.lastname} {$teamext.firstname}</option>
							{/foreach}
							<option value="0">--------{$lang.dom}---------</option>								
							{foreach item=teamdom from=$matchs[0].teamdom}
							<option value="{$teamdom.id}"{if $matchs[0].goalsext[$foo].id_person == $teamdom.id} selected{/if}>{$teamdom.clubname} - {$teamdom.lastname} {$teamdom.firstname}</option>
							{/foreach}
							</select>						
						</td>
						<td class="td-value" align="center">
						<input id="minext{$count}" name="minext{$count}" type="text" size="3" value="{$matchs[0].goalsext[$foo].goal_min}">
						</td>
						<td class="td-value" align="center">
						<input id="cscext{$count}" name="cscext{$count}" type="checkbox" value="1"{if $matchs[0].goalsext[$foo].goal_csc} checked{/if}>
						</td>
						<td class="td-value" align="center">
						<input id="penext{$count}" name="penext{$count}" type="checkbox" value="1"{if $matchs[0].goalsext[$foo].goal_pen} checked{/if}>
						</td>
					</tr>
					
					{/section}
				</table>
			</td>
		</tr>
</table>
<br>
<table width="100%" class="{$CLASS}" border="0" cellspacing="0" cellpadding="2">
		<tr>
			<td colspan="4"><b>{$lang.advertissements}</b></td>
		</tr>
		{section name="countadv" start=1 loop=$advlines+1}
		{counter assign=count name=countadv}
		{assign var="foo" value="`$count-1`"}
		<tr>
			<td>
				<table width"100%" border="0" style="border:1px solid #000000;" cellspacing="0" cellpadding="2">
					<tr>
						<td width="70%" class="td-opt">{$lang.player}</td>
						<td width="10%" class="td-opt" align="center">{$lang.minutes}</td>
						<td width="10%" class="td-opt" align="center">{$lang.yellowcard_abr}</td>
						<td width="10%" class="td-opt" align="center">{$lang.redcard_abr}</td>
					</tr>
					<tr>
					<td class="td-value" align="center">
					<select name="advertdom{$count}" class="playerselect">
							<option value="0">--------{$lang.dom}---------</option>								
							{foreach item=teamdom from=$matchs[0].teamdom}
							<option value="{$teamdom.id}"{if $matchs[0].cardsdom[$foo].id_person == $teamdom.id} selected{/if}>{$teamdom.lastname} {$teamdom.firstname}</option>
							{/foreach}
					</select>
					</td>
					<td class="td-value" align="center">
					<input id="advertdommin{$count}" name="advertdommin{$count}" type="text" size="3" value="{$matchs[0].cardsdom[$foo].card_min}">
					</td>
					<td class="td-value" align="center">
					<input name="advertdomY{$count}" id="advertdomY{$count}" type="checkbox" value="1"{if $matchs[0].cardsdom[$foo].card_yellow} checked{/if}>
					</td>
					<td class="td-value" align="center">
					<input name="advertdomR{$count}" id="advertdomR{$count}" type="checkbox" value="1"{if $matchs[0].cardsdom[$foo].card_red} checked{/if}>
					</td>
					</tr>
				</table>
			</td>
			<td colspan="2">&nbsp;</td>
			<td>
				<table width"100%" border="0" style="border:1px solid #000000;" cellspacing="0" cellpadding="2">
					<tr>
						<td width="70%" class="td-opt">{$lang.player}</td>
						<td width="10%" class="td-opt" align="center">{$lang.minutes}</td>
						<td width="10%" class="td-opt" align="center">{$lang.yellowcard_abr}</td>
						<td width="10%" class="td-opt" align="center">{$lang.redcard_abr}</td>
					</tr>
					<tr>
					<td class="td-value" align="center">
					<select name="advertext{$count}" class="playerselect">
							<option value="0">--------{$lang.ext}---------</option>								
							{foreach item=teamext from=$matchs[0].teamext}
							<option value="{$teamext.id}"{if $matchs[0].cardsext[$foo].id_person == $teamext.id} selected{/if}>{$teamext.lastname} {$teamext.firstname}</option>
							{/foreach}
					</select>
					</td>
					<td class="td-value" align="center">
					<input id="advertextmin{$count}" name="advertextmin{$count}" type="text" size="3" value="{$matchs[0].cardsext[$foo].card_min}">
					</td>
					<td class="td-value" align="center">
					<input name="advertextY{$count}" id="advertextY{$count}" type="checkbox" value="1"{if $matchs[0].cardsext[$foo].card_yellow} checked{/if}>
					</td>
					<td class="td-value" align="center">
					<input name="advertextR{$count}" id="advertextR{$count}" type="checkbox" value="1"{if $matchs[0].cardsext[$foo].card_red} checked{/if}>
					</td>
					</tr>
				</table>
			</td>
		</tr>
		{/section}			
</table>
<br>
<table width="100%" border="0" cellspacing="0" cellpadding="2">
		<tr>
			<td colspan="4"><b>{$lang.substitutions}</b></td>
		</tr>
		{section name="countsubs" start=1 loop=$subslines+1}

		{counter assign=count name=countsubs}
		{assign var="foo" value="`$count-1`"}
		<tr>
			<td class="{$CLASS}" valign="top" width="48%">
				<table style="border:1px solid #000000;" width"100%" border="0" cellspacing="0" cellpadding="2">
					<tr>
						<td width="70%" class="td-opt"><b>{$lang.player}</b></td>
						<td width="10%" class="td-opt" align="center"><b>{$lang.minutes}</b></td>
					</tr>
					<tr>
						<td class="td-value" align="center">
						<select name="subsoutdom{$count}" style="width:100%;">
								<option value="0">--------{$lang.dom} {$lang.titular}---------</option>								
								{foreach item=player from=$rooster}
								{if $matchs[0].id_candidate_dom == $player.id_club}
								<option value="{$player.id_person}"{if $matchs[0].subsdom[$foo].id_person_out == $player.id_person} selected{/if}>{$player.lastname} {$player.firstname}</option>
								{/if}
								{/foreach}
						</select>
						</td>
						<td class="td-value" rowspan="2" align="center">
						<input id="subsdommin{$count}" name="subsdommin{$count}" type="text" size="3" value="{$matchs[0].subsdom[$foo].subs_min}">
						</td>
					</tr>
					<tr>
						<td class="td-value" align="center">
						<select name="subsindom{$count}" style="width:100%;">
								<option value="0">--------{$lang.dom} {$lang.substitute}---------</option>								
								{foreach item=player from=$rooster}
								{if $matchs[0].id_candidate_dom == $player.id_club && $player.type ==3}
								<option value="{$player.id_person}"{if $matchs[0].subsdom[$foo].id_person_in == $player.id_person} selected{/if}>{$player.lastname} {$player.firstname}</option>
								{/if}
								{/foreach}
						</select>
						</td>
					</tr>
				</table>
			</td>
			<td class="{$CLASS}" colspan="2">&nbsp;</td>
			<td class="{$CLASS}" width="48%">
				<table style="border:1px solid #000000;" width"100%" border="0" cellspacing="0" cellpadding="2">
					<tr>
						<td width="70%" class="td-opt"><b>{$lang.player}</b></td>
						<td width="10%" align="center" class="td-opt"><b>{$lang.minutes}</b></td>
					</tr>
					<tr>
						<td class="td-value" align="center">
						<select name="subsoutext{$count}" style="width:100%;">
								<option value="0">--------{$lang.ext} {$lang.titular}---------</option>								
								{foreach item=player from=$rooster}
								{if $matchs[0].id_candidate_ext == $player.id_club}
								<option value="{$player.id_person}"{if $matchs[0].subsext[$foo].id_person_out == $player.id_person} selected{/if}>{$player.lastname} {$player.firstname}</option>
								{/if}
								{/foreach}
						</select>
						</td>
						<td class="td-value" align="center" rowspan="2">
						<input id="subsextmin{$count}" name="subsextmin{$count}" type="text" size="3" value="{$matchs[0].subsext[$foo].subs_min}">
						</td>
					</tr>
					<tr>
						<td class="td-value" align="center">
						<select name="subsinext{$count}" style="width:100%;">
								<option value="0">--------{$lang.ext} {$lang.substitute}---------</option>								
								{foreach item=player from=$rooster}
								{if $matchs[0].id_candidate_ext == $player.id_club && $player.type == 3}
								<option value="{$player.id_person}"{if $matchs[0].subsext[$foo].id_person_in == $player.id_person} selected{/if}>{$player.lastname} {$player.firstname}</option>
								{/if}
								{/foreach}
						</select>
						</td>
					</tr>
				</table>
			</td>
		</tr>
		{/section}			
		<tr>
   			<td colspan="4">
				<span class="onglet">
				<input style="width:100%;" type="submit" class="btn-search" value="{$lang.save}">
				</span>
			</td>
		</tr>			
</table>
</form>


{else}
<table width="100%" border="0" cellspacing="0" cellpadding="2">
	<tr>
		<td colspan="5">
		{counter start=0 print=false name=matchcount}
		{foreach item=match from=$matchs}
		{cycle values="listeven,listodd" assign=CLASS print=false}
		<table style="border:1px solid #000000;" width="100%" class="{$CLASS}" border="0" cellspacing="0" cellpadding="0">
		<tr>
			<form action="edit_goals.php" id="edi" name="edi" method="post">
			<td width="15%">
			<input type="hidden" name="competition" id="compet" value="{$competition}" />
			<input type="hidden" name="season" id="season" value="{$season}" />
			<input type="hidden" name="day" id="day" value="{$day}" />
			<input type="hidden" name="match" id="match" value="{$match.id}" />
			{if $editable || $administrable}
			<input class="onglet" style="width:100%;" type="submit" id="submit" value="{$lang.editgoals}" />
			{/if}
			</td>
			</form>
			<td rowspan="3" width="30%" align="right"><a href="show_clubs.php?id={$match.id_candidate_dom}"><h2>{$match.domclub}</h2></a></td>
			<td rowspan="3" width="10%" align="center"><h2>{$match.buts_dom}</h2></td>
			<td rowspan="3" width="10%" align="center"><h2>{$match.buts_ext}</h2></td>
			<td rowspan="3" width="30%"><a href="show_clubs.php?id={$match.id_candidate_ext}"><h2>{$match.extclub}</h2></a></td>
		</tr>
		<tr>
			<form action="edit_lineup.php" id="edi" name="lineup" method="post">
			<td width="15%">
			<input type="hidden" name="match" id="match" value="{$match.id}" />
			<input class="onglet" style="width:100%;" type="submit" id="submit" value="{$lang.lineup}" />
			</td>
			</form>
		</tr>
		<tr>
			<form action="show_match.php" id="edi" name="show" method="post">
			<td width="15%">
			<input type="hidden" name="id" id="match" value="{$match.id}" />
			<input class="onglet" style="width:100%;" type="submit" id="submit" value="{$lang.card} {$lang.match}" />
			</td>
			</form>
		</tr>	
		{if $match.plot}
		<tr>
			<td colspan="5">{$match.plot}</td>
		</tr>
		{/if}
		{if $match.goalsdom or $match.goalsext}
		<tr>
			<td width="10%">&nbsp;</td>
			<td class="playerselect">{$lang.kickers}</td>
			<td colspan="2">&nbsp;</td>
			<td class="playerselect">{$lang.kickers}</td>
		</tr>
		<tr>
			<td width="10%">&nbsp;</td>
			<td>
			{section name="countext" start=0 loop=$match.goalsdom}
			<a href="show_persons.php?id={$match.goalsdom[countext].id_person}">{$match.goalsdom[countext].lastname} {$match.goalsdom[countext].firstname}</a> {$match.goalsdom[countext].goal_min} '{if $match.goalsdom[countext].goal_csc} ({$lang.owngoal}){/if}{if $match.goalsdom[countext].goal_pen} ({$lang.penalty}){/if}<br>					
			{/section}
			</td>
			<td colspan="2">&nbsp;</td>
			<td>
			{section name="countext" start=0 loop=$match.goalsext}
			<a href="show_persons.php?id={$match.goalsext[countext].id_person}">{$match.goalsext[countext].lastname} {$match.goalsext[countext].firstname}</a> {$match.goalsext[countext].goal_min} '{if $match.goalsext[countext].goal_csc} ({$lang.owngoal}){/if}{if $match.goalsext[countext].goal_pen} ({$lang.penalty}){/if}<br>					
			{/section}
			</td>						
		</tr>
		{/if}
		{if $match.cardsdom or $match.cardsext}
		<tr>
			<td width="10%">&nbsp;</td>
			<td class="playerselect">{$lang.advertissements}</td>
			<td colspan="2">&nbsp;</td>
			<td class="playerselect">{$lang.advertissements}</td>
		</tr>
		<tr>
			<td width="10%">&nbsp;</td>
			<td>
			{section name="countext" start=0 loop=$match.cardsdom}
			<a href="show_persons.php?id={$match.cardsdom[countext].id_person}">{$match.cardsdom[countext].lastname} {$match.cardsdom[countext].firstname}</a> {$match.cardsdom[countext].card_min} '{if $match.cardsdom[countext].card_yellow} ({$lang.yellowcard_abr}){/if}{if $match.cardsdom[countext].card_red} ({$lang.redcard_abr}}){/if}<br>					
			{/section}
			</td>
			<td colspan="2">&nbsp;</td>
			<td>
			{section name="countext" start=0 loop=$match.cardsext}
			<a href="show_persons.php?id={$match.cardsext[countext].id_person}">{$match.cardsext[countext].lastname} {$match.cardsext[countext].firstname}</a> {$match.cardsext[countext].card_min} '{if $match.cardsext[countext].card_yellow} ({$lang.yellowcard_abr}){/if}{if $match.cardsext[countext].card_red} ({$lang.redcard_abr}}){/if}<br>					
			{/section}
			</td>						
		</tr>
		{/if}
		</table>
		<br>
		{counter assign=count name=matchcount}		
		{/foreach}
		</td>
	</tr>
  	<tr>
		<td colspan="5">	
		<div id="barre-season">
		<input style="width:100%;" type="submit" class="btn-search" value="{$lang.save}" id="savebutton" accesskey="s" />
		</div>
		</td>
	</tr>  
</table>
{/if}

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