{*
  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="150"}
{assign var=IMG2WIDTH value="400"}
{assign var=IMG2HEIGHT value="300"}
<!-- {$smarty.template} -->
<br>

<table id="tableshow" border="0" cellpadding="0" cellspacing="0" width="100%">
	<tr>
		<td id="toppage"><a href="show_stadiums.php?id=$stadium.id">{$stadium.longname}</a>
		</td>
	</tr>
{if $stadium.copyable || $stadium.editable}
	<tr>
		<td>
			<form action="edit_stadiums.php" name="editform">
					<span class="onglet-admin">
					<input type="submit" value="{$lang.newdata}"/>
					</span>
			</form>
			<form action="edit_stadiums.php" name="editform">
					<input type="hidden" name="id" value="{$stadium.id}"/>
					<span class="onglet-admin">
					<input type="submit" value="{$lang.edit}"/>
					</span>
			</form>
			<form action="delete.php" name="deleteform">
					<input type="hidden" name="id" value="{$stadium.id}"/>
					<input type="hidden" name="cat" value="10"/>
					<span class="onglet-admin">
					<input type="submit" value="{$lang.del}" onclick="return(confirm('{$stadium.longname|escape:javascript}: {$lang.msg_really_del}?'))"/>
					</span>
			</form>
	</td>
	</tr>
{/if}	
	<tr>
		<td>
		<form action="show_stadiums.php" name="editform">
				<input type="hidden" name="id" value="{$stadium.id}"/>
				<input type="hidden" name="action" value="card"/>
				<span class="onglet">
				<input type="submit" value="{$lang.card}" />
				</span>
		</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" />
				<span class="onglet">
				<input type="submit" value="{$lang.gallery}"/>
				</span>
			</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" />
					<span class="onglet">
					<input type="submit" value="{$lang.comments}"/>
					</span>
				</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}"/>
			<span class="onglet">
			<input type="submit" value="&laquo;" {if !$stadium.prev_id}disabled="disabled"{/if} accesskey="," />
			</span>
			</form>
			<form action="show_stadiums.php" name="nextform">
			<input type="hidden" name="id" value="{$stadium.next_id}"/>
			<span class="onglet">
			<input type="submit" value="&raquo;" {if !$stadium.next_id}disabled="disabled"{/if} accesskey="." />
			</span>
			</form>
		 {/if}
		</td>
	</tr>

</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="0">
  <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>
	</div>
	</td>    	
  </tr>  
  <tr>
    <td>
      <table width="100%" cellspacing="0" cellpadding="2" border="0">
	  		<tr>
			<td class="lineeven" nowrap><b>{$lang.creation} :</b></td>
			<td class="lineeven">{$stadium.creation}</td>
			</tr>		
            <tr>
			<td class="lineodd"><b>{$lang.country} :</b></td>
			<td class="lineodd">{$stadium.country}</td>
			</tr>
			{if $stadium.renovation}			
            <tr>
			<td class="lineeven"><b>{$lang.renovation} :</b></td>
			<td class="lineeven">{$stadium.renovation}</td>
			</tr>
			{/if}		
            <tr>
			<td class="lineodd"><b>{$lang.places} :</b></td>
			<td class="lineodd">{$stadium.places}</td>
			</tr>
			<tr>
			<td class="lineeven"><b>{$lang.aka} :</b></td>
			<td class="lineeven">{$stadium.aka}</td>
			</tr>

			

            <tr>
			<td class="lineodd"><b>{$lang.adresse} :</b></td>
			<td class="lineodd">{if $stadium.adresse}{$stadium.adresse}{/if}</td>			
			</tr>
					
            
      </table>
    </td>	
  </tr>

{if $stadium.carac_ads}
	<tr>
	<td class="title-cat" colspan="2"><a href="javascript:" onclick="blocking('bloc0','yes', 'block'); return false;">» {$lang.additionalinfo}</a></td>
	</tr>
	<tr>
		<td 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 class="title-cat" align="left" colspan="2">
		<a href="javascript:" onclick="blocking('bloc1','yes', 'block'); return false;">» {$lang.comments} :</a>
		</td>
	</tr>
	<tr>
		<td align="left" colspan="2">
		<div id="bloc1" class="show_plot" style="display: none; padding:5px;">{$stadium.plot}</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}
</table>
</div>
<!-- /showheader -->


<!-- /content -->
