⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 header.jsp

📁 一个关于商业的网站
💻 JSP
字号:
<%
/**
 *	$RCSfile: header.jsp,v $
 *	$Revision: 1.5.2.1 $
 *	$Date: 2001/01/11 06:22:04 $
 */
%>


<%@ page import="java.util.*,com.coolservlets.forum.*,
			 com.coolservlets.forum.util.*,
			 com.coolservlets.util.*" %>
<%	// prepend "header" to variables used here to prevent clashes with including pages...
	String		siteTitle = "CoolServlets";
	String		pageTitle = (title == null || title.length() == 0) ? siteTitle : title + " - " + siteTitle;
	String 		headerUserName = null;
	boolean		headerCanPost = false;
	if (forumID > -1) {
		try {
			headerCanPost = forumFactory.getForum(forumID).hasPermission(ForumPermissions.CREATE_THREAD);
		} catch (Exception ignoreFnF) {}
	}
	if (authToken != null && forumFactory != null) {
		try {
			ProfileManager headerProfileManager = forumFactory.getProfileManager();
			User headerUser = (headerProfileManager == null) ? null : headerProfileManager.getUser(authToken.getUserID());
			if (headerUser != null && !headerUser.isAnonymous()) {
				headerUserName = headerUser.getName();
				if (headerUserName == null || headerUserName.trim().length() == 0) {
					headerUserName = headerUser.getUsername();
				}
			}
		} catch (Exception ignore) {}
	}
%>

