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

<!-- {$smarty.template} -->
<div id="title"><a href="show_competitions.php?id={$competition.id}{if $season}&season={$season}{/if}">{$actiontitle}</a></div>

<table id="actions" border="0" cellpadding="0" cellspacing="0" width="100%">
	<tr>
		<td id="barre-onglet">
			<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}"/>
					<input type="submit" class="{if $action=='card'}onglet-on{else}onglet{/if}" value="{$lang.card}" />
			</form>
			<form action="prizelist.php" name="tableform">
						<input type="hidden" name="competition" value="{$competition.id}"/>
						<input type="submit" class="onglet" value="{$lang.prizelist}" {if !$competition.id}disabled="disabled"{/if} />
			</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}"/>
						<input type="submit" class="onglet" value="{$lang.calendar}" {if !$competition.id}disabled="disabled"{/if} />
			</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}"/>
					<input class="onglet" type="submit" value="{$lang.statistics}" {if !$competition.id} disabled="disabled"{/if} />
			</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}"/>
							<input type="submit" class="onglet" value="{$lang.classement}" {if !$competition.id}disabled="disabled"{/if} />
				</form>
				<form action="show_kickers.php" name="tableform">
					<input type="hidden" name="competition" value="{$competition.id}"/>
					<input type="hidden" name="season" value="{$season}"/>
					<input class="onglet" type="submit" value="{$lang.kickers}"{if !$competition.id} disabled="disabled"{/if} />
				</form>
				<form action="show_cards.php" name="tableform">
					<input type="hidden" name="competition" value="{$competition.id}"/>
					<input type="hidden" name="season" value="{$season}"/>
					<input class="onglet" type="submit" value="{$lang.cards}"{if !$competition.id} disabled="disabled"{/if} />
				</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" />
					<input type="submit" value="{$lang.gallery}" class="onglet"/>
				</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" />
						<input type="submit" value="{$lang.comments}" class="onglet"/>
					</form>
			{/if}
			{if $prev_id || $next_id}
					<form action="show_competitions.php" name="prevform">
						<input type="hidden" name="id" value="{$prev_id}"/>
						<input type="submit" class="onglet" value="<" {if !$prev_id}disabled="disabled"{/if} accesskey="," />
					</form>
					<form action="show_competitions.php" name="nextform">
						<input type="hidden" name="id" value="{$next_id}"/>
						<input type="submit" class="onglet" value=">" {if !$next_id}disabled="disabled"{/if} accesskey="." />
					</form>			
			{/if}
		</td>
	</tr>
{if $administrable || $editable}
	<tr>
		<td id="barre-season">
		{if $administrable}
		<form action="edit_competitions.php" name="editform">
				<input type="submit" value="{$lang.newdata}" class="onglet"/>
		</form>
		<form action="edit_competitions.php" name="editform">
				<input type="hidden" name="id" value="{$competition.id}"/>
				<input type="submit" value="{$lang.edit}" class="onglet"/>
		</form>
		<form action="delete.php" name="deleteform">
				<input type="hidden" name="id" value="{$competition.id}"/>
				<input type="hidden" name="cat" value="3"/>
				<input type="submit" value="{$lang.del}" onclick="return(confirm('{$actiontitle|escape:javascript}: {$lang.msg_really_del}?'))" class="onglet"/>
		</form>
		{/if}
		{if $editable || $administrable}
		<form action="edit_prizelist.php" name="candidateform">
				<input type="hidden" name="competition" value="{$competition.id}"/>
				<input type="submit" value="{$lang.prizelist}" class="onglet"/>
		</form>
		<form action="edit_candidates.php" name="candidateform">
				<input type="hidden" name="competition" value="{$competition.id}"/>
				<input type="hidden" name="season" value="{$season}"/>				
				<input type="submit" value="{$lang.editseason}" class="onglet"/>
		</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}"/>				
				<input type="submit" value="{$lang.editpenality}" class="onglet"/>
		</form>
		{/if}
		<form action="edit_days.php" name="dayform">
				<input type="hidden" name="competition" value="{$competition.id}"/>
				<input type="hidden" name="season" value="{$season}"/>				
				<input type="submit" value="{$lang.editday}" class="onglet"/>
		</form>
		<form action="edit_matchs.php" name="matchsform">
				<input type="hidden" name="competition" value="{$competition.id}"/>
				<input type="hidden" name="season" value="{$season}"/>				
				<input type="submit" value="{$lang.editmatchs}" class="onglet"/>
		</form>
		<form action="edit_goals.php" name="matchsform">
				<input type="hidden" name="competition" value="{$competition.id}"/>
				<input type="hidden" name="season" value="{$season}"/>				
				<input type="submit" value="{$lang.editgoals}" class="onglet"/>
		</form>
		{/if}
		</td>
	</tr>
{/if}
</table>