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

<!-- {$smarty.template} -->
<div id="title"><a href="show_categories.php?id={$categorie.id}{if $season}&season={$season}{/if}">{$actiontitle}</a></div>
<table id="actions" border="0" cellpadding="0" cellspacing="0" width="100%">

	{if $editable}
	<tr>
		<td id="barre-onglet">
		<form action="edit_categories.php" name="editform">
				<input type="submit" class="onglet" value="{$lang.newdata}"/>
				</span>
		</form>
		<form action="edit_categories.php" name="editform">
				<input type="hidden" name="id" value="{$categorie.id}"/>
				<input type="submit" class="onglet" 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"/>
				<input type="submit" class="onglet" value="{$lang.del}" onclick="return(confirm('{$actiontitle|escape:javascript}: {$lang.msg_really_del}?'))"/>
				</span>
		</form>
		<form action="manage_categories.php" name="manageform">
				<input type="submit" class="onglet" value="{$lang.manage}" />
				</span>
		</form>
		</td>
	</tr>
{/if}
	<tr>
		<td id="barre-season">
			<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}"/>
					<input type="submit" class="onglet" 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}"/>
					<input type="submit" class="onglet" 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}"/>
					<input type="submit" class="onglet" value=">" {if !$next_id}disabled="disabled"{/if} accesskey="." />
				</form>			
			{/if}
				
		</td>
	</tr>

</table>