<html>
<head>
<title><%= title %></title>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<style type="text/css">
<!--
A { text-decoration: none; }
A:hover	{ color:#FF3300; }
.normal { text-decoration: underline; color:#0033cc; }
.subject { font-family: verdana; }
.subjectOn { font-family: verdana; font-weight: bold; }
.username { font-family: verdana; color: #000000; }
.usernameOn { font-family: verdana; color: #000000; font-weight: bold; }
.datetime { font-family: verdana; color: #333333; }
.datetimeOn { font-family: verdana; color: #333333; font-weight: bold; }

.dateTimeList { font-family: verdana; color: #666666; text-align: center; }
.dateTimeListToday { font-family: verdana; color: #ff6600; text-align: center; }

.breadcrumbBox { font-family: verdana; 
				 font-size: 9pt; 
				 color: #0033cc; 
				 font-weight: bold;
			   }
.messageNav { font-size: 7pt;
				font-family: verdana;
			}
.messageNavButton { font-size: 8pt;
					font-family: verdana;
				}
-->
</style>
</HEAD>
<BODY bgColor=#ffffff leftMargin=0 text=#000000 topMargin=0 MARGINWIDTH="0" MARGINHEIGHT="0">

  
<TABLE bgColor=#ffffff border=0 cellPadding=0 cellSpacing=0 width="100%">
  <TBODY> 
  <TR> 
    <TD  vAlign=top><img src="images/header.gif" ></TD>
    <td width="1%" nowrap align="center"><img alt="" border=0 height=1 
      src="images/1ptrans(1).gif.gif" ></td>
    <%	if (headerUserName != null) { %>
    <td width="1%" nowrap align="center"><b><%= headerUserName %></b> 
    </td>
    <%	} %>
    <%-- Spacer --%>
    <%	if (forumID > 0) { %>
    <td width="90%">&nbsp;</td>
    <%	} else { %>
    <td width="94%">&nbsp;</td>
    <%	} %>
    <%	if (headerUserName != null) { %>
    <td width="1%" nowrap align="center"> <a href="index.jsp?logout=true" class="normal"> 
      Logout </a> </td>
    <%	} else { %>
    <td width="1%" nowrap align="center"> <a href="/webstar/login.jsp" class="normal"> 
      Login </a> </td>
    <%	} %>
	<%-- the Hot List  Author:Bruce  Date:2001/4/10 --%>
	<td width="1%" nowrap align="center">
		&nbsp;
		<img src="images/bluedot.gif" width=1 height=25 border=0>
		&nbsp;
	</td>
	<td width="1%" nowrap align="center">
		<a href="sort.jsp?forum=<%= forumID %>" class="normal"> <%-- all of the Forum --%>
			HotList
		</a>
	</td>
	<%--  the Hot List    Author:Bruce  Date:2001/4/10 --%>
    <%	if (forumID > 0) { %>
    <td width="1%" nowrap align="center"> &nbsp; <img src="images/bluedot.gif" width=1 height=25 border=0> 
      &nbsp; </td>
    <td width="1%" nowrap> <a href="viewForum.jsp?forum=<%= forumID %>"
			><img src="images/read_tb.gif" width=71 height=30 alt="Read messages" border="0"
		></a> </td>
    <%	if (headerCanPost) { %>
    <td width="1%" nowrap> <img src="file:///D|/tomcat/webapps/ROOT/images/vertLine.gif" width=1 height=30 border=0 hspace=4> 
    </td>
    <td width="1%" nowrap> <a href="post.jsp?forum=<%= forumID %>"
			><img src="images/post_tb.gif" width=62 height=30 alt="Post a message" border="0"
		></a> </td>
    <%	} %>
    <td width="1%" nowrap> <img src="images/vertLine.gif" width=1 height=30 border=0 hspace=4> 
    </td>
    <td width="1%" nowrap> <a href="search.jsp?forum=<%= forumID %>"
			><img src="images/search_tb_left.gif" height=30 alt="Search" border="0"
			><img src="images/search_tb_right.gif" height=30 border="0"
		></a> </td>
    <%	} else { %>
    <% if( forumID > -1 ) { %>
    <td width="1%" nowrap align="center"> &nbsp; <img src="images/bluedot.gif" width=1 height=25 border=0> 
      &nbsp; </td>
    <td width="1%" nowrap> <a href="search.jsp?forum=-1"
			><img src="images/search_tb_left.gif" height=30 alt="Search" border="0"
			><img src="images/search_tb_right.gif" height=30 border="0"
		></a> </td>
    <% } %>
    <%	} %>
  </TR>
  </tbody> 
</table>
    <table bgColor=#ffffff border=0 cellPadding=0 cellSpacing=0 width="100%">
	<tbody>
	<TR bgcolor="#0a1fae" align=middle><!-- Start: Local menus --> 
      <TD colSpan=3 height=20 noWrap vAlign=center><FONT color=#ffffff face=宋体 size=2>&nbsp;&nbsp;
      <A href="/webstar/index.jsp" style="COLOR: #ffffff; TEXT-DECORATION: none" target=_top>
      <FONT color=#ffffff>Home</FONT></A>&nbsp;&nbsp;<FONT color=#ffffff>|</FONT>&nbsp;&nbsp;
      <A href="/webstar/news/listnews.jsp" style="COLOR: #ffffff; TEXT-DECORATION: none" target=_top>
      <FONT color=#ffffff>Company News</FONT>&nbsp;&nbsp;</A><FONT color=#ffffff>|</FONT>&nbsp;&nbsp; 
      <a href="/webstar/career/listposition.jsp" style="COLOR: #ffffff; TEXT-DECORATION: none" target=_top>
      <FONT color=#ffffff>Career opportunity</FONT></a>&nbsp;&nbsp;<FONT color=#ffffff>|</FONT>&nbsp;&nbsp; 
      <A href="/webstar/bbs/index.jsp" style="COLOR: #ffffff; TEXT-DECORATION: none" target=_top>
      <FONT color=#ffffff>BBS</FONT></A>&nbsp;&nbsp;<FONT color=#ffffff>|</FONT>&nbsp;&nbsp; 
      <A href="/register.jsp" style="COLOR: #ffffff; TEXT-DECORATION: none" target=_top>
      <FONT color=#ffffff>Mail</FONT></A>&nbsp;&nbsp;<FONT color=#ffffff>|</FONT>&nbsp;&nbsp;
      <A href="/webstar/poll/browsepoll.jsp" style="COLOR: #ffffff; TEXT-DECORATION: none" target=_top>
      <FONT color=#ffffff>Online Poll</FONT></A>&nbsp;&nbsp;<FONT color=#ffffff>|</FONT> 
        </FONT></TD>
      </TR>
    </TBODY> 
  </TABLE>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -