evection_confirm.php

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

PHP
80
字号
<?
  include_once 'inc/auth.php';
  include_once 'inc/utility_all.php';
  include_once 'inc/utility_sms1.php';
  echo '
<html>
<head>
<title>出差批示</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body class="bodycolor" topmargin="5">
';
  if (($CONFIRM == 2))
  {
    $query = (((((((''.'update ATTEND_EVECTION set ALLOW=\'').$CONFIRM).'\',NOT_REASON=\'').$NOT_REASON).'\' where EVECTION_ID=\'').$EVECTION_ID).'\'');
  }
  else
  {
    $query = (((((''.'update ATTEND_EVECTION set ALLOW=\'').$CONFIRM).'\' where EVECTION_ID=\'').$EVECTION_ID).'\'');
  }
  exequery ($connection, $query);
  $query = 'select * from SYS_PARA where PARA_NAME=\'SMS_REMIND\'';
  $cursor = exequery ($connection, $query);
  if ($ROW = mysql_fetch_array ($cursor))
  {
    $PARA_VALUE = $ROW['PARA_VALUE'];
  }
  $SMS_REMIND1 = substr ($PARA_VALUE, 0, strpos ($PARA_VALUE, '|'));
  $SMS2_REMIND1 = substr ($PARA_VALUE, (strpos ($PARA_VALUE, '|') + 1));
  if (($CONFIRM == 1))
  {
    $SMS_CONTENT = '您的出差申请已被批准!';
  }
  else
  {
    $SMS_CONTENT = '您的出差申请未被批准!';
  }
  if (find_id ($SMS_REMIND1, 6))
  {
    send_sms ('', $LOGIN_USER_ID, $USER_ID, 6, $SMS_CONTENT, $REMIND_URL);
  }
  if (($MOBILE_FLAG == '1'))
  {
    if (($CONFIRM == 1))
    {
      $SMS_CONTENT = '您的出差申请已被批准!';
    }
    else
    {
      $SMS_CONTENT = '您的出差申请未被批准!';
    }
    if (find_id ($SMS2_REMIND1, 6))
    {
      send_mobile_sms_user ('', $LOGIN_USER_ID, $USER_ID, $SMS_CONTENT, 6);
    }
  }
  if (($CONFIRM == 2))
  {
    message ('提示', '操作成功');
    echo '<br>
';
    echo '<s';
    echo 'cript>
   opener.location.reload();
</script>
<center>
	<input type="button" class="BigButton" value="关闭" onClick="window.close();" title="关闭窗口">
</center>
';
  }
  else
  {
    header ('location: index.php');
  }
  echo '
</body>
</html>
';
?>

⌨️ 快捷键说明

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