{include file="$admingentemplates/admin_top.tpl"}
<div class="back">
    <a href="{$form.back}">{$lang.button.back}</a>
</div>
<div class="cr"></div>
<div class="show_help" style="display: none;">&nbsp;</div>
<div class="red_header">{$lang.events.razdel_name}</div>
<div class="cr">&nbsp;</div>
<div class="cr">&nbsp;</div>
	{if $form.err}{else}
	{if $err}<font class=main_error_text>*{$err}</font><br><br>{/if}
	<table border=0 cellspacing=1 cellpadding=5 width="100%">
                <form method="POST" action="{$form.action}" name="eventform">
                {$form.hiddens}
				<tr >
					<td align="left" class="main_header_text" width="1%" nowrap>{$lang.events.type}<font class=main_error_text>*</font>:&nbsp;</td>
					<td class="main_content_text" align="left" width="99%"><input type="text" name="name" value="{$data.name}" size=30 style="width: 195"></td>
				</tr>
				<tr ><td colspan="2">
				<table width="100%">
					<tr height="40">
					{if $form.par eq "edit"}
					<td>
						<a class="admin_button_major" onclick="javascript:document.eventform.sel.value='savetype';document.eventform.submit()">{$lang.button.save}<span>&nbsp;</span></a>
						<a class="admin_button" style="float:right;" onclick="javascript:if(confirm('{$lang.events.confirm|escape:javascript}')){literal}{location.href={/literal}'{$form.delete_link}'{literal}}{/literal}">{$lang.button.delete}<span>&nbsp;</span></a>
					</td>
					{else}
					<td>
						<a class="admin_button_major" onclick="javascript:document.eventform.sel.value='addtype';document.eventform.submit()">{$lang.button.add}<span>&nbsp;</span></a>
					</td>
					{/if}
{*					<td>
						<a class="admin_button" onclick="javascript:location.href='{$form.back}'">{$lang.button.back}<span>&nbsp;</span></a>
					</td>
*}					</tr>
				</table>
				</form>
				</td></tr>
    </table>
    {/if}
{include file="$admingentemplates/admin_bottom.tpl"}