index.jsp
来自「一个完整的网络订餐系统」· JSP 代码 · 共 318 行
JSP
318 行
<%--
- $Header: /cvsroot/mvnforum/mvnforum/srcweb/mvnplugin/mvnforum/admin/index.jsp,v 1.44 2005/02/24 07:20:13 minhnn Exp $
- $Author: minhnn $
- $Revision: 1.44 $
- $Date: 2005/02/24 07:20:13 $
-
- ====================================================================
-
- 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 contentType="text/html;charset=utf-8" %>
<%@ page errorPage="fatalerror.jsp"%>
<%@ page import="net.myvietnam.mvncore.MVNCoreInfo" %>
<%@ page import="net.myvietnam.mvncore.info.DatabaseInfo" %>
<%@ page import="net.myvietnam.mvncore.info.SystemInfo" %>
<%@ page import="net.myvietnam.mvncore.info.ServletInfo" %>
<%@ page import="com.mvnforum.MVNForumInfo" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<%@ include file="inc_common.jsp"%>
<fmt:bundle basename="mvnForum_i18n">
<html>
<head>
<title><fmt:message key="mvnforum.common.forum.title_name"/> - Admin Control Panel</title>
<%@ include file="/mvnplugin/mvnforum/meta.jsp"%>
<link href="<%=onlineUser.getCssPath()%>" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" topmargin="0">
<%@ include file="header.jsp"%>
<br/>
<table width="95%" align="center">
<tr class="nav">
<td><img src="<%=contextPath%>/mvnplugin/mvnforum/images/nav.gif"></td>
<td width="100%" nowrap>
<a class="nav" href="<%=indexUrl%>"><fmt:message key="mvnforum.common.nav.index"/></a> »
Admin Control Panel
</td>
</tr>
</table>
<br/>
<table class="tborder" width="95%" cellspacing="1" cellpadding="3" align="center">
<tr class="pagedesc">
<td>
Thank you for choosing mvnForum as your forum solution.
This screen will give you a quick overview of all the various statistics of your board.
You can get back to this page by clicking on the Admin Index link in the top menu.
To return to the index of your board, click the mvnForum logo in the top of this page.
The other links on the top menu will allow you to control every aspect of your forum experience,
each screen will have instructions on how to use the tools.<br/>
Choose below tasks to continue:<br/>
<%if ( permission.canAdminSystem() ) {%>
<a href="testsystem" class="command">Test System Configuration</a><br/>
<%}%>
<%if ( permission.canAdminSystem() ) {%>
<a href="misctasks" class="command">Miscellaneous Tasks</a><br/>
<%}%>
<%if ( permission.canEditAnyForum() || permission.canAddForum()) {%>
<a href="forummanagement" class="command">Forum Management</a><br/>
<%}%>
<%if ( permission.canAdminSystem() ) {%>
<a href="usermanagement" class="command">User Management</a><br/>
<%}%>
<%if ( permission.canAdminSystem() ) {%>
<a href="groupmanagement" class="command">Group Management</a><br/>
<%}%>
<%if ( permission.canAdminSystem() ) {%>
<a href="viewlogsystem" class="command">Log File Management</a><br/>
<%}%>
<%if ( permission.canAdminSystem() ) {%>
<a href="sendmail" class="command">Send Mail</a><br/>
<%}%>
<%if ( permission.canAdminSystem() ) {%>
<a href="configindex" class="command">Config mvnForum</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");
%>
<table class="tborder" width="95%" cellspacing="1" cellpadding="3" align="center">
<tr class="theader">
<td width="30%">mvnForum Status</td>
<td align="center">Start Time</td>
<td align="center">Now</td>
<td align="center">Up Time</td>
<td align="center">Status</td>
</tr>
<tr class="trow1">
<td>mvnForum Status</td>
<td align="center" class="messageText"><%=startTime%></td>
<td align="center" class="messageText"><%=nowTime%></td>
<td align="center" class="messageText"><%=upTime%></td>
<td align="center" class="messageText">
<%if (MVNForumConfig.getShouldShowUserArea()) {%>
<span style="color:#008000">On</span> - <a href="changemode?mode=off">Turn Off</a>
<%} else {%>
<span style="color:#FF0080">Off</span> - <a href="changemode?mode=on">Turn On</a>
<%}%>
</td>
</tr>
</table>
<%}%>
<br/>
<table class="tborder" width="95%" cellspacing="1" cellpadding="3" align="center">
<tr class="theader">
<td colspan="2">mvnForum Infomation:</td>
</tr>
<tr class="trow1">
<td width="30%">Product Name</td>
<td><%=MVNForumInfo.getProductName()%></td>
</tr>
<tr class="trow2">
<td>Description</td>
<td><%=MVNForumInfo.getProductDesc()%></td>
</tr>
<tr class="trow1">
<td>Version</td>
<td><%=MVNForumInfo.getProductVersion()%></td>
</tr>
<tr class="trow2">
<td>Release Date</td>
<td><%=MVNForumInfo.getProductReleaseDate()%></td>
</tr>
<tr class="trow1">
<td>Home page</td>
<td><a href="<%=MVNForumInfo.getProductHomepage()%>"><%=MVNForumInfo.getProductHomepage()%></a></td>
</tr>
<tr class="trow2">
<td><img src="<%=contextPath%>/mvnplugin/mvnforum/images/icon/group.gif" border="0" alt="mvnForum Professional Services">
<span style="color:#008000">mvnForum Professional Services</span></td>
<td><a href="http://www.myvietnam.net/myvietnam/myvietnam/mvnforumservices">mvnForum Professional Services Information</a></td>
</tr>
<tr class="trow2">
<td><input type="submit" class="mainoption" value="Check latest version now" onClick="javascript: document.mvnforumimage.src='http://www.mvnforum.com/mvnforum/getmvnforumimage?version=<%=MVNForumInfo.getProductVersion()%>&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>
<br/>
<table class="tborder" width="95%" cellspacing="1" cellpadding="3" align="center">
<tr class="theader">
<td colspan="2">MyVietnam Framework Infomation:</td>
</tr>
<tr class="trow1">
<td width="30%">Product Name</td>
<td><%=MVNCoreInfo.getProductName()%></td>
</tr>
<tr class="trow2">
<td>Description</td>
<td><%=MVNCoreInfo.getProductDesc()%></td>
</tr>
<tr class="trow1">
<td>Version</td>
<td><%=MVNCoreInfo.getProductVersion()%></td>
</tr>
<tr class="trow2">
<td>Release Date</td>
<td><%=MVNCoreInfo.getProductReleaseDate()%></td>
</tr>
<tr class="trow1">
<td>Home page</td>
<td><a href="<%=MVNCoreInfo.getProductHomepage()%>"><%=MVNCoreInfo.getProductHomepage()%></a></td>
</tr>
<tr class="trow2">
<td><input type="submit" class="mainoption" value="Check latest version now" onClick="javascript: document.mvncoreimage.src='http://www.mvnforum.com/mvnforum/getmvncoreimage?version=<%=MVNCoreInfo.getProductVersion()%>&date=<%=MVNCoreInfo.getProductReleaseDate()%>'; return false;"></td>
<td><img src="<%=contextPath%>/mvnplugin/mvnforum/images/icon/emptyspace.gif" alt="Latest mvnCore version" name="mvncoreimage" id="mvncoreimage" border="0"></td>
</tr>
</table>
<br/>
<%if ( permission.canAdminSystem() ) {%>
<% ServletInfo servletInfo = new ServletInfo(application); %>
<table class="tborder" width="95%" cellspacing="1" cellpadding="3" align="center">
<tr class="theader">
<td colspan="2">Application Server Infomation:</td>
</tr>
<tr class="trow1">
<td width="30%">Application Server</td>
<td><%=servletInfo.getServerInfo()%></td>
</tr>
<tr class="trow2">
<td>Servlet Version</td>
<td><%=servletInfo.getServletVersion()%></td>
</tr>
</table>
<br/>
<% DatabaseInfo databaseInfo = new DatabaseInfo();%>
<table class="tborder" width="95%" cellspacing="1" cellpadding="3" align="center">
<tr class="theader">
<td colspan="2">Database Information:</td>
</tr>
<tr class="trow1">
<td width="30%">Database Name</td>
<td><%=databaseInfo.getDatabaseProductName()%></td>
</tr>
<tr class="trow2">
<td>Database Version</td>
<td><%=databaseInfo.getDatabaseProductVersion()%></td>
</tr>
<tr class="trow1">
<td width="30%">Database Url</td>
<td><%=databaseInfo.getDatabaseUrl()%></td>
</tr>
<tr class="trow2">
<td>Database Username</td>
<td><%=databaseInfo.getDatabaseUsername()%></td>
</tr>
<tr class="trow1">
<td>JDBC Driver Name</td>
<td><%=databaseInfo.getDriverName()%></td>
</tr>
<tr class="trow2">
<td>JDBC Driver Version</td>
<td><%=databaseInfo.getDriverVersion()%></td>
</tr>
</table>
<br/>
<% SystemInfo systemInfo = new SystemInfo(); %>
<table class="tborder" width="95%" cellspacing="1" cellpadding="3" align="center">
<tr class="theader">
<td colspan="2">System Information:</td>
</tr>
<tr class="trow1">
<td width="30%">Virtual Machine Name</td>
<td><%=systemInfo.getVmName()%></td>
</tr>
<tr class="trow2">
<td>Virtual Machine Vendor</td>
<td><%=systemInfo.getVmVendor()%></td>
</tr>
<tr class="trow1">
<td>Virtual Machine Version</td>
<td><%=systemInfo.getVmVersion()%></td>
</tr>
<tr class="trow2">
<td>Virtual Machine Runtime Name</td>
<td><%=systemInfo.getRuntimeName()%></td>
</tr>
<tr class="trow1">
<td>Virtual Machine Runtime Version</td>
<td><%=systemInfo.getRuntimeVersion()%></td>
</tr>
<tr class="trow2">
<td>OS Name</td>
<td><%=systemInfo.getOsName()%></td>
</tr>
<tr class="trow1">
<td>OS Version</td>
<td><%=systemInfo.getOsVersion()%></td>
</tr>
<tr class="trow2">
<td>CPU</td>
<td><%=systemInfo.getCpu()%></td>
</tr>
<tr class="trow1">
<td>Total Memory</td>
<td><%=systemInfo.getTotalMemoryKB()%> KB</td>
</tr>
<tr class="trow2">
<td>Free Memory</td>
<td><%=systemInfo.getFreeMemoryKB()%> KB</td>
</tr>
</table>
<%}/*if can admin system*/%>
<br/>
</fmt:bundle>
<%@ include file="footer.jsp"%>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?