out_confirm.php
来自「通达OA2007SE源代码 非常好的」· PHP 代码 · 共 30 行
PHP
30 行
<?
include_once 'inc/auth.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">
';
$CUR_DATE = date ('Y-m-d', time ());
$query = (((((((''.'update ATTEND_OUT set ALLOW=\'').$CONFIRM).'\' where USER_ID=\'').$USER_ID).'\' and to_days(SUBMIT_TIME)=to_days(\'').$CUR_DATE).'\') and STATUS=\'0\'');
exequery ($connection, $query);
if (($CONFIRM == 1))
{
$SMS_CONTENT = '您的外出申请已被批准!';
}
else
{
$SMS_CONTENT = '您的外出申请未被批准!';
}
send_sms ('', $LOGIN_USER_ID, $USER_ID, 6, $SMS_CONTENT, $REMIND_URL);
header ('location: index.php');
echo '
</body>
</html>
';
?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?