📄 header.jsp
字号:
<%
/**
* $RCSfile: header.jsp,v $
* $Revision: 1.3 $
* $Date: 2000/12/18 02:06:21 $
*/
%>
<%@ page
import="com.coolservlets.forum.*,
com.coolservlets.forum.util.*"
%>
<jsp:useBean id="adminBean" scope="session"
class="com.coolservlets.forum.util.admin.AdminBean"/>
<% ////////////////////////////////
// Jive authorization check
// check the bean for the existence of an authorization token.
// Its existence proves the user is valid. If it's not found, redirect
// to the login page
Authorization authToken = adminBean.getAuthToken();
if( authToken == null ) {
response.sendRedirect( "/mainctrl/bbs/admin" );
return;
}
%>
<% ////////////////////////////////////////
// figure out what type of user we are:
boolean isSystemAdmin = ((Boolean)session.getValue("jiveAdmin.systemAdmin")).booleanValue();
boolean isForumAdmin = ((Boolean)session.getValue("jiveAdmin.forumAdmin")).booleanValue();
boolean isGroupAdmin = ((Boolean)session.getValue("jiveAdmin.groupAdmin")).booleanValue();
%>
<% ////////////////
// get parameters
String tab = ParamUtils.getParameter(request,"tab");
if( tab == null ) {
tab = "global";
}
%>
<html>
<head>
<title>header.jsp</title>
<link rel="stylesheet" href="style/global.css">
</head>
<body background="images/backleft.gif" marginwidth=0 marginheight=0 leftmargin=0 topmargin=0 bgcolor="#ffffff">
<%-- begin header --%>
<table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%">
<tr height="100%">
<td height="100%" width="1%" nowrap valign="bottom"
><img src="images/title.gif" hspace="15" width="215" height="50" alt="Jive Administration Tool" border="0"
><br><a href="sidebar.jsp?tree=system" onclick="location.href='header.jsp?tab=global';" target="sidebar"
><img src="images/tabs_global_<%= (tab.equals("global"))?"on":"off" %>.gif" width="138" height="35" alt="" border="0"
></a><a href="sidebar.jsp?tree=forum" onclick="location.href='header.jsp?tab=forums';" target="sidebar"
><img src="images/tabs_forum_<%= (tab.equals("forums"))?"on":"off" %>.gif" width="138" height="35" alt="" border="0"
></a></td><td height="100%" width="98%" valign="bottom"
><img src="images/tabs_padding.gif" width="100%" height="85" alt="" border="0"></td
><td height="100%" width="1%" valign="bottom"
><a href="index.jsp?logout=true"
><img src="images/logout.gif" width="64" height="85" alt="" border="0"></a></td>
</tr>
</table>
<%-- end header --%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -