📄 %%53^53c^53cdf652%%gcate_edit.tpl.html.php
字号:
<?php /* Smarty version 2.6.19, created on 2008-08-04 10:22:27 compiled from gcate_edit.tpl.html */ ?><form action="index.php" method="post" enctype="multipart/form-data" onsubmit="return sbcheck(this);">
<table width="100%" border="0" cellspacing="1" cellpadding="8" class="fdsmain" id="upTable">
<tr>
<td width="150" align="right">Category Name * </td>
<td class="editArea">
<input type="text" name="cateName" value="<?php echo $this->_tpl_vars['ONE']['gName']; ?>" size="20">
</td>
</tr>
<tr>
<td width="150" align="right">Category Description </td>
<td class="editArea">
<textarea name="cateDesc" cols="34" rows="3"><?php echo $this->_tpl_vars['ONE']['gDesc']; ?></textarea>
</td>
</tr>
<tr>
<td align="right">Category Image * </td>
<td class="editArea"><input type="file" name="pic1"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="8" class="fdsmain">
<tr>
<td width="150"></td>
<td><input type="submit" value=" Save Category "></td>
</tr>
</table>
<input type="hidden" name="id" value="<?php echo $this->_tpl_vars['ONE']['ID']; ?>">
<input type="hidden" name="cate" value="save">
<input type="hidden" name="action" value="gcate">
</form>
<script>
function sbcheck(form){
if(form.cateName.value==''){
alert('Category name is empty.');
form.cateName.focus();
return false;
}
<?php if ($this->_tpl_vars['ONE']['ID'] == 0): ?>
if(form.pic1.value==''){
alert('Category Image is empty.');
form.pic1.focus();
return false;
}<?php endif; ?>
}
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -