📄 header.jsp
字号:
<%--
- $Header: /cvsroot/mvnforum/mvnforum/srcweb/mvnplugin/mvnforum/user/header.jsp,v 1.47 2004/06/06 10:59:55 minhnn Exp $
- $Author: minhnn $
- $Revision: 1.47 $
- $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
--%>
<%@ page pageEncoding="utf-8"%>
<%@ page import="com.mvnforum.MVNForumConfig" %>
<%@ include file="inc_js_checkvalid_myvietnamlib.jsp"%>
<script type="text/javascript">
function SubmitFormSearch() {
if (ValidateFormSearch() == true ) {
document.submitformsearch.submitbutton.disabled=true;
document.submitformsearch.submit();
}
}
function ValidateFormSearch() {
if (isBlank(document.submitformsearch.key, "[mvnforum.user.header.search]")) return false;
return true;
}
</script>
<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 rowspan="2">
<a href="<%=MVNForumConfig.getLogoUrl()%>"><img src="<%=contextPath%>/mvnplugin/mvnforum/images/logo.gif" height="50" border="0" alt="[mvnforum.common.forum.homepage]" title="[mvnforum.common.forum.homepage]"></a>
</td>
<td width="100%" height="25" align="right" valign="top" nowrap class="welcomeHeader">
<%if (onlineUser.isMember()) {%>
[mvnforum.user.header.welcome] <font color="#FF0000"><%=memberName%></font>
<% if (onlineUser.getAuthenticationType() == OnlineUser.AUTHENTICATION_TYPE_COOKIE) { %>([mvnforum.user.header.we_remember_you])<% } %> |
<a href="logout" class="welcomeHeader">[mvnforum.user.header.logout]</a>
<%} else if ((memberName!=null) && (memberName.length()>0)) {%>
[mvnforum.user.header.welcome] <%=memberName%>
<%if (MVNForumConfig.getEnableLogin()) {%>
| <a href="login" class="welcomeHeader">[mvnforum.user.header.login]</a>
<% } %>
<%} else {%>
[mvnforum.user.header.welcome] <%=MVNForumConfig.getDefaultGuestName()%>
<%if (MVNForumConfig.getEnableLogin()) {%>
| <a href="login" class="welcomeHeader">[mvnforum.user.header.login]</a>
<% } %>
<%}%>
</td>
</tr>
<tr>
<td height="35" valign="top">
<form action="searchprocess" name="submitformsearch">
<table class="tborder" cellspacing="1" cellpadding="2" align="right">
<tr class="topmenu">
<td align="left" valign="top" nowrap>
<img src="<%=request.getContextPath()%>/mvnplugin/mvnforum/images/icon/search.gif" alt="[mvnforum.user.header.search]" title="[mvnforum.user.header.search]" hspace="0" vspace="0" border="0" align="bottom">
<input type="text" size="10" name="key">
<input type="button" name="submitbutton" value="[mvnforum.user.header.search]" onclick="javascript:SubmitFormSearch();" class="mainoption">
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table class="tborder" width="95%" cellspacing="1" cellpadding="2" align="center">
<tr class="topmenu">
<td nowrap>
<a href="index" class="topmenu">[mvnforum.user.header.index]</a> |
<%--
<a href="listforums" class="topmenu">[mvnforum.user.header.all_forums]</a> |
--%>
<a href="listrecentthreads" class="topmenu">[mvnforum.user.header.recent_threads]</a> |
<a href="listonlineusers" class="topmenu">[mvnforum.user.header.who_online]</a> |
<a href="listmembers" class="topmenu">[mvnforum.user.header.user_list]</a> |
<%if (MVNForumConfig.getEnableNewMember() && onlineUser.isGuest()) {%>
<a href="registermember" class="topmenu">[mvnforum.user.header.new_user]</a> |
<% } %>
<%if (onlineUser.isMember()) {%>
<a href="myprofile" class="topmenu">[mvnforum.user.header.my_profile]</a> |
<% } %>
<a href="search" class="topmenu">[mvnforum.user.header.search]</a> |
<a href="help" class="topmenu">[mvnforum.user.header.help]</a>
<%if (MVNForumConfig.getEnableRSS()) {%>
| <a href="rss" class="topmenu"><img src="<%=request.getContextPath()%>/mvnplugin/mvnforum/images/icon/xml.gif" alt="[mvnforum.common.global_rss]" title="[mvnforum.common.global_rss]" hspace="0" vspace="0" border="0" align="bottom"></a>
<% } %>
<%if (permission.canModerateThreadInAnyForum()) {%>
| <a href="modcp" class="topmenu">[mvnforum.user.header.moderation]</a>
<% } %>
</td>
</tr>
</table>
<%@ include file="ad.jsp"%>
<%@ include file="news.jsp"%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -