KBVersionList.jsp
7.61 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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
<!DOCTYPE html>
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ include file="/systeminfo/init_wev8.jsp" %>
<%@ taglib uri="/WEB-INF/weaver.tld" prefix="wea"%>
<%@ taglib uri="/WEB-INF/tld/browser.tld" prefix="brow"%>
<%@ page import="weaver.general.Util" %>
<%@ page import="weaver.conn.RecordSet" %>
<HTML><HEAD>
<LINK href="/css/Weaver_wev8.css" type=text/css rel=STYLESHEET>
<SCRIPT language="javascript" src="/js/weaver_wev8.js"></script>
<link rel="stylesheet" href="/wui/theme/ecology8/weaveredittable/css/WeaverEditTable_wev8.css">
<script src="/wui/theme/ecology8/weaveredittable/js/WeaverEditTable_wev8.js"></script>
<link href="/js/checkbox/jquery.tzCheckbox_wev8.css" type=text/css rel=STYLESHEET>
<script type="text/javascript" src="/js/ecology8/jNice/jNice/jquery.jNice_wev8.js"></script>
<%
String titlename = "";
String needfav ="1";
String needhelp ="";
boolean isright = true;
String patchtype = Util.null2String(request.getParameter("patchtype"));
String sysversion = Util.null2String(request.getParameter("sysversion"));
String kbversion = Util.null2String(request.getParameter("kbversion"));
%>
<script type="text/javascript">
var parentWin = null;
var dialog = null;
try{
parentWin = parent.getParentWindow(window);
dialog = parent.parent.getDialog(window);
}catch(e){}
</script>
<BODY>
<%@ include file="/systeminfo/RightClickMenuConent_wev8.jsp" %>
<%
// RCMenu += "{查询,javascript:submitData(),_self} " ;
// RCMenuHeight += RCMenuHeightStep ;
// RCMenu += "{清除,javascript:onClear(),_self} " ;
// RCMenuHeight += RCMenuHeightStep ;
String fromSql = "";
if("patch".equals(patchtype)) {
fromSql = " from CustomerKBVersion t1 ";
} else {
fromSql = " from CustomerSysVersion t1 ";
}
String backfields = "";
String sqlWhere = " where 1=1 ";
String orderby = "";
String instanceidStr="";
if("patch".equals(patchtype)){
backfields = " t1.id, t1.name, t1.sysversion ";
if(sysversion!=null && !"".equals(sysversion)) {
sqlWhere = sqlWhere + " and t1.sysversion like '%"+sysversion+"%' ";
}
if(kbversion!=null && !"".equals(kbversion)) {
sqlWhere = sqlWhere + " and t1.name like '%"+kbversion+"%' ";
}
orderby = " t1.sysversion desc,t1.name desc ";
instanceidStr="kbversionlist1";
}else{
backfields = " t1.id,t1.name ";
if(sysversion!=null && !"".equals(sysversion)) {
sqlWhere = sqlWhere + " and t1.name like '%"+sysversion+"%' ";
}
orderby = " t1.name desc";
instanceidStr="kbversionlist2";
}
String tableString = "<table instanceid=\"instanceidStr\" tabletype=\"none\" pageId=\""+instanceidStr+"\" pagesize=\""+PageIdConst.getPageSize(instanceidStr,user.getUID())+"\" >"+
"<sql backfields=\""+backfields+"\" sqlform=\""+fromSql+"\" sqlwhere=\""+Util.toHtmlForSplitPage(sqlWhere)+"\" sqlorderby=\""+orderby+"\" sqlprimarykey=\"t1.id\" sqlsortway=\"Asc\" sqlisdistinct=\"false\"/>"+
"<head>"+
"<col width=\"20%\" text=\""+SystemEnv.getHtmlLabelName(195,user.getLanguage())+"\" column=\"name\" orderkey=\"name\"/>";
if("patch".equals(patchtype)) {
tableString = tableString + "<col width=\"30%\" text=\""+SystemEnv.getHtmlLabelName(502214,user.getLanguage())+"\" column=\"sysversion\" orderkey=\"sysversion\" />";
}
tableString = tableString + "</head>"+
"<operates width=\"10%\">"+
"<operate href=\"javascript:showconfigdetail();\" index=\"0\" otherpara=\"column:name\" text=\""+SystemEnv.getHtmlLabelName(502216,user.getLanguage())+"\" />"+
"<operate href=\"javascript:qcdetail();\" index=\"1\" otherpara=\"column:name\" text=\""+SystemEnv.getHtmlLabelName(502217,user.getLanguage())+"\" />"+
"</operates></table>";
%>
<%@ include file="/systeminfo/TopTitle_wev8.jsp" %>
<%@ include file="/systeminfo/RightClickMenu_wev8.jsp" %>
<FORM name="form1" id="form1" STYLE="margin-bottom:0" action="KBVersionList.jsp" method=post>
<table id="topTitle" cellpadding="0" cellspacing="0">
<tr>
<td></td>
<td class="rightSearchSpan" style="text-align:right; width:500px!important">
<input type="hidden" class="searchInput" id="flowTitle" name="flowTitle" value="" onchange=""/>
<span id="advancedSearch" class="advancedSearch"><%=SystemEnv.getHtmlLabelName(347,user.getLanguage())%></span>
<span title="菜单" class="cornerMenu"></span>
</td>
</tr>
</table>
<div id="tabDiv" >
<span style="font-size:14px;font-weight:bold;"><%=SystemEnv.getHtmlLabelName(33267,user.getLanguage())%></span>
</div>
<div class="cornerMenuDiv"></div>
<div class="advancedSearchDiv" id="advancedSearchDiv">
<wea:layout type="4col">
<wea:group context="<%= SystemEnv.getHtmlLabelName(347,user.getLanguage())%>">
<wea:item><%= SystemEnv.getHtmlLabelName(502214,user.getLanguage())%></wea:item>
<wea:item>
<brow:browser viewType="0" id="sysversion" name="sysversion" browserValue="<%=sysversion %>"
browserOnClick=""
browserUrl="/systeminfo/BrowserMain.jsp?url=/templetecheck/SysBrowser.jsp"
hasInput="true" isSingle="false" hasBrowser = "true" isMustInput='1'
width="165px"
browserSpanValue="<%=sysversion %>"></brow:browser>
</wea:item>
<% if("patch".equals(patchtype)) {%>
<wea:item><%= SystemEnv.getHtmlLabelName(25393,user.getLanguage())%></wea:item>
<wea:item>
<brow:browser viewType="0" id="kbversion" name="kbversion" browserValue="<%=kbversion %>"
browserUrl="" getBrowserUrlFn='onShowKBVersion'
hasInput="true" isSingle="false" hasBrowser = "true" isMustInput='1'
width="165px" browserSpanValue="<%=kbversion %>"></brow:browser>
</wea:item>
<%}%>
</wea:group>
<wea:group context="" attributes="{'groupDisplay':'none'}">
<wea:item type="toolbar">
<input type="submit" onclick="doRefresh()" value="<%=SystemEnv.getHtmlLabelName(387355,user.getLanguage())%>" class="zd_btn_submit"/>
<input type="button" value="<%=SystemEnv.getHtmlLabelName(2022,user.getLanguage())%>" class="e8_btn_cancel" onclick="resetCondtion();"/>
<input type="button" value="<%=SystemEnv.getHtmlLabelName(201,user.getLanguage())%>" class="e8_btn_cancel" id="cancel"/>
</wea:item>
</wea:group>
</wea:layout>
</div>
<input name="patchtype" value="<%=patchtype%>" type="hidden"/>
<TABLE width="100%">
<tr>
<td valign="top">
<input type="hidden" name="pageId" id="pageId" value="<%=instanceidStr%>>"/>
<wea:SplitPageTag tableString="<%=tableString %>" isShowTopInfo="true" mode="run" />
</td>
</tr>
</TABLE>
</FORM>
</BODY>
<script type="text/javascript">
$(document).ready(function(){
//设置标题栏高级查询
$("#topTitle").topMenuTitle({searchFn:doRefresh});
$(".topMenuTitle td:eq(0)").html($("#tabDiv").html());
$("#tabDiv").remove();
});
function showconfigdetail(id,name) {
$("input[name='type']").val("config");
if("<%=patchtype%>" == "patch"){
parent.window.location.href = "/templetecheck/ConfigManagerIframe.jsp?type=config&kbversion="+name+"&patchtype=<%=patchtype%>";
}else if("<%=patchtype%>" == "sys"){
parent.window.location.href = "/templetecheck/ConfigManagerIframe.jsp?type=config&sysversion="+name+"&patchtype=<%=patchtype%>";
}
return;
}
function qcdetail(id,name) {
if("<%=patchtype%>" == "patch"){
parent.window.location.href = "/templetecheck/ConfigManagerIframe.jsp?type=qc&kbversion="+name+"&patchtype=<%=patchtype%>";
}else if("<%=patchtype%>" == "sys"){
parent.window.location.href = "/templetecheck/ConfigManagerIframe.jsp?type=qc&sysversion="+name+"&patchtype=<%=patchtype%>";
}
return;
}
/*
* 动态获得url地址
*/
function onShowKBVersion() {
var url = "/systeminfo/BrowserMain.jsp?url=/templetecheck/KBBrowser.jsp?sysversion="+$("#sysversion").val();
return url;
}
function doRefresh(){
$("#form1").attr("action","KBVersionList.jsp");
$("#form1").submit();
}
</script>
</HTML>