{include file="$admingentemplates/admin_top.tpl"}
<font class=red_header>{$lang.admin_menu.profile_fields}</font><font class=red_sub_header>&nbsp;|&nbsp;{$header.editform}</font>
<div class="help_text">
    <div class="close_help">
        <img src="{$site_root}{$template_root}/images/close_help.png" alt="">
    </div>
    <div class="help_body">
        <span class="help_title">{$lang.help}:</span>{$top_help}
    </div>
</div>
<table border=0 cellspacing=1 cellpadding=5 width="100%">
<form method="post" action="{$form.action}"  enctype="multipart/form-data" name="types_form">
{$form.hiddens}
<tr bgcolor="#FFFFFF">
    <td align="right" width="15%" class="main_header_text">{$header.name}:&nbsp;</td>
    <td class="main_content_text" align="left" ><input type="text" name="name" value="{$data.name}" size=30></td>
    <td class="main_header_text" align="left" width="70%">&nbsp;</td>
</tr>
<tr bgcolor="#FFFFFF" style="display:none;">
    <td align="right" width="15%" class="main_header_text">{$lang.sorter}:&nbsp;</td>
    <td class="main_content_text" align="left">
    <select name="sorter">
	{section name=s loop=$sorter}
		<option value="{$smarty.section.s.index_next}" {if $sorter[s].sel}selected{/if}>{$smarty.section.s.index_next}</option>
	{/section}
	</select>
	</td>
     <td class="main_header_text" align="left" width="70%">&nbsp;</td>
</tr>
</form>
</table>
<table><tr height="40">
{if $form.par eq "edit"}
	<td><input type="button" value="{$lang.button.save}" class="button" onclick="javascript:document.types_form.submit();"></td>
	{if $form.delete}
    <td><input type="button" value="{$lang.button.delete}" class="button" onclick="{literal}javascript: if(confirm({/literal}'{$form.confirm|escape:javascript}'{literal})){location.href={/literal}'{$form.delete}'{literal}}{/literal}"></td>
    {/if}
	{else}
	<td><input type="button" value="{$lang.button.add}" class="button" onclick="javascript:document.types_form.submit();"></td>
	{/if}
	<td><input type="button" value="{$lang.button.back}" class="button" onclick="javascript: location.href='{$form.back}'"></td>
</tr></table>
{include file="$admingentemplates/admin_bottom.tpl"}