{include file="$admingentemplates/admin_top.tpl"}
{strip}
<div class="back">
    <a href="{$form.back}">{$lang.button.back}</a>
</div>

<div class="show_help" style="display: none;">&nbsp;</div>

<div class=red_header>{$lang.blog.admin.razdel_name}</div>
<div class="cr">&nbsp;</div>

<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>{if $form.par eq 'edit'}{$lang.admin_help.blog_categories_edit}{else}{$lang.admin_help.blog_categories_add}{/if}
    </div>
</div>
<div>
	<form method="post" name="post_form" action="{$form.action}" id="category_form" enctype="multipart/form-data">
		<table border=0 cellspacing=0 cellpadding=3 width="100%">
			<input type="hidden" name="par" value="{$form.par}">
			{if $form.par eq 'edit'}
			<input type="hidden" name="id" value="{$data.id}">
			{/if}
			<tr bgcolor="#ffffff">
				<td align="left" width="200">{$lang.blog.admin.category_name} <font class=main_error_text>*</font>:&nbsp;</td>
				<td align="left"><input type="text" name="category_name" value="{$data.category_name}" style="width: 195px;"></td>
			</tr>
			<tr bgcolor="#ffffff">
				<td colspan="2">
				<table cellpadding="3" cellspacing="0">
					<tr height="40">
						<td>
							{if $form.par eq 'edit'}
								<a class="admin_button_major" onclick="document.post_form.submit();" href="#">{$lang.button.save}<span>&nbsp;</span></a>
							{else}
								<a class="admin_button_major" onclick="document.post_form.submit();" href="#">{$lang.button.add}<span>&nbsp;</span></a>
							{/if}
						</td>
{*						<td>
							<a class="admin_button" href="{$form.back}">{$lang.button.back}<span>&nbsp;</span></a>
						</td>*}
					</tr>
				</table>
				</td>
			</tr>
		</table>
	</form>
</div>
{/strip}
{include file="$admingentemplates/admin_bottom.tpl"}