📄 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";
$CUR_TIME = date( "Y-m-d H:i:s", time( ) );
$connection = openconnection( );
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;
$TOK = strtok( $PRCS_USER, "," );
while ( $TOK != "" )
{
if ( $TOK == $PRCS_OP_USER )
{
$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) values ({$RUN_ID},{$PRCS_ID_NEXT},'{$TOK}','1',{$FLOW_PRCS},'{$OP_FLAG}')";
exequery( $connection, $query );
$SMS_CONTENT = "工作流提醒:您有新的工作需要办理!";
$SEND_TIME = date( "Y-m-d H:i:s", time( ) );
$query1 = "insert into SMS(FROM_ID,TO_ID,SMS_TYPE,CONTENT,SEND_TIME,REMIND_FLAG) values ('{$LOGIN_USER_ID}','{$TOK}','7','{$SMS_CONTENT}','{$SEND_TIME}','1')";
exequery( $connection, $query1 );
$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 ( $OP == "MANAGE" )
{
$PRCS_ID_PREV = $PRCS_ID - 1;
$query = "update FLOW_RUN_PRCS set PRCS_FLAG='4' WHERE RUN_ID={$RUN_ID} AND PRCS_ID={$PRCS_ID_PREV}";
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 + -