?? listlogfiles.jsp
字號:
<%--
- $Header: /cvsroot/mvnforum/mvnforum/srcweb/mvnplugin/mvnforum/admin/listlogfiles.jsp,v 1.11 2006/04/14 18:02:17 minhnn Exp $
- $Author: minhnn $
- $Revision: 1.11 $
- $Date: 2006/04/14 18:02:17 $
-
- ====================================================================
-
- Copyright (C) 2002-2006 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="java.util.*" %>
<%@ page import="java.sql.*" %>
<%@ page import="java.io.File" %>
<%@ page import="net.myvietnam.mvncore.util.*" %>
<%@ page import="com.mvnforum.db.*" %>
<%@ page import="com.mvnforum.MVNForumConstant" %>
<%@ page import="com.mvnforum.MVNForumConfig" %>
<%
String logs[] = {"ALL", "WARN" , "INFO", "TRACE", "DEBUG", "ERROR"};
String logValues[] = {"All", "Only Warning", "Only Info", "Only Trace", "Only Debug", "Only Error"};
int lineNums[]= { 25, 50 , 100, 200, 400, 800 };
%>
<%@ taglib uri="http://jsptags.com/tags/navigation/pager" prefix="pg" %>
<!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"/> - <fmt:message key="mvnforum.admin.log.listLogFiles"/><!--List log files--></title>
<%@ include file="/mvnplugin/mvnforum/meta.jsp"%>
<link href="<%=onlineUser.getCssPath()%>" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" topmargin="0">
<%@ include file="inc_js_checkvalid_myvietnamlib.jsp"%>
<%@ include file="header.jsp"%>
<br/>
<table width="98%" align="center">
<tr class="nav">
<td><img src="<%=contextPath%>/mvnplugin/mvnforum/images/nav.gif"></td>
<td width="100%" nowrap>
<a class="nav" href="<%=urlResolver.encodeURL(request, response, "index", URLResolver.RENDER_URL, "view")%>"><fmt:message key="mvnforum.common.nav.index"/></a> »
<a class="nav" href="<%=urlResolver.encodeURL(request, response, "index")%>"><fmt:message key="mvnforum.admin.index.title_name"/><!--Admin CP--></a> »
<a class="nav" href="<%=urlResolver.encodeURL(request, response, "viewlogsystem")%>"><fmt:message key="mvnforum.admin.index.viewlogsystem"/><!--Log File Management--></a> »
<fmt:message key="mvnforum.admin.log.listLogFiles"/><!--List log files-->
</td>
</tr>
</table>
<br/>
<%
File[] logFiles = (File[])request.getAttribute("LogFiles");
File currentLogFile = (File)request.getAttribute("CurrentLogFile");
%>
<table class="tborder" width="98%" cellspacing="1" cellpadding="3" align="center">
<tr class="portlet-section-header">
<td><fmt:message key="mvnforum.admin.log.archiveLogFiles"/><!--Archive Log Files-->:</td>
<td><fmt:message key="mvnforum.user.addpost.dropdown.fontsize.title"/><!--Size--></td>
<td align="center"><fmt:message key="mvnforum.admin.common.view"/></td>
<td align="center"><fmt:message key="mvnforum.admin.common.download"/></td>
<td align="center"><fmt:message key="mvnforum.common.action.delete"/></td>
</tr>
<%
for (int i = 0 ;i < logFiles.length; i++) {
boolean isCurrent = false;
if (currentLogFile.equals(logFiles[i])) isCurrent = true;
%>
<tr class="<%=MyUtil.getRowCSS(i)%>">
<td class="portlet-font">
<%if (isCurrent) {%>
<b><%=logFiles[i].getName()%> (Current File)</b>
<%} else {%>
<%=logFiles[i].getName()%>
<%}%>
</td>
<td><%=FileUtil.getHumanSize(logFiles[i].length())%></td>
<td align="center">
<a href="<%=urlResolver.encodeURL(request, response, "viewlogsystem?filename=" + logFiles[i].getName())%>" class="command">View</a>
</td>
<td align="center">
<a href="<%=urlResolver.encodeURL(request, response, "downloadlogfile?filename=" + logFiles[i].getName())%>" class="command">Download</a>
</td>
<td align="center">
<%if (isCurrent) {%>
N/A
<%} else {%>
<a href="<%=urlResolver.encodeURL(request, response, "deletelogfile?filename=" + logFiles[i].getName())%>" class="command">Delete</a>
<%}%>
</td>
</tr>
<% } //for%>
<% if (logFiles.length == 0) { %>
<tr><td class="portlet-font">There are no archived log file.</td></tr>
<% } %>
</table>
<br/>
</fmt:bundle>
<%@ include file="footer.jsp"%>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -