search_archives.jsp
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:7k
源码类别:

电子政务应用

开发平台:

Java

  1. <%@ taglib uri="/vnex.tld" prefix="vnex" %>
  2. <%@ taglib uri="/vnex.tld" prefix="vnex" %>
  3. <%@ taglib uri="/vnex_archive.tld" prefix="archive" %>
  4. <%
  5. session.removeAttribute("archiveCondition");
  6. %>
  7. <HTML>
  8. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  9. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  10. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_archives.js"></script>
  11. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  12. <script Language="JavaScript" src="/vnex/util/Popup.js"></script>
  13. <script language="JavaScript" src="/vnex/validate.js"></script>
  14. <script language=JavaScript>
  15. function isDateValid(form)
  16. {
  17. if (form.saveDate.value.length >0 && form.saveEndDate.value.length >0)
  18. {
  19. if (form.saveDate.value > form.saveEndDate.value)
  20. {
  21. alert("存档日期查询条件开始时间不能在结束时间之后!");
  22. return false;
  23. }
  24. }
  25. if (form.createDate.value.length >0 && form.createEndDate.value.length >0)
  26. {
  27. if (form.createDate.value > form.createEndDate.value)
  28. {
  29. alert("发文日期查询条件开始时间不能在结束时间之后!");
  30. return false;
  31. }
  32. }
  33. if (includeInvalid(form.archiveDisplayId.value))
  34. {
  35. alert("存档编号包括非法字符’" );
  36. return false;
  37. }
  38. if (includeInvalid(form.archiveTitle.value))
  39. {
  40. alert("标题中包括非法字符’" );
  41. return false;
  42. }
  43. if (includeInvalid(form.archiveKeyword.value))
  44. {
  45. alert("主题词中包括非法字符’" );
  46. return false;
  47. }
  48. return true;
  49. }
  50. function includeInvalid(str)
  51. {
  52. if (str.indexOf("'") == -1)
  53. {
  54. return false;
  55. }
  56. else
  57. {
  58. return true;
  59. }
  60. }
  61. function toSearch(form)
  62. {
  63. if (! isDateValid(form))
  64. return false;
  65. else
  66. {
  67. form.action = "/mainctrl/archive/archivesSearchResult"
  68. form.submit();
  69. }
  70. }
  71. </script>
  72. <DIV align=center>
  73. <form name="form1" method="post" action="" >
  74.   <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  75.     <TBODY> 
  76.       <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  77.       <TR> 
  78.         <TD colSpan=3 align="center"><br>
  79.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  80.             <tr> 
  81.               <td align="center" colspan="2" bgcolor="#FFFFFF"> 
  82.                 <table width="600" border="0" cellspacing="0" cellpadding="0">
  83.                   <tr bgcolor="#666666"> 
  84.                       <td colspan="2"><font class="strongw"><a href="/mainctrl/home/index"><font color="#ffffff">首页</font></a>&gt;&gt;<a href="/mainctrl/archive/todayArchives"><font color="#ffffff">档案管理</font></a>&gt;&gt;档案查询</font>
  85.                       </td>
  86.                   </tr>
  87.                 </table>
  88.                 <table class=title border="0" cellpadding="2" cellspacing="1" width="600">
  89.                   <tr bgcolor="#e0e0e0">
  90.                     <td width="14%"> <font class="strong">&nbsp;档案编号:</font> </td>
  91.                     <td width="86%"> 
  92.                       <input size="32" name="archiveDisplayId" class="text">
  93.                     </td>
  94.               </tr>
  95.               <tr bgcolor="#fafafa"> 
  96.                     <td width="14%"> <font class="strong">&nbsp;存档日期:</font> </td>
  97.                     <td width="86%"> 
  98.                       <input type="text" name="saveDate" readonly size="32" class="text">
  99.                   <img src="/vnex/util/datetime.gif" style="cursor:hand;" align="absmiddle" alt="选择存档起始日期" onClick="fPopUpCalendarDlg(saveDate);return false">
  100.                 </td>
  101.               </tr> 
  102.              <tr bgcolor="#e0e0e0"> 
  103.                     <td width="14%"><font class="strong">&nbsp;至:</font> </td>
  104.                     <td width="86%"> 
  105.                       <input type="text" name="saveEndDate" readonly size="32" class="text">
  106.                   <img src="/vnex/util/datetime.gif" style="cursor:hand;" align="absmiddle" alt="选择存档截止日期" onClick="fPopUpCalendarDlg(saveEndDate);return false">
  107.                 </td>
  108.               </tr> 
  109.               <tr bgcolor="#fafafa"> 
  110.                     <td width="14%"><font class="strong">&nbsp;标题:</font> </td>
  111.                     <td width="86%"> 
  112.                       <input size="32" name="archiveTitle" class="text">
  113.                 </td>
  114.               </tr>
  115.               <tr bgcolor="#e0e0e0"> 
  116.                     <td width="14%"><font class="strong">&nbsp;主题词:</font> </td>
  117.                     <td width="86%"> 
  118.                       <input size="32" name="archiveKeyword" class="text">
  119.                 </td>
  120.               </tr>
  121.               <tr bgcolor="#fafafa"> 
  122.                     <td width="14%"><font class="strong">&nbsp;发文日期:</font> </td>
  123.                     <td width="86%"> 
  124.                       <input type="text" name="createDate" readonly size="32" class="text">
  125.                   <img src="/vnex/util/datetime.gif" style="cursor:hand;" align="absmiddle" alt="选择档案创建起始日期" onClick="fPopUpCalendarDlg(createDate);return false">
  126.                 </td>
  127.               </tr> 
  128.              <tr bgcolor="#e0e0e0"> 
  129.                     <td width="14%"><font class="strong">&nbsp;至:</font> </td>
  130.                     <td width="86%"> 
  131.                       <input type="text" name="createEndDate" readonly size="32" class="text">
  132.                   <img src="/vnex/util/datetime.gif" style="cursor:hand;" align="absmiddle" alt="选择档案创建截止日期" onClick="fPopUpCalendarDlg(createEndDate);return false">
  133.                 </td>
  134.               </tr> 
  135.               <tr bgcolor="#fafafa"> 
  136.                     <td width="14%"><font class="strong">&nbsp;文件来源:</font> </td>
  137.                     <td width="86%"> 
  138.                       <select name="fileSourceId" size="1">
  139.                            <archive:fileSourceTag />
  140.                     </select> 
  141.                 </td>
  142.               </tr>
  143.               <tr bgcolor="#e0e0e0"> 
  144.                     <td width="14%"> <font class="strong">&nbsp;安全级别:</font> </td>
  145.                     <td width="86%"> 
  146.                       <select size="1" name="safetyLevel">                      
  147.                       <option selected value = -1>请选择</option>
  148.                       <option>5</option>
  149.                       <option>4</option>
  150.                       <option>3</option>
  151.                       <option>2</option>
  152.                       <option>1</option>
  153.                     </select>
  154.                 </td>
  155.               </tr>
  156.               <tr bgcolor="#fafafa">
  157.                  <td colspan="2" align="center" height="30">
  158.             <input type="button" value="查询" name="B21" class="text" onClick=toSearch(form1) >
  159.             &nbsp;&nbsp;
  160.             <input type="reset" value="重置" name="B212" class="text">
  161.          </td>
  162.       </tr>
  163.               <input type="hidden" name="attachment[]" >
  164.             </table>
  165.         </td>
  166.        </tr>
  167.   </table>
  168.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  169.        </TD>
  170.      </TR>
  171.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  172.     </TBODY> 
  173.   </TABLE>
  174.     <BR>
  175.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  176. </form>
  177. </DIV>
  178. </BODY>
  179. </HTML>