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

电子政务应用

开发平台:

Java

  1. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  2. <%@ page import="com.vnex.intranet.util.TimeStamp" %>
  3. <%@ page import="java.lang.*" %>
  4. <%@ page import="java.sql.*" %>
  5. <%@ page import="java.util.*" %>
  6. <%@ page import="com.vnex.intranet.archives.value.WritValueBean" %>
  7. <jsp:useBean id="writValue" scope="request" class="com.vnex.intranet.archives.value.WritValueBean" />
  8. <jsp:useBean id="writProcess" scope="application" class="com.vnex.intranet.archives.process.WritProcess" />
  9. <jsp:setProperty name="writValue" property="*" />
  10. <%@ taglib uri="/vnex.tld" prefix="vnex" %>
  11. <%@ taglib uri="/vnex_archive.tld" prefix="archive" %>
  12. <%
  13. if(request.getParameter("start")==null)
  14.   {
  15.     session.setAttribute("writSession",writValue);
  16.   }
  17.   writValue = (WritValueBean)session.getAttribute("writSession");
  18. %>
  19. <HTML>
  20. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  21. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  22. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  23. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_archives.js"></script>
  24. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  25. <script language="JavaScript" src="/vnex/util/strUtil.js"></script>    
  26. <script language=javascript>
  27. function checkAll(checkbox_select,checkbox_names)
  28. {
  29.       var items=checkbox_names.length;
  30.       if(items>1)
  31.         {
  32.          for(i=0;i<items;i++) 
  33.            if(!checkbox_names[i].disabled)
  34.              checkbox_names[i].checked=checkbox_select.checked;      
  35.         }
  36.       else
  37.        {
  38.           if(!checkbox_names.disabled)
  39.             checkbox_names.checked=checkbox_select.checked;
  40.        }
  41. }
  42. function toDelete(form)
  43. {
  44. if(form.check1 == null)
  45. {
  46.    alert("目前尚未有数据可供删除");
  47.    return;
  48. }
  49. var items=form.check1.length; 
  50. var j = -1;
  51. var sign = 1;
  52. if (items>1)
  53. {
  54. for (i=0;i < items;i++)
  55. if (form.check1[i].checked)
  56. j = i;
  57. }
  58. if (j == -1)
  59. {
  60. alert ("没有可供删除的选项!" );
  61. sign = 0;
  62. }
  63. }
  64. else
  65. {
  66. if (form.check1.checked)
  67. sign = 1;
  68. else
  69. {
  70. alert ("没有可供删除的选项!" );
  71. sign = 0
  72. }
  73. }
  74. if (sign == 1)
  75. {
  76. if(confirm("是否删除所选记录?"))
  77. {
  78.   form.action= "/mainctrl/writDel";
  79.   form.submit();
  80. }  
  81. }
  82. }  
  83. </script>
  84. <DIV align=center>
  85. <form name="form1" method="post">
  86.   <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  87.     <TBODY> 
  88.       <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  89.       <TR> 
  90.         <TD colSpan=3 align="center" class="iframestyle" valign="top"><br>
  91.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  92.             <tr valign="top"> 
  93.               <td bgcolor="#fafafa" > 
  94.                 <table width="600" border="0" cellspacing="0" cellpadding="0">
  95.                   <tr valign="top" bgcolor="#cccccc"> 
  96.                     <td> 
  97.                       <table width="600" border="0" cellpadding="2" cellspacing="0">
  98.                         <tr bgcolor="#666666"> 
  99.                             
  100.                           <td><font class="strongw"> <a href="/mainctrl/home/index"><font color="#ffffff">首页</font></a>&gt;&gt; 
  101.                             <a href="/mainctrl/archiveFileIn"><font color="#ffffff">档案管理</font></a>&gt;&gt;<a href="/mainctrl/writIndex"><font color="#ffffff">文书档案</font></a>&gt;&gt; 
  102.                             查询结果</font> </td>
  103.                         </tr>
  104.                       </table>
  105.                 <table border="0" cellpadding="2" cellspacing="0" width="600">
  106.                   <tr bgcolor="#e0e0e0"> 
  107.                           <td colspan="4"> 
  108.                             <table class=title width="100%" border="0" cellpadding="2" cellspacing="1">
  109.                               <tr> 
  110.                                 <td colspan="4" height="30" bgcolor="#fafafa">&nbsp; 
  111.                                   <input type="button"  value="新增" class="file" onClick="location='/mainctrl/writCreate'">
  112.                                   &nbsp;&nbsp; 
  113.                                   <input type="button"  value="删除" class="file" onClick="toDelete(form1)">
  114.                                   &nbsp;&nbsp; 
  115.                                   <input type="button"  value="查询" class="text" onClick="location='/mainctrl/writSearch'" name="button">
  116.                                   &nbsp;&nbsp; 
  117.                                   <input type="button"  value="打印" class="text" onClick="location='/mainctrl/writSearchPrint'" name="button2">
  118.                                 </td>
  119.                               </tr>
  120.                               <tr align="center"> 
  121.                                 <td width="7%"><font class="strong">选择</font></td>
  122.                                 <td><font class="strong">所属卷号</font></td>
  123.                                 <td><font class="strong">内容摘要</font></td>
  124.                                 <td><font class="strong">文件日期</font></td>
  125.                               </tr>
  126.                               <archive:WritSearchList archiveCondition="<%=writValue%>">
  127.   <vnex:items paging="true"> 
  128.                               <tr bgcolor="<vnex:itemsColor />" align="center"> 
  129.                                 <td width="7%" > 
  130.                                   <input type=checkbox name=check1 value="<archive:WritAttribute attribute = "archive_id"/>"> 
  131.                                 </td>
  132.                                 <td >
  133.                                   <div align="left">
  134.                                   <archive:WritAttribute attribute = "docName"/></div></td>
  135.                                 <td >
  136.                                   <div align="left"><a href="/mainctrl/writDetail?archiveId=<archive:WritAttribute attribute = "archive_id"/>"><archive:WritAttribute attribute = "title"/></a></div>
  137.                                 </td>
  138.                                 <td ><archive:WritAttribute attribute = "buildDate"/></td>
  139.                               </tr>
  140.                               </vnex:items> 
  141.                               <tr> 
  142.                                 <td width="7%" align="center" bgcolor="#e0e0e0"> 
  143.                                   <input type="checkbox" name="selectAll" value="checkbox" onClick= checkAll(selectAll,check1)>
  144.                                 </td>
  145.                                 <td colspan="3" bgcolor="#e0e0e0">&nbsp;&nbsp;全选</td>
  146.                               </tr>
  147.                               <tr> 
  148.                                 <td colspan="4" bgcolor="#fafafa">&nbsp;&nbsp;<vnex:pagingTag pageName="/mainctrl/writSearchResult?a" /> 
  149.                                 </td>
  150.                               </tr>
  151.                               </archive:WritSearchList> 
  152.                             </table>
  153.                           </td>
  154.                   </tr>
  155.                      
  156.                 </table>
  157.                     </td>
  158.                     </tr>
  159.                   </table>
  160.                 </td>
  161.              </tr>
  162.           </table>
  163.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  164.        </TD>
  165.      </TR>
  166.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  167.     </TBODY> 
  168.   </TABLE>
  169.     <BR>
  170.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  171. </form>
  172. </DIV>
  173. </BODY>
  174. </HTML>