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

电子政务应用

开发平台:

Java

  1. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  2. <%@ taglib uri="/vnex.tld" prefix="vnex" %>
  3. <%@ taglib uri="/vnex_archive.tld" prefix="archive" %>
  4. <%
  5.     String queryStr = " where archive_id in (select archive_id from t_archive where is_borrowed=1) ";
  6.     String pageName = "/mainctrl/archive/borrowArchiveList?a";
  7.     if(session.getAttribute("condition") != null)
  8.     {
  9.        queryStr += (String)session.getAttribute("condition");
  10.     }   
  11. %>
  12. <script language=JavaScript>
  13. function deleteThem(form)
  14. {
  15.    form.action="/mainctrl/archive/deleteBorrowArchives";
  16.    form.submit();
  17. }
  18. function SelectAll(form)
  19. {
  20.   for (var i=0;i<form.elements.length;i++)
  21.   {
  22.     var e = form.elements[i];
  23.     if (e.name != 'C1')
  24.        e.checked = form.C1.checked;
  25.   }
  26. }
  27. </script>
  28. <table width="600" border="0" cellpadding="5" cellspacing="1" class="iframestyle">
  29.    <tr>
  30.       <td colspan="2" height="4" bgcolor="#ffffff">&nbsp;&nbsp;<a href="/mainctrl/archive/todayArchives">档案管理</a>&gt;&gt;<a href="/mainctrl/archive/borrowManager">借阅档案管理</a>&gt;&gt;借阅档案记录
  31.       </td>
  32.    </tr>
  33.    <tr> 
  34.       <td colspan="2" height="4" bgcolor="#666666" align="center"><font class="strongw">借阅记录</font></td>
  35.       </tr>
  36.       <tr bgcolor="#FFFFFF"> 
  37.          <td align="center" colspan="2">
  38.               <table width="100%" border="0" cellspacing="0" cellpadding="0">
  39.                   <tr bgcolor="#CCCCCC"> 
  40.                     <td> 
  41.                       <table width="100%" border="0">
  42.                         <tr> 
  43.                           <td width="8%">&nbsp;&nbsp;</td>
  44.                           <td width="8%">编号</td>
  45.                           <td width="14%">借阅日期</td>
  46.                           <td width="46%" align="center">档案标题</td>
  47.                           <td width="10%">借阅人</td>
  48.                           <td width="14%">归还期限</td>
  49.                         </tr>
  50.                         <archive:borrowList queryStr="<%=queryStr%>">
  51.                         <vnex:items paging="true">
  52.                         <tr bgcolor="<vnex:itemsColor />"> 
  53.                           <td align="center" width="8%"> 
  54.                              <input type="checkbox" name="borrowIds" value="<archive:borrowAttribute attribute="borrow_id" />"></td>
  55.                           <td width="8%"><a href="/mainctrl/archive/borrowArchiveDetail?borrowId=<archive:borrowAttribute attribute="borrow_id" />"><archive:borrowAttribute attribute="borrow_id" /></a></td>
  56.                           <td width="14%"><archive:borrowAttribute attribute="borrow_date" /></td>
  57.                   <td width="46%"><archive:borrowAttribute attribute="archive_title" /> 
  58.                   </td>
  59.                   <td width="10%"><archive:borrowAttribute attribute="borrower" /></td>
  60.                   <td width="14%"><archive:borrowAttribute attribute="return_date" /></td>
  61.                         </tr>
  62.                         </vnex:items>
  63.                         <tr>
  64.                            <td colspan="7" bgcolor="#cccccc">&nbsp;&nbsp;
  65.                                      <input type="checkbox" name="C1" onclick="SelectAll(this.form)">&nbsp;&nbsp;全选
  66.                             </td>
  67.                         </tr>
  68.                         <tr>
  69.                            <td colspan="7" align="left" bgcolor="#fafafa"><vnex:pagingTag pageName="<%=pageName%>" /> 
  70.                            </td>
  71.                         </tr>
  72.                          </archive:borrowList>
  73.                      </table>
  74.                    </td>
  75.                  </tr>
  76.             </table>
  77.          </td>
  78.       </tr>
  79. </table>         
  80. <p> 
  81. <input type="button" value=" 删  除 " name="B252" class="button" onclick="deleteThem(this.form)">
  82. &nbsp;&nbsp;&nbsp; 
  83. </p>