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

电子政务应用

开发平台:

Java

  1. <%@ page language="java" %>
  2.             
  3. <%@ page import="java.util.*"%>
  4. <%@ page import="java.lang.*"%>
  5. <%@ page import="com.vnex.intranet.privilegeassign.proxy.*"%>
  6. <%@ page import="com.vnex.intranet.organization.proxy.*"%>
  7. <%@ page import="com.vnex.intranet.organization.value.*"%>
  8. <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
  9. <HTML>
  10. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  11. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  12. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  13. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_communicate.js"></script>
  14. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  15. <script language="JavaScript" src="/vnex/util/strUtil.js"></script>    
  16. <DIV align=center>
  17. <form name="form1" method="post">
  18.   <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  19.     <TBODY> 
  20.       <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  21.       <TR> 
  22.         <TD colSpan=3 align="center" class="iframestyle" valign="top"><br>
  23.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  24.             <tr valign="top"> 
  25.               <td bgcolor="#fafafa" > 
  26.                 <table width="600" border="0" cellspacing="0" cellpadding="0">
  27.                   <tr valign="top" bgcolor="#cccccc"> 
  28.                     <td> 
  29.                       <table width="600" border="0" cellpadding="2" cellspacing="0">
  30.                         <tr bgcolor="#666666"> 
  31.                             <td><font class="strongw">
  32.                                <a href="/mainctrl/home/index"><font color="#ffffff">首页</font></a>&gt;&gt;
  33.                                <a href="/mainctrl/communication/main"><font color="#ffffff">通信</font></a>&gt;&gt;
  34.                                公告板
  35.                                </font>
  36.                             </td>
  37.                         </tr>
  38.                       </table>
  39.                 <table border="0" cellpadding="2" cellspacing="0" width="600">
  40.                   <tr bgcolor="#e0e0e0"> 
  41.                           <td colspan="4"> <font class="strong">&nbsp;&nbsp;您有权限对以下部门进行公告版管理,请选择部门:</font> 
  42.                           </td>
  43.                   </tr>
  44.                       <%
  45.   int rowColor = 1;
  46.   EmpPrivilegeProxyBean empProxy = new EmpPrivilegeProxyBean();
  47. PositionProxyBean proxy = new PositionProxyBean();
  48.      Collection coll = proxy.findEmpDivision(BusinessName.getEmpId(), 10694);
  49.      Collection empColl = empProxy.getAssignedDivisions(BusinessName.getEmpId(), 10694);
  50. coll.removeAll(empColl);
  51. coll.addAll(empColl);
  52. Iterator iter = coll.iterator();
  53. while(iter.hasNext())
  54. {
  55. String rColor = (rowColor%2==1)?"#fafafa":"#e0e0e0";
  56. out.println("<tr bgcolor="+rColor+">");
  57.                         out.println("<td colspan=4> <div align=center>");
  58.     DivisionValueBean pinfo = (DivisionValueBean)iter.next();
  59. if (coll.size() == 1)
  60. {
  61.                         BusinessName.setDeptId(pinfo.getDivisionId());
  62.                          BusinessName.setDeptName(pinfo.getDivisionName());
  63.                             response.sendRedirect("/mainctrl/bulletin/home?home");
  64. }
  65. out.println("<a href="/mainctrl/bulletin/homeMiddle?depId="+pinfo.getDivisionId()+"&depName="+pinfo.getDivisionName()+"">");
  66. //out.println(pinfo.getDivisionId());
  67. out.println(pinfo.getDivisionName());
  68. out.println("</a><br></div></td></tr>");
  69. rowColor++;
  70. }
  71. %>
  72.                 </table>
  73.                     </td>
  74.                     </tr>
  75.                   </table>
  76.                 </td>
  77.              </tr>
  78.           </table>
  79.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  80.        </TD>
  81.      </TR>
  82.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  83.     </TBODY> 
  84.   </TABLE>
  85.     <BR>
  86.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  87. </form>
  88. </DIV>
  89. </BODY>
  90. </HTML>