{*
  Template for the club detailview
  $Id: show_stadiums.tpl,v 1.00 2006/10/25 20:14:18
*}
{assign var=IMGWIDTH value="200"}
{assign var=IMGHEIGHT value="200"}
<!-- {$smarty.template} -->
<div id="title"><a href="show_stadiums.php?id=$stadium.id">{$stadium.longname}</a></div>

<table id="actions" border="0" cellpadding="0" cellspacing="0" width="100%">
	<tr>
		<td id="barre-onglet">
		<form action="show_stadiums.php" name="editform">
				<input type="hidden" name="id" value="{$stadium.id}"/>
				<input type="hidden" name="action" value="card"/>
				<input type="submit" class="{if $action=='card'}onglet-on{else}onglet{/if}" value="{$lang.card}" />
		</form>
		{if $stadium.seegallery}
			<form action="gallery.php" name="galleryform">
				<input type="hidden" name="subcat" value="{$stadium.id}"/>
				<input type="hidden" name="cat" value="3" />
				<input type="submit" value="{$lang.gallery}" class="onglet"/>
			</form>
		{/if}
		{if $stadium.commentable}
				<form action="comments.php" name="mkcommentform">
					<input type="hidden" name="subcat" value="{$stadium.id}"/>
					<input type="hidden" name="cat" value="3" />
					<input type="submit" value="{$lang.comments}" class="onglet"/>
				</form>
		{/if}
		{if $stadium.prev_id || $stadium.next_id}
			<form action="show_stadiums.php" name="prevform">
			<input type="hidden" name="id" value="{$stadium.prev_id}"/>
			<input type="submit" class="onglet" value="<" {if !$stadium.prev_id}disabled="disabled"{/if} accesskey="," />
			</form>
			<form action="show_stadiums.php" name="nextform">
			<input type="hidden" name="id" value="{$stadium.next_id}"/>
			<input type="submit" class="onglet" value=">" {if !$stadium.next_id}disabled="disabled"{/if} accesskey="." />
			</form>
		 {/if}
		</td>
	</tr>
{if $stadium.copyable || $stadium.editable}
	<tr>
		<td id="barre-season">
			<form action="edit_stadiums.php" name="editform">
					<input type="submit" value="{$lang.newdata}" class="onglet"/>
			</form>
			<form action="edit_stadiums.php" name="editform">
					<input type="hidden" name="id" value="{$stadium.id}"/>
					<input type="submit" value="{$lang.edit}" class="onglet"/>
			</form>
			<form action="delete.php" name="deleteform">
					<input type="hidden" name="id" value="{$stadium.id}"/>
					<input type="hidden" name="cat" value="10"/>
					<input type="submit" value="{$lang.del}" onclick="return(confirm('{$stadium.longname|escape:javascript}: {$lang.msg_really_del}?'))" class="onglet"/>
			</form>
	</td>
	</tr>
{/if}
</table>


<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="5">
  <tr>
    <td width="{$IMGWIDTH}" rowspan="2">
    <div class="img-shadow">
	<a title="{$stadium.longname}" href="{$link}">
		<img alt="{$stadium.longname}" src="{$stadium.imgurl}" border="0" hspace="5" vspace="5" width="{$IMGWIDTH}">
	</a>
	</td>    	
  </tr>  
  <tr>
    <td>
      <table width="100%" cellspacing="1" cellpadding="2" border="0">
	  		<tr>
			<td class="td-opt">{$lang.creation}:</td><td class="td-value">{$stadium.creation}</td>
			<td class="td-opt">{$lang.country}:</td><td class="td-value">{$stadium.country}</td>
			</tr>		
            <tr>
			<td class="td-opt">{$lang.renovation}:</td><td class="td-value">{if $stadium.renovation}{$stadium.renovation}{/if}</td>
			<td class="td-opt">{$lang.places}:</td><td class="td-value">{$stadium.places}</td>
			</tr>
            <tr>
			<td class="td-opt">{$lang.adresse}:</td><td class="td-value">{if $stadium.adresse}{$stadium.adresse}{/if}</td>			
			<td class="td-opt">{$lang.aka}:</td><td class="td-value">{$stadium.aka}</td>
			</tr>
      </table>
    </td>	
  </tr>
  
  {if $stadium.carac_ads}
		<tr>
		<td class="td-opt" colspan="2"><a href="javascript:" onclick="blocking('bloc0','yes', 'block'); return false;">{$lang.additionalinfo}</a></td>
		</tr>
		<tr>
			<td class="td-value" colspan="2">
			<div id="bloc0" class="show_plot" style="display:none;">
			<table width="100%" style="top:0px" border="0" cellpadding="2" cellspacing="0">
				{foreach from=$stadium.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}
  
{if $stadium.plot}
   <tr>
	<td align="left" colspan="2" class="td-opt">
	<a href="javascript:" onclick="blocking('bloc1','yes', 'block'); return false;"><h3>{$lang.comments} :</h3></a>
	</td>
  </tr>
  <tr>
	<td align="left" colspan="2">
	<div id="bloc1" class="show_plot" style="display: block;">{$stadium.plot}</div>
	</td>
  </tr>
{/if}
</table>
</div>
<!-- /showheader -->

<!-- /content -->
