You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
<!-- $Id: category_info.htm 16752 2009-10-20 09:59:38Z wangleisvn $ -->
|
|
|
|
|
{include file="pageheader.htm"}
|
|
|
|
|
<!-- start add new category form -->
|
|
|
|
|
<div class="main-div">
|
|
|
|
|
<form action="presale_cat.php" method="post" name="theForm" onsubmit="return validate()">
|
|
|
|
|
<table width="100%" id="general-table">
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="label">{$lang.cat_name}:</td>
|
|
|
|
|
<td>
|
|
|
|
|
<input type='text' name='c_name' maxlength="20" value='{$cat_info.c_name|escape:html}' size='27' /> <font color="red">*</font>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="label">{$lang.parent_id}:</td>
|
|
|
|
|
<td>
|
|
|
|
|
<select name="parent_cid" id="cat_parent_id">
|
|
|
|
|
<option value="0">{$lang.cat_top}</option>
|
|
|
|
|
{$cat_select}
|
|
|
|
|
</select>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="label">{$lang.sort_order}:</td>
|
|
|
|
|
<td>
|
|
|
|
|
<input type="text" name='sort_order' {if $cat_info.sort_order}value='{$cat_info.sort_order}'{else} value="50"{/if} size="15" />
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
<div class="button-div">
|
|
|
|
|
<input type="submit" value="{$lang.button_submit}" />
|
|
|
|
|
<input type="reset" value="{$lang.button_reset}" />
|
|
|
|
|
</div>
|
|
|
|
|
<input type="hidden" name="act" value="{$form_act}" />
|
|
|
|
|
<input type="hidden" name="old_c_name" value="{$cat_info.c_name}" />
|
|
|
|
|
<input type="hidden" name="cid" value="{$cat_info.cid}" />
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
{insert_scripts files="../js/utils.js,validator.js"}
|
|
|
|
|
{literal}
|
|
|
|
|
<script language="JavaScript">
|
|
|
|
|
<!--
|
|
|
|
|
document.forms['theForm'].elements['c_name'].focus();
|
|
|
|
|
/**
|
|
|
|
|
* 检查表单输入的数据
|
|
|
|
|
*/
|
|
|
|
|
function validate()
|
|
|
|
|
{
|
|
|
|
|
validator = new Validator("theForm");
|
|
|
|
|
validator.required("c_name", catname_empty);
|
|
|
|
|
return validator.passed();
|
|
|
|
|
}
|
|
|
|
|
onload = function()
|
|
|
|
|
{
|
|
|
|
|
// 开始检查订单
|
|
|
|
|
startCheckOrder();
|
|
|
|
|
}
|
|
|
|
|
//-->
|
|
|
|
|
</script>
|
|
|
|
|
{/literal}
|
|
|
|
|
{include file="pagefooter.htm"}
|