⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 add.php

📁 极限网络智能办公系统 - Office Automation 2008 官方100% 源码
💻 PHP
字号:
<?php
 

include_once( "inc/auth.php" );
include_once( "inc/utility_sms1.php" );
include_once( "inc/check_type.php" );
include_once( "inc/utility_all.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";
if ( $TASK_DATE != "" )
{
	$TIME_OK = is_date( $TASK_DATE );
	if ( !$TIME_OK )
	{
		message( "错误", "日期格式不对,应形如 1999-1-2" );
		echo "\r\n<br>\r\n<div align=\"center\">\r\n <input type=\"button\" value=\"返回\" class=\"BigButton\" onClick=\"location='new.php?TASK_ID=";
		echo $TASK_ID;
		echo "&CUR_PAGE=";
		echo $CUR_PAGE;
		echo "'\">\r\n</div>\r\n\r\n";
		exit( );
	}
}
$SEND_TIME = date( "Y-m-d H:i:s", time( ) );
if ( $TASK_ID == "" )
{
	$query = "insert into MANU_TASK(USER_ID,TASK_NO,TASK_DATE,TASK_TYPE,TASK_DEPT,TASK_DESC,SEND_TIME) values ('".$LOGIN_USER_ID."','{$TASK_NO}','{$TASK_DATE}','{$TASK_TYPE}','{$TASK_DEPT}','{$TASK_DESC}','{$SEND_TIME}')";
}
else
{
	$query = "update MANU_TASK set TASK_NO='".$TASK_NO."',TASK_DATE='{$TASK_DATE}',TASK_TYPE='{$TASK_TYPE}',TASK_DEPT='{$TASK_DEPT}',TASK_DESC='{$TASK_DESC}',SEND_TIME='{$SEND_TIME}' where TASK_ID={$TASK_ID}";
}
exequery( $connection, $query );
echo "\r\n<script>\r\nparent.location=\"index.php\";\r\n</script>\r\n</body>\r\n</html>\r\n";
?>

⌨️ 快捷键说明

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