📄 product_category_form.ihtml
字号:
<h2><?php echo $category_form_lbl ?></H2>
<table width="100%" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="CENTER"> <?php if ($category_id) {
$q = "SELECT * from category,category_xref ";
$q .= "where category.category_id='$category_id' ";
$q .= "AND category_xref.category_child_id=category.category_id";
$db->query($q);
$db->next_record();
} elseif (!$vars["error"]) {
$default["category_publish"] = "Y";
}
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td>
<form method="post" action="<?php $sess->purl(SECUREURL) ?>" name="">
<table width="100%" border="0" cellspacing="0" cellpadding="2" align="center">
<tr>
<td width="100%" valign="top" colspan="2">
<table width="100%" border="0" cellspacing="0" cellpadding="2" >
<tr>
<td width="38%" nowrap align="right"><?php echo $category_form_name ?>:</td>
<td width="62%">
<input type="text" name="category_name" size="18" value="<?php $db->sp('category_name') ?>">
<input type="hidden" name="category_id" value="<?php echo $category_id ?>">
<input type="hidden" name="page" value="<?php echo $modulename ?>/product_category_list">
<input type="hidden" name="func" value="<?php if ($category_id) { echo "productCategoryUpdate";} else {echo "productCategoryAdd";} ?>">
<?php
$sess->hidden_session();
?> </td>
</tr>
<tr>
<td width="38%" nowrap align="right" valign="top"><?php echo $category_form_description ?>:</td>
<td width="62%" valign="top">
<textarea name="category_description" cols="40" rows="2" wrap="VIRTUAL"><?php $db->sp('category_description') ?></textarea>
</td>
</tr>
<tr>
<td width="38%" nowrap align="right" valign="top"><?php echo $category_form_parent ?>:</td>
<td width="62%" valign="top"> <?php if (!$category_id) {
$ps_product_category->list_all("parent_category_id", $category_id);
}
else {
$ps_product_category->list_all("category_parent_id", $category_id);
} ?></td>
</tr>
<TR>
<TD ALIGN=RIGHT><?php echo $category_form_flypage ?>:</TD>
<TD VALIGN=TOP>
<INPUT TYPE=TEXT NAME=category_flypage VALUE=<?php $db->sp("category_flypage"); ?> >
</TD>
</TR>
<tr>
<td width="38%" nowrap align="right"><?php echo $category_form_publish ?>:</td>
<td width="62%"> <?php if ($db->sf("category_publish")=="Y") {
echo "<input type=checkbox name=category_publish value=Y checked>";
}
else {
echo "<input type=checkbox name=category_publish value=Y>";
}
?> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2" align="center"> </td>
</tr>
<tr>
<td colspan="2" align="center">
<table width="50%" border="0" cellspacing="0" cellpadding="0">
<tr align="center">
<td width="50%">
<input type="image" border="0" src="/phpshop/ps_image/save.gif" width="50" height="16">
</td>
<?php if ($category_id) { ?>
<td width="50%"><a onClick="return confirm('Are you sure you want to delete this record?')" href="<?php $sess->purl(SECUREURL . "?page=$modulename/product_category_list&func=productCategoryDelete&category_id=" . $db->f('category_id')); ?>"group_id?><img src="/phpshop/ps_image/delete.gif" onClick="return confirm('Are you sure you want to delete this record?')" width="50" height="16" border="0"></a>
</td>
<?php } ?> </tr>
</table>
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="CENTER"> </td>
</tr>
<tr>
<td align="CENTER"><?php
?></td>
</tr>
</table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -