header.jsp
来自「免费的java企业级论坛可执行程序」· JSP 代码 · 共 366 行 · 第 1/2 页
JSP
366 行
<%--
- $Header: /cvsroot/mvnforum/mvnforum/srcweb/mvnplugin/mvnforum/admin/header.jsp,v 1.115 2007/11/26 03:02:11 minhnn Exp $
- $Author: minhnn $
- $Revision: 1.115 $
- $Date: 2007/11/26 03:02:11 $
-
- ====================================================================
-
- Copyright (C) 2002-2007 by MyVietnam.net
-
- 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 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.
-
- 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 at MyVietnam net
-
- @author: Minh Nguyen
- @author: Mai Nguyen
--%>
<%@ page import="net.myvietnam.mvncore.util.ParamUtil" %>
<%@ page import="com.mvnforum.user.UserModuleConfig" %>
<%
if (environmentService.isEnterprise()) { %>
<script type="text/javascript" src="<%=contextPath%>/mvnplugin/mvnforum/js/domLib.js"> </script>
<script type="text/javascript" src="<%=contextPath%>/mvnplugin/mvnforum/js/domMenu.js"> </script>
<%} %>
<table width="95%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="252" rowspan="2">
<a href="<%=MVNForumConfig.getLogoUrl()%>"><img src="<%=onlineUser.getLogoPath()%>" height="50" border="0" alt="mvnForum Homepage" /></a>
</td>
<td width="100%" height="25" align="right" class="portlet-font">
<%boolean enableLogin = MVNForumConfig.getEnableLogin();
if ( onlineUser.isMember() ) {%>
<span class="welcomeHeader"> <fmt:message key="mvnforum.user.header.welcome"/></span> <font color="#FF0000"><%=memberName%></font>
<%int newMessageCount = onlineUser.getNewMessageCount();
if (newMessageCount > 0) { %>
(<a href="<%=urlResolver.encodeURL(request, response, "mymessage", URLResolverService.RENDER_URL, "view" /*portlet mode */)%>"><font size="1"><%=onlineUser.getNewMessageCount()%> <fmt:message key="mvnforum.common.message.header.new_private_message"/></font></a>)
<%}%>
<%if (enableLogin) {%>
| <a class="command" href="<%=urlResolver.encodeURL(request, response, "logout")%>"><fmt:message key="mvnforum.common.action.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 (enableLogin) {%>
| <a class="command" href="<%=urlResolver.encodeURL(request, response, "login")%>"><fmt:message key="mvnforum.common.action.login"/></a>
<%}%>
<%} else {%>
<fmt:message key="mvnforum.user.header.welcome"/> <%=MVNForumConfig.getDefaultGuestName()%>
<%if (enableLogin) {%>
| <a class="command" href="<%=urlResolver.encodeURL(request, response, "login")%>"><fmt:message key="mvnforum.common.action.login"/></a>
<%}%>
<%}%>
</td>
</tr>
<tr>
<td height="40" colspan="3" align="right" valign="bottom" nowrap="nowrap" class="zoneTitle"><fmt:message key="mvnforum.admin.header.admin_zone"/></td>
</tr>
</table>
<% if (MVNForumConfig.getEnableUsePopupMenuInViewThread()) { %>
<script type="text/javascript">
<%
int menuID = 1;
int submenuID =1;
double menuBarWidth = 0;
%>
domMenu_data.set('domMenu_main', new Hash(
<%if (isServlet /*@see admin/inc_common.jsp */ ) { menuBarWidth +=12.5; %>
<%=menuID++%>, new Hash(
'contents', 'Forum Index',
'contentsHover', 'Forum Index',
'uri', '<%=urlResolver.encodeURL(request, response, "index", URLResolverService.RENDER_URL, "view" /*portlet mode */)%>',
'statusText', 'Mojavelinux.cozm homepages'
),
<%}%>
<%menuBarWidth +=12.5;%>
<%=menuID++%>, new Hash(
'contents', 'Admin Index',
'contentsHover', 'Admin Index',
'uri', '<%=urlResolver.encodeURL(request, response, "index")%>',
'statusText', 'About mojavelinux.com'
<%if ( permission.canAdminSystem() ) {%>
,<%=submenuID++%>, new Hash(
'contents', 'Test System Configuration',
'uri', '<%=urlResolver.encodeURL(request, response, "testsystem")%>'
)
<%}%>
<%if ( permission.canAdminSystem()) {%>
,<%=submenuID++%>, new Hash(
'contents', 'Miscellaneous Tasks',
'uri', '<%=urlResolver.encodeURL(request, response, "misctasks")%>',
'statusText', 'Learn what powers mojavelinux.com'
)
<%}%>
<%if ( permission.canEditAnyForum() || permission.canAddForum()) {%>
,<%=submenuID++%>, new Hash(
'contents', 'Forum Management',
'uri', '<%=urlResolver.encodeURL(request, response, "forummanagement")%>',
'statusText', 'Read about Dan'
)
<%}%>
<%if ( permission.canAdminSystem()) { %>
,<%=submenuID++%>, new Hash(
'contents','User Management',
'uri', '<%=urlResolver.encodeURL(request, response, "usermanagement")%>',
'statusText', 'Read about Dan'
)
<% } %>
<%if ( permission.canAdminSystem() ) {%>
,<%=submenuID++%>, new Hash(
'contents','Group Management',
'uri','<%=urlResolver.encodeURL(request, response, "groupmanagement")%>',
'statusText', 'Read about Dan'
)
<%}%>
<%if ( permission.canAdminSystem() ) {%>
, <%=submenuID++%>, new Hash(
'contents','Log File Management',
'uri', '<%=urlResolver.encodeURL(request, response, "viewlogsystem")%>',
'statusText', 'Read about Dan'
)
<%}%>
<%if ( permission.canSendMail() ) {%>
,<%=submenuID++%>, new Hash(
'contents','Send Mail',
'uri', '<%=urlResolver.encodeURL(request, response, "sendmail")%>',
'statusText', 'Read about Dan'
)
<%}%>
<%if ( permission.canAdminSystem() ) {%>
,<%=submenuID++%>, new Hash(
'contents','Config mvnForum',
'uri', '<%=urlResolver.encodeURL(request, response, "configindex")%>',
'statusText', 'Read about Dan'
)
<%}%>)
<%
int index = 1;
if ( permission.canAdminSystem() ) {%>
<%menuBarWidth +=12.5;%>
,<%=menuID++%>, new Hash(
'contents', 'Miscellaneous Tasks',
'contentsHover', 'Miscellaneous Tasks',
'uri', '<%=urlResolver.encodeURL(request, response, "misctasks")%>',
'statusText', 'Demo Sites',
<%=index++%>, new Hash(
'contents','Test System Configuration',
'uri', '<%=urlResolver.encodeURL(request, response, "testsystem")%>',
'statusText', 'Dynamic hierarchial menu using the DOM'
),
<%=index++%>, new Hash(
'contents', 'Config mvnForum',
'uri', '<%=urlResolver.encodeURL(request, response, "configindex")%>',
'statusText', 'Dynamic tooltips using the DOM'
),
<%=index++%>, new Hash(
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?