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

电子政务应用

开发平台:

Java

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