📄 insert.php
字号:
<?php
include_once( "inc/auth.php" );
include_once( "inc/check_type.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";
if ( $W_START != "" )
{
$TIME_OK = is_date( $W_START );
if ( !$TIME_OK )
{
message( "错误", "开始时间格式不对,应形如 1999-1-2" );
button_back( );
exit( );
}
}
if ( $W_END != "" )
{
$TIME_OK = is_date( $W_END );
if ( !$TIME_OK )
{
message( "错误", "结束时间格式不对,应形如 1999-1-2" );
button_back( );
exit( );
}
}
if ( $W_START != "" && $W_END != "" && compare_date_time( $W_END, $W_START ) <= 0 )
{
message( "错误", "开始时间不能小于结束时间!" );
button_back( );
exit( );
}
$PARA_VALUE = $W_START.",".$W_END;
$query = "update SYS_PARA set PARA_VALUE='".$PARA_VALUE."' where PARA_NAME='LOCK_TIME'";
exequery( $connection, $query );
$query = "update SYS_PARA set PARA_VALUE='".$DAYS."' where PARA_NAME='LOCK_DATE_DAY'";
exequery( $connection, $query );
message( "提示", "设置成功!" );
button_back( );
echo "\r\n</body>\r\n</html>\r\n";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -