You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
70 lines
2.1 KiB
70 lines
2.1 KiB
4 weeks ago
|
<%@page import="org.wdk.module.auth.mount.bean.BaseSessionUser"%>
|
||
|
<%@page import="org.wdk.WDK"%>
|
||
|
<%@page import="org.wdk.module.auth.source.bean.TokenBean"%>
|
||
|
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||
|
<%
|
||
|
String path = request.getContextPath();
|
||
|
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
|
||
|
BaseSessionUser su = WDK.getSessionUser(request, response);
|
||
|
if(null==su){
|
||
|
su = new BaseSessionUser();
|
||
|
}
|
||
|
String WDK_ROOT = WDKCore.WDK_ROOT;
|
||
|
String RSS_ROOT = WDK_ROOT +"/"+WDKConstant.Theme+"/"+WDKCore.THEME;
|
||
|
String commonURL = "/"+RSS_ROOT+"/module/public/common.jsp";
|
||
|
%>
|
||
|
<!DOCTYPE html>
|
||
|
<%@page import="org.wdk.WDKConstant"%>
|
||
|
<%@page import="org.wdk.WDKCore"%>
|
||
|
<html>
|
||
|
|
||
|
<head>
|
||
|
<base href="<%=basePath%>" target="_self">
|
||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||
|
<jsp:include page='<%=commonURL %>'></jsp:include>
|
||
|
<script type="text/javascript" src="<%=RSS_ROOT%>/core/js/wdk.js"></script>
|
||
|
<title>系统日志</title>
|
||
|
|
||
|
<script type="text/javascript">
|
||
|
<% if(null==su){%>
|
||
|
$.timeout();
|
||
|
<%}%>
|
||
|
|
||
|
var _gridcode = "wdk.module.monitor.sysloggrid";
|
||
|
var _gridid = "";
|
||
|
window.onload = function(){
|
||
|
_gridid = $.grid({
|
||
|
containerid:'layout_grid',
|
||
|
gridcode:_gridcode,
|
||
|
fit: true,//自动大小
|
||
|
url:'wdk?action=wdk.public&method=syslog_load&ajaxparam='+new Date().getTime(),
|
||
|
remoteSort:false,
|
||
|
idField:'name',
|
||
|
singleSelect:true, //是否单选
|
||
|
pagination:false, //分页控件
|
||
|
rownumbers:true //行号
|
||
|
});
|
||
|
|
||
|
};
|
||
|
function _handler_click(method,logname){
|
||
|
switch(method){
|
||
|
case 'remove':
|
||
|
break;
|
||
|
case 'download':
|
||
|
var _url = $.base()+'/wdk?action=wdk.public&method=syslog_download&logname='+logname;
|
||
|
window.open(_url);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
|
||
|
}
|
||
|
}
|
||
|
|
||
|
</script>
|
||
|
</head>
|
||
|
<body class="easyui-layout" data-options="fit:true" style="padding:0px;margin:0px;background-color:#FF0000;">
|
||
|
<div id="layout_grid" data-options="region:'center',border:false,collapsed:false" style="overflow:hidden;border:1px solid #ddd;" >
|
||
|
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|