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

<!-- {$smarty.template} -->
<div id="title"><a href="show_clubs.php?id={$club.id}">{$club.longname}</a></div>

<table id="actions" border="0" cellpadding="0" cellspacing="0" width="100%">
	<tr>
		<td id="barre-onglet">
		<form action="show_clubs.php" name="editform">
				<input type="hidden" name="id" value="{$club.id}"/>
				<input type="hidden" name="action" value="card"/>
				<input type="submit" class="{if $action=='card'}onglet-on{else}onglet{/if}" value="{$lang.card}" />
		</form>
		<form action="show_teams.php" name="editform">
				<input type="hidden" name="id" value="{$club.id}"/>
				<input type="submit" class="onglet" value="{$lang.teamplayers}" />
		</form>
		<form action="show_calendarteams.php" name="editform">
				<input type="hidden" name="id" value="{$club.id}"/>
				<input type="submit" class="onglet" value="{$lang.calendar}" />
		</form>
		{if $clubstats}
		<form action="stats_clubs.php" name="editform">
				<input type="hidden" name="id" value="{$club.id}"/>
				<input class="onglet" type="submit" value="{$lang.statistics}" />
		</form>
		{/if}
		{if $club.seegallery}
			<form action="gallery.php" name="galleryform">
				<input type="hidden" name="subcat" value="{$club.id}"/>
				<input type="hidden" name="cat" value="1" />
				<input type="submit" value="{$lang.gallery}" class="onglet"/>
			</form>
		{/if}
		{if $club.commentable}
				<form action="comments.php" name="mkcommentform">
					<input type="hidden" name="subcat" value="{$club.id}"/>
					<input type="hidden" name="cat" value="1" />
					<input type="submit" value="{$lang.comments}" class="onglet"/>
				</form>
		{/if}
			{if $club.prev_id || $club.next_id}
				<form action="show_teams.php" name="prevform">
					<input type="hidden" name="id" value="{$club.prev_id}"/>
					<input type="submit" class="onglet" value="<" {if !$club.prev_id}disabled="disabled"{/if} accesskey="," />
				</form>
				<form action="show_teams.php" name="nextform">
					<input type="hidden" name="id" value="{$club.next_id}"/>
					<input type="submit" class="onglet" value=">" {if !$club.next_id}disabled="disabled"{/if} accesskey="." />
				</form>
			 {/if}
			 {if $seasonselect}
				<b>{$lang.seasons} :</b> <form action="show_teams.php" name="seasonform">
				<input type="hidden" name="id" value="{$club.id}"/>
				<select name="season" onchange="submit();">
					<option value="0">---{$lang.season}---</option>
				{foreach item=myseason from=$seasonselect}
				{assign var="nextyear" value="`$myseason.season+1`"}
					<option value="{$myseason.id}" {if $myseason.id == $season}Selected{/if}>{$myseason.season} / {$nextyear}</option>
				{/foreach}
				</select>
				</form>
			{/if}
		</td>
	</tr>
{if $club.editable || $club.administrable}
	<tr>
		<td id="barre-season">
		{if $club.administrable}
		<form action="edit_clubs.php" name="editform">
				<input type="submit" value="{$lang.newdata}" class="onglet"/>
		</form>
		{/if}
		{if $club.editable || $club.administrable}
		<form action="edit_clubs.php" name="editform">
				<input type="hidden" name="id" value="{$club.id}"/>
				<input type="submit" value="{$lang.edit}" class="onglet"/>
		</form>
		{/if}
		{if $club.administrable}
		<form action="delete.php" name="deleteform">
				<input type="hidden" name="id" value="{$club.id}"/>
				<input type="hidden" name="cat" value="1"/>
				<input type="submit" value="{$lang.del}" onclick="return(confirm('{$club.longname|escape:javascript}: {$lang.msg_really_del}?'))" class="onglet"/>
		</form>
		{/if}
		{if $club.editable || $club.administrable}
		<form action="edit_teams.php" name="editform">
				<input type="hidden" name="id" value="{$club.id}"/>
				<input type="submit" value="{$lang.editteams}" class="onglet"/>
		</form>
		{/if}
		</td>
	</tr>
{/if}
</table>


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

<div id="pagecontent">
<!-- content begin -->
	<table width="100%" border=0 cellspacing="5" cellpadding="5">
		
	  <tr>
		<td class="center" rowspan="2" width="125">
		<span class="img-shadow">{html_image file=$club.imgurl link=$link width="150"}</span>
		</td>    	
	  </tr>  
	  <tr>
		<td>
		  <table cellspacing="5" cellpadding="2" border="0">
			{foreach item=position from=$positions}	  
				<tr>
				<td><h3>{$postype[$position.id]} :</h3></td>
				</tr>		
				<tr>
				<td class="list_team">
				{foreach item=teamplayer from=$teamplayers}
					{if $teamplayer.position == $position.id}
					<a href="show_persons.php?id={$teamplayer.id}">{$teamplayer.lastname} {$teamplayer.firstname}</a><br>
					{/if}
				{/foreach}
				</td>
				</tr>
			 {/foreach}   
				
		  </table>
		</td>	
	  </tr>  
	</table>
</div>
<!-- /showheader -->
</div>
<!-- /content -->
