stop.php

来自「通达OA2007SE源代码 非常好的」· PHP 代码 · 共 75 行

PHP
75
字号
<?
  include_once 'inc/auth.php';
  include_once 'inc/utility_sms1.php';
  include_once '../prcs_role.php';
  if (!run_role ($RUN_ID, 0))
  {
    exit ();
  }
  echo '
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body class="bodycolor" topmargin="5">
';
  $CUR_TIME = date ('Y-m-d H:i:s', time ());
  $query = (((((((((''.'update FLOW_RUN_PRCS set PRCS_FLAG=\'4\',DELIVER_TIME=\'').$CUR_TIME).'\' WHERE RUN_ID=\'').$RUN_ID).'\' and PRCS_ID=\'').$PRCS_ID).'\' and USER_ID=\'').$LOGIN_USER_ID).'\'');
  exequery ($connection, $query);
  if ($OP_FLAG)
  {
    $query = (((((''.'update FLOW_RUN_PRCS set PRCS_FLAG=\'4\' WHERE RUN_ID=').$RUN_ID).' and PRCS_ID=').$PRCS_ID).' ');
    exequery ($connection, $query);
  }
  else
  {
    $query = (((((''.'SELECT 1 from FLOW_RUN_PRCS WHERE RUN_ID=\'').$RUN_ID).'\' AND PRCS_ID=').$PRCS_ID).' AND OP_FLAG=\'0\' AND PRCS_FLAG<>\'4\'');
    $cursor = exequery ($connection, $query);
    if (!mysql_fetch_array ($cursor))
    {
      $query = ((''.'SELECT RUN_NAME from FLOW_RUN WHERE RUN_ID=').$RUN_ID);
      $cursor = exequery ($connection, $query);
      if ($ROW = mysql_fetch_array ($cursor))
      {
        $RUN_NAME = $ROW['RUN_NAME'];
        $FLOW_ID1 = $ROW['FLOW_ID'];
      }
      $query = (((((''.'SELECT USER_ID from FLOW_RUN_PRCS WHERE RUN_ID=\'').$RUN_ID).'\' AND PRCS_ID=').$PRCS_ID).' AND OP_FLAG=\'1\' AND PRCS_FLAG<>\'4\'');
      $cursor = exequery ($connection, $query);
      if ($ROW = mysql_fetch_array ($cursor))
      {
        $USER_ID = $ROW['USER_ID'];
      }
      $query = (((''.'SELECT FLOW_TYPE from FLOW_TYPE WHERE FLOW_ID=\'').$FLOW_ID1).'\'');
      $cursor = exequery ($connection, $query);
      if ($ROW = mysql_fetch_array ($cursor))
      {
        $FLOW_TYPE = $ROW['FLOW_TYPE'];
      }
      if (($FLOW_TYPE == '1'))
      {
        $REMIND_URL = ((((((''.'workflow/list/turn/turn_next.php?RUN_ID=').$RUN_ID).'&FLOW_ID=').$FLOW_ID).'&PRCS_ID=').$PRCS_ID);
      }
      else
      {
        $REMIND_URL = ((((((''.'workflow/list/turn/turn_next_free.php?RUN_ID=').$RUN_ID).'&FLOW_ID=').$FLOW_ID).'&PRCS_ID=').$PRCS_ID);
      }
      $SMS_CONTENT = (('工作流已会签完毕:'.$RUN_NAME).'
您作为主办人,可以转交下一步骤');
      send_sms ('', $LOGIN_USER_ID, $USER_ID, 7, $SMS_CONTENT, $REMIND_URL);
    }
  }
  if (($OP == 'MANAGE'))
  {
    header ('location: ../manage');
  }
  else
  {
    header (((''.'location: index.php?FLOW_ID=').$FLOW_ID));
  }
  echo '
</body>
</html>';
?>

⌨️ 快捷键说明

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