Address_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 class=title cellspacing=1 cellpadding=2 width="600" border=0>
  19.                 <tr>
  20.                  <td colspan="2" bgcolor="#666666"> 
  21.                    <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>
  22.                  </td>
  23.                 </tr>
  24.                           <tr align=middle> 
  25.                             <td><font class="strong">公司名称</font></td>
  26.                           </tr>
  27. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  28. <%@ page import="com.vnex.intranet.commoninfo.addresslist.value.*"%>
  29. <%@ page import="com.vnex.intranet.commoninfo.addresslist.proxy.*"%>
  30. <%@ page import="com.vnex.intranet.util.*"%>
  31. <%@ page import="java.util.*" %>
  32. <%@ page import="java.sql.*" %>
  33. <jsp:useBean id="addressListProxy" class="com.vnex.intranet.commoninfo.addresslist.proxy.AddressListProxyBean" scope="application" />
  34. <%
  35.   Collection coll = addressListProxy.getAddressList();
  36.   AddressListValueBean avb = null;
  37.   
  38.   int start = 1;
  39.   if ( request.getParameter("start") !=null )
  40.   {
  41.     start = Integer.parseInt( request.getParameter("start") );
  42.   }
  43.   int rowPerPage = com.vnex.intranet.system.loader.ConfigParaLoader.getParameterByInt("rowNum");
  44.   int size = coll.size(); 
  45.   String action = "/mainctrl/commoninfo/addresslist/getAddressListClient?";
  46.   String nav = NavBar.makeNavbar(start, size, rowPerPage, action);
  47.   int i = 0;
  48.      if(coll != null && coll.size() != 0)
  49.      {
  50.        Iterator it = coll.iterator();
  51.        int flag = 0;
  52.        String bgcolor = null;
  53.        while( it.hasNext() && i < size && i < ( start+rowPerPage-1) )
  54.        {
  55.            i++;
  56.            avb = (AddressListValueBean)it.next();
  57.            if ( i < start ) continue;
  58.            if( flag%2==0 )
  59.            {
  60.              bgcolor = "#e0e0e0";
  61.            }
  62.            else
  63.            {
  64.              bgcolor = "#fafafa";
  65.            }
  66.            
  67. %>
  68.                           <tr bgcolor="<%= bgcolor%>" align="center"> 
  69.                             <td><a href="/mainctrl/commoninfo/addresslist/detailAddressListClient?companyId=<%= avb.getCompanyId()%>&sstart=<%= start%>"><%= avb.getCompanyName()%></a></td>
  70.                           </tr>
  71. <%
  72.            flag++;
  73.          }
  74.        }
  75. %>
  76.                           <tr> 
  77.                             <td bgcolor="#e0e0e0"> 
  78.                               &nbsp;&nbsp;<%= nav %>
  79.                             </td>
  80.                           </tr>
  81.                 </table>
  82.               </td>
  83.             </tr>
  84.           </table>
  85.           <br>
  86.           <br>
  87.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  88.        </TD>
  89.     </TR>
  90.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  91.    </TBODY> 
  92.   </TABLE>
  93.   <BR>
  94.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  95. </form></DIV>
  96. </BODY></HTML>