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

📄 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 ( $PLAN_DATE != "" )
{
	$TIME_OK = is_date( $PLAN_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?PLAN_ID=";
		echo $PLAN_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 ( $PLAN_ID == "" )
{
	$query = "insert into MANU_PLAN(USER_ID,PLAN_NO,PLAN_DATE,PLAN_TYPE,PLAN_DEPT,PLAN_DESC,SEND_TIME) values ('".$LOGIN_USER_ID."','{$PLAN_NO}','{$PLAN_DATE}','{$PLAN_TYPE}','{$PLAN_DEPT}','{$PLAN_DESC}','{$SEND_TIME}')";
}
else
{
	$query = "update MANU_PLAN set PLAN_NO='".$PLAN_NO."',PLAN_DATE='{$PLAN_DATE}',PLAN_TYPE='{$PLAN_TYPE}',PLAN_DEPT='{$PLAN_DEPT}',PLAN_DESC='{$PLAN_DESC}',SEND_TIME='{$SEND_TIME}' where PLAN_ID={$PLAN_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 + -