summaryrefslogtreecommitdiff
path: root/WebRoot/page/systemManage/nodeGroupManage/node/nodeInfoListIn.jsp
blob: 3d1ef4cc38c47085c8f4e5c9385a7f057d79464f (plain)
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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="/common/taglib.jsp"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>i18n_nili.message.title_n81i</title>
		<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
			type="text/css" />
		<link href="<c:url value='/css/suggest.css'/>" rel="stylesheet"
			type="text/css" />
		<link href="<c:url value='/js/jBox/Skins/Gray/jbox.css'/>" rel="stylesheet" type="text/css" />
		<script language="javascript" type="text/javascript"
			src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
		<script language="javascript" type="text/javascript"
			src="<c:url value='/js/onmouse.js'/>"></script>
		<script language="javascript" type="text/javascript"
			src="<c:url value='/js/jquery.tools.js'/>"></script>
		<script language="javascript" type="text/javascript"
			src="<c:url value='/js/jquery.suggest.js'/>"></script>
		<script type="text/javascript">
	//查询记录
	 function qry(){
		document.form3.action = "<%=path%>/nodeGroupManage/nodeManage!executeAction.do?action=queryChild";
		document.form3.submit();		
	}	
	
	var set_Id;
	var ajaxProperties = "";
	var ajaxTableName = "";
	var ajaxType = "";
	var id = "";
	var returnDiv = "";
	var ajaxValue = "";
	
	function lianxiangkeydown() {
		clearTimeout(set_Id);
	}
	
	function lianxiangkeyup(ajaxProperties1,ajaxTableName1,ajaxType1,id1,returnDiv1,ajaxValue1) {
		if(parent.parent.document.getElementById("lianxiangStatus").value=="2")
		{
			if(jQuery.trim(ajaxValue1)=="") return false;
			ajaxProperties = ajaxProperties1;
			ajaxTableName = ajaxTableName1;
			ajaxType = ajaxType1;
			id = id1;
			returnDiv = returnDiv1;
			
			if(!checkStrNoDian(ajaxValue1)){
				ajaxValue = ajaxValue1;
			}else{
				clearTimeout(set_Id);
				alert('i18n_nili.message.inputInfo_n81i');
				$("#"+id).val('');
				return;
			}
			clearTimeout(set_Id);
			set_Id = setTimeout(ajaxForLianxiang,500);
		}
	}
	
	function ajaxForLianxiang() 
	{
		if(ajaxProperties == 'nodeIp'){
			url = "<%=path%>/nodeGroupManage/nodeManage!queryInfoForAjax.do";
		}else{
			url = "<%=path%>/sysManage/sysPopedomManage!queryInfoForAjax.do";
		}
		jQuery.post(url,
		{"ajaxProperties":ajaxProperties,"ajaxTableName":ajaxTableName,"ajaxType":ajaxType,"ajaxValue":ajaxValue},function(data)
		{
			var lianxiangList = data.split(",");
			jQuery("#"+id).suggest(lianxiangList,{hot_list:lianxiangList,attachObject:"#"+returnDiv});
			if(lianxiangList == ''){
				$("#"+id).css("color","#CBC0B6");
			}else{
				$("#"+id).css("color","#000000");
			}
		});
	}
	function ieBrowser(){
		if($.browser.msie){
			if($.browser.version.split('.')[0]<=7){
				return false;
			}else{
				return true;//ie8+
			}
		}
	}
	$(function(){
		/*
		var dh = document.body.clientHeight; 
		var dhh = dh-60+"px;";
		var tableHeight = $("#info").height();
		if(tableHeight > dh-60){
			$("#maindiv").attr("style","margin-left:6px;overflow-y:auto;overflow-x:auto;width:99%;font-size:12px;height: "+dhh);
			if(ieBrowser()){
				$("#info").attr("style","width:100%;");
			}else{
				$("#info").attr("style","width:98.5%;");
			}
		}else{
			$("#maindiv").attr("style","margin-left:6px;overflow-y:auto;overflow-x:auto;width:98%;font-size:12px;height: "+dhh);
			$("#info").attr("style","width:100%;");
		}
		*/
		
		$("#info").floatHeaderDiv();
		
		
		//--同步本页面高度到父页面
		var $iframe = $("#Ich",window.parent.document)
		if($iframe != null){
			//alert($iframe.css('height'));
			$iframe.css('height',document.body.scrollHeight);
			//
			window.parent.resetHeight();
		}else{
			//alert('未找到父项');
		}
	});
	
	function downloadfile(fileName){
			document.form3.action="<c:url value='/'/>/download/downLoadFile!download.do?file="+fileName;
			document.form3.submit();				
	}
