index.jsp

来自「免费的java企业级论坛可执行程序」· JSP 代码 · 共 335 行 · 第 1/2 页

JSP
335
字号
<%--
 - $Header: /cvsroot/mvnforum/mvnforum/srcweb/mvnplugin/mvnforum/admin/index.jsp,v 1.93 2007/11/19 08:28:45 minhnn Exp $
 - $Author: minhnn $
 - $Revision: 1.93 $
 - $Date: 2007/11/19 08:28:45 $
 -
 - ====================================================================
 -
 - 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 contentType="text/html;charset=utf-8" %>
<%@ page errorPage="fatalerror.jsp"%>

<%@ page import="net.myvietnam.mvncore.info.*" %>
<%@ page import="com.mvnforum.db.*" %>

<%@ include file="inc_common.jsp"%>
<%@ include file="inc_doctype.jsp"%>
<fmt:bundle basename="mvnForum_i18n">
<mvn:html locale="${currentLocale}">
<mvn:head>
  <mvn:title><fmt:message key="mvnforum.common.forum.title_name"/> - <fmt:message key="mvnforum.admin.index.title"/></mvn:title>
<%@ include file="/mvnplugin/mvnforum/meta.jsp"%>
<link href="<%=onlineUser.getCssPath(request)%>" rel="stylesheet" type="text/css" />
</mvn:head>
<mvn:body>
<%@ include file="header.jsp"%>
<br/>

<table width="95%" align="center">
  <tr class="nav">
    <td><img src="<%=contextPath%>/mvnplugin/mvnforum/images/nav.gif" alt="" /></td>
    <td width="100%" nowrap="nowrap">
    <a class="nav" href="<%=urlResolver.encodeURL(request, response, "index", URLResolverService.RENDER_URL, "view")%>"><fmt:message key="mvnforum.common.nav.index"/></a>&nbsp;&raquo;&nbsp;
    <fmt:message key="mvnforum.admin.index.title"/>
    </td>
  </tr>
</table>
<br/>

<table class="tborder" width="95%" cellspacing="1" cellpadding="3" align="center">
  <tr class="pagedesc">
    <td>
    <fmt:message key="mvnforum.admin.index.info"/><br/>
    <fmt:message key="mvnforum.common.prompt.choose_tasks"/><br/>

<%if ( permission.canAdminSystem() ) {%>
    <a href="<%=urlResolver.encodeURL(request, response, "testsystem")%>" class="command"><fmt:message key="mvnforum.admin.testsystem.title"/></a><br/>
<%}%>
    </td>
  </tr>
