{*{include file="$admingentemplates/admin_top.tpl"}

<font class=red_header>{$lang.addition.razdel_name}</font><font class=red_sub_header>&nbsp;|&nbsp;
		{if $data.id eq 1}
			{$lang.addition.editform_help}
		{else}
			{$lang.addition.info}&nbsp;|&nbsp;{if $form.par eq "edit"}{$data.name}{else}{$lang.addition.add}{/if}
		{/if}
</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>{$lang.admin_help.area_help}
    </div>
</div>*}
{*{if $form.par eq "edit"}
		<table cellSpacing="3" cellPadding="0"><tr>
		{section name=s loop=$lang_link}
			<td align="center"><a href="#" onclick="javascript:window.open('{$lang_link[s].link}','lang_edit', 'height=750, width=1050, left=10, top=50, resizable=yes, scrollbars=yes, menubar=no,status=no'); return false;" class=privacy_link>{$lang_link[s].name}</a></td>
			{if !$smarty.section.s.last}
			<td align="center" valign="middle" class="main_content_text">&nbsp;|&nbsp;</td>
			{/if}
		{/section}
		</tr></table>
		{/if}
*}
<div class="panel_subtabs">
	<div class="panel_content">
		<form id="area_form" name="area_form" action="{$form.action}" method="post" {if $data.id ne 1}onSubmit="return CheckChanges()"{/if} ENCTYPE="multipart/form-data" style="margin:0px">
		{$form.hiddens}
		<table border="0" cellspacing=1 cellpadding=5 width="100%">
			<tr >
			</tr>
		{if $data.id neq 1}
			<tr>
				<td colspan="2" align="left">
					<input type="text" name="name" value="{$data.name}" size="40">
					<input type="checkbox" name="status" value="1" {if $data.status}checked{/if} >&nbsp;-&nbsp;{$lang.addition.status}&nbsp;
				</td>
			</tr>
		{/if}
                    <tr valign="top">
                        <td colspan=2 align="left" width="700px" height="300px">
			        {$redactor}
                                <textarea id="description" name="code" class="redactor_wide"></textarea>
				<div id="bad_div_redactor" class="bad_div_left"></div>
			</td>
                    </tr>
                    <tr>
                        <td align="left" width="15%" class="main_header_text">{$lang.seo.seo_link}:&nbsp;</td>
                        <td align="left">
                        	<input type="text" name="seo_link" value="{$data.seo_link}">
						</td>
                    </tr>

                    <tr>
                        <td align="left" width="15%" class="main_header_text">{$lang.addition.title}:&nbsp;</td>
                        <td align="left">
                        	<input type="text" name="title" value="{$data.title}">
						</td>
                    </tr>
                    <tr>
                        <td align="left" width="15%" class="main_header_text" valign="top">{$lang.addition.description}:&nbsp;</td>
                        <td align="left">
							<textarea name="description" rows="2" cols="85">{$data.description}</textarea>
						</td>
                    </tr>
                    <tr>
                        <td align="left" width="15%" class="main_header_text" valign="top">{$lang.addition.keywords}:&nbsp;</td>
                        <td  align="left">
							<textarea name="keywords" rows="2" cols="85">{$data.keywords}</textarea>
						</td>
                    </tr>
		</table>
		</form>
	</div>
</div>
<div style="float:left;width:100%;">
		<table width="100%"><tr height="40">
			<td>
				<a href="{$form.action}" class="admin_button_major" onclick="SaveBlock('show_block','area_form'); return false;">{$lang.button.save}<span>&nbsp;</span></a>
				{if $data.id neq 1}
				&nbsp;&nbsp;<a class="admin_button_cancel" onclick="ShowBlock('show_block','{$form.back}')">{$lang.button.vip_cancel}<span>&nbsp;</span></a>
				{/if}
			</td>
			<tr><td>
				<div id="error_box" style="background: #EEF6EF;"></div>
			</td></tr>
		</tr></table>
</div>
<script>
tab_link = '{$form.back}';
{literal}
function CheckChanges(){
	bp = document.forms['area_form'];
	if(bp.name.value == ""){
		alert({/literal}"{$err.invalid_feilds|escape:javascript} {$lang.addition.name|escape:javascript}"{literal}); return false;
	}
	return true;
}
{/literal}
</script>
{*
{include file="$admingentemplates/admin_bottom.tpl"}*}