header.jsp
来自「一个完整的网络订餐系统」· JSP 代码 · 共 168 行
JSP
168 行
<%--
- $Header: /cvsroot/mvnforum/mvnforum/srcweb/mvnplugin/mvnforum/user/header.jsp,v 1.73 2005/01/24 12:34:02 minhnn Exp $
- $Author: minhnn $
- $Revision: 1.73 $
- $Date: 2005/01/24 12:34:02 $
-
- ====================================================================
-
- Copyright (C) 2002-2005 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"%>
<fmt:bundle basename="mvnForum_i18n">
<script type="text/javascript">
function SubmitFormSearch() {
if (ValidateFormSearch() == true ) {
document.submitformsearch.submitbutton.disabled=true;
document.submitformsearch.submit();
}
}
function ValidateFormSearch() {
if (isBlank(document.submitformsearch.key, "<fmt:message 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="<%=onlineUser.getLogoPath()%>" height="83" border="0" alt="<fmt:message key="mvnforum.common.forum.homepage"/>" title="<fmt:message key="mvnforum.common.forum.homepage"/>"></a>
</td>
<td rowspan="2">
<!-- Put your banner here if you want -->
</td>
<td width="100%" height="25" align="right" valign="top" nowrap class="welcomeHeader">
<%if (onlineUser.isMember()) {%>
<fmt:message key="mvnforum.user.header.welcome"/> <font color="#FF0000"><%=memberName%></font>
<%int newMessageCount = onlineUser.getNewMessageCount();
if (newMessageCount > 0 ) { %>
(<a href="mymessage"><%=onlineUser.getNewMessageCount()%> <fmt:message key="mvnforum.common.message.header.new_private_message"/></a>)
<%}%>
<% if (onlineUser.getAuthenticationType() == OnlineUser.AUTHENTICATION_TYPE_COOKIE) { %>(<fmt:message key="mvnforum.user.header.we_remember_you"/>)<% } %> |
<a href="logout" class="welcomeHeader"><fmt:message key="mvnforum.user.header.logout"/></a>
<br/>
<% if ( MVNForumConfig.getEnableShowLastLogin() ) {%>
<fmt:message key="mvnforum.common.member.last_login"/>: <%=onlineUser.getGMTTimestampFormat(onlineUser.getLastLogonTimestamp())%>
<fmt:message key="mvnforum.common.from_ip"/> <%=onlineUser.getLastLogonIP()%>
<%}%>
<%} else if ((memberName!=null) && (memberName.length()>0)) {%>
<fmt:message key="mvnforum.user.header.welcome"/> <%=memberName%>
<%if (MVNForumConfig.getEnableLogin()) {%>
| <a href="login" class="welcomeHeader"><fmt:message key="mvnforum.user.header.login"/></a>
<% } %>
<%} else {%>
<fmt:message key="mvnforum.user.header.welcome"/> <%=MVNForumConfig.getDefaultGuestName()%>
<%if (MVNForumConfig.getEnableLogin()) {%>
| <a href="login" class="welcomeHeader"><fmt:message key="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="<fmt:message key="mvnforum.user.header.search"/>" title="<fmt:message key="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="<fmt:message key="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"><fmt:message key="mvnforum.user.header.index"/></a>
<%--
<a href="listforums" class="topmenu"><fmt:message key="mvnforum.user.header.all_forums"/></a> |
--%>
| <a href="listrecentthreads" class="topmenu"><fmt:message key="mvnforum.user.header.recent_threads"/></a>
<%if (MVNForumConfig.getEnableOnlineUsers()) {%>
| <a href="listonlineusers" class="topmenu"><fmt:message key="mvnforum.user.header.who_online"/></a>
<% } // if enable online users%>
<%if (MVNForumConfig.getEnableCompany() && MVNForumConfig.getEnableListCompanies()) {%>
| <a href="listcompanies" class="topmenu"><fmt:message key="mvnforum.user.company.company_list"/></a>
<% } %>
<%if (MVNForumConfig.getEnableListMembers()) {%>
| <a href="listmembers" class="topmenu"><fmt:message key="mvnforum.user.header.user_list"/></a>
<% } %>
<%if (MVNForumConfig.getEnableNewMember() && onlineUser.isGuest()) {%>
| <a href="registermember" class="topmenu"><fmt:message key="mvnforum.user.header.new_user"/></a>
<% } %>
<%if (onlineUser.isMember()) {%>
| <a href="myprofile" class="topmenu"><fmt:message key="mvnforum.user.header.my_profile"/></a>
<% } %>
<%if (MVNForumConfig.getEnableSearch()) {%>
| <a href="search" class="topmenu"><fmt:message key="mvnforum.user.header.search"/></a>
<%}%>
<!-- | <a href="help" class="topmenu"><fmt:message key="mvnforum.user.header.help"/></a> -->
<%if (MVNForumConfig.getEnableCompany()) {%>
<%if (onlineUser.isMember()) {%>
| <a href="addmessage" class="topmenu"><fmt:message key="mvnforum.user.company.send_message_to_tutor"/></a>
<%}%>
<%}%>
<%if (MVNForumConfig.getEnableRSS()) {%>
| <a href="rsssummary" class="topmenu"><img src="<%=request.getContextPath()%>/mvnplugin/mvnforum/images/icon/xml.gif" alt="<fmt:message key="mvnforum.user.rss.title"/>" title="<fmt:message key="mvnforum.user.rss.title"/>" hspace="0" vspace="0" border="0" align="bottom"></a>
<% } %>
<%if (permission.canModerateThreadInAnyForum()) {%>
| <a href="modcp" class="topmenu"><fmt:message key="mvnforum.user.header.moderation"/></a>
<% } %>
</td>
</tr>
</table>
<%if (MVNForumConfig.getShouldShowUserArea() == false) {%>
<br/>
<table class="tborder" width="95%" cellspacing="1" cellpadding="3" align="center">
<tr class="pagedesc">
<td align="center" class="warning"><fmt:message key="mvnforum.user.header.turn_off"/></td>
</tr>
</table>
<%}%>
</fmt:bundle>
<%@ include file="ad.jsp"%>
<%@ include file="news.jsp"%>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?