📄 index.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";
echo "<s";
echo "cript Language=\"JavaScript\">\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;resizabl";
echo "e:1;dialogWidth:400px;dialogHeight:245px;dialogTop:\"+loc_y+\"px;dialogLeft:\"+loc_x+\"px\");\r\n}\r\n\r\nfunction clear_user1()\r\n{\r\n document.form1.SECRET_TO_NAME.value=\"\";\r\n document.form1.SECRET_TO_ID.value=\"\";\r\n}\r\nfunction LoadWindow1()\r\n{\r\n URL=\"/module/user_select?ID=1\";\r\n loc_x=document.body.scrollLeft+event.clientX-event.offsetX-100;\r\n loc_y=document.body.scrollTop+event.clientY-event.offsetY+17";
echo "0;\r\n window.showModalDialog(URL,self,\"edge:raised;scroll:0;status:0;help:0;resizable:1;dialogWidth:320px;dialogHeight:265px;dialogTop:\"+loc_y+\"px;dialogLeft:\"+loc_x+\"px\");\r\n}\r\n\r\nfunction clear_user2()\r\n{\r\n document.form1.COPY_TO_NAME.value=\"\";\r\n document.form1.COPY_TO_ID.value=\"\";\r\n}\r\nfunction LoadWindow2()\r\n{\r\n URL=\"/module/user_select?ID=2\";\r\n loc_x=document.body.scrollLeft+event.clientX-ev";
echo "ent.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:320px;dialogHeight:265px;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.";
echo "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:205px;dialogTop:\"+mytop+\"px;dialogLeft:\"+myleft+\"px\");\r\n}\r\n</script>\r\n</head>\r\n\r\n<body class=\"bodycolor\" topmargin=\"5\" onload=\"form1.NAME.focus();\">\r\n\r\n<table border=\"0\" width=\"90%\" cellspacing=\"0\" cellpadding=\"3\" class=\"s";
echo "mall\">\r\n <tr>\r\n <td class=\"Big\"><img src=\"/images/menu/work_plan.gif\" align=\"absmiddle\">";
echo "<s";
echo "pan class=\"big3\"> 工作计划查询</span>\r\n </td>\r\n </tr>\r\n</table>\r\n\r\n<hr width=\"95%\" height=\"1\" align=\"left\" class=\"big1\">\r\n\r\n<table border=\"0\" width=\"500\" cellpadding=\"2\" cellspacing=\"1\" align=\"center\" bgcolor=\"#000000\" class=\"small\">\r\n <form enctype=\"multipart/form-data\" action=\"query.php\" method=\"post\" name=\"form1\">\r\n <tr>\r\n <td colspan=\"2\" nowrap class=\"TableControl\">\r\n <img src=\"/image";
echo "s/green_arrow.gif\"><b><font size=4 color=\"#000000\"> 请指定查询条件:</span>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableContent\"> 计划名称:</td>\r\n <td class=\"TableData\"> \r\n <input type=\"text\" name=\"NAME\" size=\"36\" maxlength=\"200\" class=\"BigInput\" value=\"";
echo $NAME;
echo "\">\r\n </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableContent\"> 计划内容:</td>\r\n <td class=\"TableData\"> \r\n <input type=\"text\" name=\"CONTENT\" size=\"36\" maxlength=\"200\" class=\"BigInput\" value=\"";
echo $CONTENT;
echo "\">\r\n </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableContent\"> 有效期:</td>\r\n <td class=\"TableData\"> \r\n 开始日期:<input type=\"text\" name=\"BEGIN_DATE\" size=\"10\" maxlength=\"10\" class=\"BigInput\" value=\"";
echo $BEGIN_DATE;
echo "\"> \r\n <img src=\"/images/menu/calendar.gif\" border=\"0\" style=\"cursor:hand\" onclick=\"td_calendar('form1.BEGIN_DATE');\"><br>\r\n 结束日期:<input type=\"text\" name=\"END_DATE\" size=\"10\" maxlength=\"10\" class=\"BigInput\" value=\"";
echo $END_DATE;
echo "\"> \r\n <img src=\"/images/menu/calendar.gif\" border=\"0\" style=\"cursor:hand\" onclick=\"td_calendar('form1.END_DATE');\">\r\n </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableContent\"> 计划类型:</td>\r\n <td class=\"TableData\"> \r\n ";
echo "<s";
echo "elect name=\"TYPE\" class=\"BigSelect\">\r\n";
$query = "SELECT * from PLAN_TYPE";
$connection = openconnection( );
$cursor = exequery( $connection, $query );
while ( $ROW = mysql_fetch_array( $cursor ) )
{
$TYPE_ID = $ROW['TYPE_ID'];
$TYPE_NAME = $ROW['TYPE_NAME'];
echo " <option value=\"";
echo $TYPE_ID;
echo "\" ";
if ( $TYPE == $TYPE_ID )
{
echo "selected";
}
echo ">";
echo $TYPE_NAME;
echo "</option>\r\n";
}
echo " </select>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableContent\">发布范围(部门):</td>\r\n <td class=\"TableData\">\r\n <input type=\"hidden\" name=\"TO_ID\" value=\"";
echo $TO_ID;
echo "\">\r\n <textarea cols=35 name=\"TO_NAME\" rows=2 class=\"BigStatic\" wrap=\"yes\" readonly>";
echo $TO_NAME;
echo "</textarea>\r\n <input type=\"button\" value=\"添 加\" class=\"SmallButton\" onClick=\"LoadWindow()\" title=\"添加部门\" name=\"button\">\r\n <input type=\"button\" value=\"清 空\" class=\"SmallButton\" onClick=\"clear_dept()\" title=\"清空部门\" name=\"button\">\r\n </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableContent\">参与人:</td>\r\n <td class=\"TableData\">\r\n <input type=\"hidden\" n";
echo "ame=\"COPY_TO_ID\" value=\"";
echo $COPY_TO_ID;
echo "\">\r\n <textarea cols=35 name=\"COPY_TO_NAME\" rows=\"2\" class=\"BigStatic\" wrap=\"yes\" readonly>";
echo $COPY_TO_NAME;
echo "</textarea>\r\n <input type=\"button\" value=\"添 加\" class=\"SmallButton\" onClick=\"LoadWindow2()\" title=\"添加收件人\" name=\"button\">\r\n <input type=\"button\" value=\"清 空\" class=\"SmallButton\" onClick=\"clear_user2()\" title=\"清空收件人\" name=\"button\">\r\n </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableContent\">负责人:</td>\r\n <td class=\"TableData\">\r\n <input type=\"hid";
echo "den\" name=\"SECRET_TO_ID\" value=\"";
echo $SECRET_TO_ID;
echo "\">\r\n <textarea cols=35 name=\"SECRET_TO_NAME\" rows=\"2\" class=\"BigStatic\" wrap=\"yes\" readonly>";
echo $SECRET_TO_NAME;
echo "</textarea>\r\n <input type=\"button\" value=\"添 加\" class=\"SmallButton\" onClick=\"LoadWindow1()\" title=\"添加收件人\" name=\"button\">\r\n <input type=\"button\" value=\"清 空\" class=\"SmallButton\" onClick=\"clear_user1()\" title=\"清空收件人\" name=\"button\">\r\n </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableContent\"> 备注:</td>\r\n <td class=\"TableData\">\r\n <input type=\"text";
echo "\" name=\"REMARK\" size=\"40\" maxlength=\"200\" class=\"BigInput\" value=\"";
echo $REMARK;
echo "\">\r\n </td>\r\n </tr>\r\n <tr align=\"center\" class=\"TableControl\">\r\n <td colspan=\"2\" nowrap>\r\n <input type=\"submit\" value=\"查询\" class=\"BigButton\"> \r\n <input type=\"button\" value=\"返回\" class=\"BigButton\" onClick=\"parent.location='../'\">\r\n </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 + -