{*
  Template for the club detailview
  $Id: actions_categories.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_categories.php?id={$categorie.id}{if $season}&season={$season}{/if}">{$actiontitle}</a></td>
	</tr>
	
	{if $editable}
	<tr>
		<td id="barre-admin">
		<form action="edit_categories.php" name="editform">
				<span class="onglet-admin">
				<input type="submit" value="{$lang.newdata}"/>
				</span>
		</form>
		<form action="edit_categories.php" name="editform">
				<input type="hidden" name="id" value="{$categorie.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="{$categorie.id}"/>
				<input type="hidden" name="cat" value="13"/>
				<span class="onglet-admin">
				<input type="submit" value="{$lang.del}" onclick="return(confirm('{$actiontitle|escape:javascript}: {$lang.msg_really_del}?'))"/>
				</span>
		</form>
		<form action="manage_categories.php" name="manageform">
				<span class="onglet-admin">
				<input type="submit" value="{$lang.manage}" />
				</span>
		</form>
		</td>
	</tr>
{/if}
	<tr>
		<td id="barre-option">
			<form action="show_categories.php" name="editform">
					<input type="hidden" name="id" value="{$categorie.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>
			
			{if $prev_id || $next_id}
				<form action="show_categories.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_categories.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>