?? leave_confirm.php
字號(hào):
<?php
include_once( "inc/auth.php" );
include_once( "inc/utility_all.php" );
include_once( "inc/utility_sms1.php" );
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_DATE = date( "Y-m-d H:i:s", time( ) );
if ( $STATUS == "" )
{
if ( $CONFIRM == 2 )
{
$query = "update ATTEND_LEAVE set ALLOW='".$CONFIRM."',REASON='{$REASON}' where LEAVE_ID='{$LEAVE_ID}'";
}
else
{
$query = "update ATTEND_LEAVE set ALLOW='".$CONFIRM."' where LEAVE_ID='{$LEAVE_ID}'";
}
}
else
{
$query = "update ATTEND_LEAVE set STATUS='2' where LEAVE_ID=".$LEAVE_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 ( $STATUS == "" )
{
if ( $CONFIRM == 1 )
{
$SMS_CONTENT = "您的請(qǐng)假申請(qǐng)已被批準(zhǔn)!";
}
else
{
$SMS_CONTENT = "您的請(qǐng)假申請(qǐng)未被批準(zhǔn)!";
}
}
else
{
$SMS_CONTENT = "您的銷假申請(qǐng)已被批準(zhǔn),已銷假!";
}
if ( find_id( $SMS_REMIND1, 6 ) )
{
send_sms( "", $LOGIN_USER_ID, $USER_ID, 6, $SMS_CONTENT );
}
if ( $MOBILE_FLAG == "1" )
{
if ( $CONFIRM == 1 )
{
$SMS_CONTENT = "您的請(qǐng)假申請(qǐng)已被批準(zhǔn)!";
}
else
{
$SMS_CONTENT = "您的請(qǐng)假申請(qǐng)未被批準(zhǔn)!";
}
if ( find_id( $SMS2_REMIND1, 6 ) )
{
send_mobile_sms_user( "", $LOGIN_USER_ID, $USER_ID, $SMS_CONTENT, 6 );
}
}
if ( $CONFIRM == 2 )
{
message( "提示", "操作成功" );
echo "<br>\r\n<script>\r\n opener.location.reload();\r\n</script>\r\n<center>\r\n\t<input type=\"button\" class=\"BigButton\" value=\"關(guān)閉\" onClick=\"window.close();\" title=\"關(guān)閉窗口\">\r\n</center>\r\n";
}
else
{
header( "location: index.php" );
}
echo "\r\n</body>\r\n</html>\r\n";
?>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -