File size: 1.12Kb
{include file="admin_common_header.tpl"}
<!--{include file="admin_add_form_jscheck.tpl"}-->
{if $js_function}
{$js_function}
{/if}
<form action="{$smarty.server.PHP_SELF}" method="post" id="data_form" onSubmit="return CheckForm();" enctype="multipart/form-data">
<input type="hidden" name="id" value="{$id}">
<blockquote>
<table border="0" width="{$table_width}">
<tr>
<td>
<table>
{foreach from=$fields item=value key=key}
{if $key neq "custom_content"}
<tr>
<td><input type="text" size="5" name="{$value[0]}" value="{$value[1]}"></td><td>{$value[2]}:</td><td><input type="text" size="10" name="{$value[2]}" value="{$value[3]}"></td>
</tr>
{/if}
{/foreach}
</table>
</td>
</tr>
<tr>
<td>
{if not $buttons.deny_save}
<input type="submit" name="subm" value="{if $id>0}Сохранить{else}Добавить{/if}" size="50">
{/if}
<input type="button" name="cancel" value="Отмена" onClick="document.location.href='{if $index_page}{$index_page}{else}./index.php?l_pager{/if}';"></td>
</tr>
</table>
</form>
</blockquote>
{if $additional_info}
{$additional_info}
{/if}
{include file="admin_common_footer.tpl"}