main_data.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:2k
源码类别:
电子政务应用
开发平台:
Java
- <%@ page errorPage="/vnex/errorpage.jsp" %>
- <%@ page import="com.vnex.intranet.web.*" %>
- <%@ page import="java.util.*" %>
- <%
- String uri = request.getRequestURI();
- uri = uri.substring(uri.lastIndexOf("/")+1, uri.length());
- uri = uri.substring(0, uri.indexOf("_"));
- String sessionName = uri+"_menu";
- Collection collection = (Collection)session.getAttribute(sessionName);
- String showString = "你没有足够的权限调用此项功能。";
- if(collection != null && collection.size() > 1)
- {
- Iterator iterator = collection.iterator();
- int i = 0;
- while(iterator.hasNext())
- {
- MenuModel menuModel = (MenuModel)iterator.next();
- String bgcolor = "#e0e0e0";
- if(i%2==0)
- bgcolor = "#fafafa";
- i++;
- if(menuModel.getMenuAttribute() == MenuModel.TOP_MENU)
- {
- %>
- <tr bgcolor="#666666">
- <td colspan="2"><font class="strongw"><%=menuModel.getMenuCaption()%></strong></td>
- </tr>
- <% }
- else
- {
- String prifix = "";
- if(menuModel.getMenuAttribute() == MenuModel.SECOND_MENU)
- prifix = " *";
- else
- prifix = " --";
- %>
- <tr bgcolor="<%=bgcolor%>">
- <td width="145"><%=prifix%>
- <%
- if(menuModel.getMenuAttribute() == MenuModel.MENU_ITEM)
- {
- %>
- <a href="<%=menuModel.getAction()%>"><%=menuModel.getMenuCaption()%></a>
- <% }
- else
- {
- %>
- <strong><%=menuModel.getMenuCaption()%></strong>
- <% }%>
- </td>
- <td><%=menuModel.getMenuDescription()%></td>
- </tr>
- <% }
- }
- }
- else
- {
- %>
- <tr>
- <td align="center" colspan="2" bgcolor="#FFFFFF" height="100">
- <strong><%=showString%></strong>
- </td>
- </tr>
- <% }%>