📄 out.php
字号:
<?php
include_once( "inc/auth.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";
$connection = openconnection( );
$CUR_TIME = date( "Y-m-d H:i:s", time( ) );
$query = "insert into ATTEND_OUT(USER_ID,LEADER_ID,OUT_TYPE,SUBMIT_TIME,OUT_TIME1,OUT_TIME2,ALLOW) values ('{$LOGIN_USER_ID}','{$LEADER_ID}','{$OUT_TYPE}','{$CUR_TIME}','{$OUT_TIME1}','{$OUT_TIME2}','0')";
exequery( $connection, $query );
$query = "SELECT * from USER where USER_ID='{$LOGIN_USER_ID}'";
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
$USER_NAME = $ROW['USER_NAME'];
}
$SMS_CONTENT = $USER_NAME."提交外出申请,请批示!";
send_sms( $connection, $LOGIN_USER_ID, $LEADER_ID, 6, $SMS_CONTENT );
header( "location: index.php" );
echo "\r\n</body>\r\n</html>\r\n";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -