?? leave_confirm.php
字號:
<?
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 H:i:s', time ());
if ($STATUS == '')
{
$query = 'update ATTEND_LEAVE set ALLOW=\'' . $CONFIRM . '\' where LEAVE_ID=' . $LEAVE_ID;
}
else
{
$query = 'update ATTEND_LEAVE set LEAVE_DATE2=\'' . $CUR_DATE . '\',STATUS=\'2\' where LEAVE_ID=' . $LEAVE_ID;
}
exequery ($connection, $query);
if ($STATUS == '')
{
if ($CONFIRM == 1)
{
$SMS_CONTENT = '您的請假申請已被批準!';
}
else
{
$SMS_CONTENT = '您的請假申請未被批準!';
}
}
else
{
$SMS_CONTENT = '您的銷假申請已被批準,已銷假!';
}
send_sms ('', $LOGIN_USER_ID, $USER_ID, 6, $SMS_CONTENT);
header ('location: index.php');
echo '
</body>
</html>
';
?>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -