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

📄 add.php

📁 极限网络智能办公系统 - Office Automation 2008 官方100% 源码
💻 PHP
字号:
<?
include_once("inc/auth.php");
include_once("inc/utility_sms1.php");
include_once("inc/check_type.php");
include_once("inc/utility_all.php");
?>

<html>
<head>
<title>保存生产计划</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>

<body class="bodycolor" topmargin="5">

<?
//----------- 合法性校验 ---------
if($PLAN_DATE!="")
{
  $TIME_OK=is_date($PLAN_DATE);

  if(!$TIME_OK)
  { Message("错误","日期格式不对,应形如 1999-1-2");
?>

<br>
<div align="center">
 <input type="button" value="返回" class="BigButton" onClick="location='new.php?PLAN_ID=<?=$PLAN_ID?>&CUR_PAGE=<?=$CUR_PAGE?>'">
</div>

<?
    exit;
  }
}

$SEND_TIME=date("Y-m-d H:i:s",time());


//------------------- 保存生产计划 -----------------------
$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')";
exequery($connection,$query);
$PLAN_ID=mysql_insert_id();
$ITEM_COUNT=count($PRODUCT_ID);
for($I=0;$I<$ITEM_COUNT;$I++)
{
	$PRODUCT_ID1=$PRODUCT_ID[$I];
	$PLAN_COUNT1=$PLAN_COUNT[$I];
	if($PLAN_COUNT1>0)
	{
		$query="INSERT into MANU_PLAN_ITEM (PLAN_ID,PRODUCT_ID,PLAN_COUNT) values('$PLAN_ID','$PRODUCT_ID1','$PLAN_COUNT1')";
		exequery($connection,$query);
	}
}
?>

<script>
location="../index.php";
</script>
</body>
</html>

⌨️ 快捷键说明

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