workplan_query.jsp
上传用户:jhtang88
上传日期:2014-01-27
资源大小:28528k
文件大小:4k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html; charset=utf-8"%>
  2. <%@ page import = "java.net.URLEncoder"%>
  3. <%@ page import = "java.util.*"%>
  4. <%@ page import = "cn.js.fan.util.*"%>
  5. <%@ page import = "com.redmoon.oa.workplan.*"%>
  6. <%@ page import = "com.redmoon.oa.dept.*"%>
  7. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  8. <html>
  9. <head>
  10. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  11. <title>工作计划类型管理</title>
  12. <link href="../common.css" rel="stylesheet" type="text/css">
  13. <script language="JavaScript" type="text/JavaScript">
  14. <!--
  15. function findObj(theObj, theDoc)
  16. {
  17.   var p, i, foundObj;
  18.   
  19.   if(!theDoc) theDoc = document;
  20.   if( (p = theObj.indexOf("?")) > 0 && parent.frames.length)
  21.   {
  22.     theDoc = parent.frames[theObj.substring(p+1)].document;
  23.     theObj = theObj.substring(0,p);
  24.   }
  25.   if(!(foundObj = theDoc[theObj]) && theDoc.all) foundObj = theDoc.all[theObj];
  26.   for (i=0; !foundObj && i < theDoc.forms.length; i++) 
  27.     foundObj = theDoc.forms[i][theObj];
  28.   for(i=0; !foundObj && theDoc.layers && i < theDoc.layers.length; i++) 
  29.     foundObj = findObj(theObj,theDoc.layers[i].document);
  30.   if(!foundObj && document.getElementById) foundObj = document.getElementById(theObj);
  31.   
  32.   return foundObj;
  33. }
  34. var GetDate=""; 
  35. function SelectDate(ObjName,FormatDate){
  36. var PostAtt = new Array;
  37. PostAtt[0]= FormatDate;
  38. PostAtt[1]= findObj(ObjName);
  39. GetDate = showModalDialog("../util/calendar/calendar.htm", PostAtt ,"dialogWidth:286px;dialogHeight:221px;status:no;help:no;");
  40. }
  41. function SetDate()
  42. findObj(ObjName).value = GetDate; 
  43. }
  44. //-->
  45. </script>
  46. <style type="text/css">
  47. <!--
  48. .style2 {font-size: 14px}
  49. -->
  50. </style>
  51. </head>
  52. <body background="" leftmargin="0" topmargin="5" marginwidth="0" marginheight="0">
  53. <%@ include file="workplan_inc_menu_top.jsp"%>
  54. <jsp:useBean id="fchar" scope="page" class="cn.js.fan.util.StrUtil"/>
  55. <jsp:useBean id="privilege" scope="page" class="com.redmoon.oa.pvg.Privilege"/>
  56. <%
  57. String priv="workplan";
  58. if (!privilege.isUserPrivValid(request, priv)) {
  59. // out.println(fchar.makeErrMsg("对不起,您不具有发布工作计划的权限!"));
  60. // return;
  61. }
  62. %>
  63. <br>
  64. <table class="main" cellSpacing="1" cellPadding="2" width="600" align="center" border="0">
  65. <form action="workplan_list.jsp?op=search" name="form1" method="post">
  66.   <tbody>
  67.     <tr>
  68.       <td colspan="2" noWrap class="right-title">查询计划</td>
  69.     </tr>
  70.     <tr>
  71.       <td width="15%" noWrap class="TableContent">计划名称:</td>
  72.       <td width="85%" class="TableData"><input name="title" id="title" size="26" maxLength="80"></td>
  73.     </tr>
  74.     <tr>
  75.       <td class="TableContent" noWrap>计划内容:</td>
  76.       <td class="TableData"><input name="content" id="content" size="36" maxLength="200"></td>
  77.     </tr>
  78.     <tr>
  79.       <td class="TableContent" noWrap>有效期:</td>
  80.       <td class="TableData">开始日期:
  81.            <input name="beginDate" id="beginDate" size="10">
  82.            <img style="CURSOR: hand" onClick="SelectDate('beginDate', 'yyyy-MM-dd')" src="../images/form/calendar.gif" align="absMiddle" border="0" width="26" height="26">之后(为空表示不限制)<br>
  83.         结束日期: 
  84.         <input name="endDate" id="endDate" size="10">
  85.         <img style="CURSOR: hand" onClick="SelectDate('endDate', 'yyyy-MM-dd')" src="../images/form/calendar.gif" align="absMiddle" border="0" width="26" height="26">之前(为空表示不限制)</td>
  86.     </tr>
  87.     <tr>
  88.       <td class="TableContent" noWrap>计划类型:</td>
  89.       <td class="TableData">
  90.   <%
  91.   WorkPlanTypeDb wptd = new WorkPlanTypeDb();
  92.   String opts = "";
  93.   Iterator ir = wptd.list().iterator();
  94.   while (ir.hasNext()) {
  95.    wptd = (WorkPlanTypeDb)ir.next();
  96.    opts += "<option value='" + wptd.getId() + "'>" + wptd.getName() + "</option>";
  97.   }
  98.   %>
  99.   <select name="typeId" id="typeId">
  100.   <option value="all">全部</option>
  101.   <%=opts%>
  102.       </select>   </td>
  103.     </tr>
  104.     
  105.     <tr class="TableControl" align="middle">
  106.       <td colSpan="2" align="center" noWrap><input name="submit" type="submit" value="提交">
  107.         &nbsp;&nbsp;
  108.           <input name="button" type="reset" value="重填">
  109.         &nbsp;&nbsp;</td>
  110.     </tr>
  111.   </tbody>
  112.   </form>
  113. </table>
  114. </body>
  115. </html>