⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 edit.php

📁 极限网络智能办公系统—MYOA26—100%—源程序。
💻 PHP
字号:
<?php

include_once( "inc/auth.php" );
include_once( "../prcs_role.php" );
if ( !prcs_role( $FLOW_ID, 1 ) )
{
	exit( );
}
$CUR_TIME = date( "Y-m-d H:i:s", time( ) );
$query = "SELECT * from FLOW_TYPE WHERE FLOW_ID={$FLOW_ID}";
$cursor1 = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor1 ) )
{
	$FLOW_NAME = $ROW['FLOW_NAME'];
}
$RUN_NAME = $FLOW_NAME."(".$CUR_TIME.")";
echo "\r\n<html>\r\n<head>\r\n<title>新建工作</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.RUN_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.RUN_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=\"/image";
echo "s/green_arrow.gif\" align=\"absmiddle\">";
echo "<s";
echo "pan class=\"big3\"> 然后,填写该工作的文号或说明</span><br>\r\n    </td>\r\n  </tr>\r\n</table>\r\n\r\n<br>\r\n<table border=\"0\" width=\"450\" cellpadding=\"2\" cellspacing=\"1\" align=\"center\" bgcolor=\"#000000\" class=\"small\">\r\n  <form action=\"insert.php\" method=\"post\" target=\"_parent\" name=\"form1\" onSubmit=\"return check_form();\">\r\n    <tr>\r\n      <td nowrap class=\"TableData\">流程名称:</td>\r\n      <td class=\"TableData\">\r\n      ";
echo "  ";
echo "<s";
echo "elect name=\"FLOW_ID\" class=\"BigStatic\">\r\n";
$query = "SELECT * from FLOW_TYPE where FLOW_ID={$FLOW_ID}";
$cursor = exequery( $connection, $query );
while ( $ROW = mysql_fetch_array( $cursor ) )
{
	$FLOW_ID = $ROW[0];
	$FLOW_NAME = $ROW[1];
	echo "          <option value=\"";
	echo $FLOW_ID;
	echo "\">";
	echo $FLOW_NAME;
	echo "</option>\r\n";
}
echo "        </select>\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=\"RUN_NAME\" size=\"40\" maxlength=\"100\" class=\"BigInput\" value=\"";
echo $RUN_NAME;
echo "\">\r\n      </td>\r\n    </tr>\r\n\r\n    <tr align=\"center\" class=\"TableControl\">\r\n      <td colspan=\"2\" nowrap>\r\n        <input type='hidden' value=\"";
echo $RUN_ID;
echo "\" name=\"RUN_ID\">\r\n        <input type=\"submit\"  value=\"保存\" class=\"BigButton\" name=\"submit\">&nbsp;&nbsp;\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\r\n</body>\r\n</html>\r\n";
?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -