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

电子政务应用

开发平台:

Java

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <HTML>
  3. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  4. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  5. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_public.js"></script>
  6. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  7. <DIV align=center>
  8. <form name="myform" method="post" action="">
  9.   <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  10.     <TBODY> 
  11.     <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  12.     <TR> 
  13.         <TD colSpan=3 align="center">
  14.           <br>
  15.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  16.             <tr> 
  17.               <td bgcolor="#fafafa"> 
  18.                 <table width="600" border="0" cellspacing="0" cellpadding="2">
  19.                   <tr bgcolor="#666666"> 
  20.                     <td><font class="strongw"><a href="/mainctrl/home/index"><font color="#FFFFFF">首页</font></a>&gt;&gt;<a href="/mainctrl/public/main"><font color="#FFFFFF">公用信息</font></a>&gt;&gt;办事指南</font></td>
  21.                   </tr>
  22.                 </table>
  23.                 <table class=title width="100%" border="0" cellspacing="1" cellpadding="2">
  24.                           <tr align="center"> 
  25.                             <td><font class="strong">名称</font></td>
  26.                             <td><font class="strong">发布部门</font></td>
  27.                             <td><font class="strong">发布时间</font></td>
  28.                           </tr>
  29. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  30. <%@ page import="com.vnex.intranet.commoninfo.directory.value.*"%>
  31. <%@ page import="com.vnex.intranet.commoninfo.directory.proxy.*"%>
  32. <%@ page import="com.vnex.intranet.util.*"%>
  33. <%@ page import="java.util.*" %>
  34. <%@ page import="java.sql.*" %>
  35. <jsp:useBean id="directoryProxy" class="com.vnex.intranet.commoninfo.directory.proxy.DirectoryProxyBean" scope="application" />
  36. <%
  37.   Collection coll = directoryProxy.getDirectoryList();
  38.   DirectoryValueBean rvb = null;
  39.   
  40.   int start = 1;
  41.   if ( request.getParameter("start") !=null )
  42.   {
  43.     start = Integer.parseInt( request.getParameter("start") );
  44.   }
  45.   int rowPerPage = com.vnex.intranet.system.loader.ConfigParaLoader.getParameterByInt("rowNum");
  46.   int size = coll.size(); 
  47.   String action = "/mainctrl/commoninfo/directory/getDirectoryListClient?";
  48.   String nav = NavBar.makeNavbar(start, size, rowPerPage, action);
  49.   int i = 0;
  50.      if(coll != null && coll.size() != 0)
  51.      {
  52.        Iterator it = coll.iterator();
  53.        int flag = 0;
  54.        String bgcolor = null;
  55.        while( it.hasNext() && i < size && i < ( start+rowPerPage-1) )
  56.        {
  57.            i++;
  58.            rvb = (DirectoryValueBean)it.next();
  59.            if ( i < start ) continue;
  60.            if( flag%2==0 )
  61.            {
  62.              bgcolor = "#e0e0e0";
  63.            }
  64.            else
  65.            {
  66.              bgcolor = "#fafafa";
  67.            }
  68.            String str = rvb.getAttachmentUrl();
  69.            int s = str.lastIndexOf(SubPathGenerater.getSeperator());
  70.          String filename = str.substring(s+1);
  71.          String UTFurl = str.substring(0,s+1)+StringUtil.encode(filename);
  72. %>
  73.                           <tr bgcolor="<%= bgcolor%>" align="center">
  74.                             <td><a href="<%= UTFurl%>" target="_blank"><%= FieldUtil.filterScriptTag(rvb.getDirectoryName())%></a></td>
  75.                             <td><%= rvb.getDirectoryDepartment()%></td>
  76.                             <td><% if(rvb.getPublishDate()!=null) out.println(rvb.getPublishDate().toString().substring(0,16)); else out.println(rvb.getPublishDate());%></td>
  77.                           </tr>
  78. <%
  79.            flag++;
  80.          }
  81.        }
  82. %>
  83.             <tr> 
  84.               <td bgcolor="#e0e0e0" colspan="3"> 
  85.                 &nbsp;&nbsp;<%= nav %>
  86.               </td>
  87.             </tr>
  88.                   </table>
  89.               </td>
  90.             </tr>
  91.           </table>
  92.           <br>
  93.           <br>
  94.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  95.        </TD>
  96.     </TR>
  97.     <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  98.     </TBODY> 
  99.   </TABLE>
  100.     <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  101. </form></DIV>
  102. </BODY></HTML>