bnbweb/temp/compiled/admin/search_info.htm.php
2022-11-15 01:31:15 +08:00

59 lines
2.1 KiB
PHP
Executable File

<!-- $Id: category_info.htm 16752 2009-10-20 09:59:38Z wangleisvn $ -->
<?php echo $this->fetch('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='<?php echo htmlspecialchars($this->_var['search']['name']); ?>' size='27' /> <font color="red">*</font>
</td>
</tr>
<tr>
<td class="label">排序:</td>
<td>
<input type="text" name='sort_order' <?php if ($this->_var['search']['sort_order']): ?>value='<?php echo $this->_var['search']['sort_order']; ?>'<?php else: ?> value="50"<?php endif; ?> size="15" />
</td>
</tr>
<tr>
<td class="label">是否有效:</td>
<td>
<input type="radio" name="enable" value="1" <?php if ($this->_var['search']['enable'] != 0): ?> checked="true"<?php endif; ?>/> <?php echo $this->_var['lang']['yes']; ?>
<input type="radio" name="enable" value="0" <?php if ($this->_var['search']['enable'] == 0): ?> checked="true"<?php endif; ?> /> <?php echo $this->_var['lang']['no']; ?>
</td>
</tr>
</table>
<div class="button-div">
<input type="submit" value="確定" />
<input type="reset" value="重置" />
</div>
<input type="hidden" name="act" value="<?php echo $this->_var['form_act']; ?>" />
<input type="hidden" name="id" value="<?php echo $this->_var['search']['id']; ?>" />
</form>
</div>
<?php echo $this->smarty_insert_scripts(array('files'=>'../js/utils.js,validator.js')); ?>
<script language="JavaScript">
<!--
document.forms['theForm'].elements['name'].focus();
/**
* 检查表单输入的数据
*/
function validate()
{
validator = new Validator("theForm");
validator.required("name",'名稱未填');
return validator.passed();
}
onload = function()
{
}
//-->
</script>
<?php echo $this->fetch('pagefooter.htm'); ?>