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

📄 edit.php

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

include_once( "inc/auth.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   if(document.form1.TYPE_VALUE.value==\"\")\r\n   { alert(\"培训类别编号不能为空!\");\r\n     return (false);\r\n   }\t\r\n\t\r\n   if(document.form1.TYPE_NAME.value==\"\")\r\n   { alert(\"培训类别名称不能为空!\");\r\n     return (false);\r\n   }\r\n}\r\n\r\nfunction clear_user()\r\n{\r\n  document.form1.COPY_TO_NAME.value=\"\";\r\n  document.form1.COPY_TO_ID.value=\"\";\r\n}\r\n\r\nfunction LoadWindow()\r\n{\r\n  URL=\"/module/user_select?ID=2\";\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:0;status:0;help:0;resizable:1;dialogWidth:350px;dialogHeight:350px;dialogTop:\"+loc_y+\"px;dialogLeft:\"+loc_x+\"px\");\r\n}\r\n</script>\r\n</head>\r\n\r\n";
$query = "SELECT * from TRAIN_TTYPE where TYPE_ID=".$TYPE_ID;
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
	$TYPE_NAME = $ROW['TYPE_NAME'];
	$TYPE_VALUE = $ROW['TYPE_VALUE'];
	$TYPE_MANAGER = $ROW['TYPE_MANAGER'];
	$TOK = strtok( $TYPE_MANAGER, "," );
	while ( $TOK != "" )
	{
		$query1 = "SELECT * from USER where USER_ID='".$TOK."'";
		$cursor1 = exequery( $connection, $query1 );
		if ( $ROW = mysql_fetch_array( $cursor1 ) )
		{
			$USER_NAME .= $ROW['USER_NAME'].",";
		}
		$TOK = strtok( "," );
	}
}
echo "\r\n<body class=\"bodycolor\" topmargin=\"5\" onload=\"document.form1.TYPE_VALUE.focus();\">\r\n<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\" class=\"small\">\r\n  <tr>\r\n    <td class=\"Big\"><img src=\"/images/edit.gif\" WIDTH=\"22\" HEIGHT=\"20\" align=\"absmiddle\"><span class=\"big3\"> 培训类别编辑</span>\r\n    </td>\r\n  </tr>\r\n</table>\r\n\r\n<table border=\"0\" cellspacing=\"1\" width=\"450\" class=\"small\" bgcolor=\"#000000\" cellpadding=\"3\" align=\"center\" >\r\n  <form action=\"update.php\"  method=\"post\" name=\"form1\" onsubmit=\"return CheckForm();\">  \r\n   <tr>\r\n    <td nowrap class=\"TableData\">培训类别编号:</td>\r\n    <td nowrap class=\"TableData\">\r\n        <input type=\"text\" name=\"TYPE_VALUE\" class=\"BigInput\" size=\"20\" maxlength=\"100\" value=\"";
echo $TYPE_VALUE;
echo "\">&nbsp;\r\n    </td>\r\n   </tr>\r\n   <tr>\r\n    <td nowrap class=\"TableData\">培训类别名称:</td>\r\n    <td nowrap class=\"TableData\">\r\n        <input type=\"text\" name=\"TYPE_NAME\" class=\"BigInput\" size=\"20\" maxlength=\"100\" value=\"";
echo $TYPE_NAME;
echo "\">&nbsp;\r\n    </td>\r\n   </tr>\r\n   <tr>\r\n    <td nowrap class=\"TableData\">负责人:</td>\r\n      <td class=\"TableData\">\r\n        <input type=\"hidden\" name=\"COPY_TO_ID\" value=\"";
echo $TYPE_MANAGER;
echo "\">\r\n        <textarea cols=\"22\" name=\"COPY_TO_NAME\" rows=\"5\" class=\"BigStatic\" wrap=\"yes\" readonly>";
echo $USER_NAME;
echo "</textarea>\r\n        &nbsp;<input type=\"button\" value=\"选 择\" class=\"SmallButton\" onClick=\"LoadWindow()\" title=\"选择人员\" name=\"button\">\r\n        &nbsp;<input type=\"button\" value=\"清 空\" class=\"SmallButton\" onClick=\"clear_user()\" title=\"清空人员\" name=\"button\">\r\n      </td>\r\n   </tr>\r\n   <tr>\r\n    <td nowrap  class=\"TableControl\" colspan=\"2\" align=\"center\">\r\n        <input type=\"hidden\" value=\"";
echo $TYPE_ID;
echo "\" name=\"TYPE_ID\">\r\n        <input type=\"submit\" value=\"确定\" class=\"BigButton\">&nbsp;&nbsp;\r\n        <input type=\"button\" value=\"返回\" class=\"BigButton\" onclick=\"location='index.php'\">\r\n    </td>\r\n  </form>\r\n</table>\r\n\r\n</body>\r\n</html>";
?>

⌨️ 快捷键说明

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