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

📄 header.jsp

📁 easy to use, easy to setup bulletin board (forum)
💻 JSP
字号:
<%
/*
 * Copyright (C) 2002 by MyVietnam.net
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or any later version.
 *
 * All copyright notices regarding mvnForum
 * must remain intact in the scripts and in the outputted HTML
 * The "powered by" text/logo with a link back to
 * http://www.mvnForum.com and http://www.MyVietnam.net in the footer of the pages MUST
 * remain visible when the pages are viewed on the internet or intranet.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 * Support can be obtained from support forums at:
 * http://www.mvnForum.com/mvnforum/index
 *
 * Correspondence and Marketing Questions can be sent to:
 * info@MyVietnam.net
 *
 * @author: Minh Nguyen  minhnn@MyVietnam.net
 * @author: Mai  Nguyen  mai.nh@MyVietnam.net
 */
%>
<%@ page import="net.myvietnam.mvnplugin.mvnforum.auth.OnlineUser" %>
<%@ page import="net.myvietnam.mvnplugin.mvnforum.auth.OnlineUserManager" %>
<%@ page import="net.myvietnam.mvnplugin.mvnforum.MVNForumConfig" %>
<%
String contextPath = request.getContextPath();
//String imagePath =
OnlineUser onlineUser = OnlineUserManager.getInstance().getOnlineUser(request);
String memberName = onlineUser.getMemberName();
int memberID = onlineUser.getMemberID();
%>
<table width="95%" border="0" cellspacing="1" cellpadding="0" align="center">
  <tr>
    <td height="60">
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td valign="top" rowspan="2">
                <a href="<%=MVNForumConfig.getLogoUrl()%>"><img src="<%=contextPath%>/mvnplugin/mvnforum/images/logo.gif" width="250" height="60" border="0" alt="mvnForum Homepage"></a>
            </td>
            <td width="100%" height="25" align="right" valign="top" nowrap class="menuLink">
                <%
                if (memberID > 0) { %>
                Welcome <font color="#FF0000"><%=memberName%></font>&nbsp;&nbsp;|&nbsp;
                <a href="logout" class="menuLink">Logout</a>
                <% } else { %>
                Welcome Guest&nbsp;&nbsp;|&nbsp;
                <a href="login" class="menuLink">Login</a>
                <% } %>
                &nbsp;&nbsp;
            </td>
          </tr>
          <tr>
            <td height="35" valign="top">&nbsp;</td>
          </tr>
        </table>
    </td>
  </tr>
</table>

<table width="95%" cellspacing="1" cellpadding="2" align="center" bgcolor="#999999">
 <tr bgcolor="#f5f5f5">
    <td align="left" nowrap class="topmenuItem">&nbsp;
    <a href="index" class="topmenuItem">Index</a></a>&nbsp;|&nbsp;
    <a href="listforums" class="topmenuItem">All Forums</a>&nbsp;|&nbsp;
    <a href="listrecentthreads" class="topmenuItem">Recent Threads</a>&nbsp;|&nbsp;
    <a href="listonlineusers" class="topmenuItem">Who's Online</a>&nbsp;|&nbsp;
    <a href="listmembers" class="topmenuItem">User List</a>&nbsp;|&nbsp;
	<a href="registermember" class="topmenuItem">New User</a>&nbsp;|&nbsp;
	<a href="myprofile" class="topmenuItem">My Profile</a>&nbsp;|&nbsp;
	<a href="search" class="topmenuItem">Search</a>&nbsp;|&nbsp;
    <a href="help" class="topmenuItem">Help</a>
    </td>
</tr>
</table>

⌨️ 快捷键说明

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