📄 edit.php
字号:
<?php
include_once( "inc/auth.php" );
if ( $ID != "" )
{
$TITLE = "编辑流程步骤 - 基本属性";
}
else
{
$TITLE = "新建流程步骤";
}
echo "\r\n<html>\r\n<head>\r\n<title>";
echo $TITLE;
echo "</title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n\r\n";
echo "<S";
echo "CRIPT language=javascript>\r\nfunction check_form()\r\n{\r\n if(document.form1.PRCS_NAME.value == \"\")\r\n {\r\n alert(\"步骤名称不能为空!\");\r\n return false;\r\n }\r\n\r\n return true;\r\n}\r\n</SCRIPT>\r\n</head>\r\n\r\n<body class=\"bodycolor\" topmargin=\"5\" onload=\"document.form1.PRCS_NAME.focus();\">\r\n\r\n<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\" class=\"small\">\r\n <tr>\r\n <td class=\"Big\"><img src=\"";
echo "/images/edit.gif\" WIDTH=\"22\" HEIGHT=\"20\" align=\"absmiddle\">";
echo "<s";
echo "pan class=\"big3\"> ";
echo $TITLE;
echo "</span><br>\r\n </td>\r\n </tr>\r\n</table>\r\n\r\n";
$connection = openconnection( );
if ( $ID != "" )
{
$query = "SELECT * from FLOW_PROCESS where ID={$ID}";
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
$PRCS_ID = $ROW['PRCS_ID'];
$PRCS_NAME = $ROW['PRCS_NAME'];
$PRCS_TO = $ROW['PRCS_TO'];
}
}
else
{
$query = "SELECT max(PRCS_ID) from FLOW_PROCESS WHERE FLOW_ID={$FLOW_ID}";
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
$PRCS_ID = $ROW[0] + 1;
}
}
echo "\r\n<hr width=\"95%\" height=\"1\" align=\"left\" class=\"big1\">\r\n\r\n<table border=\"0\" width=\"450\" cellpadding=\"2\" cellspacing=\"1\" align=\"center\" bgcolor=\"#000000\" class=\"small\">\r\n <form action=\"";
if ( $ID != "" )
{
echo "update";
}
else
{
echo "insert";
}
echo ".php\" method=\"post\" name=\"form1\" onSubmit=\"return check_form();\">\r\n <tr>\r\n <td nowrap class=\"TableData\">序号:</td>\r\n <td class=\"TableData\">\r\n <input type=\"text\" name=\"PRCS_ID\" size=\"2\" maxlength=\"10\" class=\"BigInput\" value=\"";
echo $PRCS_ID;
echo "\">\r\n </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableData\">步骤名称:</td>\r\n <td class=\"TableData\">\r\n <input type=\"text\" name=\"PRCS_NAME\" size=\"30\" maxlength=\"100\" class=\"BigInput\" value=\"";
echo $PRCS_NAME;
echo "\">\r\n </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableData\">下一步骤:</td>\r\n <td class=\"TableData\">\r\n <input type=\"text\" name=\"PRCS_TO\" size=\"30\" class=\"BigInput\" value=\"";
echo $PRCS_TO;
echo "\"><br>\r\n 可以是多个步骤,用英文逗号隔开,格式如 2,3<br>\r\n 可以为空,则系统自动按顺序寻找下一步骤\r\n </td>\r\n </tr>\r\n <tr align=\"center\" class=\"TableControl\">\r\n <td colspan=\"2\" nowrap>\r\n <input type='hidden' value=\"";
echo $FLOW_ID;
echo "\" name=\"FLOW_ID\">\r\n <input type='hidden' value=\"";
echo $ID;
echo "\" name=\"ID\">\r\n <input type=\"submit\" value=\"保存\" class=\"BigButton\" name=\"submit\"> \r\n <input type=\"button\" value=\"返回\" class=\"BigButton\" name=\"back\" onClick=\"history.back();\">\r\n </td>\r\n </tr>\r\n </form>\r\n</table>\r\n</body>\r\n</html>";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -