📄 turn_submit_free.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";
$CUR_TIME = date( "Y-m-d H:i:s", time( ) );
$connection = openconnection( );
$PRCS_ID1 = $PRCS_ID + 1;
$query = "insert into FLOW_RUN_PRCS(RUN_ID,PRCS_ID,USER_ID,PRCS_FLAG) values ({$RUN_ID},{$PRCS_ID1},'{$TO_ID}','1')";
exequery( $connection, $query );
$SMS_CONTENT = "工作流提醒:您有新的工作需要办理!";
send_sms( $connection, $LOGIN_USER_ID, $TO_ID, 7, $SMS_CONTENT );
if ( $OP != "MANAGE" )
{
$query = "update FLOW_RUN_PRCS set DELIVER_TIME='{$CUR_TIME}',PRCS_FLAG='3' WHERE RUN_ID={$RUN_ID} and PRCS_ID={$PRCS_ID} AND USER_ID='{$LOGIN_USER_ID}'";
}
else
{
$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 ( $OP == "MANAGE" )
{
$PRCS_ID1 = $PRCS_ID - 1;
$query = "update FLOW_RUN_PRCS set PRCS_FLAG='4' WHERE RUN_ID={$RUN_ID} AND PRCS_ID={$PRCS_ID1}";
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 + -