{include file="$admingentemplates/admin_top.tpl"}
{strip}
<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.cards.admin.name}</div>
<div class="cr">&nbsp;</div>
<div class="cr">&nbsp;</div>
<div class="help_text" style="display:block;">
    <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>{$lang.admin_help.cards_subcategories_edit}
    </div>
</div>

<div class="panel_section">
<div class="panel_content">
<form name="form" method="post" action="{$form.action}" enctype="multipart/form-data">
<input type="hidden" name="par" value="{$form.par}">
<input type="hidden" name="id_category" value="{$form.id_category}">
{if $form.par eq 'edit'}
<input type="hidden" name="id" value="{$data.id}">
{/if}
<table border="0" cellspacing=3 cellpadding=0 width="100%">
	<tr >
		<td width="200" class="main_header_text" align="left">{$lang.cards.admin.subcategory_name} <font class=main_error_text>*</font>:&nbsp;</td>
		<td><input name="subcategory_name" value="{$data.subcategory_name}" style="width: 195px;"></td>
	</tr>
	<tr >
		<td class="main_header_text" valign="top" align="left">{$lang.cards.admin.subcategory_descr} <font class=main_error_text>*</font>:&nbsp;</td>
		<td><textarea name="subcategory_descr" rows="7" style="width: 250px;">{$data.subcategory_descr}</textarea></td>
	</tr>
	<tr >
		<td class="main_header_text" valign="top" align="left">{$lang.cards.admin.subcategory_image}:&nbsp;</td>
		<td>
			<div>{if $data.subcategory_image}<img src="{$data.subcategory_image}" height="100" width="100">{else}{$lang.cards.admin.no_image}{/if}</div>
			<div style="padding-top: 5px;"><input type="file" name="subcategory_image"></div>
		</td>
	</tr>
</table>
</form>
</div>
</div>
<table>
	<tr >
		<td align="left">
			{if $form.par eq 'edit'}
                <a onclick="javascript: document.form.submit();" class="admin_button_major" >{$lang.button.save}<span>&nbsp;</span></a>&nbsp;&nbsp;
            {else}
                <a onclick="javascript: document.form.submit();" class="admin_button_major" >{$lang.button.add}<span>&nbsp;</span></a>&nbsp;&nbsp;
            {/if}
{*            <a onclick="document.location.href='{$form.back}'" class="admin_button btn_upload" >{$lang.button.back}<span>&nbsp;</span></a>&nbsp;&nbsp;&nbsp;			*}
		</td>
	</tr>
</table>
{/strip}
{include file="$admingentemplates/admin_bottom.tpl"}