footer.jsp
来自「opennms得相关源码 请大家看看」· JSP 代码 · 共 115 行
JSP
115 行
<%-- This page is included by other JSPs to create a uniform footer. It expects that a <base> tag has been set in the including page that directs all URLs to be relative to the servlet context. This include JSP takes one parameter: location (optional): used to "dull out" the item in the menu bar that has a link to the location given (for example, on the outage/index.jsp, give the location "outages")--%><%@page language="java" contentType="text/html" session="true" import="java.io.File,org.opennms.web.authenticate.Authentication" %><% String location = (String)request.getParameter( "location" ); File file = new File("@install.etc.dir@/map.enable");%><!-- Footer --><table width="100%" border="0" cellspacing="0" cellpadding="2"> <tr> <td class="footer" ALIGN="center"> <font SIZE="-1" FACE="arial"> <%-- Node List --%> <% if( "element".equals( location ) ) { %> List Nodes | <% } else { %> <a href="element/nodelistonly.jsp">List Nodes</a> | <% } %> <%-- Elements Search --%> <% if( "element".equals( location ) ) { %> Search | <% } else { %> <a href="element/index.jsp">Search</a> | <% } %> <%-- Outages --%> <% if( "outages".equals( location ) ) { %> Outages | <% } else { %> <a href="outage/index.jsp">Outages</a> | <% } %> <%-- Events --%> <% if( "event".equals( location ) ) { %> Events | <% } else { %> <a href="event/index.jsp">Events</a> | <% } %> <%-- Notification --%> <% if( "notification".equals( location ) ) { %> Notification | <% } else { %> <a href="notification/index.jsp">Notification</a> | <% } %> <%-- Assets --%> <% if( "asset".equals( location ) ) { %> Assets | <% } else { %> <a href="asset/index.jsp">Assets</a> | <% } %><%-- <%-- Security -- % > <% if( "security".equals( location ) ) { %> Security | <% } else { %> <a href="security.jsp">Security</a> | <% } %>--%> <%-- Report --%> <% if( "report".equals( location ) ) { %> Reports | <% } else { %> <a href="report/index.jsp">Reports</a> | <% } %><% if( file.exists() ) { %> <%-- Map --%> <% if( "map".equals( location ) ) { %> Map | <% } else { %> <a href="map/index.jsp">Map</a> | <% } %><% } %><% if( request.isUserInRole( Authentication.ADMIN_ROLE )) { %> <%-- Admin --%> <% if( "admin".equals( location ) ) { %> Admin | <% } else { %> <a href="admin/index.jsp">Admin</a> | <% } %><% } %> <%-- Help --%> <% if( "help".equals( location ) ) { %> Help <% } else { %> <a href="help/index.jsp">Help</a> <% } %> </font> </td> </tr> <tr> <td align="center" > <font SIZE="-1">OpenNMS <a href="help/about.jsp">Copyright</a> © 2002-2006 <a HREF="http://www.opennms.com/">The OpenNMS Group, Inc.</a> OpenNMS® is a registered trademark of <a href="http://www.opennms.com">The OpenNMS Group, Inc.</a> </font> </td> </tr></table>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?