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

📄 header.jsp

📁 java servlet著名论坛源代码
💻 JSP
字号:
<%--
 - $Header: /cvsroot/mvnforum/mvnforum/srcweb/mvnplugin/mvnforum/admin/header.jsp,v 1.29 2004/06/06 10:59:55 minhnn Exp $
 - $Author: minhnn $
 - $Revision: 1.29 $
 - $Date: 2004/06/06 10:59:55 $
 -
 - ====================================================================
 -
 - Copyright (C) 2002-2004 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
 --%>
<%--
minhnn: this is cause problem due to Tomcat 4 bug
<%@ page pageEncoding="utf-8"%>
--%>
<%@ page import="com.mvnforum.MVNForumConfig" %>
<%@ page import="net.myvietnam.mvncore.util.ParamUtil" %>
<%@ page import="com.mvnforum.user.UserModuleConfig" %>
<%
/** @todo: cache indexUrl */
StringBuffer buffer = new StringBuffer();
buffer.append(ParamUtil.getContextPath());
buffer.append(UserModuleConfig.getUrlPattern());
buffer.append("/index");
String indexUrl = buffer.toString();
%>
<table width="95%" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td width="252" rowspan="2">
      <a href="<%=indexUrl%>"><img src="<%=contextPath%>/mvnplugin/mvnforum/images/logo.gif" height="50" border="0" alt="mvnForum Homepage"></a>
    </td>
    <td width="100%" height="25" align="right" class="welcomeHeader">
      <%if ( onlineUser.isMember() ) {%>
        Welcome <font color="#FF0000"><%=memberName%></font>&nbsp;&nbsp;|&nbsp;
        <a href="logout" class="welcomeHeader">Logout</a>
      <%} else if ((memberName!=null) && (memberName.length()>0)) {%>
        Welcome <%=memberName%>&nbsp;&nbsp;|&nbsp;
        <a href="login" class="welcomeHeader">Login</a>
      <%} else {%>
        Welcome <%=MVNForumConfig.getDefaultGuestName()%>&nbsp;&nbsp;|&nbsp;
        <a href="login" class="welcomeHeader">Login</a>
      <%}%>
    </td>
  </tr>
  <tr>
    <td height="40" colspan="3" align="right" valign="bottom" class="zoneTitle">mvnForum&nbsp;Admin&nbsp;Control&nbsp;Panel</td>
  </tr>
</table>

<table class="tborder" width="95%" cellspacing="1" cellpadding="2" align="center">
  <tr class="topmenu">
    <td nowrap>&nbsp;
      <a href="<%=indexUrl%>" class="topmenu">Forum Index</a>
      &nbsp;|&nbsp;<a href="index" class="topmenu">Admin Index</a>
<%if ( permission.canAdminSystem() ) {%>
    &nbsp;|&nbsp;<a href="misctasks" class="topmenu">Miscellaneous Tasks</a>
<%}%>
<%if ( permission.canEditAnyForum() || permission.canAddForum()) {%>
    &nbsp;|&nbsp;<a href="forummanagement" class="topmenu">Forum Management</a>
<%}%>
<%if ( permission.canAdminSystem() ) {%>
    &nbsp;|&nbsp;<a href="usermanagement" class="topmenu">User Management</a>
<%}%>
<%if ( permission.canAdminSystem() ) {%>
    &nbsp;|&nbsp;<a href="groupmanagement" class="topmenu">Group Management</a>
<%}%>
<%if ( permission.canAdminSystem() ) {%>
    &nbsp;|&nbsp;<a href="sendmail" class="topmenu">Send Mail</a>
<%}%>
    </td>
  </tr>
</table>

⌨️ 快捷键说明

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