📄 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 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=\"/i";
echo "mages/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";
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'];
$PLUGIN = $ROW['PLUGIN'];
}
}
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<br>\r\n\r\n<table border=\"0\" width=\"90%\" 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";
$query = "SELECT * from FLOW_PROCESS where FLOW_ID={$FLOW_ID} order by PRCS_ID";
$cursor = exequery( $connection, $query );
while ( $ROW = mysql_fetch_array( $cursor ) )
{
$PRCS_ID1 = $ROW['PRCS_ID'];
$PRCS_NAME1 = $ROW['PRCS_NAME'];
echo " <input type=\"checkbox\" name=\"PRCS_TO_";
echo $PRCS_ID1;
echo "\" id=\"PRCS_TO_";
echo $PRCS_ID1;
echo "\" ";
if ( find_id( $PRCS_TO, $PRCS_ID1 ) )
{
echo "checked";
}
echo ">\r\n <label for=\"PRCS_TO_";
echo $PRCS_ID1;
echo "\">";
echo $PRCS_ID1;
echo "、";
echo $PRCS_NAME1;
echo "</label><br>\r\n";
}
echo "\r\n <input type=\"checkbox\" name=\"PRCS_TO_END\" id=\"PRCS_TO_END\" ";
if ( find_id( $PRCS_TO, 0 ) )
{
echo "checked";
}
echo ">\r\n <label for=\"PRCS_TO_END\"><font color=red>结束流程</font></label><br>\r\n <br>可以选择多个分支步骤,如不选择,则系统自动按顺序寻找下一步骤\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=\"PLUGIN\" size=\"30\" maxlength=\"100\" class=\"BigInput\" value=\"";
echo $PLUGIN;
echo "\"> 如:my_process.php<br>\r\n 说明:插件程序为PHP文件,请放置于webroot/general/workflow/plugin下,注意大小写。插件程序将在本步骤执行完毕后被自动调用执行。如没有对应的插件程序,请勿填写。\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='hidden' value=\"";
echo $GRAPH;
echo "\" name=\"GRAPH\">\r\n <input type=\"submit\" value=\"保存\" class=\"BigButton\" name=\"submit\"> \r\n";
if ( $GRAPH == 1 )
{
echo " <input type=\"button\" value=\"关闭\" class=\"BigButton\" name=\"back\" onClick=\"window.close();\">\r\n";
}
else
{
echo " <input type=\"button\" value=\"返回\" class=\"BigButton\" name=\"back\" onClick=\"history.back();\">\r\n";
}
echo " </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 + -