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

📄 new.php

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

include_once( "inc/auth.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\r\n<script Language=\"JavaScript\">\r\nfunction CheckForm()\r\n{\r\n\r\n   if(document.form1.PLAN_NO.value==\"\")\r\n   { alert(\"生产计划的编号不能为空!\");\r\n     return (false);\r\n   }\r\n\r\n   document.form1.submit();\r\n}\r\n\r\nfunction clear_dept()\r\n{\r\n  document.form1.TO_NAME.value=\"\";\r\n  document.form1.TO_ID.value=\"\";\r\n}\r\n\r\nfunction LoadWindow()\r\n{\r\n  URL=\"/module/dept_select\";\r\n  loc_x=document.body.scrollLeft+event.clientX-event.offsetX-100;\r\n  loc_y=document.body.scrollTop+event.clientY-event.offsetY+170;\r\n  window.showModalDialog(URL,self,\"edge:raised;scroll:1;status:0;help:0;resizable:1;dialogWidth:400px;dialogHeight:330px;dialogTop:\"+loc_y+\"px;dialogLeft:\"+loc_x+\"px\");\r\n}\r\n\r\nfunction td_calendar(fieldname)\r\n{\r\n  myleft=document.body.scrollLeft+event.clientX-event.offsetX-80;\r\n  mytop=document.body.scrollTop+event.clientY-event.offsetY+140;\r\n\r\n  window.showModalDialog(\"/inc/calendar.php?FIELDNAME=\"+fieldname,self,\"edge:raised;scroll:0;status:0;help:0;resizable:1;dialogWidth:280px;dialogHeight:215px;dialogTop:\"+mytop+\"px;dialogLeft:\"+myleft+\"px\");\r\n}\r\n</script>\r\n</head>\r\n\r\n<body class=\"bodycolor\" topmargin=\"5\" onload=\"javascript:form1.PLAN_NO.focus();\">\r\n";
$CUR_DATE = date( "Y-m-d", time( ) );
if ( $PLAN_ID != "" )
{
	$query = "SELECT * from MANU_PLAN where PLAN_ID=".$PLAN_ID;
	$cursor = exequery( $connection, $query );
	if ( $ROW = mysql_fetch_array( $cursor ) )
	{
		$PLAN_NO = $ROW['PLAN_NO'];
		$PLAN_DATE = $ROW['PLAN_DATE'];
		$PLAN_DEPT = $ROW['PLAN_DEPT'];
		$PLAN_DESC = $ROW['PLAN_DESC'];
		$PLAN_TYPE = $ROW['PLAN_TYPE'];
		if ( $PLAN_DATE == "0000-00-00" )
		{
			$PLAN_DATE = "";
		}
	}
}
else
{
	$PLAN_DATE = $CUR_DATE;
}
echo "<table border=\"0\" width=\"90%\" cellspacing=\"0\" cellpadding=\"3\" class=\"small\">\r\n  <tr>\r\n    <td class=\"Big\"><img src=\"/images/notify_new.gif\" align=\"absmiddle\"><span class=\"big3\"> ";
if ( $PLAN_ID != "" )
{
	echo "修改";
}
else
{
	echo "新建";
}
echo "生产计划</span>\r\n    </td>\r\n  </tr>\r\n</table>\r\n\r\n<table border=\"0\" width=\"70%\" cellpadding=\"2\" cellspacing=\"1\" align=\"center\" bgcolor=\"#000000\" class=\"small\">\r\n  <form enctype=\"multipart/form-data\" action=\"add.php\"  method=\"post\" name=\"form1\">\r\n    <tr>\r\n      <td nowrap class=\"TableData\"> 计划单编号:</td>\r\n      <td class=\"TableData\">\r\n        <input type=\"text\" name=\"PLAN_NO\" size=\"20\" maxlength=\"20\" class=\"BigInput\" value=\"";
echo $PLAN_NO;
echo "\">\r\n      </td>\r\n    </tr>\r\n    <tr>\r\n      <td nowrap class=\"TableData\">计划类型:</td>\r\n      <td class=\"TableData\">\r\n        <select name=\"PLAN_TYPE\" class=\"BigSelect\">\r\n          <option value=\"\"></option>\r\n          ";
echo code_list( "MANU_PLAN_TYPE", $PLAN_TYPE );
echo "        </select>&nbsp;\r\n      </td>\r\n    </tr>\r\n    <tr>\r\n      <td nowrap class=\"TableData\">计划日期:</td>\r\n      <td class=\"TableData\">\r\n\t\t<input type=\"text\" name=\"PLAN_DATE\" size=\"10\" maxlength=\"10\" class=\"BigInput\" value=\"";
echo $PLAN_DATE;
echo "\">\r\n\t\t<img src=\"/images/menu/calendar.gif\" border=\"0\" style=\"cursor:hand\" onclick=\"td_calendar('form1.PLAN_DATE');\">\r\n      </td>\r\n    </tr>\r\n    <tr>\r\n      <td nowrap class=\"TableData\">生产部门:</td>\r\n      <td class=\"TableData\">\r\n        <select name=\"PLAN_DEPT\" class=\"BigSelect\">\r\n";
echo my_dept_tree( 0, $PLAN_DEPT, 0 );
echo "        </select>\r\n      </td>\r\n    </tr>\r\n    <tr>\r\n      <td nowrap class=\"TableData\">备注:</td>\r\n      <td class=\"TableData\">\r\n        <textarea name=\"PLAN_DESC\" class=\"BigInput\" cols=\"50\" rows=\"3\">";
echo $PLAN_DESC;
echo "</textarea>\r\n      </td>\r\n    </tr>\r\n    <tr align=\"center\" class=\"TableControl\">\r\n      <td colspan=\"2\" nowrap>\r\n        <input type=\"hidden\" name=\"PLAN_ID\" value=\"";
echo $PLAN_ID;
echo "\">\r\n        <input type=\"hidden\" name=\"CUR_PAGE\" value=\"";
echo $CUR_PAGE;
echo "\">\r\n        <input type=\"button\" value=\"保存\" class=\"BigButton\" onclick=\"CheckForm();\">&nbsp;&nbsp;\r\n        <input type=\"reset\" value=\"重填\" class=\"BigButton\">&nbsp;&nbsp;\r\n";
if ( $PLAN_ID != "" )
{
	echo "        <input type=\"button\" value=\"返回\" class=\"BigButton\" onclick=\"location='index1.php?CUR_PAGE=\$CUR_PAGE'\">\r\n";
}
echo "      </td>\r\n    </tr>\r\n  </table>\r\n</form>\r\n\r\n</body>\r\n</html>";
?>

⌨️ 快捷键说明

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