{*
  Template for the club detailview
  $Id: show_clubs.tpl,v 1.00 2006/10/25 20:14:18
*}
<br>
<!-- {$smarty.template} -->
<div id="toppage"><a href="show_clubs.php?id={$club.id}">{$club.longname}</a></div>

<table id="actions" border="0" cellpadding="0" cellspacing="0" width="100%">
{if $club.editable || $club.administrable}
	<tr>
		<td>
		{if $club.administrable}
		<form action="edit_clubs.php" name="editform">
				<span class="onglet-admin">
				<input type="submit" value="{$lang.newdata}" />
				</span>
		</form>
		{/if}
		{if $club.editable || $club.administrable}
		<form action="edit_clubs.php" name="editform">
				<input type="hidden" name="id" value="{$club.id}"/>
				<span class="onglet-admin">
				<input type="submit" value="{$lang.edit}" />
				</span>
		</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"/>
				<span class="onglet-admin">
				<input type="submit" value="{$lang.del}" onclick="return(confirm('{$club.longname|escape:javascript}: {$lang.msg_really_del}?'))" />
				</span>
		</form>
		{/if}
		{if $club.editable || $club.administrable}
		<form action="edit_teams.php" name="editform">
				<input type="hidden" name="id" value="{$club.id}"/>
				<span class="onglet-admin">
				<input type="submit" value="{$lang.editteams}" />
				</span>
		</form>
		{/if}
	</td>
	</tr>
{/if}
	<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"/>
				<span class="onglet">
				<input type="submit" value="{$lang.card}" />
				</span>
		</form>
		<form action="show_teams.php" name="editform">
				<input type="hidden" name="id" value="{$club.id}"/>
				<span class="onglet">
				<input type="submit"  value="{$lang.teamplayers}" />
				</span>
		</form>
		<form action="show_calendarteams.php" name="editform">
				<input type="hidden" name="id" value="{$club.id}"/>
				<span class="onglet">
				<input type="submit"  value="{$lang.calendar}" />
				</span>
		</form>
		{if $clubstats}
		<form action="stats_clubs.php" name="editform">
				<input type="hidden" name="id" value="{$club.id}"/>
				<span class="onglet">
				<input type="submit" value="{$lang.statistics}" />
				</span>
		</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" />
				<span class="onglet">
				<input type="submit" value="{$lang.gallery}" />
				</span>
			</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" />
					<span class="onglet">
				<input type="submit" value="{$lang.comments}" />
				</span>
				</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}"/>
				<span class="onglet">
				<input type="submit"  value="<" {if !$club.prev_id}disabled="disabled"{/if} accesskey="," />
				</span>
			</form>
			<form action="show_teams.php" name="nextform">
				<input type="hidden" name="id" value="{$club.next_id}"/>
				<span class="onglet">
				<input type="submit"  value=">" {if !$club.next_id}disabled="disabled"{/if} accesskey="." />
				</span>
			</form>
		 {/if}
		 {if $seasonselect}
			<b>{$lang.seasons} :</b> <form action="show_calendarteams.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}{assign var='zeseason' value='$myseason.season'}Selected{/if}>{$myseason.season} / {$nextyear}</option>
			{/foreach}
			</select>
			</form>
		{/if}
		</td>
	</tr>

</table>


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

<div id="pagecontent"><br>
<!-- content begin -->
{if $competitions}
	{foreach item=compet from=$competitions}
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
	  <tr>
		<td id="toppage"><a href="show_competitions.php?id={$compet.id}">{if $compet.subshortname}{$compet.subshortname} - {/if}{$compet.shortname}</a></td>
	  </tr>	
	  <tr>
		<td>
		  <table cellspacing="0" cellpadding="2" border="0" width="100%">
			{section name=cal loop=$calendar}
				{if $compet.id == $calendar[cal].id_compet}
				{cycle values="lineeven,lineodd" assign=CLASS print=false}	  
				<tr class="{$CLASS}">
					<td>{$calendar[cal].day}</td>
					<td>{$calendar[cal].date_day}</td>
					<td{if $calendar[cal].buts_dom > $calendar[cal].buts_ext} class="winner"{/if}>{$calendar[cal].domteam}</td>
					<td><a href="{if $calendar[cal].datediff > 0}show_match.php?id={$calendar[cal].id}{elseif $check == 0}show_stats.php?id={$calendar[cal].id} {assign var="check" value="1"}{else}#{/if}">{if $calendar[cal].dateday > $smarty.now}_ - _{else}{$calendar[cal].buts_dom} - {$calendar[cal].buts_ext}{/if}</a></td>
					<td{if $calendar[cal].buts_ext > $calendar[cal].buts_dom} class="winner"{/if}>{$calendar[cal].extteam}</td>
					{if $matchvalidation == 2 and $club.editable}
					<td>
						{if $calendar[cal].validation == 1 and $calendar[cal].datediff>0}
						<a href="edit_matchs.php?competition={$compet.id}&season={$season}&day={$calendar[cal].day}"><img src="images/checked.gif" border="0" width="18" height="17" /></a>
						{elseif $calendar[cal].validation != 1 and $calendar[cal].datediff>0}
						<a href="edit_matchs.php?competition={$compet.id}&season={$season}&day={$calendar[cal].day}"><img src="images/inwaiting.gif" border="0" width="16" height="16" /></a>
						{else}
						&nbsp;
						{/if}
					</td>
					{/if}
				</tr>
				{/if}
			 {/section}
		  
		  </table>
		</td>
	  </tr>
	</table> 
	{/foreach} 
{else}
{assign var="nextyear" value="`$season+1`"}
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr class="lineeven">
	<td id="toppage">&nbsp;</td>
</tr>
<tr class="lineeven">
	<td>{$lang.nomatchs}</td>
</tr>
</table>
{/if}
</div>
<!-- /showheader -->

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