📄 turn_submit.php
字号:
<?php
include_once( "inc/auth.php" );
include_once( "inc/utility_sms1.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</head>\r\n\r\n<body class=\"bodycolor\" topmargin=\"5\">\r\n\r\n";
$query = "SELECT * from FLOW_RUN_PRCS where RUN_ID={$RUN_ID} and PRCS_ID={$PRCS_ID}";
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
$FLOW_PRCS1 = $ROW['FLOW_PRCS'];
}
$query = "SELECT * from FLOW_PROCESS where FLOW_ID={$FLOW_ID} and PRCS_ID={$FLOW_PRCS1}";
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
$PLUGIN = $ROW['PLUGIN'];
}
if ( $PLUGIN != "" )
{
$PLUGIN_FILE = "../plugin/".$PLUGIN;
if ( file_exists( $PLUGIN_FILE ) )
{
include_once( $PLUGIN_FILE );
}
}
$CUR_TIME = date( "Y-m-d H:i:s", time( ) );
if ( $FLOW_PRCS == "" )
{
$query = "update FLOW_RUN_PRCS set DELIVER_TIME='{$CUR_TIME}',PRCS_FLAG='4' WHERE RUN_ID={$RUN_ID} and PRCS_ID={$PRCS_ID}";
exequery( $connection, $query );
}
else
{
$PRCS_ID_NEXT = $PRCS_ID + 1;
if ( $TOP_FLAG == "on" )
{
$TOP_FLAG = 1;
}
else
{
$TOP_FLAG = 0;
}
$TOK = strtok( $PRCS_USER, "," );
while ( $TOK != "" )
{
if ( $TOK == $PRCS_OP_USER || $TOP_FLAG )
{
$OP_FLAG = 1;
}
else
{
$OP_FLAG = 0;
}
$query = "insert into FLOW_RUN_PRCS(RUN_ID,PRCS_ID,USER_ID,PRCS_FLAG,FLOW_PRCS,OP_FLAG,TOP_FLAG) values ({$RUN_ID},{$PRCS_ID_NEXT},'{$TOK}','1',{$FLOW_PRCS},'{$OP_FLAG}','{$TOP_FLAG}')";
exequery( $connection, $query );
$TOK = strtok( "," );
}
$query = "update FLOW_RUN_PRCS set DELIVER_TIME='{$CUR_TIME}',PRCS_FLAG='3' WHERE RUN_ID={$RUN_ID} and PRCS_ID={$PRCS_ID}";
exequery( $connection, $query );
if ( $SMS_REMIND == "on" )
{
send_sms( "", $LOGIN_USER_ID, $PRCS_USER, 7, $SMS_CONTENT );
}
if ( $SMS2_REMIND == "on" )
{
send_mobile_sms_user( "", $LOGIN_USER_ID, $PRCS_USER, $SMS_CONTENT, 7 );
}
}
if ( $OP == "MANAGE" )
{
$PRCS_ID1 = $PRCS_ID - 1;
$PRCS_ID2 = $PRCS_ID - 2;
$query = "update FLOW_RUN_PRCS set PRCS_FLAG='4' WHERE RUN_ID={$RUN_ID} AND (PRCS_ID={$PRCS_ID1} or PRCS_ID={$PRCS_ID2})";
exequery( $connection, $query );
}
if ( $OP == "MANAGE" )
{
header( "location: ../manage.php" );
}
else
{
header( "location: ../work_list.php" );
}
echo "\r\n</body>\r\n</html>";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -