insert.php

来自「极限网络智能办公系统 Office Automation V3.0官方100%源」· PHP 代码 · 共 56 行

PHP
56
字号
<?
include_once 'inc/auth.php';
include_once 'inc/check_type.php';
include_once 'inc/utility_all.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">
';
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 != '')
{
	if ($W_END != '')
	{
		if (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);
message ('提示', '设置成功!');
button_back ();
echo '
</body>
</html>
';
?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?