📄 turn_next_free.php
字号:
<?php
include_once( "inc/auth.php" );
include_once( "../prcs_role.php" );
if ( !run_role( $RUN_ID, $PRCS_ID ) )
{
exit( );
}
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";
echo "<s";
echo "cript Language=\"JavaScript\">\r\nfunction SubmitForm(){\r\n IsTrue = CheckForm();\r\n if(IsTrue == true){\r\n document.form1.submit();\r\n }\r\n else {\r\n //do nothing\r\n }\r\n}\r\nfunction CheckForm()\r\n{\r\n if (document.form1.TO_ID.value==\"\")\r\n { alert(\"请指定下一步骤经办人!\");\r\n return (false);\r\n }\r\n return (true);\r\n}\r\n\r\nfunction LoadWindow()\r\n{\r\n URL=\"/module/user_select_single\";\r";
echo "\n loc_x=document.body.scrollLeft+event.clientX-event.offsetX-100;\r\n loc_y=document.body.scrollTop+event.clientY-event.offsetY+200;\r\n window.showModalDialog(URL,self,\"edge:raised;scroll:0;status:0;help:0;resizable:1;dialogWidth:320px;dialogHeight:265px;dialogTop:\"+loc_y+\"px;dialogLeft:\"+loc_x+\"px\");\r\n}\r\n</script>\r\n</head>\r\n\r\n<body class=\"bodycolor\" topmargin=\"5\">\r\n\r\n";
$connection = openconnection( );
$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'];
}
echo "\r\n<table border=\"0\" width=\"100%\" cellspacing=\"1\" cellpadding=\"5\">\r\n <tr class=\"tablehead1\">\r\n <td>\r\n ";
echo $FLOW_NAME;
echo "</td>\r\n </tr>\r\n <tr class=\"tablehead2\">\r\n <td><img src=\"/images/button/turnnext.gif\" border=\"0\" onClick=\"SubmitForm()\" title=\"提交\" style=\"cursor:hand \">\r\n <img src=\"/images/button/return.gif\" border=\"0\" accesskey=\"B\" title=\"返回\" onClick=\"history.back();\" style=\"cursor:hand \"></td>\r\n </tr>\r\n</table>\r\n\r\n\r\n<form action=\"turn_submit_free.php\" method=\"post\" name=\"form1\">\r\n<table border=\"0\" cellspacin";
echo "g=\"1\" cellpadding=\"5\" align=\"center\" width=\"100%\">\r\n\r\n <tr class=\"TableLine2\">\r\n <td nowrap colspan=\"2\"> </td>\r\n </tr>\r\n\r\n";
$query = "SELECT * from FLOW_RUN_PRCS where RUN_ID={$RUN_ID} order by PRCS_ID";
$cursor = exequery( $connection, $query );
while ( $ROW = mysql_fetch_array( $cursor ) )
{
$PRCS_ID_I = $ROW['PRCS_ID'];
$PRCS_USER = $ROW['USER_ID'];
$query1 = "SELECT * from USER where USER_ID='{$PRCS_USER}'";
$cursor1 = exequery( $connection, $query1 );
if ( $ROW = mysql_fetch_array( $cursor1 ) )
{
$PRCS_USER1 = $ROW['USER_NAME'];
}
echo " <tr class=\"TableLine1\">\r\n <td nowrap width=\"200\">第<b>";
echo "<s";
echo "pan class=big4>";
echo $PRCS_ID_I;
echo "</span></b>步:";
echo $PRCS_NAME;
if ( $PRCS_ID_I == $PRCS_ID )
{
echo "(当前步骤)";
}
echo "</td>\r\n <td nowrap>";
echo $PRCS_USER1;
echo "</td>\r\n </tr>\r\n";
}
echo "\r\n <tr class=\"TableLine2\">\r\n <td nowrap width=\"200\">第<b>";
echo "<s";
echo "pan class=big4>";
echo $PRCS_ID_I + 1;
echo "</span></b>步:";
echo $PRCS_NAME;
echo "(下一步骤)</td>\r\n <td nowrap>请指定下一步骤的经办人:<br>\r\n <input type=\"text\" name=\"TO_NAME\" size=\"10\" class=\"BigInput\" readonly> \r\n <input type=\"button\" value=\"指 定\" class=\"SmallButton\" onClick=\"LoadWindow()\" title=\"指定经办人\" name=\"button\">\r\n <input type=\"hidden\" name=\"TO_ID\" value=\"\">\r\n <input type=\"hidden\" name=\"RUN_ID\" value=\"";
echo $RUN_ID;
echo "\">\r\n <input type=\"hidden\" name=\"OP\" value=\"";
echo $OP;
echo "\">\r\n <input type=\"hidden\" name=\"PRCS_ID\" value=\"";
echo $PRCS_ID;
echo "\">\r\n <input type=\"hidden\" name=\"PRCS_USER\" value=\"";
echo $PRCS_USER;
echo "\">\r\n </td>\r\n </tr>\r\n\r\n</table>\r\n\r\n\r\n";
if ( !( $FLOW_PRCS == $PRCS_MAX ) )
{
echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"5\">\r\n ";
if ( ifsendmbsms( ) )
{
echo " <tr class=\"small\" id=\"mbremind\">\r\n <td width=\"20%\" nowrap class=\"TableLine1\">手机短信提醒:</td>\r\n <td class=\"TableLine1\"><input type=\"checkbox\" name=\"MOBILE_SMS_REMIND\" onClick=\"ShowMbSmsContent();\" value=\"1\"></td>\r\n </tr>\r\n <tr class=\"small\" id=\"mbcontent\">\r\n <td nowrap class=\"TableLine1\">手机短信内容:</td>\r\n <td class=\"TableLine1\"><textarea cols=30 name=\"mobilect\" rows=3 class=\"BigInput\" wra";
echo "p=\"on\" onpaste=\"return checkStrLength();\" onKeyUp=\"return checkStrLength();\">\r\n </textarea>\r\n <input type=\"button\" name=\"签名\" value=\"签名\" class=\"SmallButton\" onClick=\"getUserName();\"></td>\r\n </tr>\r\n ";
}
echo "</table>\r\n";
}
echo "</form>\r\n</body>\r\n</html>\r\n";
echo "<s";
echo "cript>\r\nvar strmax=60;\r\nvar smstype = \"待办流程\";\r\nfunction ShowMbSmsContent(){\r\n cc = document.getElementById('MOBILE_SMS_REMIND');\r\n ck = document.getElementById('mbcontent');\r\n if (cc.checked == true){\r\n ck.style.display = '';\r\n\t\tgetMbc();\r\n\t}\r\n\telse{\r\n\t ck.style.display = 'none';\r\n\t}\r\n}\r\n";
if ( ifsendmbsms( ) && !( $FLOW_PRCS == $PRCS_MAX ) )
{
echo "document.getElementById('mbcontent').style.display = 'none';\r\n";
}
echo "\r\n\r\nfunction checkStrLength()\r\n{ \r\n mbc = document.getElementById('mobilect');\r\n\tif (mbc.value.length > strmax){\r\n\t mbc.value = mbc.value.substr(0,strmax);\r\n\t}\r\n \r\n}\r\n\r\nfunction getMbc(){\r\n suj = \"";
echo $FLOW_NAME;
echo "\";\r\n\tmbc = document.getElementById('mobilect');\r\n mbc.value = smstype+\"-\"+suj;\r\n\tif (mbc.value.length > strmax){\r\n\t mbc.value = mbc.value.substr(0,strmax);\r\n\t}\r\n}\r\n\r\nfunction getUserName()\r\n{\r\n mbc = document.getElementById('mobilect');\r\n mbc.value+=\"--";
echo $_SESSION['LOGIN_USER_NAME'];
echo "\";\r\n checkStrLength();\r\n mbc.focus();\r\n}\r\n\r\n</script>\r\n\r\n";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -