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

<!-- {$smarty.template} -->
<br />
<table id="actions" border="0" cellpadding="0" cellspacing="0" width="100%">
	<tr>
		<td id="toppage"><a href="show_competitions.php?id={$competition.id}{if $season}&season={$season}{/if}">{$actiontitle}</a></td>
	</tr>
	{if $administrable || $editable}
	<tr>
		<td id="barre-admin">
	{if $administrable}	
		<form action="edit_competitions.php" name="editform">
				<span class="onglet-admin">
				<input type="submit" value="{$lang.newdata}"/>
				</span>
		</form>
		<form action="edit_competitions.php" name="editform">
				<input type="hidden" name="id" value="{$competition.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="{$competition.id}"/>
				<input type="hidden" name="cat" value="3"/>
				<span class="onglet-admin">
				<input type="submit" value="{$lang.del}" onclick="return(confirm('{$actiontitle|escape:javascript}: {$lang.msg_really_del}?'))"/>
				</span>
		</form>
	{/if}
	{if $editable || $administrable}
		<form action="edit_prizelist.php" name="candidateform">
				<input type="hidden" name="competition" value="{$competition.id}"/>
				<span class="onglet-admin">
				<input type="submit" value="{$lang.prizelist}"/>
				</span>
		</form>
		<form action="edit_candidates.php" name="candidateform">
				<input type="hidden" name="competition" value="{$competition.id}"/>
				<input type="hidden" name="season" value="{$season}"/>				
				<span class="onglet-admin">
				<input type="submit" value="{$lang.editseason}"/>
				</span>
		</form>
		{if $competdata.type != 1}
		<form action="edit_penalitys.php" name="penalityform">
				<input type="hidden" name="competition" value="{$competition.id}"/>
				<input type="hidden" name="season" value="{$season}"/>				
				<span class="onglet-admin">
				<input type="submit" value="{$lang.editpenality}"/>
				</span>
		</form>
		{/if}
		<form action="edit_days.php" name="dayform">
				<input type="hidden" name="competition" value="{$competition.id}"/>
				<input type="hidden" name="season" value="{$season}"/>				
				<span class="onglet-admin">
				<input type="submit" value="{$lang.editday}"/>
				</span>
		</form>
		<form action="edit_matchs.php" name="matchsform">
				<input type="hidden" name="competition" value="{$competition.id}"/>
				<input type="hidden" name="season" value="{$season}"/>				
				<span class="onglet-admin">
				<input type="submit" value="{$lang.editmatchs}"/>
				</span>
		</form>
		<form action="edit_goals.php" name="matchsform">
				<input type="hidden" name="competition" value="{$competition.id}"/>
				<input type="hidden" name="season" value="{$season}"/>				
				<span class="onglet-admin">
				<input type="submit" value="{$lang.editgoals}"/>
				</span>
		</form>
	{/if}
		</td>
	</tr>
{/if}
	<tr>
		<td id="barre-option">
			<form action="show_competitions.php" name="editform">
					<input type="hidden" name="id" value="{$competition.id}"/>
					<input type="hidden" name="action" value="card"/>
					<input type="hidden" name="season" value="{$season}"/>
					<span class="onglet">
					<input type="submit" value="{$lang.card}" />
					</span>
			</form>
			<form action="prizelist.php" name="tableform">
					<input type="hidden" name="competition" value="{$competition.id}"/>
					<span class="onglet">
					<input type="submit" value="{$lang.prizelist}" {if !$competition.id}disabled="disabled"{/if} />
					</span>
			</form>
			{if $haveseason}
			<form action="show_matchs.php" name="calendarform">
					<input type="hidden" name="competition" value="{$competition.id}"/>
					<input type="hidden" name="season" value="{$season}"/>
					<span class="onglet">
					<input type="submit" value="{$lang.matchdays}" {if !$competition.id} disabled="disabled"{/if} />
					</span>
			</form>
			{if $statsactive}
			<form action="stats_competitions.php" name="statsform">
					<input type="hidden" name="id" value="{$competition.id}"/>
					<input type="hidden" name="season" value="{$season}"/>
					<span class="onglet">
					<input type="submit" value="{$lang.stats}" {if !$competition.id} disabled="disabled"{/if} />
					</span>
			</form>
			{/if}
				{if $competdata.type != 1}
				<form action="show_tables.php" name="tableform">
					<input type="hidden" name="competition" value="{$competition.id}"/>
					<input type="hidden" name="season" value="{$season}"/>
					<span class="onglet">
					<input type="submit" value="{$lang.classement}"{if !$competition.id} disabled="disabled"{/if} />
					</span>
				</form>
				<form action="show_kickers.php" name="tableform">
					<input type="hidden" name="competition" value="{$competition.id}"/>
					<input type="hidden" name="season" value="{$season}"/>
					<span class="onglet">
					<input type="submit" value="{$lang.kickers}"{if !$competition.id} disabled="disabled"{/if} />
					</span>
				</form>
				<form action="show_cards.php" name="tableform">
					<input type="hidden" name="competition" value="{$competition.id}"/>
					<input type="hidden" name="season" value="{$season}"/>
					<span class="onglet">
					<input type="submit" value="{$lang.cards}"{if !$competition.id} disabled="disabled"{/if} />
					</span>
				</form>
				{/if}
			{/if}
			{if $seegallery}
				<form action="gallery.php" name="galleryform">
					<input type="hidden" name="subcat" value="{$competition.id}"/>
					<input type="hidden" name="cat" value="2" />
					<span class="onglet">
					<input type="submit" value="{$lang.gallery}"/>
					</span>
				</form>
			{/if}
			{if $commentable}
				<form action="comments.php" name="mkcommentform">
					<input type="hidden" name="subcat" value="{$competition.id}"/>
					<input type="hidden" name="cat" value="2" />
					<span class="onglet">
					<input type="submit" value="{$lang.comments}"/>
					</span>
				</form>
			{/if}
			{if $prev_id || $next_id}
				<form action="show_competitions.php" name="prevform">
					<input type="hidden" name="id" value="{$prev_id}"/>
					<span class="onglet-admin">
					<input type="submit" value="<" {if !$prev_id}disabled="disabled"{/if} accesskey="," />
					</span>
				</form>
				<form action="show_competitions.php" name="nextform">
					<input type="hidden" name="id" value="{$next_id}"/>
					<span class="onglet">
					<input type="submit" value=">" {if !$next_id}disabled="disabled"{/if} accesskey="." />
					</span>
				</form>			
			{/if}
				
		</td>
	</tr>

</table>