59 lines
1.8 KiB
HTML
Executable File
59 lines
1.8 KiB
HTML
Executable File
<!-- $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="search.php" method="post" name="theForm" enctype="multipart/form-data" onsubmit="return validate()">
|
|
<table width="100%" id="general-table">
|
|
<tr>
|
|
<td class="label">名稱:</td>
|
|
<td>
|
|
<input type='text' name='name' maxlength="20" value='{$search.name|escape:html}' size='27' /> <font color="red">*</font>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label">排序:</td>
|
|
<td>
|
|
<input type="text" name='sort_order' {if $search.sort_order}value='{$search.sort_order}'{else} value="50"{/if} size="15" />
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="label">是否有效:</td>
|
|
<td>
|
|
<input type="radio" name="enable" value="1" {if $search.enable neq 0} checked="true"{/if}/> {$lang.yes}
|
|
<input type="radio" name="enable" value="0" {if $search.enable eq 0} checked="true"{/if} /> {$lang.no}
|
|
</td>
|
|
</tr>
|
|
|
|
</table>
|
|
<div class="button-div">
|
|
<input type="submit" value="確定" />
|
|
<input type="reset" value="重置" />
|
|
</div>
|
|
<input type="hidden" name="act" value="{$form_act}" />
|
|
<input type="hidden" name="id" value="{$search.id}" />
|
|
</form>
|
|
</div>
|
|
{insert_scripts files="../js/utils.js,validator.js"}
|
|
{literal}
|
|
<script language="JavaScript">
|
|
<!--
|
|
document.forms['theForm'].elements['name'].focus();
|
|
/**
|
|
* 检查表单输入的数据
|
|
*/
|
|
function validate()
|
|
{
|
|
validator = new Validator("theForm");
|
|
validator.required("name",'名稱未填');
|
|
return validator.passed();
|
|
}
|
|
|
|
onload = function()
|
|
{
|
|
}
|
|
|
|
//-->
|
|
</script>
|
|
{/literal}
|
|
{include file="pagefooter.htm"} |