📄 function_form.ihtml
字号:
<h2><?php echo $function_form_lbl ?></H2>
<?php if ($function_id) {
$q = "SELECT * from function where function_id='$function_id'";
$db->query($q);
$db->next_record();
}
?>
<form method="post" action="<?php $sess->purl(SECUREURL) ?>" name="">
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td width="24%" ALIGN="RIGHT"><?php echo $function_form_name ?>:</td>
<td width="76%">
<input type="text" name="function_name" value="<?php $db->sp("function_name") ?>">
<input type="hidden" name="function_id" value="<?php echo $function_id ?>">
<input type="hidden" name="module_id" value="<?php echo $module_id ?>">
<input type="hidden" name="func" value="<?php if ($function_id) echo "functionUpdate"; else echo "functionAdd"; ?>">
<input type="hidden" name="page" value="<?php echo $modulename ?>/function_list">
<b><?php
$sess->hidden_session();
?></b> </td>
</tr>
<tr>
<td width="24%" ALIGN="RIGHT"><?php echo $function_form_class ?>:</td>
<td width="76%">
<input type="text" name="function_class" value="<?php $db->sp("function_class") ?>">
</td>
</tr>
<tr>
<td width="24%" ALIGN="RIGHT"><?php echo $function_form_method ?>:</td>
<td width="76%">
<input type="text" name="function_method" value="<?php $db->sp("function_method") ?>">
</td>
</tr>
<tr>
<td width="24%" ALIGN="RIGHT"><?php echo $function_form_perms ?>:</td>
<td width="76%">
<input type="text" name="function_perms" value="<?php $db->sp("function_perms") ?>">
</td>
</tr>
<tr>
<td valign="top" colspan="2" ALIGN="RIGHT"> </td>
</tr>
<tr>
<td valign="top" ALIGN="RIGHT"><?php echo $function_form_description ?>:</td>
<td valign="top"> </td>
</tr>
<tr align="center">
<td valign="top" colspan="2">
<textarea name="function_description" wrap="VIRTUAL" cols="60" rows="10"><?php $db->sp("function_description") ?></textarea>
</td>
</tr>
<tr>
<td valign="top" colspan="2" align="center"> <?php if ($function_id) { ?>
<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>
<td width="50%"><a onClick="return confirm('Are you sure you want to delete this record?')" href="<?php $sess->purl(SECUREURL . "?page=$modulename/function_list&module_id=$module_id&func=functionDelete&function_id=$function_id") ?>"><img src="/phpshop/ps_image/delete.gif" width="50" height="16" border="0"></a>
</td>
</tr>
</table>
<?php }
else { ?>
<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>
<td width="50%"><a href="<?php $sess->purl(SECUREURL . "?page=$modulename/function_form&function_id"); ?>"><img src="/phpshop/ps_image/clear.gif" width="50" height="16" border="0"></a>
</td>
</tr>
</table>
<?php } ?> </td>
</tr>
</table>
</form>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -