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

📄 header.jsp

📁 一个关于商业的网站
💻 JSP
字号:
<%@ page  import="com.everstar.usermanage.*" %>

<%
	HttpSession AuthInfoPool=request.getSession();
	boolean logined = Auth.islogin(AuthInfoPool);
	boolean isnormalUser = Auth.checkNormalUser(AuthInfoPool);
	int webstaruserid = Auth.getUserID(AuthInfoPool);
%>		

<html>
<head>
<title>WebStar</title>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>

<style type="text/css">
<!--
.normal { text-decoration: underline; color:#0033cc; }
.nomalsize { font-size: 10pt;  color: #0033cc; }
h2 { font-size: 14pt;  color: #3C7BFF; }

.nomalsize { font-size: 10pt;  color: #0033cc; }
a { text-decoration: none;  font-size: 10pt; color: #0033cc; }

-->
</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="/webstar/images/header.gif"></TD>
    <td width="1%" nowrap align="center"><img alt="" border=0 height=1 
      src="/webstar/images/1ptrans(1).gif"></td>
    
    <td width="1%" nowrap align="center">
     <b>
     <%
		String usernamehead = Auth.getUserName(AuthInfoPool);
		if (isnormalUser)
		{
			if (usernamehead==null)
			out.println(" ");
			else
			out.println("<a href=\"/webstar/editUser.jsp?userid="+webstaruserid+"\">"+usernamehead+"</a>");
		}
		else
		out.println(usernamehead==null?" ":usernamehead);
		
     %>
     </b>
    </td>
    <td width="90%">&nbsp;</td>
    <td width="10%" nowrap align="center">
     <%
     	if (usernamehead!=null)
     	{
     %>
     <b><a href="/webstar/logout.jsp" class="normal"  target="_top"> Logout </a></b>
     <%
     	}
     else
     {
     %>
     <b><a href="/webstar/login.jsp" class="normal"  target="_top"> Login </a></b>
     <%
     
     }  
     %>
     
      </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="/webstar/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 + -