impexplogdetail7.jsp
4.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<%@ page language="java" contentType="text/html; charset=GBK"%>
<%@page import="weaver.formmode.exttools.impexp.common.StringUtils"%>
<%@ include file="/systeminfo/init.jsp"%>
<%@ taglib uri="/WEB-INF/weaver.tld" prefix="wea"%>
<%
String logid = StringUtils.null2String(request.getParameter("logid"));
String loglevel = StringUtils.null2String(request.getParameter("loglevel"));
%>
<%!
private String getHtmlLabelName(int id, int language, String def) {
String ret = SystemEnv.getHtmlLabelName(id, language);
if(ret == null || "".equals(ret)) {
ret = def;
}
return ret;
}
%>
<html>
<head>
<LINK REL=stylesheet type=text/css HREF=/css/Weaver.css>
<SCRIPT language="javascript" src="/js/weaver.js"></script>
<style>
#loading{
position:absolute;
left:45%;
background:#ffffff;
top:40%;
padding:8px;
z-index:20001;
height:auto;
border:1px solid #ccc;
}
</style>
</head>
<%
String imagefilename = "/images/hdSystem.gif";
String titlename = "日志明细";
String needhelp = "";
%>
<body>
<%@ include file="/systeminfo/TopTitle.jsp"%>
<%@ include file="/systeminfo/RightClickMenuConent.jsp"%>
<%
RCMenu += "{"+this.getHtmlLabelName(197,user.getLanguage(),"搜索")+",javascript:doSubmit(),_top} " ;//搜索
RCMenuHeight += RCMenuHeightStep ;
RCMenu += "{"+this.getHtmlLabelName(82176,user.getLanguage(),"清空条件")+",javascript:doClear(),_top} " ;//清空条件
RCMenuHeight += RCMenuHeightStep ;
%>
<%@ include file="/systeminfo/RightClickMenu.jsp"%>
<table width=100% height=100% border="0" cellspacing="0" cellpadding="0">
<colgroup>
<col width="10">
<col width="">
<col width="10">
</colgroup>
<tr>
<td height="10" colspan="3"></td>
</tr>
<tr>
<td ></td>
<td valign="top">
<TABLE class=Shadow>
<tr>
<td valign="top">
<form name="frmSearch" method="post" action="/formmode/exttools/impexplogdetail7.jsp">
<input type="hidden" name="logid" value="<%=logid %>">
<table class="ViewForm">
<colgroup>
<col width="8%">
<col width="18%">
</colgroup>
<tr>
<td><%=this.getHtmlLabelName(31702,user.getLanguage(),"日志类型")%><!-- 日志类型 --></td>
<td class="Field">
<select style="width: 100px;" id="loglevel" name="loglevel">
<option></option>
<option <%if("0".equals(loglevel)){%>selected="selected"<%} %> value="0">提示</option>
<!-- <option <%if("1".equals(loglevel)){%>selected="selected"<%} %> value="1">警告</option> -->
<option <%if("2".equals(loglevel)){%>selected="selected"<%} %> value="2">错误</option>
</select>
</td>
</tr>
</table>
</form>
<%
String perpage = "15";
String backFields = "a.id,a.tablename,a.logtype,a.message";
String sqlFrom = " from mode_impexp_logdetail a ";
String SqlWhere = " where logid='"+logid+"' ";
if(!"".equals(loglevel)){
SqlWhere += " and logtype='"+loglevel+"' ";
}
SqlWhere += " and logtype<>1";
String tableString = ""+
"<table pagesize=\""+perpage+"\" tabletype=\"none\" >"+
"<sql backfields=\""+backFields+"\" sqlform=\""+sqlFrom+"\" sqlprimarykey=\"a.id\" sqlsortway=\"asc\" sqldistinct=\"true\" sqlwhere=\""+Util.toHtmlForSplitPage(SqlWhere)+"\"/>"+
"<head>"+
//相关表名
"<col width=\"20%\" text=\""+this.getHtmlLabelName(522,user.getLanguage(),"相关")+this.getHtmlLabelName(21900,user.getLanguage(),"表名")+"\" column=\"tablename\" orderkey=\"tablename\" />"+
//日志信息
"<col width=\"60%\" text=\""+this.getHtmlLabelName(32940,user.getLanguage(),"日志信息")+"\" column=\"message\" />"+
//日志级别
"<col width=\"20%\" text=\""+this.getHtmlLabelName(83,user.getLanguage(),"日志")+this.getHtmlLabelName(139,user.getLanguage(),"级别")+"\" column=\"logtype\" orderkey=\"logtype\" otherpara=\""+user.getLanguage()+"\" transmethod=\"weaver.formmode.exttools.impexp.log.LogTransferService.getLogLevel\"/>"+
"</head>"+
"</table>";
%>
<wea:SplitPageTag tableString='<%=tableString%>' mode="run" isShowTopInfo="true"/>
</td>
</tr>
</TABLE>
</td>
<td></td>
</tr>
<tr>
<td height="10" colspan="3"></td>
</tr>
</table>
</body>
</html>
<script>
function doClear(){
$(".sbSelector").html('');
$("#loglevel").val('');
}
function doSubmit(){
enableAllmenu();
document.frmSearch.submit();
}
</script>