</table>
<br/>
<%
if ( onlineUser.getPermission().canAdminSystem()) {
    String startTime = ParamUtil.getAttribute(request, "StartTime");
    String nowTime = ParamUtil.getAttribute(request, "NowTime");
    String upTime = ParamUtil.getAttribute(request, "UpTime");
%>
<mvn:cssrows>
<table class="tborder" width="95%" cellspacing="1" cellpadding="3" align="center">
  <tr class="portlet-section-header">
    <td align="center" width="30%"><fmt:message key="mvnforum.admin.index.mvnforum_status"/></td>
    <td align="center"><fmt:message key="mvnforum.admin.index.start_time"/></td>
    <td align="center"><fmt:message key="mvnforum.admin.index.now"/></td>
    <td align="center"><fmt:message key="mvnforum.admin.index.up_time"/></td>
  </tr>
  <tr class="<mvn:cssrow/>">
    <td align="center" class="portlet-font">
    <%if (MVNForumConfig.getShouldShowUserArea()) {%>
      <span style="color:#008000"><fmt:message key="mvnforum.common.on"/></span> - <a href="<%=urlResolver.encodeURL(request, response, "changemode?mode=off", URLResolverService.ACTION_URL)%>" class="command"><fmt:message key="mvnforum.admin.index.turn_off"/></a>
    <%} else {%>
      <span style="color:#FF0080"><fmt:message key="mvnforum.common.off"/></span> - <a href="<%=urlResolver.encodeURL(request, response, "changemode?mode=on", URLResolverService.ACTION_URL)%>" class="command"><fmt:message key="mvnforum.admin.index.turn_on"/></a>
    <%}%>
    </td>
    <td align="center"><%=startTime%></td>
    <td align="center"><%=nowTime%></td>
    <td align="center"><%=upTime%></td>
  </tr>
</table>
</mvn:cssrows>
<%}%>
<br/>
<mvn:cssrows>
<table class="tborder" width="95%" cellspacing="1" cellpadding="3" align="center">
  <tr class="portlet-section-header">
    <td colspan="2"><fmt:message key="mvnforum.admin.index.mvnforum_infomation"/>:</td>
  </tr>
  <tr class="<mvn:cssrow/>">
    <td width="30%"><fmt:message key="mvnforum.admin.index.product_name"/></td>
    <td><%= mvnForumInfo.getProductName()%></td>
  </tr>
  <tr class="<mvn:cssrow/>">
    <td><fmt:message key="mvnforum.admin.index.product_desc"/></td>
    <td><%=mvnForumInfo.getProductDesc()%></td>
  </tr>
  <tr class="<mvn:cssrow/>">
    <td><fmt:message key="mvnforum.admin.index.product_version"/></td>
    <td><%= mvnForumInfo.getProductVersion()%></td>
  </tr>
  <tr class="<mvn:cssrow/>">
    <td><fmt:message key="mvnforum.admin.index.product_release_date"/></td>
    <td><%= mvnForumInfo.getProductReleaseDate()%></td>
  </tr>
  <tr class="<mvn:cssrow/>">
    <td><fmt:message key="mvnforum.admin.index.product_homepage"/></td>
    <td><a href="<%= mvnForumInfo.getProductHomepage()%>"><%=mvnForumInfo.getProductHomepage()%></a></td>
  </tr>
  <tr class="<mvn:cssrow/>">
    <td><img src="<%=contextPath%>/mvnplugin/mvnforum/images/icon/group.gif" border="0" alt="mvnForum Professional Services"/>
    <span style="color:#008000"><fmt:message key="mvnforum.admin.index.mvnforum_professional_services"/></span></td>
    <td><a href="http://www.myvietnam.net/myvietnam/myvietnam/mvnforumservices"><fmt:message key="mvnforum.admin.index.mvnforum_professional_services_information"/></a></td>
  </tr>
  <tr class="<mvn:cssrow/>">
    <td><input type="submit" class="portlet-form-button" value="<fmt:message key="mvnforum.admin.index.check_latest_version_now"/>" onclick="javascript: document.mvnforumimage.src='http://www.mvnforum.com/mvnforum/getmvnforumimage?version=<%= mvnForumInfo.getProductVersion()%>&amp;date=<%= mvnForumInfo.getProductReleaseDate()%>'; return false;"/></td>
    <td><img src="<%=contextPath%>/mvnplugin/mvnforum/images/icon/emptyspace.gif" alt="Latest mvnForum version" name="mvnforumimage" id="mvnforumimage" border="0"/></td>
  </tr>
</table>
</mvn:cssrows>
<br/>

<mvn:cssrows>
<table class="tborder" width="95%" cellspacing="1" cellpadding="3" align="center">
  <tr class="portlet-section-header">
    <td colspan="2"><fmt:message key="mvnforum.admin.index.myvietnam_framework_information"/>:</td>
  </tr>
  <tr class="<mvn:cssrow/>">
    <td width="30%"><fmt:message key="mvnforum.admin.index.product_name"/></td>
    <td><%=mvnCoreInfo.getProductName()%></td>
  </tr>
  <tr class="<mvn:cssrow/>">
    <td><fmt:message key="mvnforum.admin.index.product_desc"/></td>
    <td><%=mvnCoreInfo.getProductDesc()%></td>
  </tr>
  <tr class="<mvn:cssrow/>">
    <td><fmt:message key="mvnforum.admin.index.product_version"/></td>
    <td><%=mvnCoreInfo.getProductVersion()%></td>
  </tr>

⌨️ 快捷键说明

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