</script>
	</head>
	<body id="nodeBody">
		<div class="middle_list" id="box" style="overflow: hidden;">
			<!--中间部分右边开始-->
				<form name=form3 id="form3" action="<c:url value='nodeManage!queryNodeInfoChild.do'/>" method="post">
					<input type="hidden" name="nodeGroupId" value="${nodeGroupId }" />
					<input type="hidden" name = "isComplete" id="isComplete" value="${isComplete}"/>
					<input type="hidden" name="fromWhere" value="${fromWhere }"/>
					<div class="box_1">
						 <label class="divTopText"><font class="selectText">i18n_nili.text.nodeState_n81i</font>
						<select name="nodeStateVo">
							<option value="">i18n_nili.message.selectDefault_n81i</option>
							<option value="0" <c:if test="${nodeStateVo==0}">selected=selected</c:if> >i18n_nili.message.online_n81i</option>
							<option value="1" <c:if test="${nodeStateVo==1}">selected=selected</c:if> >i18n_nili.message.downline_n81i</option>
						</select></label>
						 <label class="divTopText"><font class="selectText">i18n_nili.text.nodeIp_n81i</font>
						<input  type="text" id="nodeIpVo"
							onkeyup="lianxiangkeyup('nodeIp','NodeTable','String','nodeIpVo','suggest3',this.value);"
							name="nodeIpVo" title="i18n_nili.message.nodeIp_n81i" value="${nodeIpVo}" size="20" />
						<div id='suggest3' class="ac_results"></div></label>
						 <label class="divTopText"><font class="selectText">i18n_nili.text.nodeName_n81i</font>
						<input  type="text" id="nodeNameVo"
							onkeyup="lianxiangkeyup('nodeName','NodeTable','String','nodeNameVo','suggest1',this.value);"
							name="nodeNameVo" title="i18n_nili.message.nodeName_n81i" value="${nodeNameVo}" size="20" />
						<div id='suggest1' class="ac_results"></div></label>
						<img src="<c:url value='/images/button_chaxun.png'/>"
							class="img_middle2" onclick="javascript:qry();" />
					</div>
				<div id="maindiv" style="clear: left;">
				<table border="0" cellpadding="0" cellspacing="0" class="table" align="center" id="info">
					<tr>
						<td class="color_top" width="6%">
							i18n_nili.text.index_n81i
						</td>
						<td class="color_top" width="12%">
							i18n_nili.text.nodeIp_n81i
						</td>
						<td class="color_top" width="12%">
							i18n_nili.text.nodeName_n81i
						</td>
						<td class="color_top" width="10%">
							i18n_nili.text.nodeType_n81i
						</td>
						<td class="color_top" width="10%">
							i18n_nili.text.nodeHight_n81i
						</td>
						<td class="color_top" width="12%">
							i18n_nili.text.systemId_n81i
						</td>
						<td class="color_top" width="12%">
							i18n_nili.text.nodeGroup_n81i
						</td>
						<td class="color_top" width="10%">
							i18n_nili.text.nodeState_n81i
						</td>
						<td class="color_top" width="15%">
							i18n_nili.text.createTime_n81i
						</td>
					</tr>
					<!-- 1、远程连接引入页面 -->
					<jsp:include page="/common/remoteConn.jsp" />
					<c:set var="index" value="${1}" />
					<c:choose>
						<c:when test="${fn:length(nodeList) > 0}">
							<c:forEach items="${nodeList}" var="node" varStatus="vs">
								<c:set var="color" value="color_1" />
								<c:set var="color_end" value="color_7" />
								<c:if test="${vs.count%2!=0 }">
									<c:set var="color" value="color_3" />
									<c:set var="color_end" value="color_6" />
								</c:if>
								<tr>
									<td class="${color }">
										${index+(pageNo-1)*pageSize}
									</td>
									<td class="${color }">
										<!-- 2、 调用JS,此处远程连接调用JS在/common/remoteConn.jsp中 -->
										<a  href="javascript:void(0);"
											onclick="remoteConn('${node.nodeSystemType }','${node.nodeIp}','${node.nodeType }', this)" >
												${node.nodeIp}
										</a>
									</td>
									<td class="${color }">
										${node.nodeName}
									</td>
									<td class="${color }">
										<c:if test="${node.nodeType==1}">
											<c:if test="${node.networElementType==1}">
												i18n_nili.message.specialDevice_n81i
											</c:if>
											<c:if test="${node.networElementType==2}">
												i18n_nili.message.diskArray_n81i
											</c:if>
											<c:if test="${node.networElementType==3}">
												i18n_nili.message.blockRouter_n81i
											</c:if>
											<c:if test="${node.networElementType==4}">
												i18n_nili.message.netElements_n81i
											</c:if>
										</c:if>
										<c:choose>
											<c:when test="${node.nodeType==0 && not empty node.specialServerType}">i18n_nili.text.specialServer_n81i</c:when>
											<c:when test="${node.nodeType==0}">i18n_nili.text.server_n81i</c:when>
										</c:choose>
									</td>
									<td class="${color }">
										${node.nodeUType}U
									</td>
									<td class="${color }">
										${node.systemIdName}
									</td>
									<td class="${color }">
										${node.groupIdName}
									</td>
									<td class="${color }">
										<c:if test="${node.nodeState=='1'}">i18n_nili.message.downline_n81i</c:if>
										<c:if test="${node.nodeState=='0'}">i18n_nili.message.online_n81i</c:if>
									</td>
									<td class="${color }">
										<fmt:formatDate value="${node.nodeCreatetime}" pattern="yyyy-MM-dd HH:mm:ss" />
									</td>
								</tr>
								<c:set var="index" value="${index + 1}" />
							</c:forEach>
						</c:when>
						<c:otherwise>
							<tr>
								<td colspan="9" height="35" class="color_6" align="center">
									i18n_nili.text.noRecord_n81i
								</td>
							</tr>
						</c:otherwise>
					</c:choose>
				</table>
				</div>
				<c:if test="${!empty nodeList}">
					<div id="divBoot">
						<jsp:include page="/common/page.jsp" />
					</div>
				</c:if>
				<!--中间部分右边结束-->
			</form>
		</div>
	</body>
</html>