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

电子政务应用

开发平台:

Java

  1. <%@ taglib uri="/vnex.tld" prefix="vnex" %>
  2. <%@ taglib uri="/vnex_archive.tld" prefix="archive" %>
  3. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  4. <script language=javascript>
  5. function checkAll(checkbox_select,checkbox_names)
  6. {
  7.       var items=checkbox_names.length;
  8.       if(items>1)
  9.         {
  10.          for(i=0;i<items;i++) 
  11.            if(!checkbox_names[i].disabled)
  12.              checkbox_names[i].checked=checkbox_select.checked;      
  13.         }
  14.       else
  15.        {
  16.           if(!checkbox_names.disabled)
  17.             checkbox_names.checked=checkbox_select.checked;
  18.        }
  19. }
  20. function toDelete(form)
  21. {
  22. if(form.check1 == null)
  23. {
  24.    alert("目前尚未有数据可供删除");
  25.    return;
  26. }
  27. var items=form.check1.length; 
  28. var j = -1;
  29. var sign = 1;
  30. if (items>1)
  31. {
  32. for (i=0;i < items;i++)
  33. if (form.check1[i].checked)
  34. j = i;
  35. }
  36. if (j == -1)
  37. {
  38. alert ("没有可供删除的选项!" );
  39. sign = 0;
  40. }
  41. }
  42. else
  43. {
  44. if (form.check1.checked)
  45. sign = 1;
  46. else
  47. {
  48. alert ("没有可供删除的选项!" );
  49. sign = 0
  50. }
  51. }
  52. if (sign == 1)
  53. {
  54. if(confirm("是否删除所选记录?"))
  55. {
  56.   form.action= "/mainctrl/archive/deleteTodayArchives";
  57.   form.submit();
  58. }  
  59. }
  60. }  
  61. </script>
  62. <HTML>
  63. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  64. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  65. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_archives.js"></script>
  66. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  67. <DIV align=center>
  68. <form name="form1" method="post" action="">
  69.     <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  70.     <TBODY>
  71. <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  72.     <TR> 
  73.         <TD colSpan=3 align="center"><br>
  74.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  75.             <tr valign="top" bgcolor="#FAFAFA"> 
  76.               <td > 
  77.                 <table width="100%" border="0" cellspacing="0" cellpadding="2">
  78.                   <tr bgcolor="#666666"> 
  79.          <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>
  80.          </td>
  81.                   </tr>
  82.                 </table>
  83.                 <table class=title width="100%" border="0" cellpadding="2" cellspacing="1">
  84.                   <tr> 
  85.                     <td colspan="7" height="30" bgcolor="#fafafa">&nbsp;
  86.                       <input type="button" name="Button32222" value="新增" class="file" onClick="location='/mainctrl/archive/createArchive'">
  87.                       &nbsp;&nbsp; 
  88.                       <input type="button" name="Button3223" value="删除" class="file" onclick="toDelete(form1)">
  89.                       &nbsp;&nbsp;
  90.                       <input type="button" name="button333" value="查询" class="text" onclick="location='/mainctrl/archive/searchArchives'">
  91.                     </td>
  92.                   </tr>
  93.       <tr align="center"> 
  94.        <td width="7%"><font class="strong">选择</font></td>
  95.         <td><font class="strong">文件来源</font></td>
  96.         <td><font class="strong">档案编号</font></td>        
  97.         <td><font class="strong">存档日期</font></td>
  98.         <td><font class="strong">标题</font></td>
  99.         <td><font class="strong">发文日期</font></td>        
  100.         <td><font class="strong">是否在库</font></td>        
  101.       </tr>
  102. <archive:TodayArchiveList>  
  103. <vnex:items paging="true">    
  104.       <tr bgcolor="<vnex:itemsColor />" align="center"> 
  105.         <td width="7%"> 
  106.              <input type="checkbox" name="check1" value="<archive:ArchiveAttribute attribute = "archive_id"/>" <archive:ArchiveAttribute attribute = "is_disabled" />>                
  107.         </td>
  108.         <td><archive:ArchiveAttribute attribute = "file_source"/></td>
  109.         <td><archive:ArchiveAttribute attribute = "archive_display_id"/></td>
  110.         <td><archive:ArchiveAttribute attribute = "save_archive_date"/></td>
  111.         <td><a href="/mainctrl/archive/archiveDetail?archiveId=<archive:ArchiveAttribute attribute = "archive_id"/>"><archive:ArchiveAttribute attribute = "archive_title"/></a></td>
  112.         <td><archive:ArchiveAttribute attribute = "create_date"/></td>        
  113.         <td><archive:ArchiveAttribute attribute = "is_borrowed"/></td>        
  114.       </tr>
  115. </vnex:items> 
  116.       <tr bgcolor="#e0e0e0">
  117.          <td width="7%" align="center">
  118.               <input type="checkbox" name="selectAll" value="checkbox" onClick= checkAll(selectAll,check1)>
  119.          </td>
  120.          <td colspan="6">&nbsp;&nbsp;全选</td>
  121.   </tr>
  122.   <tr bgcolor="#fafafa">
  123.          <td colspan="7">&nbsp;&nbsp;<vnex:pagingTag pageName="/mainctrl/archive/todayArchives?a" />
  124.          </td>
  125.       </tr>
  126. </archive:TodayArchiveList>    
  127.     </table>
  128.         </td>
  129.        </tr>
  130.     </table>
  131.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  132.         </TD>
  133.      </TR>  
  134.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />   
  135.     </TBODY> 
  136.   </TABLE>
  137.   <BR>
  138.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  139. </form>
  140. </DIV>
  141. </BODY>
  142. </HTML>