initial commit
This commit is contained in:
229
WebRoot/page/systemManage/addSystemInfo.jsp
Normal file
229
WebRoot/page/systemManage/addSystemInfo.jsp
Normal file
@@ -0,0 +1,229 @@
|
||||
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
|
||||
<%@ page import="nis.nms.core.*"%>
|
||||
<%@ 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_addsysinfo.message.title_n81i</title>
|
||||
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
|
||||
type="text/css" />
|
||||
<link href="<c:url value='/js//dtree/css/dtree.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/dtree/js/dtree_checkbox.js'/>"></script>
|
||||
<script language="javascript" type="text/javascript"
|
||||
src="<c:url value='/js/jquery.tools.js'/>"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
|
||||
function ajaxCheck(){
|
||||
var type;
|
||||
$.ajax({
|
||||
url:"<%=path%>/sysManage/systemManage.do?action=AjaxCheck",
|
||||
type : "POST",
|
||||
async:false,
|
||||
data:$('#Mkform').serialize(),
|
||||
success : function(data) {
|
||||
if(data == "error"){
|
||||
alert("i18n_addsysinfo.message.sysExists_n81i");
|
||||
type = false;
|
||||
}else if(data == "exception"){
|
||||
alert("i18n_addsysinfo.message.faild_n81i");
|
||||
type = false;
|
||||
}else if(data =="success"){
|
||||
type = true;
|
||||
}
|
||||
}
|
||||
});
|
||||
return type;
|
||||
}
|
||||
|
||||
function add(){
|
||||
//去空格
|
||||
$("#systemName").val($.trim($("#systemName").val()));
|
||||
//验证不能空与长度限制
|
||||
if($id("systemName","","i18n_addsysinfo.text.systemName_n81i") && $("#systemName").checkByteLength(64,"i18n_addsysinfo.text.systemName_n81i")
|
||||
&& $("#systemDesc").checkByteLength(256,"i18n_addsysinfo.text.systemDesc_n81i")
|
||||
&& $id("systemIp","ip","i18n_addsysinfo.text.systemIp_n81i")
|
||||
&& $id("systemPort","port","i18n_addsysinfo.text.systemPort_n81i")){
|
||||
if(checkSpecial($.trim($("#systemName").val()))){
|
||||
$("#systemName").next().html("i18n_addsysinfo.message.systemName_n81i");
|
||||
return;
|
||||
}
|
||||
if(ajaxCheck()){
|
||||
document.Mkform.action="<%=path%>/sysManage/systemManage.do?action=doAdd";
|
||||
document.Mkform.submit();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function goBack(){
|
||||
window.location="<%=path%>/sysManage/systemManage.do?action=query&pageSize="+'${pageSize }'+"&pageNo="+'${pageNo }';
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="middle_list">
|
||||
<div class="box_2">
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
onclick="goBack()" value="i18n_addsysinfo.button.back_n81i"/>
|
||||
</div>
|
||||
<form action="" name="Mkform" method="post" id="Mkform">
|
||||
<input type="hidden" name="position" value="${position }" />
|
||||
<input type="hidden" name="pageNo" value="${pageNo }" />
|
||||
<input type="hidden" name="pageSize" value="${pageSize }" />
|
||||
<input type="hidden" name="fromWhere" value="${fromWhere }"/>
|
||||
<!--
|
||||
<div class="box_1">
|
||||
<img src="<c:url value='/images/sanjiao.png'/>" class="img_middle" />
|
||||
你现在所在的位置是: 业务系统管理 -> 添加业务系统
|
||||
</div> -->
|
||||
<div style="clear: both"></div>
|
||||
<table border="0" cellpadding="0" cellspacing="0" class="table">
|
||||
<tr>
|
||||
<td colspan="2" class="color_8">
|
||||
<strong>i18n_addsysinfo.text.title_n81i</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" width="30%" align="right">
|
||||
i18n_addsysinfo.text.systemName_n81i:
|
||||
</td>
|
||||
<td class="color_6" width="70%" align="left">
|
||||
<input type="text" name="system.systemName" id="systemName" style="width: 155px;"/>
|
||||
<font color="red">*</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_addsysinfo.text.systemDesc_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left" valign="top">
|
||||
<textarea rows="4" cols="40" name="system.systemDesc"
|
||||
id="systemDesc" style="width: 155px; height: 50px;"
|
||||
></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<c:if test="${systemNum==0}">
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_addsysinfo.text.systemIp_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left">
|
||||
<input type="text" name="system.systemIp"
|
||||
value="" id="systemIp"
|
||||
style="width: 155px;" />
|
||||
<font color="red">*</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_addsysinfo.text.systemPort_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left">
|
||||
<input type="text" name="system.systemPort"
|
||||
value="" id="systemPort"
|
||||
style="width: 155px;" />
|
||||
<font color="red">*</font>
|
||||
</td>
|
||||
</tr>
|
||||
</c:if>
|
||||
<c:if test="${systemNum==0}">
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_addsysinfo.text.isMaster_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left">
|
||||
i18n_addsysinfo.text.master_n81i
|
||||
<input type="hidden" name="system.isMaster" value="1" /><!-- 主控系统 -->
|
||||
</td>
|
||||
</tr>
|
||||
</c:if>
|
||||
<c:if test="${systemNum!=0}">
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_addsysinfo.text.isMaster_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left">
|
||||
i18n_addsysinfo.text.slave_n81i
|
||||
<input type="hidden" name="system.isMaster" value="2" /><!-- 子系统 -->
|
||||
</td>
|
||||
</tr>
|
||||
</c:if>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_addsysinfo.text.isOnline_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left">
|
||||
i18n_addsysinfo.message.Y_n81i
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_addsysinfo.text.selectUserGroup_n81i:
|
||||
</td>
|
||||
<td class="color_6" colspan="3" align="left">
|
||||
<div id="tree" name="tree"
|
||||
style="OVERFLOW-Y: auto; width: 100%;">
|
||||
<script type="text/javascript">
|
||||
d = new dTree('d');
|
||||
d.add('0','-1','i18n_addsysinfo.text.userGroupList_n81i');
|
||||
<%
|
||||
List treeList = (List)request.getAttribute("userGroupTree");
|
||||
List list = MakeTree.getAllResourceList(treeList);
|
||||
if(list != null && list.size() > 0){
|
||||
Resource resource = new Resource();
|
||||
for( int i = 0 ; i < list.size() ; i++ ){
|
||||
resource = (Resource) list.get(i);
|
||||
%>
|
||||
d.add('<%=resource.getRsCode()%>','<%=resource.getParRsCode()%>','<%=resource.getRsname()%>','');
|
||||
<%
|
||||
}
|
||||
}
|
||||
%>
|
||||
document.write(d);
|
||||
</script>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="color_7" colspan="2" align="right">
|
||||
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'" onclick="add()" value="i18n_addsysinfo.text.submit_n81i"/>
|
||||
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
onclick="javascript:document.forms['Mkform'].reset()" value="i18n_addsysinfo.text.reset_n81i"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
203
WebRoot/page/systemManage/detailSystemInfo.jsp
Normal file
203
WebRoot/page/systemManage/detailSystemInfo.jsp
Normal file
@@ -0,0 +1,203 @@
|
||||
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
|
||||
<%@ page import="nis.nms.core.*"%>
|
||||
<%@ 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_detailsys.message.title_n81i</title>
|
||||
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
|
||||
type="text/css" />
|
||||
<link href="<c:url value='/js//dtree/css/dtree.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/dtree/js/dtree.js'/>"></script>
|
||||
<script type="text/javascript">
|
||||
function goBack(){
|
||||
document.Mkform.action="<%=path%>/sysManage/systemManage.do?action=query";
|
||||
document.Mkform.submit();
|
||||
}
|
||||
function changeHeight(height,iframeName){
|
||||
$("iframe[name="+iframeName+"]").height(height);
|
||||
}
|
||||
function showTipMsg(msg) {
|
||||
var tipMsg = ["<html >"];
|
||||
tipMsg.push("<body style='background:#EBECEB;font-size:12px;'>");
|
||||
tipMsg.push("<head>");
|
||||
tipMsg.push("<meta http-equiv='Content-Type' content='text/html; charset=UTF-8' />");//防止显示中文时的乱码
|
||||
tipMsg.push("</head>");
|
||||
tipMsg.push("<div align='left'>");
|
||||
tipMsg.push(msg);
|
||||
tipMsg.push("</div>");
|
||||
tipMsg.push("</body>");
|
||||
tipMsg.push("</html>");
|
||||
return tipMsg.join("");
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body >
|
||||
<div class="box_2">
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
onclick="goBack()" value="i18n_detailsys.button.back_n81i"/>
|
||||
</div>
|
||||
<form action="" name="Mkform" method="post">
|
||||
<input type="hidden" name="position" value="${position }" />
|
||||
<input type="hidden" name="sysName" id="sysName" value="${sysName }" />
|
||||
<input type="hidden" name="sysDesc" id="sysDesc" value="${sysDesc }" />
|
||||
<input type="hidden" name="pageNo" value="${pageNo }" />
|
||||
<input type="hidden" name="pageSize" value="${pageSize }" />
|
||||
<jsp:include page="/common/transferHiddenParameter.jsp" />
|
||||
|
||||
<div style="clear: both" />
|
||||
<table border="0" cellpadding="0" cellspacing="0" class="table">
|
||||
<tr>
|
||||
<td colspan="4" class="color_8">
|
||||
<strong>i18n_detailsys.text.title_n81i</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right" width="20%">
|
||||
i18n_detailsys.text.systemName_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left" width="30%">
|
||||
${system.systemName }
|
||||
</td>
|
||||
<td class="color_1" align="right" width="20%">
|
||||
i18n_detailsys.text.systemDesc_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left">
|
||||
${system.systemDesc }
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_detailsys.text.systemCreatetime_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left">
|
||||
<fmt:formatDate value="${system.systemCreatetime}"
|
||||
pattern="yyyy-MM-dd HH:mm:ss" />
|
||||
</td>
|
||||
<td class="color_1" align="right">
|
||||
i18n_detailsys.text.systemState_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left">
|
||||
<c:if test="${system.systemState=='0' }">i18n_detailsys.message.systemState0_n81i</c:if>
|
||||
<c:if test="${system.systemState=='1' }">i18n_detailsys.message.systemState1_n81i</c:if>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_detailsys.text.isMaster_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left">
|
||||
<c:if test="${system.isMaster=='2' }">i18n_addsysinfo.text.slave_n81i</c:if>
|
||||
<c:if test="${system.isMaster=='1' }">i18n_addsysinfo.text.master_n81i</c:if>
|
||||
</td>
|
||||
<td class="color_1" align="right">
|
||||
|
||||
</td>
|
||||
<td class="color_3" align="left">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" valign="top" align="left">
|
||||
<strong>i18n_addsysinfo.text.sysUserGroup_n81i</strong>
|
||||
<div class="dtree"
|
||||
style="OVERFLOW-Y: none; width: 100%;">
|
||||
<a href="javascript: d1.openAll();">i18n_addsysinfo.text.openAll_n81i</a> |
|
||||
<a href="javascript: d1.closeAll();">i18n_addsysinfo.text.closeAll_n81i</a>
|
||||
<script type="text/javascript">
|
||||
d1 = new dTree('d1');
|
||||
<%
|
||||
List userTreeList = (List)request.getAttribute("userResTree");
|
||||
List userList = MakeTree.getAllResourceList(userTreeList);
|
||||
if(userList != null && userList.size() > 0){
|
||||
Resource res = new Resource();
|
||||
for( int i = 0 ; i < userList.size() ; i++ ){
|
||||
res = (Resource) userList.get(i);
|
||||
if(res.getRsaddress() == null || "".equals(res.getRsaddress())){
|
||||
%>
|
||||
d1.add('<%=res.getRsCode()%>','<%=res.getParRsCode()%>','<%=res.getRsname()%>','');
|
||||
<%
|
||||
}else{
|
||||
%>
|
||||
d1.add('<%=res.getRsCode()%>','<%=res.getParRsCode()%>','<%=res.getRsname()%>','<%=path%><%=res.getRsaddress()%>','','I1');
|
||||
<% }
|
||||
}
|
||||
}
|
||||
%>
|
||||
document.write(d1);
|
||||
</script>
|
||||
</div>
|
||||
<br />
|
||||
</td>
|
||||
<td bgcolor="#EBECEB" colspan="3" align="center" valign="top" class="color_10">
|
||||
<iframe name="I1" height="100%" width="100%" border="0"
|
||||
frameborder="0" src="javascript:parent.showTipMsg('
|
||||
i18n_addsysinfo.message.showTipMsg_n81i
|
||||
');" scrolling="no">
|
||||
i18n_addsysinfo.message.brower_n81i
|
||||
</iframe>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" valign="top" align="left">
|
||||
<strong>i18n_addsysinfo.text.sysUserGroup_n81i</strong>
|
||||
<div class="dtree"
|
||||
style="OVERFLOW-Y: none; width: 100%;">
|
||||
<!--<a href="javascript: d.openAll();">打开所有</a> | <a href="javascript: d.closeAll();">关闭所有</a> -->
|
||||
<script type="text/javascript">
|
||||
d2 = new dTree('d2');
|
||||
<%
|
||||
List treeList = (List)request.getAttribute("nodeResTree");
|
||||
List list = MakeTree.getAllResourceList(treeList);
|
||||
if(list != null && list.size() > 0){
|
||||
Resource resource = new Resource();
|
||||
for( int j = 0 ; j < list.size() ; j++ ){
|
||||
resource = (Resource) list.get(j);
|
||||
if(resource.getRsaddress() == null || "".equals(resource.getRsaddress())){
|
||||
%>
|
||||
d2.add('<%=resource.getRsCode()%>','<%=resource.getParRsCode()%>','<%=resource.getRsname()%>','');
|
||||
<%
|
||||
}else{
|
||||
%>
|
||||
d2.add('<%=resource.getRsCode()%>','<%=resource.getParRsCode()%>','<%=resource.getRsname()%>','<%=path%><%=resource.getRsaddress()%>','','I2');
|
||||
<% }
|
||||
}
|
||||
}
|
||||
%>
|
||||
document.write(d2);
|
||||
</script>
|
||||
</div>
|
||||
<br />
|
||||
</td>
|
||||
<td bgcolor="#EBECEB" colspan="3" align="center" valign="top" class="color_10" >
|
||||
<div align="left" style="">
|
||||
</div>
|
||||
<iframe name="I2" height="100%" width="100%" border="0"
|
||||
frameborder="0" src="javascript:parent.showTipMsg('
|
||||
i18n_addsysinfo.message.showTipMsg2_n81i
|
||||
');" scrolling="no" >
|
||||
i18n_addsysinfo.message.brower_n81i
|
||||
</iframe>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
99
WebRoot/page/systemManage/groupNodeList.jsp
Normal file
99
WebRoot/page/systemManage/groupNodeList.jsp
Normal file
@@ -0,0 +1,99 @@
|
||||
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
|
||||
<%@ include file="/common/taglib.jsp"%>
|
||||
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>i18n_gnl.message.title_n81i</title>
|
||||
<link href="<c:url value='/css/nms.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 type="text/javascript">
|
||||
$(function(){
|
||||
$(window.parent.document.getElementsByName(window.name)).height(0);
|
||||
var documentHeight = $(document).height();
|
||||
window.parent.changeHeight(documentHeight,window.name);
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body bgcolor="#EBECEB">
|
||||
<div class="middle_list1">
|
||||
<!--中间部分右边开始-->
|
||||
<form name=form1 id="from1"
|
||||
action="<c:url value='/sysManage/systemManage!getGroupNode.do'/>"
|
||||
method="post" style="margin: 0; padding: 0">
|
||||
<input type="hidden" name="position" value="${position }">
|
||||
<input type="hidden" name="nodeGroupId" value="${nodeGroupId }">
|
||||
<table border="0" cellpadding="0" cellspacing="0" class="table1" align="center">
|
||||
<tr>
|
||||
<td width="4%" class="color_1">
|
||||
i18n_gnl.text.index_n81i
|
||||
</td>
|
||||
<td width="10%" class="color_1">
|
||||
i18n_gnl.text.nodeIp_n81i
|
||||
</td>
|
||||
<td width="15%" class="color_1">
|
||||
i18n_gnl.text.nodeName_n81i
|
||||
</td>
|
||||
<td width="30%" class="color_1">
|
||||
i18n_gnl.text.nodeDesc_n81i
|
||||
</td>
|
||||
<td width="13%" class="color_1">
|
||||
i18n_gnl.text.createTime_n81i
|
||||
</td>
|
||||
<td width="8%" class="color_7">
|
||||
i18n_gnl.text.nodeState_n81i
|
||||
</td>
|
||||
</tr>
|
||||
<c:choose>
|
||||
<c:when test="${fn:length(nodeList) > 0}">
|
||||
<c:forEach items="${nodeList}" var="node" varStatus="nodeVar">
|
||||
|
||||
<tr>
|
||||
<td class="color_3">
|
||||
${nodeVar.count + (pageNo-1)*pageSize}
|
||||
</td>
|
||||
<td class="color_3">
|
||||
${node.nodeIp}
|
||||
</td>
|
||||
<td class="color_3">
|
||||
${node.nodeName}
|
||||
</td>
|
||||
<td class="color_3">
|
||||
<c:if test="${fn:length(node.nodeDesc) >= 12}">
|
||||
<c:out value="${fn:substring(node.nodeDesc,0,12)}..." default=""/>
|
||||
</c:if>
|
||||
<c:if test="${fn:length(node.nodeDesc) < 12}">
|
||||
<c:out value="${node.nodeDesc}" default=""/>
|
||||
</c:if>
|
||||
</td>
|
||||
<td class="color_3">
|
||||
<fmt:formatDate value="${node.nodeCreatetime}" type="both" />
|
||||
</td>
|
||||
<td class="color_6">
|
||||
<c:if test="${node.nodeState==0 }">i18n_gnl.message.nodeState0_n81i</c:if>
|
||||
<c:if test="${node.nodeState==1 }">i18n_gnl.message.nodeState1_n81i</c:if>
|
||||
</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<tr>
|
||||
<td colspan="7" height="20" align="center" class="color_6">
|
||||
i18n_gnl.text.noRecord_n81i
|
||||
</td>
|
||||
</tr>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</table>
|
||||
<c:if test="${!empty nodeList}">
|
||||
<jsp:include page="/common/page.jsp" />
|
||||
</c:if>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
86
WebRoot/page/systemManage/groupUserList.jsp
Normal file
86
WebRoot/page/systemManage/groupUserList.jsp
Normal file
@@ -0,0 +1,86 @@
|
||||
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
||||
<%@ include file="/common/taglib.jsp"%>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>i18n_gul.message.title_n81i</title>
|
||||
<link href="<c:url value='/css/nms.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 type="text/javascript">
|
||||
$(function(){
|
||||
$(window.parent.document.getElementsByName(window.name)).height(0);
|
||||
var documentHeight = $(document).height();
|
||||
window.parent.changeHeight(documentHeight,window.name);
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body bgcolor="#EBECEB">
|
||||
<div class="middle_list1">
|
||||
<form name=form1 id="from1"
|
||||
action="<c:url value='/sysManage/systemManage!getGroupUser.do'/>"
|
||||
method="post" style="margin: 0; padding: 0">
|
||||
<input type="hidden" name="position" value="${position }">
|
||||
<input type="hidden" name="userGroupId" value="${userGroupId }">
|
||||
<table border="0" cellpadding="0" cellspacing="0" class="table1" align="center">
|
||||
<tr>
|
||||
<td width="4%" class="color_1">
|
||||
i18n_gul.text.index_n81i
|
||||
</td>
|
||||
|
||||
<td width="10%" class="color_1">
|
||||
i18n_gul.text.userId_n81i
|
||||
</td>
|
||||
<td width="15%" class="color_1">
|
||||
i18n_gul.text.username_n81i
|
||||
</td>
|
||||
<td width="12%" class="color_1">
|
||||
i18n_gul.text.createTime_n81i
|
||||
</td>
|
||||
<td width="5%" class="color_7">
|
||||
i18n_gul.text.isVaild_n81i
|
||||
</td>
|
||||
</tr>
|
||||
<c:choose>
|
||||
<c:when test="${fn:length(userList) > 0}">
|
||||
<c:forEach items="${userList}" var="user" varStatus="userVar">
|
||||
|
||||
<tr>
|
||||
<td class="color_3">
|
||||
${userVar.count + (pageNo-1)*pageSize}
|
||||
</td>
|
||||
<td class="color_3">
|
||||
${user.yhbh}
|
||||
</td>
|
||||
<td class="color_3">
|
||||
${user.yhmc}
|
||||
</td>
|
||||
<td class="color_3">
|
||||
<fmt:formatDate value="${user.ctime}" type="both" />
|
||||
</td>
|
||||
<td class="color_6">
|
||||
<c:if test="${user.zxbz==0}" var="flag">i18n_gul.message.isVaild0_n81i</c:if>
|
||||
<c:if test="${!flag}">i18n_gul.message.isVaild1_n81i</c:if>
|
||||
</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<tr>
|
||||
<td colspan="7" height="20" align="center" class="color_6">
|
||||
i18n_gul.text.noRecord_n81i
|
||||
</td>
|
||||
</tr>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</table>
|
||||
<c:if test="${!empty userList}">
|
||||
<jsp:include page="/common/page.jsp" />
|
||||
</c:if>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
88
WebRoot/page/systemManage/groupUserListForGuide.jsp
Normal file
88
WebRoot/page/systemManage/groupUserListForGuide.jsp
Normal file
@@ -0,0 +1,88 @@
|
||||
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
||||
<%@ include file="/common/taglib.jsp"%>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>i18n_gulfg.message.title_n81i</title>
|
||||
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
|
||||
type="text/css" />
|
||||
<script language="javascript" type="text/javascript"
|
||||
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
|
||||
</head>
|
||||
<script type="text/javascript">
|
||||
|
||||
function goBack(pageNo,pageSize){
|
||||
|
||||
document.parentWindow.location="<c:url value='/'/>sysManage/userGroupPerssion.do?action=query&pageNo="+pageNo+"&pageSize="+pageSize;
|
||||
}
|
||||
</script>
|
||||
<body bgcolor="#EBECEB">
|
||||
<div class="middle_list1">
|
||||
<form name=form1 id="from1"
|
||||
action="<c:url value='/sysManage/systemManage!getGroupUserForGuide.do'/>"
|
||||
method="post" style="margin: 0; padding: 0">
|
||||
<input type="hidden" name="position" value="${position }">
|
||||
<input type="hidden" name="userGroupId" value="${userGroupId }">
|
||||
<input type="hidden" name="pageNo" value="${pageNo }">
|
||||
<input type="hidden" name="pageSize" value="${pageSize }">
|
||||
<table border="0" cellpadding="0" cellspacing="0" class="table1" align="center">
|
||||
<tr>
|
||||
<td width="4%" class="color_1">
|
||||
i18n_gulfg.text.index_n81i
|
||||
</td>
|
||||
|
||||
<td width="10%" class="color_1">
|
||||
i18n_gulfg.text.userId_n81i
|
||||
</td>
|
||||
<td width="15%" class="color_1">
|
||||
i18n_gulfg.text.username_n81i
|
||||
</td>
|
||||
<td width="12%" class="color_1">
|
||||
i18n_gulfg.text.createTime_n81i
|
||||
</td>
|
||||
<td width="5%" class="color_7">
|
||||
i18n_gulfg.text.isVaild_n81i
|
||||
</td>
|
||||
</tr>
|
||||
<c:choose>
|
||||
<c:when test="${fn:length(userList) > 0}">
|
||||
<c:forEach items="${userList}" var="user" varStatus="userVar">
|
||||
|
||||
<tr>
|
||||
<td class="color_3">
|
||||
${userVar.count + (pageNo-1)*pageSize}
|
||||
</td>
|
||||
<td class="color_3">
|
||||
${user.yhbh}
|
||||
</td>
|
||||
<td class="color_3">
|
||||
${user.yhmc}
|
||||
</td>
|
||||
<td class="color_3">
|
||||
<fmt:formatDate value="${user.ctime}" type="both" />
|
||||
</td>
|
||||
<td class="color_6">
|
||||
<c:if test="${user.zxbz==0}" var="flag">i18n_gulfg.message.isVaild0_n81i</c:if>
|
||||
<c:if test="${!flag}">i18n_gulfg.message.isVaild1_n81i</c:if>
|
||||
</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<tr>
|
||||
<td colspan="7" height="20" align="center" class="color_6">
|
||||
i18n_gulfg.text.noRecord_n81i
|
||||
</td>
|
||||
</tr>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</table>
|
||||
<c:if test="${!empty userList}">
|
||||
<jsp:include page="/common/pageSub.jsp" />
|
||||
</c:if>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
145
WebRoot/page/systemManage/guide/configGuide.jsp
Normal file
145
WebRoot/page/systemManage/guide/configGuide.jsp
Normal file
@@ -0,0 +1,145 @@
|
||||
<%@ 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_cg.message.title_n81i</title>
|
||||
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
|
||||
type="text/css" />
|
||||
<link href="<c:url value='/css/smart_wizard.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.smartWizard-2.0.js'/>"></script>
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
$("#wizard").smartWizard();
|
||||
})
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<table width="100%" align="center" border="0" cellpadding="0"
|
||||
cellspacing="0">
|
||||
<tr>
|
||||
<td>
|
||||
<!-- Smart Wizard -->
|
||||
<div id="wizard" class="swMain">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="#step-1"> <label class="stepNumber">
|
||||
1
|
||||
</label> <span class="stepDesc"> i18n_cg.text.userGroup_n81i</span> </a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#step-2"> <label class="stepNumber">
|
||||
2
|
||||
</label> <span class="stepDesc"> i18n_cg.text.room_n81i</span> </a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#step-3"> <label class="stepNumber">
|
||||
3
|
||||
</label> <span class="stepDesc"> i18n_cg.text.box_n81i</span> </a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#step-4"> <label class="stepNumber">
|
||||
4
|
||||
</label> <span class="stepDesc"> i18n_cg.text.box_n81i<br />
|
||||
<small>i18n_cg.text.indecate_n81i</small> </span> </a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#step-5"> <label class="stepNumber">
|
||||
5
|
||||
</label> <span class="stepDesc"> i18n_cg.text.mission_n81i</span> </a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#step-6"> <label class="stepNumber">
|
||||
6
|
||||
</label> <span class="stepDesc"> i18n_cg.text.decateType_n81i</span> </a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#step-7"> <label class="stepNumber">
|
||||
7
|
||||
</label> <span class="stepDesc"> i18n_cg.text.decateDate_n81i</span> </a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#step-8"> <label class="stepNumber">
|
||||
8
|
||||
</label> <span class="stepDesc"> i18n_cg.text.decateSets_n81i</span> </a>
|
||||
</li>
|
||||
</ul>
|
||||
<div id="step-1" class="setp_content">
|
||||
<iframe name="I1" width="100%" height="100%"
|
||||
src="<c:url value='/sysManage/userGroupPerssion.do?action=query'/>"
|
||||
border="0" frameborder="0" scrolling="no">
|
||||
i18n_cg.message.brower_n81i
|
||||
</iframe>
|
||||
</div>
|
||||
<div id="step-2" class="setp_content">
|
||||
<iframe name="I2" width="100%" height="100%"
|
||||
src="<c:url value='/nodePosition/roomManage.do?action=query'/>"
|
||||
border="0" frameborder="0" scrolling="no">
|
||||
i18n_cg.message.brower_n81i
|
||||
</iframe>
|
||||
</div>
|
||||
<div id="step-3" class="setp_content">
|
||||
<iframe name="I3" width="100%" height="100%"
|
||||
src="<c:url value='/nodePosition/boxSet.do?action=query'/>"
|
||||
border="0" frameborder="0" scrolling="no">
|
||||
i18n_cg.message.brower_n81i
|
||||
</iframe>
|
||||
</div>
|
||||
<div id="step-4" class="setp_content">
|
||||
<iframe name="I4" width="100%" height="100%"
|
||||
src="<c:url value='/nodeGroupManage/nodeGroupManage.do?action=queryNodeGroupInfo'/>"
|
||||
border="0" frameborder="0" scrolling="no">
|
||||
i18n_cg.message.brower_n81i
|
||||
</iframe>
|
||||
</div>
|
||||
<div id="step-5" class="setp_content">
|
||||
<iframe name="I5" width="100%" height="100%"
|
||||
src="<c:url value='/nmstaskManager/nmsTaskManager.do?action=query'/>"
|
||||
border="0" frameborder="0" scrolling="no">
|
||||
i18n_cg.message.brower_n81i
|
||||
</iframe>
|
||||
</div>
|
||||
<div id="step-6" class="setp_content">
|
||||
<iframe name="I6" width="100%" height="100%"
|
||||
src="<c:url value='/detection/checkTypeSet.do?action=query'/>"
|
||||
border="0" frameborder="0" scrolling="no">
|
||||
i18n_cg.message.brower_n81i
|
||||
</iframe>
|
||||
</div>
|
||||
<div id="step-7" class="setp_content">
|
||||
<iframe name="I7" width="100%" height="100%"
|
||||
src="<c:url value='/detection/monitorData.do?action=query'/>"
|
||||
border="0" frameborder="0" scrolling="no">
|
||||
i18n_cg.message.brower_n81i
|
||||
</iframe>
|
||||
</div>
|
||||
<div id="step-8" class="setp_content">
|
||||
<iframe name="I8" width="100%" height="100%"
|
||||
src="<c:url value='/detection/detectionSet.do?action=query'/>"
|
||||
border="0" frameborder="0" scrolling="no">
|
||||
i18n_cg.message.brower_n81i
|
||||
</iframe>
|
||||
</div>
|
||||
</div>
|
||||
<!-- End SmartWizard Content -->
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
276
WebRoot/page/systemManage/guide/guideIndex.jsp
Normal file
276
WebRoot/page/systemManage/guide/guideIndex.jsp
Normal file
@@ -0,0 +1,276 @@
|
||||
<%@ 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_gi.message.title_n81i</title>
|
||||
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" type="text/css" />
|
||||
<link href="<%=path%>/css/themes/base/jquery.ui.all.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 type="text/javascript" src="<%=path%>/js/ui/jquery-ui.min.js"></script>
|
||||
<script language="javascript" type="text/javascript">
|
||||
|
||||
//goto业务系统管理
|
||||
function gotoYwxt(){
|
||||
document.form3.action ="<%=path%>/sysManage/systemManage.do?action=query";
|
||||
document.form3.submit();
|
||||
}
|
||||
//goto用户组
|
||||
function gotoYhz(){
|
||||
document.form3.action ="<%=path%>/sysManage/userGroupPerssion.do?action=query";
|
||||
document.form3.submit();
|
||||
}
|
||||
//goto机房
|
||||
function gotoJf(){
|
||||
document.form3.action ="<%=path%>/nodePosition/roomManage.do?action=query";
|
||||
document.form3.submit();
|
||||
}
|
||||
//goto机柜
|
||||
function gotoJg(){
|
||||
document.form3.action ="<%=path%>/nodePosition/boxSet.do?action=query";
|
||||
document.form3.submit();
|
||||
}
|
||||
//goto节点组
|
||||
function gotoJdz(){
|
||||
document.form3.action ="<%=path%>/nodeGroupManage/nodeGroupManage.do?action=queryNodeGroupInfo";
|
||||
document.form3.submit();
|
||||
}
|
||||
//goto任务
|
||||
function gotoRw(){
|
||||
document.form3.action ="<%=path%>/nmstaskManager/nmsTaskManager.do?action=query";
|
||||
document.form3.submit();
|
||||
}
|
||||
//goto监测类别
|
||||
function gotoJclb(){
|
||||
document.form3.action ="<%=path%>/detection/checkTypeSet.do?action=query";
|
||||
document.form3.submit();
|
||||
}
|
||||
//goto监测设置
|
||||
function gotoJcsz(){
|
||||
document.form3.action ="<%=path%>/detection/detectionSet.do?action=query";
|
||||
document.form3.submit();
|
||||
}
|
||||
|
||||
$(function(){
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="middle_list" style="overflow: hidden;">
|
||||
<!--中间部分右边开始-->
|
||||
<form name=form3 id="frmArticleType" action="" method="post">
|
||||
<input type="hidden" name="fromWhere" value="formGuide"/>
|
||||
|
||||
<input type="hidden" name="ywxtCom" value="${ywxtCom }"/>
|
||||
<input type="hidden" name="yhzCom" value="${yhzCom }"/>
|
||||
<input type="hidden" name="jfCom" value="${jfCom }"/>
|
||||
<input type="hidden" name="jdzCom" value="${jdzCom }"/>
|
||||
<input type="hidden" name="jgCom" value="${jgCom }"/>
|
||||
<input type="hidden" name="rwCom" value="${rwCom }"/>
|
||||
<input type="hidden" name="jclbCom" value="${jclbCom }"/>
|
||||
<input type="hidden" name="jcszCom" value="${jcszCom }"/>
|
||||
<div id="maindiv" style=" width: 100%; height: 98%">
|
||||
i18n_gi.text.title_n81i
|
||||
<table>
|
||||
<tr>
|
||||
<td><!-- 业务系统 -->
|
||||
<c:if test="${isywxt == 'yes' }">
|
||||
<div style="background-image: url('../images/guide/1.jpg'); width: 96px;height: 58px; text-align: center" onclick="gotoYwxt();">
|
||||
<c:if test="${ywxtCom == 'y' }">
|
||||
<img src="<c:url value="/images/guide/duigou.png"/>"
|
||||
height="14px" width="14px" align="middle" style="margin-top: 43px;"/>
|
||||
</c:if>
|
||||
</div>
|
||||
</c:if>
|
||||
<c:if test="${isywxt != 'yes' }">
|
||||
<div style="background-image: url('../images/guide/1-1.jpg'); width: 96px;height: 58px;"></div>
|
||||
</c:if>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<img src="<c:url value="/images/guide/right.png" />" class="img_middle"/>
|
||||
</td>
|
||||
<td><!-- 用户组 -->
|
||||
<c:if test="${isyhz == 'yes' }">
|
||||
<div style="background-image: url('../images/guide/2.jpg'); width: 96px;height: 58px; text-align: center" onclick="gotoYhz();">
|
||||
<c:if test="${yhzCom == 'y' }">
|
||||
<img src="<c:url value="/images/guide/duigou.png" />"
|
||||
height="14px" width="14px" align="middle" style="margin-top: 43px;"/>
|
||||
</c:if>
|
||||
</div>
|
||||
</c:if>
|
||||
<c:if test="${isyhz != 'yes' }">
|
||||
<div style="background-image: url('../images/guide/2-1.jpg'); width: 96px;height: 58px; text-align: center"></div>
|
||||
</c:if>
|
||||
</td>
|
||||
<td>
|
||||
<img src="<c:url value="/images/guide/right.png" />" class="img_middle"/>
|
||||
</td>
|
||||
<td><!-- 机房 -->
|
||||
<c:if test="${isjf == 'yes' }">
|
||||
<div style="background-image: url('../images/guide/3.jpg'); width: 96px;height: 58px; text-align: center" onclick="gotoJf();">
|
||||
<c:if test="${jfCom == 'y' }">
|
||||
<img src="<c:url value="/images/guide/duigou.png" />"
|
||||
height="14px" width="14px" align="middle" style="margin-top: 43px;"/>
|
||||
</c:if>
|
||||
</div>
|
||||
</c:if>
|
||||
<c:if test="${isjf != 'yes' }">
|
||||
<div style="background-image: url('../images/guide/3-1.jpg'); width: 96px;height: 58px;"></div>
|
||||
</c:if>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="4"> </td>
|
||||
<td align="center"><img src="<c:url value="/images/guide/down.png" />" class="img_middle"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><!-- 节点 -->
|
||||
<c:if test="${isjdz == 'yes' }">
|
||||
<div style="background-image: url('../images/guide/4.jpg'); width: 96px;height: 58px; text-align: center" onclick="gotoJdz();">
|
||||
<c:if test="${jdCom == 'y' }">
|
||||
<img src="<c:url value="/images/guide/duigou.png" />"
|
||||
height="14px" width="14px" align="middle" style="margin-top: 43px;"/>
|
||||
</c:if>
|
||||
</div>
|
||||
</c:if>
|
||||
<c:if test="${isjdz != 'yes' }">
|
||||
<div style="background-image: url('../images/guide/4-1.jpg'); width: 96px;height: 58px;"></div>
|
||||
</c:if>
|
||||
</td>
|
||||
<td>
|
||||
<img src="<c:url value="/images/guide/left.png" />" class="img_middle"/>
|
||||
</td>
|
||||
<td><!-- 节点组 -->
|
||||
<c:if test="${isjdz == 'yes' }">
|
||||
<div style="background-image: url('../images/guide/5.jpg'); width: 96px;height: 58px; text-align: center" onclick="gotoJdz();">
|
||||
<c:if test="${jdzCom == 'y' }">
|
||||
<img src="<c:url value="/images/guide/duigou.png" />"
|
||||
height="14px" width="14px" align="middle" style="margin-top: 43px;"/>
|
||||
</c:if>
|
||||
</div>
|
||||
</c:if>
|
||||
<c:if test="${isjdz != 'yes' }">
|
||||
<div style="background-image: url('../images/guide/5-1.jpg'); width: 96px;height: 58px;"></div>
|
||||
</c:if>
|
||||
</td>
|
||||
<td>
|
||||
<img src="<c:url value="/images/guide/left.png" />" class="img_middle"/>
|
||||
</td>
|
||||
<td><!-- 机柜 -->
|
||||
<c:if test="${isjg == 'yes' }">
|
||||
<div style="background-image: url('../images/guide/6.jpg'); width: 96px;height: 58px; text-align: center" onclick="gotoJg();">
|
||||
<c:if test="${jgCom == 'y' }">
|
||||
<img src="<c:url value="/images/guide/duigou.png" />"
|
||||
height="14px" width="14px" align="middle" style="margin-top: 43px;"/>
|
||||
</c:if>
|
||||
</div>
|
||||
</c:if>
|
||||
<c:if test="${isjg != 'yes' }">
|
||||
<div style="background-image: url('../images/guide/6-1.jpg'); width: 96px;height: 58px;"></div>
|
||||
</c:if>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3" align="center">
|
||||
<img src="<c:url value="/images/guide/doubleDown.png" />" class="img_middle"/>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><!-- 任务 -->
|
||||
<c:if test="${isrw == 'yes' }">
|
||||
<div style="background-image: url('../images/guide/7.jpg'); width: 96px;height: 58px; text-align: center" onclick="gotoRw();">
|
||||
<c:if test="${rwCom == 'y' }">
|
||||
<img src="<c:url value="/images/guide/duigou.png" />"
|
||||
height="14px" width="14px" align="middle" style="margin-top: 43px;"/>
|
||||
</c:if>
|
||||
</div>
|
||||
</c:if>
|
||||
<c:if test="${isrw != 'yes' }">
|
||||
<div style="background-image: url('../images/guide/7-1.jpg'); width: 96px;height: 58px;"></div>
|
||||
</c:if>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
</td>
|
||||
<td><!-- 监测类别-->
|
||||
<c:if test="${isjclb == 'yes' }">
|
||||
<div style="background-image: url('../images/guide/8.jpg'); width: 96px;height: 58px; text-align: center" onclick="gotoJclb();">
|
||||
<c:if test="${jclbCom == 'y' }">
|
||||
<img src="<c:url value="/images/guide/duigou.png" />"
|
||||
height="14px" width="14px" align="middle" style="margin-top: 43px;"/>
|
||||
</c:if>
|
||||
</div>
|
||||
</c:if>
|
||||
<c:if test="${isjclb != 'yes' }">
|
||||
<div style="background-image: url('../images/guide/8-1.jpg'); width: 96px;height: 58px;"></div>
|
||||
</c:if>
|
||||
</td>
|
||||
<td>
|
||||
<img src="<c:url value="/images/guide/right.png" />" class="img_middle"/>
|
||||
</td>
|
||||
<td><!-- 监测类别元数据 -->
|
||||
<c:if test="${isjclb == 'yes' }">
|
||||
<div style="background-image: url('../images/guide/9.jpg'); width: 96px;height: 58px; text-align: center" onclick="gotoJclb();">
|
||||
<c:if test="${jclbSourceCom == 'y' }">
|
||||
<img src="<c:url value="/images/guide/duigou.png" />"
|
||||
height="14px" width="14px" align="middle" style="margin-top: 43px;"/>
|
||||
</c:if>
|
||||
</div>
|
||||
</c:if>
|
||||
<c:if test="${isjclb != 'yes' }">
|
||||
<div style="background-image: url('../images/guide/9-1.jpg'); width: 96px;height: 58px;"></div>
|
||||
</c:if>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="4">
|
||||
|
||||
</td>
|
||||
<td align="center">
|
||||
<img src="<c:url value="/images/guide/down.png" />" class="img_middle"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td><!-- 监测设置 -->
|
||||
<c:if test="${isjcsz == 'yes' }">
|
||||
<div style="background-image: url('../images/guide/10.jpg'); width: 96px;height: 58px; text-align: center" onclick="gotoJcsz();">
|
||||
<c:if test="${jcszCom == 'y' }">
|
||||
<img src="<c:url value="/images/guide/duigou.png" />"
|
||||
height="14px" width="14px" align="middle" style="margin-top: 43px;"/>
|
||||
</c:if>
|
||||
</div>
|
||||
</c:if>
|
||||
<c:if test="${isjcsz != 'yes' }">
|
||||
<div style="background-image: url('../images/guide/10-1.jpg'); width: 96px;height: 58px;"></div>
|
||||
</c:if>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
206
WebRoot/page/systemManage/guide/monitorConfig.jsp
Normal file
206
WebRoot/page/systemManage/guide/monitorConfig.jsp
Normal file
@@ -0,0 +1,206 @@
|
||||
<%@ 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_mc.message.title_n81i</title>
|
||||
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
|
||||
type="text/css" />
|
||||
<link href="<c:url value='/css/smart_wizard.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.smartWizard-2.0.js'/>"></script>
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
$("#wizard").smartWizard();
|
||||
})
|
||||
|
||||
//点下一步时的验证
|
||||
function checkDate(curStepIdx){
|
||||
switch(curStepIdx){
|
||||
case 1:
|
||||
$("#I2").attr("src","<c:url value='/nodePosition/roomManage.do?action=query'/>");
|
||||
break;
|
||||
case 2:
|
||||
$("#I3").attr("src","<c:url value='/nodePosition/boxSet.do?action=query'/>");
|
||||
break;
|
||||
case 3:
|
||||
//$("#I4").attr("src","<c:url value='/nodeGroupManage/nodeGroupManage.do?action=queryNodeGroupInfo&type=config'/>");
|
||||
break;
|
||||
case 4:
|
||||
var nodeGroupId = $("#nodeGroupId").val();
|
||||
var isValid = $("#isValid").val();
|
||||
if(nodeGroupId == "" || nodeGroupId == null){
|
||||
alert("i18n_mc.message.nodeGroupId_n81i");
|
||||
return false;
|
||||
}
|
||||
var src = "<c:url value='/nodeGroupManage/nodeGroupManage.do?action=nodeMgmt&type=config&ids="+nodeGroupId+"&isValid="+isValid+"'/>";
|
||||
$("#I5").attr("src",src);
|
||||
break;
|
||||
case 5:
|
||||
var nodeGroupId = $("#nodeGroupId").val();
|
||||
var flag = false;
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "<c:url value='/nodeGroupManage/nodeGroupManage!getNodeSize.do'/>",
|
||||
data: {nodeGroupId:nodeGroupId},
|
||||
success: function(data){
|
||||
if( data == "" ||data == null ){
|
||||
flag = true;
|
||||
}
|
||||
}
|
||||
});
|
||||
if(!confirm("i18n_mc.message.sureNodeExists_n81i")){
|
||||
alert("i18n_mc.message.toAddNode_n81i");
|
||||
return false;
|
||||
}
|
||||
if(flag){
|
||||
alert("i18n_mc.message.toAddNode_n81i");
|
||||
return false;
|
||||
}
|
||||
$("#I6").attr("src","<c:url value='/detection/checkTypeSet.do?action=query'/>");
|
||||
break;
|
||||
case 6:
|
||||
$("#I7").attr("src","<c:url value='/detection/detectionSet.do?action=query'/>");
|
||||
break;
|
||||
case 7:
|
||||
$("#I8").attr("src","<c:url value='/detection/monitorData.do?action=query'/>");
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
function setParameter(nodeGroupId,isValid){
|
||||
//alert("nodeGroupId:"+nodeGroupId+" isValid:"+isValid);
|
||||
$("#nodeGroupId").val(nodeGroupId);
|
||||
$("#isValid").val(isValid);
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body style="height: 96%">
|
||||
<table width="100%" align="center" border="0" cellpadding="0"
|
||||
cellspacing="0">
|
||||
<tr>
|
||||
<td>
|
||||
<input type="hidden" id="nodeGroupId" />
|
||||
<input type="hidden" id="isValid" />
|
||||
<!-- Smart Wizard -->
|
||||
<div id="wizard" class="swMain">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="#step-1"> <label class="stepNumber">
|
||||
1
|
||||
</label> <span class="stepDesc"> i18n_mc.text.userGroup_n81i</span> </a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#step-2"> <label class="stepNumber">
|
||||
2
|
||||
</label> <span class="stepDesc"> i18n_mc.text.room_n81i</span> </a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#step-3"> <label class="stepNumber">
|
||||
3
|
||||
</label> <span class="stepDesc">i18n_mc.text.box_n81i</span> </a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#step-4"> <label class="stepNumber">
|
||||
4
|
||||
</label> <span class="stepDesc"> i18n_mc.text.nodeGroup_n81i</span> </a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#step-5"> <label class="stepNumber">
|
||||
5
|
||||
</label> <span class="stepDesc"> i18n_mc.text.node_n81i</span> </a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#step-6"> <label class="stepNumber">
|
||||
6
|
||||
</label> <span class="stepDesc"> i18n_mc.text.decateType_n81i</span> </a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#step-7"> <label class="stepNumber">
|
||||
7
|
||||
</label> <span class="stepDesc">i18n_mc.text.decateSets_n81i </span> </a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#step-8"> <label class="stepNumber">
|
||||
8
|
||||
</label> <span class="stepDesc">i18n_mc.text.decateDate_n81i </span> </a>
|
||||
</li>
|
||||
</ul>
|
||||
<div id="step-1" class="setp_content" style="display: none">
|
||||
<iframe name="I1" id="I1" width="99%" height="100%"
|
||||
src="<c:url value='/sysManage/userGroupPerssion.do?action=query'/>"
|
||||
border="0" frameborder="0" scrolling="auto">
|
||||
i18n_mc.message.brower_n81i
|
||||
</iframe>
|
||||
</div>
|
||||
<div id="step-2" class="setp_content" style="display: none">
|
||||
<iframe name="I2" id="I2" width="99%" height="100%"
|
||||
src=""
|
||||
border="0" frameborder="0" scrolling="auto">
|
||||
i18n_mc.message.brower_n81i
|
||||
</iframe>
|
||||
</div>
|
||||
<div id="step-3" class="setp_content" style="display: none">
|
||||
<iframe name="I3" id="I3" width="99%" height="100%"
|
||||
src=""
|
||||
border="0" frameborder="0" scrolling="auto">
|
||||
i18n_mc.message.brower_n81i
|
||||
</iframe>
|
||||
</div>
|
||||
<div id="step-4" class="setp_content" style="display: none">
|
||||
<iframe name="I4" id="I4" width="99%" height="100%"
|
||||
src="<c:url value='/nodeGroupManage/nodeGroupManage.do?action=queryNodeGroupInfo&type=config'/>"
|
||||
border="0" frameborder="0" scrolling="auto">
|
||||
i18n_mc.message.brower_n81i
|
||||
</iframe>
|
||||
</div>
|
||||
<div id="step-5" class="setp_content" style="display: none">
|
||||
<iframe name="I5" id="I5" width="99%" height="100%"
|
||||
src=""
|
||||
border="0" frameborder="0" scrolling="auto">
|
||||
i18n_mc.message.brower_n81i
|
||||
</iframe>
|
||||
</div>
|
||||
<div id="step-6" class="setp_content" style="display: none">
|
||||
<iframe name="I6" id="I6" width="99%" height="100%"
|
||||
src=""
|
||||
border="0" frameborder="0" scrolling="auto">
|
||||
i18n_mc.message.brower_n81i
|
||||
</iframe>
|
||||
</div>
|
||||
<div id="step-7" class="setp_content" style="display: none">
|
||||
<iframe name="I7" id="I7" width="99%" height="100%"
|
||||
src=""
|
||||
border="0" frameborder="0" scrolling="auto">
|
||||
i18n_mc.message.brower_n81i
|
||||
</iframe>
|
||||
</div>
|
||||
<div id="step-8" class="setp_content" style="display: none">
|
||||
<iframe name="I8" id="I8" width="99%" height="100%"
|
||||
src=""
|
||||
border="0" frameborder="0" scrolling="auto">
|
||||
i18n_mc.message.brower_n81i
|
||||
</iframe>
|
||||
</div>
|
||||
</div>
|
||||
<!-- End SmartWizard Content -->
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
178
WebRoot/page/systemManage/guide/taskConfig.jsp
Normal file
178
WebRoot/page/systemManage/guide/taskConfig.jsp
Normal file
@@ -0,0 +1,178 @@
|
||||
<%@ 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_tc.message.title_n81i</title>
|
||||
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
|
||||
type="text/css" />
|
||||
<link href="<c:url value='/css/smart_wizard.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.smartWizard-2.0.js'/>"></script>
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
$("#wizard").smartWizard();
|
||||
})
|
||||
|
||||
//点下一步时的验证
|
||||
function checkDate(curStepIdx){
|
||||
switch(curStepIdx){
|
||||
case 1:
|
||||
//$("#I2").attr("src","<c:url value='/nodePosition/roomManage.do?action=query'/>");
|
||||
$("#I2").attr("src","<c:url value='/nodePosition/roomManage.do?action=query'/>");
|
||||
break;
|
||||
case 2:
|
||||
$("#I3").attr("src","<c:url value='/nodePosition/boxSet.do?action=query'/>");
|
||||
break;
|
||||
case 3:
|
||||
//$("#I4").attr("src","<c:url value='/nodeGroupManage/nodeGroupManage.do?action=queryNodeGroupInfo&type=config'/>");
|
||||
break;
|
||||
case 4:
|
||||
var nodeGroupId = $("#nodeGroupId").val();
|
||||
var isValid = $("#isValid").val();
|
||||
if(nodeGroupId == "" || nodeGroupId == null){
|
||||
alert("i18n_tc.message.nodeGroupId_n81i");
|
||||
return false;
|
||||
}
|
||||
var src = "<c:url value='/nodeGroupManage/nodeGroupManage.do?action=nodeMgmt&type=config&ids="+nodeGroupId+"&isValid="+isValid+"'/>";
|
||||
$("#I5").attr("src",src);
|
||||
break;
|
||||
case 5:
|
||||
var nodeGroupId = $("#nodeGroupId").val();
|
||||
var flag = false;
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "<c:url value='/nodeGroupManage/nodeGroupManage!getNodeSize.do'/>",
|
||||
data: {nodeGroupId:nodeGroupId},
|
||||
success: function(data){
|
||||
if( data == "" ||data == null ){
|
||||
flag = true;
|
||||
}
|
||||
}
|
||||
});
|
||||
if(!confirm("i18n_tc.message.sureNodeExists_n81i")){
|
||||
alert("i18n_tc.message.toAddNode_n81i");
|
||||
return false;
|
||||
}
|
||||
if(flag){
|
||||
alert("i18n_tc.message.toAddNode_n81i");
|
||||
return false;
|
||||
}
|
||||
$("#I6").attr("src","<c:url value='/nmstaskManager/nmsTaskManager.do?action=query'/>");
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
function setParameter(nodeGroupId,isValid){
|
||||
//alert("nodeGroupId:"+nodeGroupId+" isValid:"+isValid);
|
||||
$("#nodeGroupId").val(nodeGroupId);
|
||||
$("#isValid").val(isValid);
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<table width="100%" align="center" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td>
|
||||
<input type="hidden" id="nodeGroupId"/>
|
||||
<input type="hidden" id="isValid"/>
|
||||
<!-- Smart Wizard -->
|
||||
<div id="wizard" class="swMain">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="#step-1"> <label class="stepNumber">
|
||||
1
|
||||
</label> <span class="stepDesc"> i18n_tc.text.userGroup_n81i</span> </a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#step-2"> <label class="stepNumber">
|
||||
2
|
||||
</label> <span class="stepDesc"> i18n_tc.text.room_n81i</span> </a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#step-3"> <label class="stepNumber">
|
||||
3
|
||||
</label> <span class="stepDesc"> i18n_tc.text.box_n81i</span> </a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#step-4"> <label class="stepNumber">
|
||||
4
|
||||
</label> <span class="stepDesc"> i18n_tc.text.nodeGroup_n81i<br />
|
||||
</span> </a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#step-5"> <label class="stepNumber">
|
||||
5
|
||||
</label> <span class="stepDesc">i18n_tc.text.node_n81i<br />
|
||||
</span> </a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#step-6"> <label class="stepNumber">
|
||||
6
|
||||
</label> <span class="stepDesc"> i18n_tc.text.mission_n81i</span> </a>
|
||||
</li>
|
||||
</ul>
|
||||
<div id="step-1" class="setp_content" style="display: none">
|
||||
<iframe name="I1" id="I1" width="99%" height="100%"
|
||||
src="<c:url value='/sysManage/userGroupPerssion.do?action=query'/>"
|
||||
border="0" frameborder="0" scrolling="auto">
|
||||
i18n_tc.message.brower_n81i
|
||||
</iframe>
|
||||
</div>
|
||||
<div id="step-2" class="setp_content" style="display: none">
|
||||
<iframe name="I2" id="I2" width="99%" height="100%"
|
||||
src=""
|
||||
border="0" frameborder="0" scrolling="auto">
|
||||
i18n_tc.message.brower_n81i
|
||||
</iframe>
|
||||
</div>
|
||||
<div id="step-3" class="setp_content" style="display: none">
|
||||
<iframe name="I3" id="I3" width="99%" height="100%"
|
||||
src=""
|
||||
border="0" frameborder="0" scrolling="auto">
|
||||
i18n_tc.message.brower_n81i
|
||||
</iframe>
|
||||
</div>
|
||||
<div id="step-4" class="setp_content" style="display: none">
|
||||
<iframe name="I4" id="I4" width="99%" height="100%"
|
||||
src="<c:url value='/nodeGroupManage/nodeGroupManage.do?action=queryNodeGroupInfo&type=config'/>"
|
||||
border="0" frameborder="0" scrolling="auto">
|
||||
i18n_tc.message.brower_n81i
|
||||
</iframe>
|
||||
</div>
|
||||
<div id="step-5" class="setp_content" style="display: none">
|
||||
<iframe name="I5" id="I5" width="99%" height="100%"
|
||||
src=""
|
||||
border="0" frameborder="0" scrolling="auto">
|
||||
i18n_tc.message.brower_n81i
|
||||
</iframe>
|
||||
</div>
|
||||
<div id="step-6" class="setp_content" style="display: none">
|
||||
<iframe name="I6" id="I6" width="99%" height="100%"
|
||||
src=""
|
||||
border="0" frameborder="0" scrolling="auto">
|
||||
i18n_tc.message.brower_n81i
|
||||
</iframe>
|
||||
</div>
|
||||
</div>
|
||||
<!-- End SmartWizard Content -->
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
209
WebRoot/page/systemManage/node/addNodeInfo.jsp
Normal file
209
WebRoot/page/systemManage/node/addNodeInfo.jsp
Normal file
@@ -0,0 +1,209 @@
|
||||
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
|
||||
<%@ page import="nis.nms.core.*"%>
|
||||
<%@ 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_ani.message.title_n81i</title>
|
||||
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
|
||||
type="text/css" />
|
||||
<link href="<c:url value='/js//dtree/css/dtree.css'/>"
|
||||
rel="stylesheet" type="text/css" />
|
||||
<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-1.4.2.min.js'/>"></script>
|
||||
<script language="javascript" type="text/javascript"
|
||||
src="<c:url value='/js/dtree/js/dtree_checkbox.js'/>"></script>
|
||||
<script language="javascript" type="text/javascript"
|
||||
src="<c:url value='/js/jquery.tools.js'/>"></script>
|
||||
<script type="text/javascript">
|
||||
function add(){
|
||||
//去空格
|
||||
$("#nodeIp").val($.trim($("#nodeIp").val()));
|
||||
$("#nodeName").val($.trim($("#nodeName").val()));
|
||||
//验证不能空与长度限制
|
||||
if($id("nodeIp","ip","i18n_ani.text.nodeIp_n81i") && $("#nodeIp").checkByteLength(64,"i18n_ani.text.nodeIp_n81i")
|
||||
&& $id("nodeName","","i18n_ani.text.nodeName_n81i") && $("#nodeName").checkByteLength(64,"i18n_ani.text.nodeName_n81i") ){
|
||||
document.Nodeform.action="<%=path%>/sysManage/nodeManage!executeAction.do?action=doAdd";
|
||||
document.Nodeform.submit();
|
||||
}
|
||||
}
|
||||
|
||||
function goBack(){
|
||||
document.Nodeform.action="<%=path%>/sysManage/nodeManage!executeAction.do?action=query";
|
||||
document.Nodeform.submit();
|
||||
}
|
||||
|
||||
function nodeTypeChange(){
|
||||
var ftType = document.getElementById('nodeType').value;
|
||||
if(ftType=='1'){
|
||||
document.getElementById('unode').style.display='block';
|
||||
}else{
|
||||
document.getElementById('unode').style.display='none';
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="middle_list">
|
||||
<form action="" name="Nodeform" method="post" style="border:0px;">
|
||||
<input type="hidden" name="position" value="${position }" />
|
||||
<input type="hidden" name="nodeGroupId" value="${nodeGroupId }" />
|
||||
<table border="0" cellpadding="0" cellspacing="0" class="table1">
|
||||
<tr>
|
||||
<td colspan="4" class="color_7">
|
||||
<strong>i18n_ani.text.title_n81i</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" width="20%" align="right">
|
||||
i18n_ani.text.nodeIp_n81i:
|
||||
</td>
|
||||
<td class="color_3" width="30%" align="left">
|
||||
<input type="text" name="nodeTable.nodeIp" id="nodeIp"
|
||||
style="width: 155px;" />
|
||||
<font color="red">*</font>
|
||||
</td>
|
||||
<td class="color_1" width="20%" align="right">
|
||||
i18n_ani.text.nodeName_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left">
|
||||
<input type="text" name="nodeTable.nodeName" id="nodeName"
|
||||
style="width: 155px;" />
|
||||
<font color="red">*</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_ani.text.nodeType_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left">
|
||||
<select name="nodeTable.nodeType" id="nodeType"
|
||||
style="width: 155px;" >
|
||||
<option value="0">
|
||||
i18n_ani.message.computer_n81i
|
||||
</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="color_1" align="right">
|
||||
i18n_ani.text.nodeUType_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left">
|
||||
<select name="nodeTable.nodeUType" id="nodeUType"
|
||||
style="width: 155px;" >
|
||||
<option value="1">
|
||||
1U
|
||||
</option>
|
||||
<option value="2">
|
||||
2U
|
||||
</option>
|
||||
<option value="3">
|
||||
3U
|
||||
</option>
|
||||
<option value="4">
|
||||
4U
|
||||
</option>
|
||||
<option value="5">
|
||||
5U
|
||||
</option>
|
||||
<option value="6">
|
||||
6U
|
||||
</option>
|
||||
<option value="7">
|
||||
7U
|
||||
</option>
|
||||
<option value="8">
|
||||
8U
|
||||
</option>
|
||||
<option value="9">
|
||||
9U
|
||||
</option>
|
||||
<option value="10">
|
||||
10U
|
||||
</option>
|
||||
<option value="11">
|
||||
11U
|
||||
</option>
|
||||
<option value="12">
|
||||
12U
|
||||
</option>
|
||||
<option value="13">
|
||||
13U
|
||||
</option>
|
||||
<option value="14">
|
||||
14U
|
||||
</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_ani.text.nodeDesc_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left">
|
||||
<textarea rows="4" cols="40" name="nodeTable.nodeDesc"
|
||||
id="nodeDesc" style="width: 155px; height: 50px;"
|
||||
></textarea>
|
||||
</td>
|
||||
<td class="color_1" align="right">
|
||||
i18n_ani.text.nodeState_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left">
|
||||
<input type="radio" name="nodeTable.nodeState" id="nodeState"
|
||||
value="0" checked />i18n_ani.message.nodeState0_n81i
|
||||
<input type="radio" name="nodeTable.nodeState" id="nodeState"
|
||||
value="1" /><font color="red">i18n_ani.message.nodeState1_n81i</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_ani.text.snmpVersion_n81i:
|
||||
</td>
|
||||
<td class="color_6" colspan="3" align="left">
|
||||
<input type="radio" name="nodeTable.snmpVersion" value="1" checked="checked"/>VERSION2C
|
||||
<input type="radio" name="nodeTable.snmpVersion" value="3" />VERSION3
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_7" colspan="4" align="right">
|
||||
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
onclick="add()" value="i18n_ani.text.submit_n81i"/>
|
||||
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
onclick="javascript:document.forms['Mkform'].reset()"
|
||||
value="i18n_ani.text.reset_n81i"/>
|
||||
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
onclick="goBack()" value="i18n_ani.text.back_n81i"/>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
292
WebRoot/page/systemManage/node/nodeInfoList.jsp
Normal file
292
WebRoot/page/systemManage/node/nodeInfoList.jsp
Normal file
@@ -0,0 +1,292 @@
|
||||
<%@ 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_nil.message.title_n81i</title>
|
||||
<link href="<c:url value='/css/nms.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.suggest.js'/>"></script>
|
||||
<script language="javascript" type="text/javascript"
|
||||
src="<c:url value="/js/fileInput.js"/>"></script>
|
||||
<script type="text/javascript">
|
||||
var msg = '${MSG}';
|
||||
if(msg=='1'){
|
||||
alert("i18n_nil.message.success_n81i");
|
||||
}else if(msg=='2'){
|
||||
alert("i18n_nil.message.faild_n81i");
|
||||
}
|
||||
|
||||
//添加记录
|
||||
function addRecord(){
|
||||
document.form3.action ="<%=path%>/sysManage/nodeManage!executeAction.do?action=openAdd";
|
||||
document.form3.submit();
|
||||
}
|
||||
//修改记录
|
||||
function updateRecord(id){
|
||||
document.form3.action ="<%=path%>/sysManage/nodeManage!executeAction.do?action=openUpdate&nodeId="+id;
|
||||
document.form3.submit();
|
||||
}
|
||||
//停用
|
||||
function stopRecord(id){
|
||||
document.form3.action ="<%=path%>/sysManage/nodeManage!executeAction.do?action=stop&nodeId="+id;
|
||||
document.form3.submit();
|
||||
}
|
||||
//启用
|
||||
function startRecord(id){
|
||||
document.form3.action ="<%=path%>/sysManage/nodeManage!executeAction.do?action=start&nodeId="+id;
|
||||
document.form3.submit();
|
||||
}
|
||||
//查询记录
|
||||
function qry(){
|
||||
document.form3.action = "<%=path%>/sysManage/nodeManage!executeAction.do?action=query";
|
||||
document.form3.submit();
|
||||
}
|
||||
//查看详情
|
||||
function showRecord(id){
|
||||
document.form3.action = "<%=path%>/sysManage/nodeManage!executeAction.do?action=detail&nodeId="+id;
|
||||
document.form3.submit();
|
||||
}
|
||||
//导入节点
|
||||
function importXls() {
|
||||
var myfileVal = document.getElementById("myFile").value;
|
||||
if(myfileVal.value=="") {
|
||||
alert("i18n_nil.message.importFile_n81i");
|
||||
}else if((myfileVal.lastIndexOf(".xlsx")+5)!=myfileVal.length && (myfileVal.lastIndexOf(".xls")+4)!=myfileVal.length){
|
||||
alert("i18n_nil.message.importCorrectFile_n81i");
|
||||
}else if(confirm('i18n_nil.message.sureToImport_n81i')){
|
||||
document.form3.action = "<%=path%>/sysManage/nodeManage!executeAction.do?action=importXls";
|
||||
document.form3.submit();
|
||||
}
|
||||
}
|
||||
function downloadExample() {
|
||||
document.form3.action = "<%=path%>/sysManage/nodeManage!executeAction.do?action=downloadExample";
|
||||
document.form3.submit();
|
||||
}
|
||||
|
||||
//返回
|
||||
function goBack(){
|
||||
//window.parent.goBack();
|
||||
document.location.href = "<%=path%>/sysManage/nodeGroupManage.do?action=query";
|
||||
}
|
||||
|
||||
|
||||
//parent.document.all("listFrame").style.height = document.body.scrollHeight + 16;
|
||||
|
||||
|
||||
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.document.getElementById("lianxiangStatus").value=="2")
|
||||
{
|
||||
if(jQuery.trim(ajaxValue1)=="") return false;
|
||||
|
||||
ajaxProperties = ajaxProperties1;
|
||||
ajaxTableName = ajaxTableName1;
|
||||
ajaxType = ajaxType1;
|
||||
id = id1;
|
||||
returnDiv = returnDiv1;
|
||||
|
||||
if(!containSpecial(ajaxValue1)){
|
||||
ajaxValue = ajaxValue1;
|
||||
}else{
|
||||
alert('i18n_nil.message.inputInfo_n81i');
|
||||
$("#"+id).val('');
|
||||
return;
|
||||
}
|
||||
clearTimeout(set_Id);
|
||||
set_Id = setTimeout(ajaxForLianxiang,500);
|
||||
}
|
||||
}
|
||||
|
||||
function ajaxForLianxiang()
|
||||
{
|
||||
jQuery.post("<%=path%>/sysManage/sysPopedomManage!queryInfoForAjax.do",
|
||||
{"ajaxProperties":ajaxProperties,"ajaxTableName":ajaxTableName,"ajaxType":ajaxType,"ajaxValue":ajaxValue},function(data)
|
||||
{
|
||||
var lianxiangList = data.split(",");
|
||||
jQuery("#"+id).suggest(lianxiangList,{hot_list:lianxiangList,attachObject:"#"+returnDiv});
|
||||
});
|
||||
}
|
||||
|
||||
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">
|
||||
<!--中间部分右边开始-->
|
||||
|
||||
<form name="form3" id="form3"
|
||||
action="<c:url value='/sysManage/nodeManage!queryNodeInfo.do'/>"
|
||||
method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" name="position" value="${position }" />
|
||||
<input type="hidden" name="nodeGroupId" value="${nodeGroupId }" />
|
||||
<div class="box_1">
|
||||
<label class="divTopText"><font class="selectText">i18n_nil.text.nodeName_n81i</font>
|
||||
<input type="text" id="nodeNameVo"
|
||||
onkeyup="lianxiangkeyup('nodeName','NodeTable','String','nodeName','suggest1',this.value);"
|
||||
name="nodeNameVo" title="i18n_nil.message.nodeName_n81i" value="${nodeNameVo}" size="20" />
|
||||
<div id='suggest1' class="ac_results"></div></label>
|
||||
<label class="divTopText"><font class="selectText">i18n_nil.text.nodeDesc_n81i</font>
|
||||
<input type="text" id="nodeDescVo"
|
||||
onkeyup="lianxiangkeyup('nodeDesc','NodeTable','String','nodeDesc','suggest2',this.value);"
|
||||
name="nodeDescVo" title="i18n_nil.message.nodeDesc_n81i" value="${nodeDescVo}" size="20" />
|
||||
<div id='suggest2' class="ac_results"></div></label>
|
||||
<img src="<c:url value='/images/button_chaxun.png'/>"
|
||||
class="img_middle" onclick="javascript:qry();" />
|
||||
</div>
|
||||
<div class="box_2">
|
||||
|
||||
<input type="button" value="i18n_nil.text.importXls_n81i" title="i18n_nil.text.importXls_n81i" class="btn3_mouseout" onclick="javascript:uploadFile(this)"/>
|
||||
<input type="file" name="myFile" id="myFile" value="" class="filebtn" onchange="javascript:setValue(this.value)"/>
|
||||
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
onclick="javascript:importXls();" value="i18n_nil.button.importXls_n81i"/>
|
||||
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
onclick="javascript:addRecord();" value="i18n_nil.button.add_n81i"/>
|
||||
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
onclick="javascript:downloadExample();" value="i18n_nil.button.downloadExample_n81i"/>
|
||||
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
onclick="javascript:goBack();" value="i18n_nil.button.back_n81i"/>
|
||||
|
||||
</div>
|
||||
<table border="0" cellpadding="0" cellspacing="0" class="table" align="center">
|
||||
<tr>
|
||||
<td class="color_top" width="4%">
|
||||
i18n_nil.text.index_n81i
|
||||
</td>
|
||||
<td class="color_top" width="10%">
|
||||
i18n_nil.text.option_n81i
|
||||
</td>
|
||||
<td class="color_top" width="8%">
|
||||
i18n_nil.text.nodeIp_n81i
|
||||
</td>
|
||||
<td class="color_top" width="8%">
|
||||
i18n_nil.text.nodeName_n81i
|
||||
</td>
|
||||
<td class="color_top" width="8%">
|
||||
i18n_nil.text.systemId_n81i
|
||||
</td>
|
||||
<td class="color_top" width="8%">
|
||||
i18n_nil.text.nodeGroup_n81i
|
||||
</td>
|
||||
<td class="color_8" width="8%">
|
||||
i18n_nil.text.createDate_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 }">
|
||||
<img src="<c:url value='/images/logo_1.png'/>" class="img_middle" />
|
||||
<a href="javascript:updateRecord('${node.nodeId}')">i18n_nil.text.update_n81i</a>
|
||||
|
||||
<img src="<c:url value='/images/logo_1.png'/>" class="img_middle" />
|
||||
<c:if test="${node.nodeState=='0' }">
|
||||
<a href="javascript:stopRecord('${node.nodeId}')"><font color="red">i18n_nil.text.stop_n81i</font></a>
|
||||
</c:if>
|
||||
<c:if test="${node.nodeState=='1' }">
|
||||
<a href="javascript:startRecord('${node.nodeId}')">i18n_nil.text.start_n81i</a>
|
||||
</c:if>
|
||||
</td>
|
||||
<td class="${color }">
|
||||
<!-- 2、 调用JS,此处远程连接调用JS在/common/remoteConn.jsp中 -->
|
||||
<a href="javascript:void(0);"
|
||||
onclick="remoteConn('${node.nodeSystemType }','${node.nodeIp}', null, this)">
|
||||
${node.nodeIp}
|
||||
</a>
|
||||
</td>
|
||||
<td class="${color }">
|
||||
${node.nodeName}
|
||||
</td>
|
||||
<td class="${color }">
|
||||
${node.systemIdName}
|
||||
</td>
|
||||
<td class="${color }">
|
||||
${node.groupIdName}
|
||||
</td>
|
||||
<td class="${color_end }">
|
||||
<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="7" height="35" class="color_6" align="center">
|
||||
i18n_nil.text.noRecord_n81i
|
||||
</td>
|
||||
</tr>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</table>
|
||||
<c:if test="${!empty nodeList}">
|
||||
<jsp:include page="/common/page.jsp" />
|
||||
</c:if>
|
||||
<!--中间部分右边结束-->
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
93
WebRoot/page/systemManage/node/showImportError.jsp
Normal file
93
WebRoot/page/systemManage/node/showImportError.jsp
Normal file
@@ -0,0 +1,93 @@
|
||||
<%@ page language="java" pageEncoding="UTF-8"%>
|
||||
<%@include file="/common/taglib.jsp"%>
|
||||
|
||||
<%
|
||||
String path = request.getContextPath();
|
||||
%>
|
||||
|
||||
<!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_sierr.message.title_n81i</title>
|
||||
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
|
||||
type="text/css" />
|
||||
<script type="text/javascript">
|
||||
function goBack(){
|
||||
document.form1.action="<%=path%>/sysManage/nodeManage.do?action=query";
|
||||
document.form1.submit();
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="middle_list">
|
||||
<!--中间部分右边开始-->
|
||||
<form action="" name="form1" id="form1" method="post">
|
||||
<input type="hidden" name="position" value="${position }" />
|
||||
<input type="hidden" name="nodeGroupId" value="${nodeGroupId }" />
|
||||
<table align="center" border="0" cellpadding="0"
|
||||
cellspacing="0" class="table1">
|
||||
<tr>
|
||||
<td height="30" class="color_7" colspan="6">
|
||||
<strong>i18n_sierr.text.title_n81i</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1">
|
||||
i18n_sierr.text.nodeIp_n81i
|
||||
</td>
|
||||
<td class="color_1">
|
||||
i18n_sierr.text.nodeName_n81i
|
||||
</td>
|
||||
<td class="color_1">
|
||||
i18n_sierr.text.nodeDesc_n81i
|
||||
</td>
|
||||
<td class="color_1">
|
||||
i18n_sierr.text.nodeType_n81i
|
||||
</td>
|
||||
<td class="color_1">
|
||||
i18n_sierr.text.nodeState_n81i
|
||||
</td>
|
||||
<td class="color_7">
|
||||
i18n_sierr.text.showError_n81i
|
||||
</td>
|
||||
</tr>
|
||||
<c:forEach items="${errorList}" var="info">
|
||||
<tr>
|
||||
<td class="color_3">
|
||||
${info.nodeIp }
|
||||
</td>
|
||||
<td class="color_3">
|
||||
${info.nodeName }
|
||||
</td>
|
||||
<td class="color_3">
|
||||
${info.nodeDesc }
|
||||
</td>
|
||||
<td class="color_3">
|
||||
${info.nodeType }
|
||||
</td>
|
||||
<td class="color_3">
|
||||
${info.nodeState }
|
||||
</td>
|
||||
<td class="color_6">
|
||||
${info.showError }
|
||||
</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
|
||||
<tr>
|
||||
<td class="color_7" colspan="6">
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'" onclick="goBack()" value="i18n_sierr.button.back_n81i"/>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<!--中间部分右边结束-->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
220
WebRoot/page/systemManage/node/updateNodeInfo.jsp
Normal file
220
WebRoot/page/systemManage/node/updateNodeInfo.jsp
Normal file
@@ -0,0 +1,220 @@
|
||||
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
|
||||
<%@ page import="nis.nms.core.*"%>
|
||||
<%@ 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_uni.message.title_n81i</title>
|
||||
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
|
||||
type="text/css" />
|
||||
<link href="<c:url value='/js//dtree/css/dtree.css'/>"
|
||||
rel="stylesheet" type="text/css" />
|
||||
<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-1.4.2.min.js'/>"></script>
|
||||
<script language="javascript" type="text/javascript"
|
||||
src="<c:url value='/js/dtree/js/dtree_checkbox.js'/>"></script>
|
||||
<script language="javascript" type="text/javascript"
|
||||
src="<c:url value='/js/jquery.tools.js'/>"></script>
|
||||
<script type="text/javascript">
|
||||
function add(){
|
||||
//去空格
|
||||
$("#nodeIp").val($.trim($("#nodeIp").val()));
|
||||
$("#nodeName").val($.trim($("#nodeName").val()));
|
||||
//验证不能空与长度限制
|
||||
if($id("nodeIp","ip","i18n_uni.text.nodeIp_n81i") && $("#nodeIp").checkByteLength(64,"i18n_uni.text.nodeIp_n81i")
|
||||
&& $id("nodeName","","i18n_uni.text.nodeName_n81i") && $("#nodeName").checkByteLength(64,"i18n_uni.text.nodeName_n81i") ){
|
||||
document.Nodeform.action="<%=path%>/sysManage/nodeManage!executeAction.do?action=doUpdate";
|
||||
document.Nodeform.submit();
|
||||
}
|
||||
}
|
||||
function goBack(){
|
||||
document.Nodeform.action="<%=path%>/sysManage/nodeManage!executeAction.do?action=query";
|
||||
document.Nodeform.submit();
|
||||
}
|
||||
|
||||
function nodeTypeChange(){
|
||||
var ftType = document.getElementById('nodeType').value;
|
||||
if(ftType=='1'){
|
||||
document.getElementById('unode').style.display='block';
|
||||
}else{
|
||||
document.getElementById('unode').style.display='none';
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="middle_list">
|
||||
<form action="" name="Nodeform" method="post" style="border:0px;">
|
||||
<input type="hidden" name="position" value="${position }" />
|
||||
<input type="hidden" name="nodeGroupId" value="${nodeGroupId }" />
|
||||
<input type="hidden" name="pageNo" value="${pageNo }" />
|
||||
<input type="hidden" name="pageSize" value="${pageSize }" />
|
||||
<input type="hidden" name="nodeTable.nodeId"
|
||||
value="${nodeTable.nodeId }" />
|
||||
<input type="hidden" name="nodeNameVo" id="nodeNameVo"
|
||||
value="${nodeNameVo }" />
|
||||
<input type="hidden" name="nodeDescVo" id="nodeDescVo"
|
||||
value="${nodeDescVo }" />
|
||||
<input type="hidden" name="nodeTable.seqId"
|
||||
value="${nodeTable.seqId }" />
|
||||
<input type="hidden" name="oldNodeIp" value="${nodeTable.nodeIp }" />
|
||||
<table border="0" cellpadding="0" cellspacing="0" class="table1">
|
||||
<tr>
|
||||
<td colspan="4" class="color_7">
|
||||
<strong>i18n_uni.text.title_n81i</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" width="20%" align="right">
|
||||
i18n_uni.text.nodeIp_n81i:
|
||||
</td>
|
||||
<td class="color_3" width="30%" align="left">
|
||||
<input type="text" name="nodeTable.nodeIp" id="nodeIp"
|
||||
value="${nodeTable.nodeIp }" style="width: 155px;" />
|
||||
</td>
|
||||
<td class="color_1" width="20%" align="right">
|
||||
i18n_uni.text.nodeName_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left">
|
||||
<input type="text" name="nodeTable.nodeName" id="nodeName"
|
||||
value="${nodeTable.nodeName }" style="width: 155px;" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_uni.text.nodeType_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left">
|
||||
<select name="nodeTable.nodeType" id="nodeType"
|
||||
style="width: 155px;" >
|
||||
<option value="0" <c:if test="${nodeTable.nodeType==0 }">selected</c:if>>
|
||||
i18n_uni.message.computer_n81i
|
||||
</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="color_1" align="right">
|
||||
i18n_uni.message.nodeUType_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left">
|
||||
<select name="nodeTable.nodeUType" id="nodeUType"
|
||||
style="width: 155px;" >
|
||||
<option value="1" <c:if test="${nodeTable.nodeUType == '1'}">selected="selected"</c:if>>
|
||||
1U
|
||||
</option>
|
||||
<option value="2" <c:if test="${nodeTable.nodeUType == '2'}">selected="selected"</c:if>>
|
||||
2U
|
||||
</option>
|
||||
<option value="3" <c:if test="${nodeTable.nodeUType == '3'}">selected="selected"</c:if>>
|
||||
3U
|
||||
</option>
|
||||
<option value="4" <c:if test="${nodeTable.nodeUType == '4'}">selected="selected"</c:if>>
|
||||
4U
|
||||
</option>
|
||||
<option value="5" <c:if test="${nodeTable.nodeUType == '5'}">selected="selected"</c:if>>
|
||||
5U
|
||||
</option>
|
||||
<option value="6" <c:if test="${nodeTable.nodeUType == '6'}">selected="selected"</c:if>>
|
||||
6U
|
||||
</option>
|
||||
<option value="7" <c:if test="${nodeTable.nodeUType == '7'}">selected="selected"</c:if>>
|
||||
7U
|
||||
</option>
|
||||
<option value="8" <c:if test="${nodeTable.nodeUType == '8'}">selected="selected"</c:if>>
|
||||
8U
|
||||
</option>
|
||||
<option value="9" <c:if test="${nodeTable.nodeUType == '9'}">selected="selected"</c:if>>
|
||||
9U
|
||||
</option>
|
||||
<option value="10" <c:if test="${nodeTable.nodeUType == '10'}">selected="selected"</c:if>>
|
||||
10U
|
||||
</option>
|
||||
<option value="11" <c:if test="${nodeTable.nodeUType == '11'}">selected="selected"</c:if>>
|
||||
11U
|
||||
</option>
|
||||
<option value="12" <c:if test="${nodeTable.nodeUType == '12'}">selected="selected"</c:if>>
|
||||
12U
|
||||
</option>
|
||||
<option value="13" <c:if test="${nodeTable.nodeUType == '13'}">selected="selected"</c:if>>
|
||||
13U
|
||||
</option>
|
||||
<option value="14" <c:if test="${nodeTable.nodeUType == '14'}">selected="selected"</c:if>>
|
||||
14U
|
||||
</option>
|
||||
</select>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_uni.text.nodeDesc_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left">
|
||||
<textarea rows="4" cols="40" name="nodeTable.nodeDesc"
|
||||
id="nodeDesc" style="width: 155px; height: 50px;"
|
||||
>${nodeTable.nodeDesc }</textarea>
|
||||
</td>
|
||||
<td class="color_1" align="right">
|
||||
i18n_uni.text.nodeState_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left">
|
||||
<input type="radio" name="nodeTable.nodeState" id="nodeState"
|
||||
value="0" <c:if test="${nodeTable.nodeState==0 }">checked</c:if> />
|
||||
i18n_uni.message.nodeState0_n81i
|
||||
<input type="radio" name="nodeTable.nodeState" id="nodeState"
|
||||
value="1" <c:if test="${nodeTable.nodeState==1 }">checked</c:if> />
|
||||
i18n_uni.message.nodeState1_n81i
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_uni.text.snmpVersion_n81i:
|
||||
</td>
|
||||
<td class="color_6" colspan="3" align="left">
|
||||
<input type="radio" name="nodeTable.snmpVersion" value="1" <c:if test="${nodeTable.snmpVersion==1 }">checked="checked"</c:if> />VERSION2C
|
||||
<input type="radio" name="nodeTable.snmpVersion" value="3" <c:if test="${nodeTable.snmpVersion==3 }">checked="checked"</c:if> />VERSION3
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_7" colspan="4" align="right">
|
||||
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
onclick="add()" value="i18n_uni.text.submit_n81i"/>
|
||||
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
onclick="javascript:document.forms['Mkform'].reset()"
|
||||
value="i18n_uni.text.reset_n81i"/>
|
||||
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
onclick="goBack()" value="i18n_uni.text.back_n81i"/>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
466
WebRoot/page/systemManage/nodeGroupManage/node/addNodeInfo.jsp
Normal file
466
WebRoot/page/systemManage/nodeGroupManage/node/addNodeInfo.jsp
Normal file
@@ -0,0 +1,466 @@
|
||||
<%@ 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_addNodeInfo.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" />
|
||||
<script language="javascript" type="text/javascript"
|
||||
src="<c:url value='/js/jquery.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/j.suggest.js'/>"></script>
|
||||
<script type="text/javascript">
|
||||
var vstart;
|
||||
function add(){
|
||||
//去空格
|
||||
$("#nodeIp").val($.trim($("#nodeIp").val()));
|
||||
$("#nNa").val($.trim($("#nNa").val()));
|
||||
|
||||
if($id("nodeIp","ip","i18n_addNodeInfo.text.nodeIp_n81i") && $("#nodeIp").checkByteLength(64,"i18n_addNodeInfo.text.nodeIp_n81i")
|
||||
&& $id("nodeMac","","i18n_addNodeInfo.text.nodeMac_n81i") && $("#nodeMac").checkByteLength(100,"i18n_addNodeInfo.text.nodeMac_n81i")
|
||||
&& $id("nNa","","i18n_addNodeInfo.text.nNa_n81i") && $("#nNa").checkByteLength(64,"i18n_addNodeInfo.text.nNa_n81i")
|
||||
&& $id("nodeBoxIspn","","i18n_addNodeInfo.text.nodeBoxIspn_n81i") && $id("nodeUType","sz","i18n_addNodeInfo.text.nodeUType_n81i")
|
||||
&& $id("nodeBeginUType","xz","i18n_addNodeInfo.text.nodeBeginUType_n81i")){
|
||||
if($("#nodeType").val() == "1"){
|
||||
if($("#networElementType").val() == ""){
|
||||
alert("i18n_addNodeInfo.message.nodeBeginUType_n81i");
|
||||
return false;
|
||||
}
|
||||
}else if($("#nodeType").val()==0&&(!$("#specialServerTypeTR").is(":hidden"))){
|
||||
if($("#specialServerType").val() == ""){
|
||||
alert("i18n_addNodeInfo.message.nodeSpecialServerType_n81i");
|
||||
return false;
|
||||
}
|
||||
$("#version2").val("");
|
||||
$("#version3").val("");
|
||||
$("#networElementType").val("");
|
||||
}else{
|
||||
$("#version2").val("");
|
||||
$("#version3").val("");
|
||||
$("#specialServerType").val("");
|
||||
$("#networElementType").val("");
|
||||
}
|
||||
document.Nodeform.action="<%=path%>/nodeGroupManage/nodeManage!executeAction.do?action=doAdd";
|
||||
document.Nodeform.submit();
|
||||
}
|
||||
}
|
||||
|
||||
function goBack(){
|
||||
document.Nodeform.action="<%=path%>/nodeGroupManage/nodeManage!executeAction.do?action=query";
|
||||
document.Nodeform.submit();
|
||||
}
|
||||
|
||||
function nodeTypeChange(){
|
||||
var nodeType = $("#nodeType").val();
|
||||
if(nodeType=='1'){
|
||||
$("#networElementTypeTR").show();
|
||||
$(".snmpVersionType").show();
|
||||
}else{
|
||||
$("#networElementTypeTR").hide();
|
||||
$(".snmpVersionType").hide();
|
||||
}
|
||||
var nodeTypeIndex=$("#nodeType option").index($('#nodeType option:selected'));
|
||||
if(nodeTypeIndex==2){
|
||||
$("#specialServerTypeTR").show();
|
||||
}else{
|
||||
$("#specialServerTypeTR").hide();
|
||||
}
|
||||
}
|
||||
|
||||
//-- 节点IP 失去焦点事件绑定 自动匹配该节点是否已存在某机柜
|
||||
function nodeIpChange(){
|
||||
$.post("<c:url value='/nodeGroupManage/nodeManage!getNodeBox.do'/>",
|
||||
{nodeIp:$("#nodeIp").val()},
|
||||
function(data){
|
||||
if(data!=null && data!=""){
|
||||
$("#nodeBoxIspn").val(data.nodeBoxIspn);
|
||||
$("#nodeUType").val(data.nodeUType);
|
||||
if(data.nodeUType!=null){
|
||||
vstart =data.nodeBeginUType;//保留节点在机柜已有起始U位
|
||||
//$("#nodeUType").trigger("blur");//触发节点厚度(U位)的绑定事件,即获取机柜的空闲位置(可选起始U位选项)
|
||||
$("#nodeUType").trigger("onchange");//触发节点厚度(U位)的绑定事件,即获取机柜的空闲位置(可选起始U位选项)
|
||||
}
|
||||
}else{
|
||||
vstart = null;
|
||||
$("#nodeBoxIspn").val("");//Ispn的值改变会触发它自己绑定的事件,即把nodeUType和nodeBeginUType清空
|
||||
}
|
||||
}, "json");
|
||||
}
|
||||
|
||||
function checkNodeIp(){
|
||||
$.post("<c:url value='/nodeGroupManage/nodeManage!checkNodeIp.do'/>",
|
||||
{nodeIp:$("#nodeIp").val(),nodeGroupId:$("#nodeGroupId").val()},
|
||||
function(data){
|
||||
if(data!=null && data!=""){
|
||||
//同一节点组存在相同的IP
|
||||
if(data.isExist !=null){
|
||||
alert("i18n_addNodeInfo.message.nodeGroup_n81i");
|
||||
$("#nodeIp").val("");
|
||||
clearInfo();
|
||||
}else{
|
||||
//其它节点组存在相同IP
|
||||
if(data.nodeIp !=null){
|
||||
//设置Mac
|
||||
$("#nodeMac").val(data.nodeMac);
|
||||
//设置节点名称
|
||||
$("#nNa").val(data.nodeName);
|
||||
//设置节点类型
|
||||
if(data.nodeType==1){
|
||||
$("#nodeType").val(data.nodeType);
|
||||
$("#networElementTypeTR").show();
|
||||
//设置SNMP版本
|
||||
$(".snmpVersionType").show();
|
||||
if(data.snmpVersion == "1"){
|
||||
$("#version2").attr("checked","checked");
|
||||
}else if(data.snmpVersion == "3"){
|
||||
$("#version3").attr("checked","checked");
|
||||
}
|
||||
}else{
|
||||
$("#networElementTypeTR").hide();
|
||||
}
|
||||
if(data.nodeType==0&&data.specialServerType!=0){
|
||||
$("#nodeType option:last").attr("selected","selected");
|
||||
$("#specialServerTypeTR").show();
|
||||
$("#specialServerType").val(data.specialServerType);
|
||||
}else{
|
||||
$("#nodeType option:first").val(data.nodeType);
|
||||
$("#specialServerTypeTR").hide();
|
||||
}
|
||||
//设置网元类型
|
||||
$("#networElementType").val(data.networElementType);
|
||||
//设置用户名
|
||||
$("#nodeUserName").val(data.nodeUserName);
|
||||
//设置密码
|
||||
$("#nodePassword").val(data.nodePassword);
|
||||
//设置机柜编号
|
||||
$("#nodeBoxIspn").val(data.nodeBoxIspn);
|
||||
//设置机柜起始U位
|
||||
vstart = data.nodeBeginUType
|
||||
//设置节点厚度
|
||||
$("#nodeUType").val(data.nodeUType);
|
||||
/* $("#nodeUType").trigger("onchange"); */
|
||||
nodeUTypeChange()
|
||||
//设置节点IP信息
|
||||
$("#nodeIpInfo").val(data.nodeIpInfo);
|
||||
//设置节点描述
|
||||
$("#nodeDesc").val(data.nodeDesc);
|
||||
$("#nodeIp").next().html("i18n_addNodeInfo.message.nodeIp_n81i");
|
||||
}
|
||||
}
|
||||
}else{
|
||||
clearInfo();
|
||||
}
|
||||
},
|
||||
"json"
|
||||
);
|
||||
}
|
||||
|
||||
function clearInfo(){
|
||||
$("#nodeMac").val("");
|
||||
$("#nNa").val("");
|
||||
/* $("#nodeType").val(0); */
|
||||
$("#nodeType option:first").attr("selected","selected");
|
||||
$("#networElementTypeTR").hide();
|
||||
$("#networElementType").val("");
|
||||
$("#nodeUserName").val("");
|
||||
$("#nodePassword").val("");
|
||||
$("#nodeBoxIspn").val("");
|
||||
$("#version2").attr("checked","checked");
|
||||
$("#nodeUType").val("");
|
||||
$("#nodeBeginUType").empty();
|
||||
$("#nodeBeginUType").append("<option value=''>i18n_addNodeInfo.message.selectDefault_n81i</option>");
|
||||
$("#nodeIpInfo").val("");
|
||||
$("#nodeDesc").val("");
|
||||
$("#nodeIp").next().html("");
|
||||
}
|
||||
//-- 节点厚度(U位) 事件绑定 由节点厚度(U位)决定起始U位的可选项
|
||||
function nodeUTypeChange(){
|
||||
if(isNaN($("#nodeUType").val())){
|
||||
alert("i18n_addNodeInfo.message.nodeUType_n81i");
|
||||
$("#nodeUType").val("");
|
||||
$("#nodeBeginUType").empty();
|
||||
$("#nodeBeginUType").append("<option value=''>i18n_addNodeInfo.message.selectDefault_n81i</option>");
|
||||
$("#nodeUType").focus();
|
||||
return;
|
||||
}
|
||||
$("#nodeBeginUType").empty();
|
||||
$("#nodeBeginUType").append("<option value=''>i18n_addNodeInfo.message.selectDefault_n81i</option>");
|
||||
var boxIspn = $("#nodeBoxIspn").val();
|
||||
var nodeIp = $("#nodeIp").val();
|
||||
var curVal = $("#nodeUType").val();
|
||||
if(curVal!=""){
|
||||
$.post("<c:url value='/nodeGroupManage/nodeManage!getBoxFreePosition.do'/>",
|
||||
{"nodeBoxIspn":boxIspn,"nodeIp":nodeIp,"nodeUType":curVal},
|
||||
function(data){
|
||||
// 追加option元素
|
||||
if(data!=null && data!=""){
|
||||
var optionStr="";
|
||||
$.each(data, function(i,val){
|
||||
if(i==0){
|
||||
optionStr = "<option selected='selected' value='"+val+"'>" + val + "</option>"
|
||||
}else{
|
||||
optionStr = "<option value='"+val+"'>" + val + "</option>"
|
||||
}
|
||||
$("#nodeBeginUType").append(optionStr);
|
||||
});
|
||||
}
|
||||
// 自动匹配位置
|
||||
if(vstart!=null && vstart!=""){
|
||||
$("#nodeBeginUType >option[value='"+vstart+"']").attr("selected",true);
|
||||
vstart = null;//该值改变后只能使用一次,所以一经调用就将其清空
|
||||
}
|
||||
}, "json");
|
||||
}
|
||||
}
|
||||
|
||||
// -----界面机柜及位置相关处理
|
||||
$(function(){
|
||||
//-- 机柜 事件绑定 清空节点起始U位和节点厚度(U位)
|
||||
$("#nodeBoxIspn").bind("input",function(){
|
||||
$("#nodeBeginUType").empty();
|
||||
$("#nodeBeginUType").append("<option value=''>i18n_addNodeInfo.message.selectDefault_n81i</option>");
|
||||
$("#nodeUType").val("");
|
||||
});
|
||||
|
||||
//联想查询修改成列表形式
|
||||
jQuery.post("<c:url value='/nodePosition/boxSet!getAllBoxsIspn.do' />",{},function(data,textStatus){
|
||||
var everyItems=data.split(";");
|
||||
var allName=new Array();
|
||||
for(var j=0;j<everyItems.length;j++){
|
||||
if(j!=(everyItems.length-1)){
|
||||
var getN=everyItems[j];
|
||||
allName[j]=new Array('',getN,'');
|
||||
}
|
||||
}
|
||||
jQuery("#nodeBoxIspn").suggest(allName,{hot_list:allName,attachObject:"#suggest1"});
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="middle_list">
|
||||
<div class="box_2">
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
onclick="goBack()" value="i18n_addNodeInfo.button.back_n81i"/>
|
||||
</div>
|
||||
<div style="height: 25px"></div>
|
||||
<form action="" name="Nodeform" method="post" style="border:0px;">
|
||||
<input type="hidden" name="position" value="${position }" />
|
||||
<input type="hidden" name="nodeGroupId" value="${nodeGroupId }" id="nodeGroupId"/>
|
||||
<input type="hidden" name="fromWhere" value="${fromWhere }"/>
|
||||
<input type="hidden" name="type" value="${type }"/>
|
||||
<input type="hidden" name="showStopNGroup" value="${showStopNGroup }" />
|
||||
<input type="hidden" name="isValid" value="${isValid }" />
|
||||
<table border="0" cellpadding="0" cellspacing="0" class="table1">
|
||||
<tr>
|
||||
<td colspan="4" class="color_7">
|
||||
<strong>i18n_addNodeInfo.text.title_n81i</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" width="20%" align="right">
|
||||
i18n_addNodeInfo.text.nodeIp_n81i:
|
||||
</td>
|
||||
<td class="color_3" width="30%" align="left">
|
||||
<input type="text" name="nodeTable.nodeIp" id="nodeIp"
|
||||
style="width: 155px;" onchange="checkNodeIp()" />
|
||||
<font color="red">*</font>
|
||||
</td>
|
||||
<td class="color_1" width="20%" align="right">
|
||||
i18n_addNodeInfo.text.nodeMac_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left">
|
||||
<input type="text" name="nodeTable.nodeMac" id="nodeMac"
|
||||
style="width: 155px;" />
|
||||
<font color="red">*</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" width="20%" align="right">
|
||||
i18n_addNodeInfo.text.nNa_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left" >
|
||||
<input type="text" name="nodeTable.nodeName" id="nNa"
|
||||
style="width: 155px;" />
|
||||
<font color="red">*</font>
|
||||
</td>
|
||||
|
||||
<td class="color_1" width="20%" align="right">
|
||||
i18n_addNodeInfo.text.nodeType_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left">
|
||||
<select name="nodeTable.nodeType" id="nodeType" onchange="nodeTypeChange()"
|
||||
style="width: 161px;" >
|
||||
<option value="0">
|
||||
i18n_addNodeInfo.message.nodeType0_n81i
|
||||
</option>
|
||||
<option value="1">
|
||||
i18n_addNodeInfo.message.nodeType1_n81i
|
||||
</option>
|
||||
<option value="0">
|
||||
i18n_addNodeInfo.message.nodeType2_n81i
|
||||
</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="networElementTypeTR" style="display: none;">
|
||||
<td class="color_1" align="right">
|
||||
i18n_addNodeInfo.text.networElementType_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left" colspan="3">
|
||||
<select name="nodeTable.networElementType" id="networElementType"
|
||||
style="width: 161px;" >
|
||||
<option value="">i18n_addNodeInfo.message.selectDefault_n81i</option>
|
||||
<c:forEach items="${optionList}" var="optionTable" >
|
||||
<option value="${optionTable.typeCode}" <c:if test="${optionTable.typeCode == nodeTable.networElementType}">selected="selected"</c:if>>
|
||||
${optionTable.typeValue}
|
||||
</option>
|
||||
</c:forEach>
|
||||
</select>
|
||||
<font color="red">*</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="specialServerTypeTR" style="display: none;">
|
||||
<td class="color_1" align="right">
|
||||
i18n_addNodeInfo.text.specialServerType_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left" colspan="3">
|
||||
<select name="nodeTable.specialServerType" id="specialServerType"
|
||||
style="width: 161px;" >
|
||||
<option value="">i18n_addNodeInfo.message.selectDefault_n81i</option>
|
||||
<c:forEach items="${optionList2}" var="optionTable" >
|
||||
<option value="${optionTable.typeCode}" <c:if test="${optionTable.typeCode == nodeTable.specialServerType}">selected="selected"</c:if>>
|
||||
${optionTable.typeValue}
|
||||
</option>
|
||||
</c:forEach>
|
||||
</select>
|
||||
<font color="red">*</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" width="20%" align="right">
|
||||
i18n_addNodeInfo.text.nodeUserName_n81i:
|
||||
</td>
|
||||
<td class="color_6" width="30%" align="left">
|
||||
<input type="text" name="nodeTable.nodeUserName" id="nodeUserName"
|
||||
style="width: 155px;" />
|
||||
</td>
|
||||
<td class="color_1" width="20%" align="right">
|
||||
i18n_addNodeInfo.text.nodePassword_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left">
|
||||
<c:choose>
|
||||
<c:when test="${jsbh}">
|
||||
<input type="text" name="nodeTable.nodePassword" id="nodePassword"
|
||||
style="width: 155px;" />
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<input type="password" name="nodeTable.nodePassword" id="nodePassword"
|
||||
style="width: 155px;" />
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_addNodeInfo.text.nodeBoxIspn_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left">
|
||||
<input name="nodeTable.nodeBoxIspn" id="nodeBoxIspn" style="width: 156px;" title="i18n_addNodeInfo.message.nodeBoxIspn_n81i"/>
|
||||
<font color="red">*</font>
|
||||
<div id='suggest1' class="ac_results"></div>
|
||||
</td>
|
||||
<td class="color_1 snmpVersionType" align="right" style="display: none;">
|
||||
i18n_addNodeInfo.text.snmpVersion_n81i:
|
||||
</td>
|
||||
<td class="color_6 snmpVersionType" align="left" style="display: none;">
|
||||
<input type="radio" name="nodeTable.snmpVersion" value="1" id="version2" checked="checked"/>VERSION2C
|
||||
<input type="radio" name="nodeTable.snmpVersion" value="3" id="version3"/>VERSION3
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_addNodeInfo.text.nodeUType_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left">
|
||||
<input type="text" name="nodeTable.nodeUType" id="nodeUType"
|
||||
style="width: 155px;" oninput="nodeUTypeChange()"/>
|
||||
<font color="red">*</font>
|
||||
</td>
|
||||
<td class="color_1" align="right">
|
||||
i18n_addNodeInfo.text.nodeBeginUType_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left">
|
||||
<select name="nodeTable.nodeBeginUType" id="nodeBeginUType"
|
||||
style="width: 161px;" >
|
||||
<option value="">
|
||||
i18n_addNodeInfo.message.selectDefault_n81i
|
||||
</option>
|
||||
</select>
|
||||
<font color="red">*</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_addNodeInfo.text.nodeIpInfo_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left">
|
||||
<textarea rows="4" cols="40" name="nodeTable.nodeIpInfo"
|
||||
id="nodeIpInfo" style="width: 155px; height: 50px;"
|
||||
></textarea>
|
||||
</td>
|
||||
<td class="color_1" align="right">
|
||||
i18n_addNodeInfo.text.nodeDesc_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left" >
|
||||
<textarea rows="4" cols="40" name="nodeTable.nodeDesc"
|
||||
id="nodeDesc" style="width: 155px; height: 50px;"
|
||||
></textarea>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_7" colspan="4" align="right">
|
||||
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
onclick="add()" value="i18n_addNodeInfo.button.submit_n81i"/>
|
||||
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
onclick="javascript:document.forms['Nodeform'].reset()"
|
||||
value="i18n_addNodeInfo.button.reset_n81i"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,284 @@
|
||||
<%@ 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_dni.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" />
|
||||
<script language="javascript" type="text/javascript"
|
||||
src="<c:url value='/js/jquery.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/j.suggest.js'/>"></script>
|
||||
<script type="text/javascript">
|
||||
function goBack(){
|
||||
document.Nodeform.action="<%=path%>/nodeGroupManage/nodeManage!executeAction.do?action=query";
|
||||
document.Nodeform.submit();
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="middle_list">
|
||||
<div class="box_2">
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
onclick="goBack()" value="i18n_dni.button.back_n81i"/>
|
||||
</div>
|
||||
<div style="height: 25px"></div>
|
||||
<form action="" name="Nodeform" method="post" style="border:0px;">
|
||||
<input type="hidden" name="position" value="${position }" />
|
||||
<input type="hidden" name="pageNo" value="${pageNo }" />
|
||||
<input type="hidden" name="pageSize" value="${pageSize }" />
|
||||
<input type="hidden" name="nodeGroupId" value="${nodeGroupId }" />
|
||||
<input type="hidden" name="fromWhere" value="${fromWhere }"/>
|
||||
<input type="hidden" name="type" value="${type }"/>
|
||||
<input type="hidden" name="showStopNGroup" value="${showStopNGroup }" />
|
||||
<input type="hidden" name="isValid" value="${isValid }" />
|
||||
<input type="hidden" name="nodeIpVo" value="${nodeIpVo }" />
|
||||
<input type="hidden" name="nodeNameVo" value="${nodeNameVo }" />
|
||||
<table border="0" cellpadding="0" cellspacing="0" class="table1">
|
||||
<tr>
|
||||
<td colspan="4" class="color_top">
|
||||
<strong>i18n_dni.text.title_n81i</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<c:if test="${dsinfo eq null }">
|
||||
<tr>
|
||||
<td colspan="4" class="color_1">
|
||||
<font color="red" >
|
||||
<c:if test="${nodeTable.nodeType==0 }">i18n_dni.message.nodeType0_n81i</c:if>
|
||||
<c:if test="${nodeTable.nodeType==1 }">i18n_dni.message.nodeType1_n81i</c:if>
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
</c:if>
|
||||
<c:if test="${dsinfo ne null }">
|
||||
<tr>
|
||||
<td class="color_1" width="20%" align="right">
|
||||
i18n_dni.text.hostName_n81i:
|
||||
</td>
|
||||
<td class="color_3" width="30%" align="left">
|
||||
${dsinfo.hostName }
|
||||
</td>
|
||||
<td class="color_1" width="20%" align="right">
|
||||
i18n_dni.text.operateSystem_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left">
|
||||
${dsinfo.operateSystem }
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" width="20%" align="right">
|
||||
i18n_dni.text.cpuCnt_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left">
|
||||
${dsinfo.cpuCnt }
|
||||
</td>
|
||||
<td class="color_1" align="right">
|
||||
i18n_dni.text.cpuMhz_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left">
|
||||
${dsinfo.cpuMhz }
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_dni.text.memorySize_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left">
|
||||
${dsinfo.memorySize }
|
||||
</td>
|
||||
<td class="color_1" align="right" >
|
||||
i18n_dni.text.diskSize_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left" >
|
||||
${dsinfo.diskSize }
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_dni.text.swapSize_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left">
|
||||
${dsinfo.swapSize }
|
||||
</td>
|
||||
<td class="color_1" align="right" >
|
||||
i18n_dni.text.netCnt_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left" >
|
||||
${dsinfo.netCnt }
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_dni.text.dataCheckTime_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left">
|
||||
${dsinfo.dataCheckTimeStr }
|
||||
</td>
|
||||
<td class="color_1" align="right" >
|
||||
i18n_dni.text.dataArriveTime_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left" >
|
||||
${dsinfo.dataArriveTimeStr }
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="4" class="color_top">
|
||||
<strong>i18n_dni.text.diskInfo_n81i</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<c:if test="${fn:length(dsiDiskList) eq 0}">
|
||||
<tr>
|
||||
<td colspan="4" class="color_1">
|
||||
<font color="red" >
|
||||
i18n_dni.message.noDataGetFromDisk_n81i
|
||||
</font>
|
||||
</td>
|
||||
</c:if>
|
||||
<c:if test="${fn:length(dsiDiskList) > 0}">
|
||||
<tr>
|
||||
<td colspan="4">
|
||||
<table border="0" cellpadding="0" cellspacing="0" class="table1">
|
||||
<tr>
|
||||
<td class="color_top" width="10%">
|
||||
i18n_dni.text.index_n81i
|
||||
</td>
|
||||
<td class="color_top" width="45%">
|
||||
i18n_dni.text.diskRang_n81i
|
||||
</td>
|
||||
<td class="color_top" width="45%">
|
||||
i18n_dni.text.rangSize_n81i
|
||||
</td>
|
||||
</tr>
|
||||
<c:forEach items="${dsiDiskList}" var="disk" varStatus="diskIndex" >
|
||||
<c:set var="color" value="color_1" />
|
||||
<c:set var="color_end" value="color_7" />
|
||||
<c:if test="${diskIndex.index%2!=0 }">
|
||||
<c:set var="color" value="color_3" />
|
||||
<c:set var="color_end" value="color_6" />
|
||||
</c:if>
|
||||
<tr>
|
||||
<td class="${color }" >
|
||||
${diskIndex.index+1 }
|
||||
</td>
|
||||
<td class="${color }" >
|
||||
${disk.diskRang }
|
||||
</td>
|
||||
<td class="${color }" >
|
||||
${disk.diskSize }
|
||||
</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</c:if>
|
||||
<tr>
|
||||
<td colspan="4" class="color_top">
|
||||
<strong>i18n_dni.text.netInfo_n81i</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<c:if test="${fn:length(dsiDiskList) eq 0}">
|
||||
<tr>
|
||||
<td colspan="4" class="color_1">
|
||||
<font color="red" >
|
||||
i18n_dni.message.noDataGetFromNet_n81i
|
||||
</font>
|
||||
</td>
|
||||
</c:if>
|
||||
<c:if test="${fn:length(dsiDiskList) > 0}">
|
||||
<tr>
|
||||
<td colspan="4">
|
||||
<table border="0" cellpadding="0" cellspacing="0" class="table1">
|
||||
<tr>
|
||||
<td class="color_top" width="4%">
|
||||
i18n_dni.text.index_n81i
|
||||
</td>
|
||||
<td class="color_top" width="8%">
|
||||
i18n_dni.text.netName_n81i
|
||||
</td>
|
||||
<td class="color_top" width="8%">
|
||||
i18n_dni.text.netState_n81i
|
||||
</td>
|
||||
<td class="color_top" width="8%">
|
||||
i18n_dni.text.netSpeed_n81i
|
||||
</td>
|
||||
<td class="color_top" width="8%">
|
||||
IP
|
||||
</td>
|
||||
<td class="color_top" width="8%">
|
||||
i18n_dni.text.netSubmask_n81i
|
||||
</td>
|
||||
<td class="color_top" width="8%">
|
||||
i18n_dni.text.netGateway_n81i
|
||||
</td>
|
||||
<td class="color_8" width="10%">
|
||||
i18n_dni.text.netMac_n81i
|
||||
</td>
|
||||
</tr>
|
||||
<c:forEach items="${dsiNetList}" var="net" varStatus="netIndex" >
|
||||
<c:set var="color" value="color_1" />
|
||||
<c:set var="color_end" value="color_7" />
|
||||
<c:if test="${netIndex.index%2!=0 }">
|
||||
<c:set var="color" value="color_3" />
|
||||
<c:set var="color_end" value="color_6" />
|
||||
</c:if>
|
||||
<tr>
|
||||
<td class="${color }">
|
||||
${netIndex.index+1}
|
||||
</td>
|
||||
<td class="${color }">
|
||||
${net.netName}
|
||||
</td>
|
||||
<td class="${color }">
|
||||
${net.netState}
|
||||
</td>
|
||||
<td class="${color }">
|
||||
${net.netSpeed}
|
||||
</td>
|
||||
<td class="${color }">
|
||||
${net.netIp}
|
||||
</td>
|
||||
<td class="${color }">
|
||||
${net.netSubmask}
|
||||
</td>
|
||||
<td class="${color }">
|
||||
${net.netGateway}
|
||||
</td>
|
||||
<td class="${color }">
|
||||
${net.netMac}
|
||||
</td>
|
||||
</tr>
|
||||
<c:set var="index" value="${index + 1}" />
|
||||
</c:forEach>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</c:if>
|
||||
</c:if>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
574
WebRoot/page/systemManage/nodeGroupManage/node/nodeInfoList.jsp
Normal file
574
WebRoot/page/systemManage/nodeGroupManage/node/nodeInfoList.jsp
Normal file
@@ -0,0 +1,574 @@
|
||||
<%@ 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_nodeInfo.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 language="javascript" type="text/javascript"
|
||||
src="<c:url value="/js/jBox/jquery.jBox-2.3.min.js"/>"></script>
|
||||
<script language="javascript" type="text/javascript"
|
||||
src="<c:url value="/js/fileInput.js"/>"></script>
|
||||
<style type="text/css">
|
||||
.mydiv {
|
||||
background-color:#fff;
|
||||
border: 1px solid #000;
|
||||
text-align: center;
|
||||
line-height: 40px;
|
||||
font-size: 12px;
|
||||
font-weight: bold;
|
||||
z-index:99;
|
||||
width: 220px;
|
||||
height: 80px;
|
||||
left:50%;/*FF IE7*/
|
||||
top: 50%;/*FF IE7*/
|
||||
|
||||
margin-left:-150px!important;/*FF IE7 该值为本身宽的一半 */
|
||||
margin-top:-60px!important;/*FF IE7 该值为本身高的一半*/
|
||||
|
||||
margin-top:0px;
|
||||
|
||||
position:fixed!important;/*FF IE7*/
|
||||
position:absolute;/*IE6*/
|
||||
|
||||
_top: expression(eval(document.compatMode &&
|
||||
document.compatMode=='CSS1Compat') ?
|
||||
documentElement.scrollTop + (document.documentElement.clientHeight-this.offsetHeight)/2 :/*IE6*/
|
||||
document.body.scrollTop + (document.body.clientHeight - this.clientHeight)/2);/*IE5 IE5.5*/
|
||||
|
||||
}
|
||||
|
||||
|
||||
.bg {
|
||||
background-color: #ccc;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
left:0;
|
||||
top:0;/*FF IE7*/
|
||||
filter:alpha(opacity=50);/*IE*/
|
||||
opacity:0.5;/*FF*/
|
||||
z-index:1;
|
||||
|
||||
position:fixed!important;/*FF IE7*/
|
||||
position:absolute;/*IE6*/
|
||||
|
||||
_top: expression(eval(document.compatMode &&
|
||||
document.compatMode=='CSS1Compat') ?
|
||||
documentElement.scrollTop + (document.documentElement.clientHeight-this.offsetHeight)/2 :/*IE6*/
|
||||
document.body.scrollTop + (document.body.clientHeight - this.clientHeight)/2);/*IE5 IE5.5*/
|
||||
|
||||
}
|
||||
/*The END*/
|
||||
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
|
||||
var msg = '${MSG}';
|
||||
if(msg=='1'){
|
||||
alert("i18n_nodeInfo.message.success_n81i");
|
||||
}else if(msg=='2'){
|
||||
alert("i18n_nodeInfo.message.faild_n81i");
|
||||
}
|
||||
|
||||
//添加记录
|
||||
function addRecord(){
|
||||
document.form3.action ="<%=path%>/nodeGroupManage/nodeManage!executeAction.do?action=openAdd&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }';
|
||||
document.form3.submit();
|
||||
}
|
||||
//修改记录
|
||||
function updateRecord(id){
|
||||
document.form3.action ="<%=path%>/nodeGroupManage/nodeManage!executeAction.do?action=openUpdate&nodeId="+id+"&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }';
|
||||
document.form3.submit();
|
||||
}
|
||||
//停用
|
||||
function stopRecord(id){
|
||||
document.form3.action ="<%=path%>/nodeGroupManage/nodeManage!executeAction.do?action=stop&nodeId="+id;
|
||||
document.form3.submit();
|
||||
}
|
||||
//启用
|
||||
function startRecord(id){
|
||||
document.form3.action ="<%=path%>/nodeGroupManage/nodeManage!executeAction.do?action=start&nodeId="+id;
|
||||
document.form3.submit();
|
||||
}
|
||||
|
||||
//查询记录
|
||||
function qry(){
|
||||
document.form3.action = "<%=path%>/nodeGroupManage/nodeManage!executeAction.do?action=query";
|
||||
document.form3.submit();
|
||||
}
|
||||
|
||||
//查看详情
|
||||
function showRecord(nid){
|
||||
if(nid!=null && nid!="" ){
|
||||
document.form3.action = "<%=path%>/nodeGroupManage/nodeManage!executeAction.do?action=detail&nodeId="+nid+"&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }';
|
||||
document.form3.submit();
|
||||
}
|
||||
}
|
||||
|
||||
//导入节点
|
||||
function importXls() {
|
||||
var myfileVal = document.getElementById("myFile").value;
|
||||
if(myfileVal=="") {
|
||||
alert("i18n_nodeInfo.message.selectFile_n81i");
|
||||
}else if((myfileVal.lastIndexOf(".xlsx")+5)!=myfileVal.length && (myfileVal.lastIndexOf(".xls")+4)!=myfileVal.length){
|
||||
alert("i18n_nodeInfo.message.selectFileType_n81i");
|
||||
}else if(confirm('i18n_nodeInfo.message.isImport_n81i')){
|
||||
document.form33.action = "<%=path%>/nodeGroupManage/nodeManage!executeAction.do?action=importXls";
|
||||
document.form33.submit();
|
||||
document.form33.action = "<%=path%>/nodeGroupManage/nodeManage!executeAction.do?action=query";
|
||||
}
|
||||
}
|
||||
function downloadExample() {
|
||||
document.form33.action = "<%=path%>/nodeGroupManage/nodeManage!executeAction.do?action=downloadExample";
|
||||
document.form33.submit();
|
||||
document.form33.action = "<%=path%>/nodeGroupManage/nodeManage!executeAction.do?action=query";
|
||||
}
|
||||
|
||||
//程辉 2013-5-8 新增 导出当前页
|
||||
function emportCurrentXls() {
|
||||
document.form33.action = "<c:url value='/'/>/nodeGroupManage/nodeManage!executeAction.do?action=emportCurrentXls&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }'+"&nodeIpVo="+$("#nodeIpVo").val()+"&nodeNameVo="+$("#nodeNameVo").val();
|
||||
document.form33.submit();
|
||||
closeDiv();
|
||||
document.form33.action = "<%=path%>/nodeGroupManage/nodeManage!executeAction.do?action=query";
|
||||
}
|
||||
//程辉 2013-5-8 新增 导出全部
|
||||
function emportAllXls() {
|
||||
document.form33.action = "<c:url value='/'/>/nodeGroupManage/nodeManage!executeAction.do?action=emportAllXls&nodeIpVo="+$("#nodeIpVo").val()+"&nodeNameVo="+$("#nodeNameVo").val();
|
||||
document.form33.submit();
|
||||
closeDiv();
|
||||
document.form33.action = "<%=path%>/nodeGroupManage/nodeManage!executeAction.do?action=query";
|
||||
}
|
||||
function showDiv(){
|
||||
document.getElementById('popDiv').style.display='block';
|
||||
document.getElementById('bg').style.display='block';
|
||||
}
|
||||
|
||||
function closeDiv(){
|
||||
document.getElementById('popDiv').style.display='none';
|
||||
document.getElementById('bg').style.display='none';
|
||||
}
|
||||
//返回
|
||||
function goBack(){
|
||||
//window.parent.goBack();
|
||||
document.location.href = "<%=path%>/nodeGroupManage/nodeGroupManage!execute.do?action=queryNodeGroupInfo&showStopNGroup=${showStopNGroup}";
|
||||
}
|
||||
|
||||
|
||||
//parent.document.all("listFrame").style.height = document.body.scrollHeight + 16;
|
||||
|
||||
|
||||
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.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_nodeInfo.message.inputInfo_n81i');
|
||||
$("#"+id).val('');
|
||||
return;
|
||||
}
|
||||
clearTimeout(set_Id);
|
||||
set_Id = setTimeout(ajaxForLianxiang,500);
|
||||
}
|
||||
}
|
||||
|
||||
function ajaxForLianxiang()
|
||||
{
|
||||
jQuery.post("<%=path%>/sysManage/sysPopedomManage!queryInfoForAjax.do",
|
||||
{"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() {
|
||||
var isValid = '${isValid}';
|
||||
if('0'==isValid) {//无效
|
||||
jQuery("#validButton").hide();
|
||||
jQuery("#validDo a").attr('href','');
|
||||
}
|
||||
});
|
||||
function ieBrowser(){
|
||||
if($.browser.msie){
|
||||
if($.browser.version.split('.')[0]<=7){
|
||||
return false;
|
||||
}else{
|
||||
return true;//ie8+
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function goGuide(datas) {
|
||||
if(datas!=null && datas!=""){
|
||||
if(datas.resu=='over') {
|
||||
window.location ="<%=path%>/sysManage/guideManage!execute.do?action=index";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$(function(){
|
||||
var dh = document.body.clientHeight;
|
||||
var dhh = dh-60+"px;";
|
||||
var tableHeight = $("#info").height();
|
||||
if(tableHeight > dh-60){
|
||||
$("#maindiv").attr("style","clear:both;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","clear:both;margin-left:6px;overflow-y:auto;overflow-x:auto;width:98%;font-size:12px;height: "+dhh);
|
||||
$("#info").attr("style","width:100%;");
|
||||
}
|
||||
$("#maindiv").attr("style","clear:left");
|
||||
if($("#isComplete").val()=='0'){
|
||||
//var content = {
|
||||
// content: '业务系统操作已完成,是否进行下一步操作?',
|
||||
// buttons: { '下一步': 1, '返回':0,'取消': -1 },
|
||||
// buttonsFocus: 0,
|
||||
// submit: function (v, h, f) {
|
||||
// if(v == 1) {//执行下一步--用户组
|
||||
// window.location ="<%=path%>/sysManage/userGroupPerssion.do?action=query";
|
||||
// }
|
||||
// if(v == 0){//返回到设置向导页
|
||||
// window.location ="<%=path%>/sysManage/guideManage!execute.do?action=index";
|
||||
// }
|
||||
// if(v == -1){//返回到设置向导页
|
||||
// return;
|
||||
// }
|
||||
// }
|
||||
//};
|
||||
|
||||
//$.jBox(content);
|
||||
var submit = function (v, h, f) {
|
||||
if (v == 'yes') {
|
||||
$("input[type=hidden][name=fromWhere]").val('formGuide');
|
||||
return;
|
||||
}
|
||||
if (v == 'no') {
|
||||
$.post("<c:url value='/sysManage/guideManage!setComplete.do'/>",
|
||||
{
|
||||
packNum:6,
|
||||
packName:'jd'
|
||||
},
|
||||
function(datas){
|
||||
goGuide(datas);
|
||||
},"json");
|
||||
|
||||
}
|
||||
};
|
||||
$.jBox.warning("i18n_nodeInfo.message.warning_n81i", "i18n_nodeInfo.message.hint_n81i", submit,{icon: false});
|
||||
}
|
||||
$("#info").floatHeaderDiv();
|
||||
});
|
||||
|
||||
function downloadfile(fileName){
|
||||
document.form33.action="<c:url value='/'/>/download/downLoadFile!download.do?file="+fileName;
|
||||
document.form33.submit();
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body id="nodeBody">
|
||||
<div class="middle_list" id="box" style="overflow: hidden;">
|
||||
<!--中间部分右边开始-->
|
||||
<form name=form33 id="form33" action="<c:url value='nodeManage!queryNodeInfo.do'/>" method="post" style="margin: 0; padding: 0" enctype="multipart/form-data">
|
||||
<input type="hidden" name="nodeGroupId" value="${nodeGroupId }" />
|
||||
<input type="hidden" name = "isComplete" id="isComplete" value="${isComplete}"/>
|
||||
<input type="hidden" name="fromWhere" value="${fromWhere }"/>
|
||||
<input type="hidden" name="showStopNGroup" value="${showStopNGroup }" />
|
||||
<input type="hidden" name="isValid" value="${isValid }" />
|
||||
<div id="divTop">
|
||||
<div class="box_2" >
|
||||
<div id="validButton" style="display:inline;">
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
onclick="javascript:downloadExample();" value="i18n_nodeInfo.button.downloadExample_n81i"/>
|
||||
|
||||
|
||||
<input type="button" value="i18n_nodeInfo.text.importXls_n81i" title="i18n_nodeInfo.text.importXls_n81i" class="btn3_mouseout" onclick="javascript:uploadFile(this)"/>
|
||||
<input type="file" name="myFile" id="myFile" value="" class="filebtn" onchange="javascript:setValue(this.value)"/>
|
||||
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
onclick="javascript:importXls();" value="i18n_nodeInfo.button.importXls_n81i"/>
|
||||
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
onclick="javascript:showDiv();" value="i18n_nodeInfo.button.showDiv_n81i"/>
|
||||
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
onclick="javascript:addRecord();" value="i18n_nodeInfo.button.add_n81i"/>
|
||||
|
||||
</div>
|
||||
<c:if test="${type != 'config'}">
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
onclick="javascript:goBack();" value="i18n_nodeInfo.button.back_n81i"/>
|
||||
</c:if>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<form name=form3 id="form3" action="<c:url value='nodeManage!queryNodeInfo.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 }"/>
|
||||
<input type="hidden" name="showStopNGroup" value="${showStopNGroup }" />
|
||||
<input type="hidden" name="isValid" value="${isValid }" />
|
||||
<input type="hidden" name="type" value="${type }"/>
|
||||
<div class="box_1">
|
||||
<label class="divTopText"><font class="selectText">i18n_nodeInfo.text.nodeIp_n81i</font>
|
||||
<input type="text" id="nodeIpVo"
|
||||
onkeyup="lianxiangkeyup('nodeIp','NodeTable','String','nodeIpVo','suggest3',this.value);"
|
||||
name="nodeIpVo" title="i18n_nodeInfo.message.nodeIp_n81i" value="${nodeIpVo}" size="20" />
|
||||
<div id='suggest3' class="ac_results"></div></label>
|
||||
<label class="divTopText"><font class="selectText">i18n_nodeInfo.text.nodeName_n81i</font>
|
||||
<input type="text" id="nodeNameVo"
|
||||
onkeyup="lianxiangkeyup('nodeName','NodeTable','String','nodeNameVo','suggest1',this.value);"
|
||||
name="nodeNameVo" title="i18n_nodeInfo.message.nodeName_n81i" value="${nodeNameVo}" size="20" />
|
||||
<div id='suggest1' class="ac_results"></div></label><%--
|
||||
节点描述
|
||||
<input type="text" id="nodeDescVo"
|
||||
onkeyup="lianxiangkeyup('nodeDesc','NodeTable','String','nodeDescVo','suggest2',this.value);"
|
||||
name="nodeDescVo" title="请输入节点描述" value="${nodeDescVo}" size="20" />
|
||||
<div id='suggest2' class="ac_results"></div>
|
||||
--%><img src="<c:url value='/images/button_chaxun.png'/>"
|
||||
class="img_middle" onclick="javascript:qry();" />
|
||||
</div>
|
||||
<div id="maindiv" style="clear:both;">
|
||||
<table border="0" cellpadding="0" cellspacing="0" class="table" align="center" id="info">
|
||||
<tr>
|
||||
<td class="color_top" width="4%">
|
||||
i18n_nodeInfo.text.index_n81i
|
||||
</td>
|
||||
<td class="color_top" width="8%">
|
||||
i18n_nodeInfo.text.nodeIp_n81i
|
||||
</td>
|
||||
<td class="color_top" width="8%">
|
||||
i18n_nodeInfo.text.nodeName_n81i
|
||||
</td>
|
||||
<td class="color_top" width="6%">
|
||||
i18n_nodeInfo.text.nodeType_n81i
|
||||
</td>
|
||||
<td class="color_top" width="6%">
|
||||
i18n_nodeInfo.text.nodeHight_n81i
|
||||
</td>
|
||||
<td class="color_top" width="8%">
|
||||
i18n_nodeInfo.text.systemId_n81i
|
||||
</td>
|
||||
<td class="color_top" width="8%">
|
||||
i18n_nodeInfo.text.nodeGroup_n81i
|
||||
</td>
|
||||
<td class="color_top" width="8%">
|
||||
i18n_nodeInfo.text.createTime_n81i
|
||||
</td>
|
||||
<td class="color_8" width="10%">
|
||||
i18n_nodeInfo.text.operation_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_nodeInfo.message.specialDevice_n81i
|
||||
</c:if>
|
||||
<c:if test="${node.networElementType==2}">
|
||||
i18n_nodeInfo.message.diskArray_n81i
|
||||
</c:if>
|
||||
<c:if test="${node.networElementType==3}">
|
||||
i18n_nodeInfo.message.blockRouter_n81i
|
||||
</c:if>
|
||||
<c:if test="${node.networElementType==4}">
|
||||
i18n_nodeInfo.message.netElements_n81i
|
||||
</c:if>
|
||||
</c:if>
|
||||
<c:choose>
|
||||
<c:when test="${node.nodeType==0&&node.specialServerType!=null}">
|
||||
i18n_nodeInfo.text.specialServer_n81i
|
||||
</c:when>
|
||||
<c:when test="${node.nodeType==0}">
|
||||
i18n_nodeInfo.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 }">
|
||||
<fmt:formatDate value="${node.nodeCreatetime}" pattern="yyyy-MM-dd HH:mm:ss" />
|
||||
</td>
|
||||
<c:if test="${isValid==0}"><!-- isValid=0 表示无效 -->
|
||||
<td class="${color_end }" >
|
||||
<img src="<c:url value='/images/logo_1.png'/>" class="img_middle" />
|
||||
<a><font color="gray">i18n_nodeInfo.text.updateInfo_n81i</font></a>
|
||||
|
||||
<img src="<c:url value='/images/logo_1.png'/>" class="img_middle" />
|
||||
<c:if test="${node.nodeState=='0' }"><!-- nodeState=0表示正常 nodeState=1表示有故障 -->
|
||||
<a ><font color="gray">i18n_nodeInfo.message.downline_n81i</font></a>
|
||||
</c:if>
|
||||
<c:if test="${node.nodeState=='1' }">
|
||||
<a ><font color="gray">i18n_nodeInfo.message.online_n81i</font></a>
|
||||
</c:if>
|
||||
<img src="<c:url value='/images/logo_1.png'/>" class="img_middle" />
|
||||
<a ><font color="gray">i18n_nodeInfo.text.systemInfo_n81i</font></a>
|
||||
</td>
|
||||
</c:if>
|
||||
<c:if test="${isValid!=0}">
|
||||
<td class="${color_end }" >
|
||||
<img src="<c:url value='/images/logo_1.png'/>" class="img_middle" />
|
||||
<a href="javascript:updateRecord('${node.nodeId}')">i18n_nodeInfo.text.updateInfo_n81i</a>
|
||||
|
||||
<img src="<c:url value='/images/logo_1.png'/>" class="img_middle" />
|
||||
<c:if test="${node.nodeState=='0' }">
|
||||
<a href="javascript:stopRecord('${node.nodeId}')"><font color="red">i18n_nodeInfo.message.downline_n81i</font></a>
|
||||
</c:if>
|
||||
<c:if test="${node.nodeState=='1' }">
|
||||
<a href="javascript:startRecord('${node.nodeId}')">i18n_nodeInfo.message.online_n81i</a>
|
||||
</c:if>
|
||||
<c:if test="${node.nodeType=='0' }">
|
||||
<img src="<c:url value='/images/logo_1.png'/>" class="img_middle" />
|
||||
<a href="javascript:showRecord('${node.nodeId}')">i18n_nodeInfo.text.systemInfo_n81i</a>
|
||||
</c:if>
|
||||
</td>
|
||||
</c:if>
|
||||
</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_nodeInfo.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>
|
||||
<div id="popDiv" class="mydiv" style="display:none;">
|
||||
<input type="hidden" />
|
||||
<input type="button" class=btn3_mouseout style="width:100px;"
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
onclick="javascript:emportCurrentXls();" value="i18n_nodeInfo.button.emportCurrentXls_n81i"/>
|
||||
|
||||
<input type="button" class=btn3_mouseout style="width:80px"
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
onclick="javascript:emportAllXls();" value="i18n_nodeInfo.button.emportAllXls_n81i"/>
|
||||
<br/>
|
||||
<a href="javascript:closeDiv()">i18n_nodeInfo.text.closeWindow_n81i</a></div>
|
||||
|
||||
<div id="bg" class="bg" style="display:none;"></div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,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>
|
||||
@@ -0,0 +1,95 @@
|
||||
<%@ page language="java" pageEncoding="UTF-8"%>
|
||||
<%@include file="/common/taglib.jsp"%>
|
||||
|
||||
<%
|
||||
String path = request.getContextPath();
|
||||
%>
|
||||
|
||||
<!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_showErr.message.title_n81i</title>
|
||||
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
|
||||
type="text/css" />
|
||||
<script type="text/javascript">
|
||||
function goBack(){
|
||||
document.form1.action="<%=path%>/nodeGroupManage/nodeManage.do?action=query";
|
||||
document.form1.submit();
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="middle_list">
|
||||
<!--中间部分右边开始-->
|
||||
<form action="" name="form1" id="form1" method="post">
|
||||
<input type="hidden" name="position" value="${position }" />
|
||||
<input type="hidden" name="nodeGroupId" value="${nodeGroupId }" />
|
||||
<input type="hidden" name="showStopNGroup" value="${showStopNGroup }" />
|
||||
<input type="hidden" name="isValid" value="${isValid }" />
|
||||
<table align="center" border="0" cellpadding="0"
|
||||
cellspacing="0" class="table1">
|
||||
<tr>
|
||||
<td height="30" class="color_7" colspan="6">
|
||||
<strong>i18n_showErr.text.title_n81i</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1">
|
||||
i18n_showErr.text.nodeIp_n81i
|
||||
</td>
|
||||
<td class="color_1">
|
||||
i18n_showErr.text.nodeName_n81i
|
||||
</td>
|
||||
<td class="color_1">
|
||||
i18n_showErr.text.nodeDesc_n81i
|
||||
</td>
|
||||
<td class="color_1">
|
||||
i18n_showErr.text.nodeType_n81i
|
||||
</td>
|
||||
<td class="color_1">
|
||||
i18n_showErr.text.nodeState_n81i
|
||||
</td>
|
||||
<td class="color_7">
|
||||
i18n_showErr.text.showError_n81i
|
||||
</td>
|
||||
</tr>
|
||||
<c:forEach items="${errorList}" var="info">
|
||||
<tr>
|
||||
<td class="color_3">
|
||||
${info.nodeIp }
|
||||
</td>
|
||||
<td class="color_3">
|
||||
${info.nodeName }
|
||||
</td>
|
||||
<td class="color_3">
|
||||
${info.nodeDesc }
|
||||
</td>
|
||||
<td class="color_3">
|
||||
${info.nodeType }
|
||||
</td>
|
||||
<td class="color_3">
|
||||
${info.nodeState }
|
||||
</td>
|
||||
<td class="color_6">
|
||||
${info.showError }
|
||||
</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
|
||||
<tr>
|
||||
<td class="color_7" colspan="6">
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'" onclick="goBack()" value="i18n_showErr.button.back_n81i"/>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<!--中间部分右边结束-->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,551 @@
|
||||
<%@ 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_updatenode.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" />
|
||||
<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/j.suggest.js'/>"></script>
|
||||
<script type="text/javascript">
|
||||
var vstart;
|
||||
function add(){
|
||||
//去空格
|
||||
$("#nodeIp").val($.trim($("#nodeIp").val()));
|
||||
$("#nodeN").val($.trim($("#nodeN").val()));
|
||||
///验证不能空与长度限制
|
||||
if($id("nodeIp","ip","i18n_updatenode.text.nodeIp_n81i") && $("#nodeIp").checkByteLength(64,"i18n_updatenode.text.nodeIp_n81i")
|
||||
&& $id("nodeMac","","i18n_updatenode.text.nodeMac_n81i") && $("#nodeMac").checkByteLength(100,"i18n_updatenode.text.nodeMac_n81i")
|
||||
&& $id("nodeN","","i18n_updatenode.text.nNa_n81i") && $("#nodeN").checkByteLength(64,"i18n_updatenode.text.nNa_n81i")
|
||||
/*&& $id("nodeUserName","","用户名") && $("#nodeUserName").checkByteLength(20,"用户名")
|
||||
&& $id("nodePassword","","密码") && $("#nodePassword").checkByteLength(20,"密码")*/
|
||||
&& $id("nodeBoxIspn","","i18n_updatenode.text.nodeBoxIspn_n81i") && $id("nodeUType","sz","i18n_updatenode.text.nodeUType_n81i")
|
||||
&& $id("nodeBeginUType","xz","i18n_updatenode.text.nodeBeginUType_n81i")){
|
||||
if($("#nodeType").val() == "1"){
|
||||
$("#specialServerType").val("");
|
||||
if($("#networElementType").val() == ""){
|
||||
alert("i18n_updatenode.message.nodeBeginUType_n81i");
|
||||
return false;
|
||||
}
|
||||
}else if($("#nodeType").val()==0&&(!$("#specialServerTypeTR").is(":hidden"))){
|
||||
if($("#specialServerType").val() == ""){
|
||||
alert("i18n_addNodeInfo.message.nodeSpecialServerType_n81i");
|
||||
return false;
|
||||
}
|
||||
$("#version2").val("");
|
||||
$("#version3").val("");
|
||||
$("#networElementType").val("");
|
||||
}else{
|
||||
$("#version2").val("");
|
||||
$("#version3").val("");
|
||||
$("#specialServerType").val("");
|
||||
$("#networElementType").val("");
|
||||
}
|
||||
document.Nodeform.action="<%=path%>/nodeGroupManage/nodeManage!executeAction.do?action=doUpdate";
|
||||
document.Nodeform.submit();
|
||||
}
|
||||
}
|
||||
function goBack(){
|
||||
document.Nodeform.action="<%=path%>/nodeGroupManage/nodeManage!executeAction.do?action=query";
|
||||
document.Nodeform.submit();
|
||||
}
|
||||
|
||||
function nodeTypeChange(){
|
||||
var nodeType = $("#nodeType").val();
|
||||
if(nodeType=='1'){
|
||||
$("#networElementTypeTR").show();
|
||||
$(".snmpVersionType").show();
|
||||
}else{
|
||||
$("#networElementTypeTR").hide();
|
||||
$(".snmpVersionType").hide();
|
||||
}
|
||||
var nodeTypeIndex=$("#nodeType option").index($('#nodeType option:selected'));
|
||||
if(nodeTypeIndex==2){
|
||||
$("#specialServerTypeTR").show();
|
||||
}else{
|
||||
$("#specialServerTypeTR").hide();
|
||||
}
|
||||
}
|
||||
|
||||
$(function(){
|
||||
var nodeType = '${nodeTable.nodeType}';
|
||||
if(nodeType=="1"){
|
||||
$("#networElementTypeTR").show();
|
||||
$(".snmpVersionType").show();
|
||||
}else{
|
||||
$("#networElementTypeTR").hide();
|
||||
$(".snmpVersionType").hide();
|
||||
}
|
||||
var nodeTypeIndex=$("#nodeType option").index($('#nodeType option:selected'));
|
||||
if(nodeTypeIndex==2){
|
||||
$("#specialServerTypeTR").show();
|
||||
}else{
|
||||
$("#specialServerTypeTR").hide();
|
||||
}
|
||||
})
|
||||
|
||||
function resetInit(){
|
||||
// 初始化机柜及位置
|
||||
init();
|
||||
}
|
||||
|
||||
// -----界面机柜及位置相关处理
|
||||
$(function(){
|
||||
// 页面加载完成后,初始化机柜及位置
|
||||
init();
|
||||
|
||||
//联想查询修改成列表形式
|
||||
jQuery.post("<c:url value='/nodePosition/boxSet!getAllBoxsIspn.do' />",{},function(data,textStatus){
|
||||
var everyItems=data.split(";");
|
||||
var allName=new Array();
|
||||
for(var j=0;j<everyItems.length;j++){
|
||||
if(j!=(everyItems.length-1)){
|
||||
var getN=everyItems[j];
|
||||
allName[j]=new Array('',getN,'');
|
||||
}
|
||||
}
|
||||
jQuery("#nodeBoxIspn").suggest(allName,{hot_list:allName,attachObject:"#suggest1"});
|
||||
});
|
||||
});
|
||||
|
||||
function init(){
|
||||
$.post("<c:url value='/nodeGroupManage/nodeManage!getNodeBox.do'/>",
|
||||
{nodeIp:$("#nodeIp").val()},
|
||||
function(data){
|
||||
if(data!=null && data!=""){
|
||||
$("#nodeBoxIspn").val(data.nodeBoxIspn);
|
||||
$("#nodeUType").val(data.nodeUType);
|
||||
if(data.nodeUType!=null){
|
||||
var vstart =data.nodeBeginUType;//保留节点在机柜已有起始U位
|
||||
|
||||
//触发节点厚度(U位)的绑定事件,即获取机柜的空闲位置(可选起始U位选项)
|
||||
$("#nodeBeginUType").empty();
|
||||
$("#nodeBeginUType").append("<option value=''>i18n_updatenode.message.selectDefault_n81i</option>");
|
||||
|
||||
var boxIspn = $("#nodeBoxIspn").val();
|
||||
var nodeIp = $("#nodeIp").val();
|
||||
var nodeUType = $("#nodeUType").val();
|
||||
if(nodeUType!=""){
|
||||
$.post("<c:url value='/nodeGroupManage/nodeManage!getBoxFreePosition.do'/>",
|
||||
{"nodeBoxIspn":boxIspn,"nodeIp":nodeIp,"nodeUType":nodeUType},
|
||||
function(data){
|
||||
// 追加option元素
|
||||
if(data!=null && data!=""){
|
||||
$.each(data, function(i,val){
|
||||
$("#nodeBeginUType").append("<option value='"+val+"'>" + val + "</option>");
|
||||
});
|
||||
}
|
||||
// 自动匹配位置
|
||||
if(vstart!=null && vstart!=""){
|
||||
$("#nodeBeginUType >option[value='"+vstart+"']").attr("selected",true);
|
||||
}
|
||||
}, "json");
|
||||
}
|
||||
}
|
||||
}
|
||||
}, "json");
|
||||
}
|
||||
|
||||
|
||||
//-- 机柜 事件绑定 清空节点起始U位和节点厚度(U位)
|
||||
function boxIspnFun(){
|
||||
$("#nodeBeginUType").empty();
|
||||
$("#nodeBeginUType").append("<option value=''>i18n_updatenode.message.selectDefault_n81i</option>");
|
||||
$("#nodeUType").val("");
|
||||
|
||||
}
|
||||
//-- 节点厚度(U位) 事件绑定 由节点厚度(U位)决定起始位置的可选项
|
||||
function nodeUTypeFun(){
|
||||
if(isNaN($("#nodeUType").val())){
|
||||
alert("i18n_updatenode.message.nodeUType_n81i");
|
||||
$("#nodeUType").val("");
|
||||
$("#nodeBeginUType").empty();
|
||||
$("#nodeBeginUType").append("<option value=''>i18n_updatenode.message.selectDefault_n81i</option>");
|
||||
$("#nodeUType").focus();
|
||||
return;
|
||||
}
|
||||
$("#nodeBeginUType").empty();
|
||||
$("#nodeBeginUType").append("<option value=''>i18n_updatenode.message.selectDefault_n81i</option>");
|
||||
|
||||
var boxIspn = $("#nodeBoxIspn").val();
|
||||
var nodeIp = $("#nodeIp").val();
|
||||
var curVal = $("#nodeUType").val();
|
||||
|
||||
if(curVal!=""){
|
||||
$.post("<c:url value='/nodeGroupManage/nodeManage!getBoxFreePosition.do'/>",
|
||||
{"nodeBoxIspn":boxIspn,"nodeIp":nodeIp,"nodeUType":curVal},
|
||||
function(data){
|
||||
// 追加option元素
|
||||
if(data!=null && data!=""){
|
||||
var optionStr="";
|
||||
$.each(data, function(i,val){
|
||||
if(i==0){
|
||||
optionStr = "<option selected='selected' value='"+val+"'>" + val + "</option>"
|
||||
}else{
|
||||
optionStr = "<option value='"+val+"'>" + val + "</option>"
|
||||
}
|
||||
$("#nodeBeginUType").append(optionStr);
|
||||
});
|
||||
}
|
||||
// 自动匹配位置
|
||||
if(vstart!=null && vstart!=""){
|
||||
$("#nodeBeginUType >option[value='"+vstart+"']").attr("selected",true);
|
||||
vstart = null;//该值改变后只能使用一次,所以一经调用就将其清空
|
||||
}
|
||||
}, "json");
|
||||
}
|
||||
}
|
||||
//-- 节点IP 失去焦点事件绑定 自动匹配该节点是否已存在某机柜
|
||||
function nodeIpFun(){
|
||||
$.post("<c:url value='/nodeGroupManage/nodeManage!getNodeBox.do'/>",
|
||||
{nodeIp:$("#nodeIp").val()},
|
||||
function(data){
|
||||
if(data!=null && data!=""){
|
||||
$("#nodeBoxIspn").val(data.nodeBoxIspn);
|
||||
$("#nodeUType").val(data.nodeUType);
|
||||
if(data.nodeUType!=null){
|
||||
vstart =data.nodeBeginUType;//保留节点在机柜已有起始U位
|
||||
$("#nodeUType").trigger("onchange");
|
||||
}
|
||||
$("#nodeIp").next().html("i18n_updatenode.message.nodeIsExists_n81i");
|
||||
}else{
|
||||
vstart = null;
|
||||
$("#nodeBoxIspn").val("");//Ispn的值改变会触发它自己绑定的事件,即把nodeUType和nodeBeginUType清空
|
||||
}
|
||||
}, "json");
|
||||
}
|
||||
|
||||
function checkNodeIp(){
|
||||
var nodeTypeIndex=$("#nodeType option").index($('#nodeType option:selected'));
|
||||
$.post("<c:url value='/nodeGroupManage/nodeManage!checkNodeIp.do'/>",
|
||||
{nodeIp:$("#nodeIp").val(),nodeGroupId:$("#nodeGroupId").val()},
|
||||
function(data){
|
||||
if(data!=null && data!=""){
|
||||
//同一节点组存在相同的IP
|
||||
if(data.isExist !=null){
|
||||
alert("i18n_updatenode.message.nodeRepeat_n81i");
|
||||
$("#nodeIp").val($("#oldNodeIp").val());
|
||||
}else{
|
||||
//其它节点组存在相同IP
|
||||
if(data.nodeIp !=null){
|
||||
//设置Mac
|
||||
$("#nodeMac").val(data.nodeMac);
|
||||
//设置节点名称
|
||||
$("#nodeN").val(data.nodeName);
|
||||
//设置节点类型
|
||||
$("#nodeType").val(data.nodeType);
|
||||
if(data.nodeType=="1"){
|
||||
$("#networElementTypeTR").show();
|
||||
//设置SNMP版本
|
||||
$(".snmpVersionType").show();
|
||||
if(data.snmpVersion == "1"){
|
||||
$("#version2").attr("checked","checked");
|
||||
}else if(data.snmpVersion == "3"){
|
||||
$("#version3").attr("checked","checked");
|
||||
}
|
||||
}else{
|
||||
$("#networElementTypeTR").hide();
|
||||
}
|
||||
if(data.nodeType==0&&data.specialServerType!=null){
|
||||
$("#nodeType option:last").attr("selected","selected");
|
||||
$("#specialServerTypeTR").show();
|
||||
$("#specialServerType").val(data.specialServerType);
|
||||
}else{
|
||||
$("#nodeType").val(data.nodeType);
|
||||
$("#specialServerTypeTR").hide();
|
||||
}
|
||||
//设置网元类型
|
||||
$("#networElementType").val(data.networElementType);
|
||||
//设置用户名
|
||||
$("#nodeUserName").val(data.nodeUserName);
|
||||
//设置密码
|
||||
$("#nodePassword").val(data.nodePassword);
|
||||
//设置机柜编号
|
||||
$("#nodeBoxIspn").val(data.nodeBoxIspn);
|
||||
//设置机柜起始U位
|
||||
vstart = data.nodeBeginUType
|
||||
//设置节点厚度
|
||||
$("#nodeUType").val(data.nodeUType);
|
||||
//$("#nodeUType").trigger("onchange");
|
||||
nodeUTypeChange();
|
||||
//设置节点IP信息
|
||||
$("#nodeIpInfo").val(data.nodeIpInfo);
|
||||
//设置节点描述
|
||||
$("#nodeDesc").val(data.nodeDesc);
|
||||
$("#nodeIp").next().html("i18n_updatenode.message.nodeIsExists_n81i");
|
||||
}
|
||||
}
|
||||
}else{
|
||||
clearInfo();
|
||||
}
|
||||
},
|
||||
"json"
|
||||
);
|
||||
}
|
||||
|
||||
function clearInfo(){
|
||||
$("#nodeMac").val("");
|
||||
$("#nodeN").val("");
|
||||
$("#nodeType").val(0);
|
||||
$("#networElementTypeTR").hide();
|
||||
$("#networElementType").val("");
|
||||
$("#nodeUserName").val("");
|
||||
$("#nodePassword").val("");
|
||||
$("#nodeBoxIspn").val("");
|
||||
$("#version2").attr("checked","checked");
|
||||
$("#nodeUType").val("");
|
||||
$("#nodeBeginUType").empty();
|
||||
$("#nodeBeginUType").append("<option value=''>i18n_updatenode.message.selectDefault_n81i</option>");
|
||||
$("#nodeIpInfo").val("");
|
||||
$("#nodeDesc").val("");
|
||||
$("#nodeIp").next().html("");
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="middle_list">
|
||||
<div class="box_2">
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
onclick="goBack()" value="i18n_updatenode.buttone.back_n81i"/>
|
||||
</div>
|
||||
<div style="height: 25px"></div>
|
||||
<form action="" name="Nodeform" method="post" style="border:0px;">
|
||||
<input type="hidden" name="showStopNGroup" value="${showStopNGroup }" />
|
||||
<input type="hidden" name="isValid" value="${isValid }" />
|
||||
<input type="hidden" name="position" value="${position }" />
|
||||
<input type="hidden" name="nodeGroupId" value="${nodeGroupId }" id="nodeGroupId" />
|
||||
<input type="hidden" name="pageNo" value="${pageNo }" />
|
||||
<input type="hidden" name="pageSize" value="${pageSize }" />
|
||||
<input type="hidden" name="nodeTable.nodeId" value="${nodeTable.nodeId }" />
|
||||
<input type="hidden" name="nodeNameVo" id="nodeNameVo" value="${nodeNameVo }" />
|
||||
<input type="hidden" name="nodeIpVo" id="nodeIpVo" value="${nodeIpVo }" />
|
||||
<input type="hidden" name="nodeDescVo" id="nodeDescVo" value="${nodeDescVo }" />
|
||||
<input type="hidden" name="nodeTable.seqId" value="${nodeTable.seqId }" />
|
||||
<input type="hidden" name="oldNodeIp" value="${nodeTable.nodeIp }" id="oldNodeIp" />
|
||||
<input type="hidden" name="type" value="${type }"/>
|
||||
<table border="0" cellpadding="0" cellspacing="0" class="table1">
|
||||
<tr>
|
||||
<td colspan="4" class="color_7">
|
||||
<strong>i18n_updatenode.text.title_n81i</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" width="20%" align="right">
|
||||
i18n_updatenode.text.nodeIp_n81i:
|
||||
</td>
|
||||
<td class="color_3" width="30%" align="left">
|
||||
<input type="text" name="nodeTable.nodeIp" id="nodeIp"
|
||||
value="${nodeTable.nodeIp }" style="width: 155px;" onchange="checkNodeIp()"/>
|
||||
<font color="red">*</font>
|
||||
</td>
|
||||
<td class="color_1" width="20%" align="right">
|
||||
i18n_updatenode.text.nodeMac_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left">
|
||||
<input type="text" name="nodeTable.nodeMac" id="nodeMac"
|
||||
value="${nodeTable.nodeMac }" style="width: 155px;" />
|
||||
<font color="red">*</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" width="20%" align="right">
|
||||
i18n_updatenode.text.nNa_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left" >
|
||||
<input type="text" name="nodeTable.nodeName" id="nodeN"
|
||||
value="${nodeTable.nodeName }" style="width: 155px;" />
|
||||
<font color="red">*</font>
|
||||
</td>
|
||||
<td class="color_1" align="right">
|
||||
i18n_updatenode.text.nodeType_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left">
|
||||
<select name="nodeTable.nodeType" id="nodeType" onchange="nodeTypeChange()"
|
||||
style="width: 155px;" >
|
||||
<option value="0" <c:if test="${nodeTable.nodeType==0 && empty nodeTable.specialServerType}">selected</c:if>>
|
||||
i18n_updatenode.message.nodeType0_n81i
|
||||
</option>
|
||||
<option value="1" <c:if test="${nodeTable.nodeType==1 }">selected</c:if>>
|
||||
i18n_updatenode.message.nodeType1_n81i
|
||||
</option>
|
||||
<option value="0" <c:if test="${nodeTable.nodeType==0 && not empty nodeTable.specialServerType}">selected</c:if>>
|
||||
i18n_updatenode.message.nodeType2_n81i
|
||||
</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="networElementTypeTR" style="display: none;">
|
||||
<td class="color_1" align="right">
|
||||
i18n_updatenode.text.networElementType_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left" colspan="3">
|
||||
<select name="nodeTable.networElementType" id="networElementType"
|
||||
style="width: 161px;" >
|
||||
<option value="">i18n_updatenode.message.selectDefault_n81i</option>
|
||||
<c:forEach items="${optionList}" var="optionTable" >
|
||||
<option value="${optionTable.typeCode}" <c:if test="${optionTable.typeCode == nodeTable.networElementType}">selected="selected"</c:if>>
|
||||
${optionTable.typeValue}
|
||||
</option>
|
||||
</c:forEach>
|
||||
</select>
|
||||
<font color="red">*</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="specialServerTypeTR" style="display: none;">
|
||||
<td class="color_1" align="right">
|
||||
i18n_addNodeInfo.text.specialServerType_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left" colspan="3">
|
||||
<select name="nodeTable.specialServerType" id="specialServerType"
|
||||
style="width: 161px;" >
|
||||
<option value="">i18n_addNodeInfo.message.selectDefault_n81i</option>
|
||||
<c:forEach items="${optionList2}" var="optionTable" >
|
||||
<option value="${optionTable.typeCode}" <c:if test="${optionTable.typeCode == nodeTable.specialServerType}">selected="selected"</c:if>>
|
||||
${optionTable.typeValue}
|
||||
</option>
|
||||
</c:forEach>
|
||||
</select>
|
||||
<font color="red">*</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" width="20%" align="right">
|
||||
i18n_updatenode.text.nodeUsername_n81i:
|
||||
</td>
|
||||
<td class="color_6" width="30%" align="left">
|
||||
<input type="text" name="nodeTable.nodeUserName" value="${nodeTable.nodeUserName }" id="nodeUserName"
|
||||
style="width: 155px;" />
|
||||
</td>
|
||||
<td class="color_1" width="20%" align="right">
|
||||
i18n_updatenode.text.nodePassword_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left">
|
||||
<c:choose>
|
||||
<c:when test="${jsbh}">
|
||||
<input type="text" name="nodeTable.nodePassword" value="${nodeTable.nodePassword }" id="nodePassword"
|
||||
style="width: 155px;" />
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<input type="password" name="nodeTable.nodePassword" value="${nodeTable.nodePassword }" id="nodePassword"
|
||||
style="width: 155px;" />
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_updatenode.text.nodeBoxIspn_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left">
|
||||
<input name="nodeTable.nodeBoxIspn" type="text" id="nodeBoxIspn" style="width: 156px;" title="请输入机柜编号" value="" onchange="boxIspnFun()"/>
|
||||
<font color="red">*</font>
|
||||
<div id='suggest1' class="ac_results"></div>
|
||||
</td>
|
||||
<td class="color_1 snmpVersionType" align="right" style="display: none;">
|
||||
i18n_addNodeInfo.text.snmpVersion_n81i:
|
||||
</td>
|
||||
<td class="color_6 snmpVersionType" align="left" style="display: none;">
|
||||
<input type="radio" name="nodeTable.snmpVersion" value="1" id="version2" checked="checked"/>VERSION2C
|
||||
<input type="radio" name="nodeTable.snmpVersion" value="3" id="version3" <c:if test='${nodeTable.snmpVersion==3}'>checked="checked"</c:if>/>VERSION3
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_updatenode.text.nodeUType_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left">
|
||||
<input type="text" name="nodeTable.nodeUType" id="nodeUType"
|
||||
value="${nodeTable.nodeUType }" style="width: 155px;" oninput="nodeUTypeFun()"/>
|
||||
<font color="red">*</font>
|
||||
</td>
|
||||
<td class="color_1" align="right">
|
||||
i18n_updatenode.text.nodeBeginUType_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left">
|
||||
<select name="nodeTable.nodeBeginUType" id="nodeBeginUType"
|
||||
style="width: 161px;" >
|
||||
<option value="">
|
||||
i18n_updatenode.message.selectDefault_n81i
|
||||
</option>
|
||||
</select>
|
||||
<font color="red">*</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_updatenode.text.nodeIpInfo_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left">
|
||||
<textarea rows="4" cols="40" name="nodeTable.nodeIpInfo"
|
||||
id="nodeIpInfo" style="width: 155px; height: 50px;"
|
||||
>${nodeTable.nodeIpInfo }</textarea>
|
||||
</td>
|
||||
<td class="color_1" align="right" >
|
||||
i18n_updatenode.text.nodeDesc_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left" >
|
||||
<textarea rows="4" cols="40" name="nodeTable.nodeDesc"
|
||||
id="nodeDesc" style="width: 155px; height: 50px;"
|
||||
>${nodeTable.nodeDesc }</textarea>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_updatenode.text.nodeState_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left" colspan="3">
|
||||
<input type="radio" name="nodeTable.nodeState" id="nodeState"
|
||||
value="0" <c:if test="${nodeTable.nodeState==0 }">checked</c:if> />
|
||||
i18n_updatenode.message.online_n81i
|
||||
<input type="radio" name="nodeTable.nodeState" id="nodeState"
|
||||
value="1" <c:if test="${nodeTable.nodeState==1 }">checked</c:if> />
|
||||
i18n_updatenode.message.downline_n81i
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_7" colspan="4" align="right">
|
||||
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
onclick="add()" value="i18n_updatenode.button.submit_n81i"/>
|
||||
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
onclick="javascript:document.forms['Nodeform'].reset();resetInit();"
|
||||
value="i18n_updatenode.button.reset_n81i"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
88
WebRoot/page/systemManage/nodeGroupManage/nodeMgmtList.jsp
Normal file
88
WebRoot/page/systemManage/nodeGroupManage/nodeMgmtList.jsp
Normal file
@@ -0,0 +1,88 @@
|
||||
<%@ 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 + "/";
|
||||
%>
|
||||
<!-- -->
|
||||
<script>
|
||||
document.location.href= "<%=path%>/nodeGroupManage/nodeManage!executeAction.do?action=query&fromWhere=${fromWhere}&nodeGroupId=${nodeGroup.groupId }&isValid=${isValid}&type=${type}&showStopNGroup=${showStopNGroup}";
|
||||
</script>
|
||||
|
||||
<!--
|
||||
<!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>节点组信息</title>
|
||||
<link href="<c:url value='/css/nms.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 type="text/javascript">
|
||||
function goBack(){
|
||||
document.Nodeform.action="<%=path%>/sysManage/nodeGroupManage.do?action=query";
|
||||
document.Nodeform.submit();
|
||||
}
|
||||
|
||||
$(function(){
|
||||
$("#win").load(function(){
|
||||
$(this).height($(this).contents().height());
|
||||
});
|
||||
$(window).resize(function(){
|
||||
$("#win").height($("#win").contents().height());
|
||||
});
|
||||
})
|
||||
|
||||
function iLoad(){
|
||||
$("#win").height($("#win").contents().height());
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body onload="iLoad();">
|
||||
<div class="middle_list">
|
||||
<form action="" name="Nodeform" method="post"
|
||||
style="margin: 0; padding: 0">
|
||||
<input type="hidden" name="position" value="${position }" />
|
||||
<input type="hidden" name="pageNo" value="${pageNo }" />
|
||||
<input type="hidden" name="pageSize" value="${pageSize }" />
|
||||
<input type="hidden" name="nameVo" id="nameVo" value="${nameVo }" />
|
||||
<input type="hidden" name="descVo" id="descVo" value="${descVo }" />
|
||||
</form>
|
||||
<div style="clear: both" />
|
||||
<table border="0" cellpadding="0" cellspacing="0" class="table">
|
||||
<tr>
|
||||
<td class="color_8">
|
||||
<strong>${nodeGroup.groupName }下的节点管理</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_6" align="center">
|
||||
<iframe name="win" scrolling="no" width="100%"
|
||||
frameborder="0" marginwidth="0" id="win"
|
||||
src="${pageContext.request.contextPath }/sysManage/nodeManage!executeAction.do?action=query&nodeGroupId=${nodeGroup.groupId }">
|
||||
</iframe>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_7" colspan="4" align="right">
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'" onclick="goBack()"
|
||||
value="返回" />
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
-->
|
||||
1006
WebRoot/page/systemManage/nodeGroupManage/nodegroupInfoList.jsp
Normal file
1006
WebRoot/page/systemManage/nodeGroupManage/nodegroupInfoList.jsp
Normal file
File diff suppressed because it is too large
Load Diff
109
WebRoot/page/systemManage/nodeGroupManage/showImportError.jsp
Normal file
109
WebRoot/page/systemManage/nodeGroupManage/showImportError.jsp
Normal file
@@ -0,0 +1,109 @@
|
||||
<%@ page language="java" pageEncoding="UTF-8"%>
|
||||
<%@page import="java.util.*"%>
|
||||
<%@include file="/common/taglib.jsp"%>
|
||||
|
||||
<%
|
||||
String path = request.getContextPath();
|
||||
%>
|
||||
|
||||
<!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_sierr.message.title_n81i</title>
|
||||
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
|
||||
type="text/css" />
|
||||
<script type="text/javascript">
|
||||
function goBack(){
|
||||
document.form1.action="<%=path%>/nodeGroupManage/nodeGroupManage!execute.do?action=queryNodeGroupInfo";
|
||||
document.form1.submit();
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="middle_list">
|
||||
<!--中间部分右边开始-->
|
||||
<form action="" name="form1" id="form1" method="post">
|
||||
<input type="hidden" name="showStopNGroup" value="${showStopNGroup }" />
|
||||
<c:if test="${fn:length(headerList) > 0}">
|
||||
<table align="center" border="0" cellpadding="0" cellspacing="0"
|
||||
class="table1">
|
||||
<tr>
|
||||
<td height="30" class="color_7" colspan="${fn:length(headerList)}">
|
||||
<strong>i18n_sierr.text.title_n81i</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<c:forEach items="${headerList}" var="head">
|
||||
<td class="color_1">
|
||||
${head}
|
||||
</td>
|
||||
</c:forEach>
|
||||
</tr>
|
||||
<c:forEach items="${rowList}" var="errorList">
|
||||
<tr>
|
||||
<c:forEach items="${errorList}" var="error" varStatus="status">
|
||||
<c:choose>
|
||||
<c:when test="${status.last}">
|
||||
<td class="color_6">
|
||||
${error}
|
||||
</td>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<td class="color_3">
|
||||
${error}
|
||||
</td>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</c:forEach>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
</table>
|
||||
</c:if>
|
||||
<c:if test="${fn:length(rowList1) > 0}">
|
||||
<table align="center" border="0" cellpadding="0" cellspacing="0"
|
||||
class="table1">
|
||||
<tr>
|
||||
<td height="30" class="color_7" colspan="${fn:length(headerList1)}">
|
||||
<strong>${errorTheme }</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<c:forEach items="${headerList1}" var="head">
|
||||
<td class="color_1">
|
||||
${head}
|
||||
</td>
|
||||
</c:forEach>
|
||||
</tr>
|
||||
<c:forEach items="${rowList1}" var="errorList">
|
||||
<tr>
|
||||
<c:forEach items="${errorList}" var="error" varStatus="status">
|
||||
<c:choose>
|
||||
<c:when test="${status.last}">
|
||||
<td class="color_6">
|
||||
${error}
|
||||
</td>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<td class="color_3">
|
||||
${error}
|
||||
</td>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</c:forEach>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
</table>
|
||||
</c:if>
|
||||
<div class="color_7" style="text-align:center;">
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'" onclick="goBack()"
|
||||
value="i18n_sierr.button.back_n81i" /></div>
|
||||
</form>
|
||||
<!--中间部分右边结束-->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,738 @@
|
||||
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
|
||||
<%@ page import="nis.nms.core.*"%>
|
||||
<%@include file="/common/taglib.jsp"%>
|
||||
|
||||
<%
|
||||
String path = request.getContextPath();
|
||||
String basePath = request.getScheme() + "://"
|
||||
+ request.getServerName() + ":" + request.getServerPort()
|
||||
+ path + "/";
|
||||
|
||||
response.setHeader("Pragma","No-Cache");
|
||||
|
||||
response.setHeader("Cache-Control","No-Cache");
|
||||
|
||||
response.setDateHeader("Expires", 0);
|
||||
%>
|
||||
|
||||
<!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="X-UA-Compatible" content="IE=EmulateIE7" />
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<title>i18n_tsnang.message.title_n81i</title>
|
||||
<link href="<c:url value='/css/nms.css'/>" type="text/css" rel="stylesheet" />
|
||||
<link href="<c:url value='/js//dtree/css/dtree.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/jquery.tools.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/dtree/js/dtree_checkbox_multi_choose.js"/>"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
//点击各节点组触发的事件:dTree
|
||||
function onClickNodeGroup(id){
|
||||
//点击节点组标题时:若复选框当前选中,则取消选中,若当前未选中,则选中。可以通过点击标题多选
|
||||
var isChecked= jQuery("input[type='checkbox'][name='mkid'][value='"+id+"']").attr("checked");
|
||||
jQuery("input[type='checkbox'][name='mkid'][value='"+id+"']").attr("checked",!isChecked);
|
||||
onClickCheckBox();//同时更新ip列表的显示
|
||||
$("#sub").attr('disabled','');
|
||||
}
|
||||
|
||||
$(function(){
|
||||
//获取父页面中选中的监测类别,以及父级页面是哪个(监测设置detecSet和任务nmstask)
|
||||
var resu = $(window.parent.document).find("#I3").contents();
|
||||
var f = resu.find("#fw").val();
|
||||
//var f = resu.document.getElementById("fw").value;
|
||||
var type ="";
|
||||
var issp ="";
|
||||
if(f =="detecSetAdd" || f =="detecSetUpp"){//从监测设置过来才需要下面两个值
|
||||
type = resu.find("#checkTypeId").val();
|
||||
issp = resu.find("#isSnmpType").val();
|
||||
/* type = resu.document.getElementById("checkTypeId").value;
|
||||
issp = resu.document.getElementById("isSnmpType").value; */
|
||||
}
|
||||
var checkedNodeIds = ",${nodeId},";//所选节点id
|
||||
$("#nodesTable tr[id!='headTr']").remove();//只留下标题
|
||||
<c:forEach var="node" items="${nodeList}" varStatus="index">//循环选中节点组对应的所有节点
|
||||
var nodeGroupName = getNameById('${node.groupId}');//根据节点组id得到节点组name
|
||||
var nodeCount = $("#nodesTable tr").length;//获得当前节点记录数
|
||||
var nodeId = ",${node.nodeId},";
|
||||
var check = "";
|
||||
var cla="";
|
||||
var dis="";
|
||||
var tit="${node.nodeId}";
|
||||
var nodeType= "${node.nodeType}";
|
||||
var index = '${index.count}';
|
||||
if(checkedNodeIds.indexOf(nodeId)!=-1) {
|
||||
check = 'checked';
|
||||
}
|
||||
|
||||
if(type == 7 || type == 6 || issp == 'y'){//可选交换机
|
||||
cla="";
|
||||
dis="";
|
||||
}else{
|
||||
if(nodeType!=null && nodeType==0){//服务器/pc
|
||||
cla="";
|
||||
dis="";
|
||||
}else if(nodeType!=null && nodeType==1){//交换机
|
||||
if(!(f=='topoManage')){
|
||||
cla="alldisabled";
|
||||
dis="disabled";
|
||||
tit="i18n_tsnang.message.netElement_n81i";
|
||||
}
|
||||
}
|
||||
}
|
||||
var sysType ;
|
||||
if(${node.nodeSystemType==1}){
|
||||
sysType = "Linux";
|
||||
}else if(${node.nodeSystemType==2}){
|
||||
sysType = "Windows";
|
||||
}else{
|
||||
sysType = "";
|
||||
}
|
||||
if(nodeCount%2==0) {
|
||||
$("#nodesTable").append("<tr title='"+tit+"'><td class='color_1'>"+
|
||||
"<input id='nodeIds' name='nodeCheckBoxName' class='"+cla+"' disabled='"+dis+"' type='checkbox' value='${node.nodeId}' "+check+" />"+index+"</td>"+
|
||||
"<td class='color_1'>"+nodeGroupName+"</td>"+
|
||||
"<td class='color_1' id='nodeIps'>"+
|
||||
"<input type='hidden' id='ip_${node.nodeId}' value='${node.nodeIp}'/>${node.nodeIp}</td>"+
|
||||
"<td class='color_1'>"+<c:if test="${node.nodeType=='0'}">'i18n_tsnang.text.server_n81i'</c:if>
|
||||
<c:if test="${node.nodeType=='1'}">'i18n_tsnang.text.netElement_n81i'</c:if>+
|
||||
"</td><td class='color_1'>"+sysType+"</td></tr>");
|
||||
}
|
||||
if(nodeCount%2!=0) {
|
||||
$("#nodesTable").append("<tr title='"+tit+"'><td class='color_3'>"+
|
||||
"<input id='nodeIds' name='nodeCheckBoxName' class='"+cla+"' disabled='"+dis+"' type='checkbox' value='${node.nodeId}' "+check+" />"+index+"</td>"+
|
||||
"<td class='color_3'>"+nodeGroupName+"</td>"+
|
||||
"<td class='color_3' id='nodeIps'>"+
|
||||
"<input type='hidden' id='ip_${node.nodeId}' value='${node.nodeIp}'/>${node.nodeIp}</td>"+
|
||||
"<td class='color_3'>"+<c:if test="${node.nodeType=='0'}">'i18n_tsnang.text.server_n81i'</c:if>
|
||||
<c:if test="${node.nodeType=='1'}">'i18n_tsnang.text.netElement_n81i'</c:if>+
|
||||
"</td><td class='color_3'>"+sysType+"</td></tr>");
|
||||
}
|
||||
</c:forEach>
|
||||
//若真的无记录,再添加‘没有记录’行
|
||||
var nodeCount = $("#nodesTable tr").length;
|
||||
if(nodeCount==1) {
|
||||
$("#nodesTable").append("<tr><td colspan='5' height='35' class='color_6' align='center'>i18n_tsnang.text.noRecord_n81i</td></tr>");
|
||||
}
|
||||
|
||||
$("#noInDCTable").hide();
|
||||
//遍历未包含在分管IP中的节点
|
||||
<c:if test="${fn:length(noInNodeList) > 0}">
|
||||
$("#noInDCTable").show();
|
||||
<c:forEach var="node1" items="${noInNodeList}">//循环选中节点组对应的所有节点
|
||||
var nodeGroupName1 = getNameById('${node1.groupId}');//根据节点组id得到节点组name
|
||||
var nodeCount1 = $("#noInDCTable tr").length;//获得当前节点记录数
|
||||
var nodeType="";
|
||||
<c:if test="${node1.nodeType=='0'}">nodeType ="i18n_tsnang.text.server_n81i";</c:if>
|
||||
<c:if test="${node1.nodeType=='1'}">nodeType ="i18n_tsnang.text.netElement_n81i";</c:if>
|
||||
var trHtml="";
|
||||
var sysType ;
|
||||
if(${node.nodeSystemType==1}){
|
||||
sysType = "Linux";
|
||||
}else if(${node.nodeSystemType==2}){
|
||||
sysType = "Windows";
|
||||
}else{
|
||||
sysType = "";
|
||||
}
|
||||
if(nodeCount1%2==0) {
|
||||
trHtml +="<tr><td class='color_1'>${node1.nodeIp}</td>"+
|
||||
"<td class='color_1'>${node1.nodeName}</td>"+
|
||||
"<td class='color_1'>"+nodeGroupName1+"</td>"+
|
||||
"<td class='color_1'>"+nodeType+"</td><td class='color_1'>"+sysType+"</td></tr>";
|
||||
}
|
||||
if(nodeCount1%2!=0) {
|
||||
trHtml +="<tr><td class='color_3'>${node1.nodeIp}</td>"+
|
||||
"<td class='color_3'>${node1.nodeName}</td>"+
|
||||
"<td class='color_3'>"+nodeGroupName1+"</td>"+
|
||||
"<td class='color_3'>"+nodeType+"</td><td class='color_3'>"+sysType+"</td></tr>";
|
||||
}
|
||||
$("#noInDCTable").append(trHtml);
|
||||
</c:forEach>
|
||||
</c:if>
|
||||
|
||||
|
||||
if($("input[id='nodeIds'][name='nodeCheckBoxName'][type='checkbox']:checked").size() > 0){
|
||||
jQuery("input[type='radio'][id='ng1']").trigger('click');
|
||||
}
|
||||
|
||||
//如果是从新拓扑配置页面过来根据节点还是节点组隐藏功能
|
||||
if(f=='topoManage'){
|
||||
var chooseType=resu.find("#chooseType").val();
|
||||
if(chooseType!=1){
|
||||
$("#changeType").hide();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
function setDisabled(){
|
||||
$("#nodesTable").find("input[type='checkbox'][name='nodeCheckBoxName']").each(function(){
|
||||
$(this).attr('disabled','disabled');
|
||||
$(this).attr('checked',false);
|
||||
});
|
||||
$("#checkAll").attr('disabled','disabled');
|
||||
$("#checkAll").attr('checked',false);
|
||||
|
||||
$("#checkInvert").attr('disabled','disabled');
|
||||
$("#checkInvert").attr('checked',false);
|
||||
|
||||
$("#sub").attr('disabled','');
|
||||
}
|
||||
|
||||
function setNoDisabled(){
|
||||
$("#nodesTable").find("input[type='checkbox'][name='nodeCheckBoxName']").each(function(){
|
||||
if($(this).attr('class')!='alldisabled'){
|
||||
$(this).attr('disabled','');
|
||||
}
|
||||
});
|
||||
$("#checkAll").attr('disabled','');
|
||||
$("#checkInvert").attr('disabled','');
|
||||
var nn = $("#nodesTable").find("input[type='checkbox'][id!='checkAll'][name='nodeCheckBoxName'][class!='alldisabled']").size();
|
||||
$("#sub").attr('disabled','');
|
||||
}
|
||||
|
||||
//全选节点组,取消所有节点组
|
||||
function selectAllAndTriggerClick(checkBox,checkAllName) {
|
||||
selectAllCheckBoxByName(checkBox,checkAllName);
|
||||
onClickCheckBox();
|
||||
}
|
||||
|
||||
//全选节点组,取消所有节点组
|
||||
function selectAllCheckBoxByName(checkBox,checkAllName) {
|
||||
var checks = document.getElementsByTagName("input");
|
||||
for(i=0;i<checks.length;i++) {
|
||||
if(checks[i].type=='checkbox'&&checks[i].disabled!=true&&checks[i].name==checkAllName) {
|
||||
checks[i].checked = checkBox.checked;
|
||||
}
|
||||
}
|
||||
$("#checkInvert").attr('checked',false);
|
||||
}
|
||||
|
||||
//节点组反选
|
||||
function invertSelect(checkBox,checkAllName) {
|
||||
$("input[name='"+checkAllName+"']").not(":disabled").each(function(){
|
||||
$(this).attr("checked",!$(this).attr("checked"));
|
||||
})
|
||||
$("#checkAll").attr('checked',$("input[name='"+checkAllName+"'][checked='true']").length == $("input[name='"+checkAllName+"']").length);
|
||||
}
|
||||
|
||||
//过滤选择的节点组:只返回最底层的节点组的id,可能是多个,返回后关闭当前窗口
|
||||
function selectNodeGroupAndNode(){
|
||||
//var resu = window.parent;
|
||||
var resu = $(window.parent.document).find("#I3").contents();
|
||||
var f = resu.find("#missionName");
|
||||
//var f = resu.document.getElementById("missionName");//判断父页面有任务名称字段
|
||||
if(f!=null){
|
||||
//当前时从任务页面过来 需要添加验证
|
||||
if($("#ng1").attr('checked')==true){
|
||||
if(!isRigthCheck("nodeCheckBoxName", "remove")){
|
||||
alert("i18n_tsnang.message.selectOne_n81i");
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
var f = resu.find("#fw").val();
|
||||
//var f = resu.document.getElementById("fw").value;//从监测页面
|
||||
if($("#ng1").attr('checked')==true&&(f =="detecSetAdd" || f =="detecSetUpp")&&$("input[name=nodeCheckBoxName]").length>0&&$("input[name=nodeCheckBoxName]:checked").length==0){
|
||||
var flag = true;
|
||||
$("#nodesTable tr[title]").each(function(index,item){
|
||||
var tit = $(this).attr("title");
|
||||
if(isNaN(Number(tit))){// 所有TR的title属性,若有一个为非数字,则是有网元节点
|
||||
alert("i18n_tsnang.message.selectOne_n81i");
|
||||
flag=false;
|
||||
return false;
|
||||
}
|
||||
});
|
||||
if(!flag){
|
||||
return;
|
||||
}
|
||||
}
|
||||
if($("#ng0").attr('checked')==true){
|
||||
//如果是按节点组的话,必须判断节点组中有无不符合要求的节点
|
||||
if($("#nodesTable tr td input").length<=1){
|
||||
alert("i18n_tsnang.message.selectNodeGroup_n81i");
|
||||
return;
|
||||
}
|
||||
if($("#nodesTable tr[title]").length>0){
|
||||
var flag=true;
|
||||
$("#nodesTable tr[title]").each(function(){
|
||||
var tit = $(this).attr("title");
|
||||
if(isNaN(Number(tit))){// 所有TR的title属性,若有一个为非数字,则是有不符合的节点
|
||||
alert(tit);
|
||||
flag=false;
|
||||
return false;
|
||||
}
|
||||
});
|
||||
if(!flag){
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
//所选节点组(经过过滤的)id和name
|
||||
var nodeGroupIdsArray = getBottomNodeGroup();
|
||||
var nodeGroupIds = nodeGroupIdsArray.join(',');
|
||||
var nodeGroupNamesArray = getNameStrByArray(nodeGroupIdsArray);
|
||||
var nodeGroupNames = nodeGroupNamesArray.join(',');
|
||||
|
||||
//所选节点id和name
|
||||
var nodeIds = getSelectedNodeIds().join();
|
||||
var nodeIps = getSelectedNodeIps().join();
|
||||
|
||||
//判断节点ids 和ips的长度
|
||||
if(nodeIps.length > 500 || nodeIds.length > 500){
|
||||
alert("i18n_tsnang.message.muchNode_n81i");
|
||||
return;
|
||||
}
|
||||
|
||||
//修改为模式窗口-2013-1-24-hyx--
|
||||
//var resu = window.parent;
|
||||
var resu = $(window.parent.document).find("#I3")[0].contentWindow;
|
||||
if('${type}' == "descgroup"){//用于拓扑图配置页面选择源节点组与目标节点组的区分,1:目标节点组
|
||||
resu.reciveNodeAndNodeGroup1(nodeGroupIds,nodeGroupNames,nodeIds,nodeIps);
|
||||
}else if('${type}' == "topoManage"){//用于新拓扑图配置页面选择
|
||||
resu.reciveTopoNodeAndNodeGroup(nodeGroupIds,nodeGroupNames,nodeIds,nodeIps);
|
||||
}else {
|
||||
resu.reciveNodeAndNodeGroup(nodeGroupIds,nodeGroupNames,nodeIds,nodeIps);
|
||||
}
|
||||
//window.close();
|
||||
layclose();
|
||||
var index = parent.layer.getFrameIndex(window.name);
|
||||
parent.layer.close(index);
|
||||
}
|
||||
|
||||
//获得选中的节点id的数组
|
||||
function getSelectedNodeIds() {
|
||||
var nodeIdsArray = new Array();
|
||||
$("input[type='checkbox'][id='nodeIds']:checked").each(function(k) {
|
||||
nodeIdsArray[k] = this.value;
|
||||
});
|
||||
return nodeIdsArray;
|
||||
}
|
||||
|
||||
//获得选中的节点ip的数组
|
||||
function getSelectedNodeIps() {
|
||||
var nodeIpsArray = new Array();
|
||||
$("input[type='checkbox'][id='nodeIds']:checked").each(function(k) {
|
||||
nodeIpsArray[k] = $("input[id='ip_"+this.value+"']").val();
|
||||
});
|
||||
return nodeIpsArray;
|
||||
}
|
||||
|
||||
//过滤得到所选节点组中的最底层id
|
||||
function getBottomNodeGroup() {
|
||||
var allCheckedIds = $("input[type='checkbox'][name='mkid']:checked");
|
||||
for(var i=0;i<allCheckedIds.length;i++) {
|
||||
if(allCheckedIds[i].value!='null') {
|
||||
var parId = getPid(allCheckedIds[i].value);//得到父id
|
||||
while(parId!=0) {
|
||||
var index = getIndexOf(allCheckedIds,parId);//父id在数组中的下标
|
||||
if(index!=-1) {
|
||||
allCheckedIds[index].value = 'null';
|
||||
}
|
||||
parId = getPid(parId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var bottomNodeGroupIds = new Array;
|
||||
var count = 0;
|
||||
for(var k=0;k<allCheckedIds.length;k++) {
|
||||
if(allCheckedIds[k].value!='null') {
|
||||
bottomNodeGroupIds[count] = allCheckedIds[k].value;
|
||||
count++;
|
||||
}
|
||||
}
|
||||
return bottomNodeGroupIds;
|
||||
}
|
||||
|
||||
//得到父id
|
||||
function getPid(childId) {
|
||||
var tempValue = 'pid'+childId;
|
||||
var parId = document.getElementById(tempValue).value;
|
||||
return parId;
|
||||
}
|
||||
|
||||
//根据id数组,获得对应的name数组
|
||||
function getNameStrByArray(arr) {
|
||||
var tempNameArray = new Array();
|
||||
for(i=0;i<arr.length;i++) {
|
||||
tempNameArray[i] = getNameById(arr[i]);
|
||||
}
|
||||
return tempNameArray;
|
||||
}
|
||||
|
||||
//根据节点组id得到节点组name
|
||||
function getNameById(id) {
|
||||
if(id!=null&&id!='undefined') {
|
||||
var tempValue = 'name'+id;
|
||||
var name = document.getElementById(tempValue).value;
|
||||
return name;
|
||||
}
|
||||
}
|
||||
|
||||
//判断value是否在arr数组中,如果在返回在数组中的下标,如果不在返回-1
|
||||
function getIndexOf(arr,parId) {
|
||||
var index = -1;
|
||||
for(var j=0;j<arr.length;j++) {
|
||||
if(parId==arr[j].value) {
|
||||
index = j;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return index;
|
||||
}
|
||||
|
||||
//选中节点组,右边显示相应的节点
|
||||
function onCheckedCheckBox(groupId){
|
||||
|
||||
}
|
||||
//取消选中节点组,右边取消显示相应的节点
|
||||
function onCancleCheckBox(groupId){
|
||||
|
||||
}
|
||||
|
||||
//点击(选中+取消)节点组复选框时执行的内容(右侧节点):groupId参数没有用到
|
||||
function onClickCheckBox(groupId) {
|
||||
//获取父页面中选中的监测类别,以及父级页面是哪个(监测设置detecSet和任务nmstask)
|
||||
//var resu = window.parent;
|
||||
var resu = $(window.parent.document).find("#I3").contents();
|
||||
var f = resu.find("#fw").val();
|
||||
//var f = resu.document.getElementById("fw").value;
|
||||
var type ="";
|
||||
var issp ="";
|
||||
if(f =="detecSetAdd" || f =="detecSetUpp"){//从监测设置过来才需要下面两个值
|
||||
type = resu.find("#checkTypeId").val();
|
||||
issp = resu.find("#isSnmpType").val();
|
||||
//type = resu.document.getElementById("checkTypeId").value;
|
||||
//issp = resu.document.getElementById("isSnmpType").value;
|
||||
}
|
||||
|
||||
var checkedNodeIds = ","+getSelectedNodeIds().join()+",";//得到之前选中的节点id,当重新选择节点组时,之前选择的节点仍然处于选中状态
|
||||
var idsArray = getBottomNodeGroup();//得到选中的最底层的节点组id(去掉非底层的节点组id:非底层指其子孙被选中)
|
||||
var ids = idsArray.join(',');
|
||||
if(ids!=null && ids!=""){
|
||||
jQuery.post("<%=path%>/nodeGroupManage/nodeGroupManage!executeAction.do?action=getNodesByNodeGroupId",{"groupId":ids},
|
||||
function(datas){
|
||||
$("#nodesTable tr[id!='headTr']").remove();//只留下标题
|
||||
$("#noInDCTable tr[id!='infoTit']").remove();//只留下标题
|
||||
//循环删除表中的行(选中节点组对应的节点)
|
||||
$.each(datas[0], function(k, da) {
|
||||
var index = k+1;
|
||||
var nodeGroupName = getNameById(da[2]);
|
||||
var nodeCount = $("#nodesTable tr").length;
|
||||
var nodeId = ","+da[0]+",";
|
||||
var isChecked="";
|
||||
var trHtml="";
|
||||
var td1="";
|
||||
var nodeType="";
|
||||
var tit=da[0];//默认title为节点ID
|
||||
/*
|
||||
if(checkedNodeIds.indexOf(nodeId)!=-1) {
|
||||
check = 'checked';
|
||||
}
|
||||
*/
|
||||
if(da[3]==0){
|
||||
nodeType ="i18n_tsnang.text.server_n81i";
|
||||
}else if(da[3]==1){
|
||||
nodeType ="i18n_tsnang.text.netElement_n81i";
|
||||
}
|
||||
//判断时候可以勾选交换机
|
||||
if(f =="addNewTask"){//新增任务--只能选择服务器
|
||||
if(da[3]!=null && da[3]==0){//服务器/pc
|
||||
td1 ="<input id='nodeIds' name='nodeCheckBoxName' type='checkbox' value='"+da[0]+"' checked />"+index;
|
||||
}else{//网元
|
||||
td1 ="<input id='nodeIds' name='nodeCheckBoxName' class='alldisabled' type='checkbox' disabled='disabled' value='"+da[0]+"' />"+index;
|
||||
tit="i18n_tsnang.message.onlyServer_n81i";
|
||||
}
|
||||
}else if(f =="detecSetAdd"){//监测设置新增--需判断监测类别-nmsclient,ping,snmp可以选择交换机
|
||||
if(type == 9){
|
||||
if(da[3]!=null && da[3]==0){//服务器/pc
|
||||
td1 ="<input id='nodeIds' name='nodeCheckBoxName' class='alldisabled' type='checkbox' disabled='disabled' value='"+da[0]+"'/>"+index;
|
||||
tit="这特么是服务器!";
|
||||
}else if(da[3]!=null && da[3]==1 ){//交换机
|
||||
td1 ="<input id='nodeIds' name='nodeCheckBoxName' type='checkbox' value='"+da[0]+"' checked />"+index;
|
||||
}
|
||||
}else{
|
||||
if(type == 7 || type == 6||issp == 'y'){//可选交换机
|
||||
td1 ="<input id='nodeIds' name='nodeCheckBoxName' type='checkbox' value='"+da[0]+"' checked />"+index;
|
||||
}else{
|
||||
if(da[3]!=null && da[3]==0){//服务器/pc
|
||||
td1 ="<input id='nodeIds' name='nodeCheckBoxName' type='checkbox' value='"+da[0]+"' checked />"+index;
|
||||
}else if(da[3]!=null && da[3]==1 ){//交换机
|
||||
td1 ="<input id='nodeIds' name='nodeCheckBoxName' class='alldisabled' type='checkbox' disabled='disabled' value='"+da[0]+"'/>"+index;
|
||||
tit="i18n_tsnang.message.netElement_n81i";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}else if(f =="detecSetUpp"){//监测设置修改
|
||||
if(checkedNodeIds.indexOf(da[0])!=-1) {
|
||||
isChecked = 'checked';
|
||||
}
|
||||
if(type == 7 || type == 6 || issp == 'y'){//可选交换机
|
||||
td1 ="<input id='nodeIds' name='nodeCheckBoxName' type='checkbox' value='"+da[0]+"' "+isChecked+" />"+index;
|
||||
}else{
|
||||
if(da[3]!=null && da[3]==0){//服务器/pc
|
||||
td1 ="<input id='nodeIds' name='nodeCheckBoxName' type='checkbox' value='"+da[0]+"' "+isChecked+" />"+index;
|
||||
}else if(da[3]!=null && da[3]==1){//交换机
|
||||
td1 ="<input id='nodeIds' name='nodeCheckBoxName' class='alldisabled' type='checkbox' disabled='disabled' value='"+da[0]+"'/>"+index;
|
||||
tit="i18n_tsnang.message.netElement_n81i";
|
||||
}
|
||||
}
|
||||
}else if(f =="addSimilarNmstask" ||f =="addConverseSimiTask" || f =="addConverTask"){//新增相似、逆向、相似的逆向(等于修改)
|
||||
if(checkedNodeIds.indexOf(da[0])!=-1) {
|
||||
isChecked = 'checked';
|
||||
}
|
||||
if(da[3]!=null && da[3]==0){//服务器/pc
|
||||
td1 ="<input id='nodeIds' name='nodeCheckBoxName' type='checkbox' value='"+da[0]+"' "+isChecked+" />"+index;
|
||||
}else{//交换机
|
||||
td1 ="<input id='nodeIds' name='nodeCheckBoxName' class='alldisabled' type='checkbox' disabled='disabled' value='"+da[0]+"' />"+index;
|
||||
tit="i18n_tsnang.message.onlyServer_n81i";
|
||||
}
|
||||
}
|
||||
|
||||
if(f=='topoManage'){
|
||||
td1 ="<input id='nodeIds' name='nodeCheckBoxName' type='checkbox' value='"+da[0]+"' checked />"+index;
|
||||
}
|
||||
|
||||
var sysType ;
|
||||
if(da[4]==1){
|
||||
sysType = "Linux";
|
||||
}else if(da[4]==2){
|
||||
sysType = "Windows";
|
||||
}else{
|
||||
sysType = "";
|
||||
}
|
||||
if(nodeCount%2==0) {
|
||||
trHtml += "<tr title='"+tit+"'><td class='color_1'>"+td1+"</td>"+
|
||||
"<td class='color_1'>"+nodeGroupName+"</td>"+
|
||||
"<td class='color_1' id='nodeIps'>"+
|
||||
"<input type='hidden' id='ip_"+da[0]+"' value='"+da[1]+"'/>"+da[1]+"</td>"+
|
||||
"<td class='color_1'>"+nodeType+"</td>"+
|
||||
"<td class='color_1'>"+sysType+"</td>"+
|
||||
"</tr>";
|
||||
}else{
|
||||
trHtml += "<tr title='"+tit+"'><td class='color_3'>"+td1+"</td>"+
|
||||
"<td class='color_3'>"+nodeGroupName+"</td>"+
|
||||
"<td class='color_3' id='nodeIps'>"+
|
||||
"<input type='hidden' id='ip_"+da[0]+"' value='"+da[1]+"'/>"+da[1]+"</td>"+
|
||||
"<td class='color_3'>"+nodeType+"</td>"+
|
||||
"<td class='color_3'>"+sysType+"</td>"+
|
||||
"</tr>";
|
||||
}
|
||||
//tr放入table
|
||||
$("#nodesTable").append(trHtml);
|
||||
});
|
||||
jQuery("input[type='radio'][id='ng0']").trigger('click');
|
||||
//若真的无记录,再添加‘没有记录’行
|
||||
var nodeCount = $("#nodesTable tr").length;
|
||||
if(nodeCount==1) {
|
||||
$("#nodesTable").append("<tr><td colspan='5' height='35' class='color_6' align='center'>i18n_tsnang.message.noRecord_n81i</td></tr>");
|
||||
$("#checkAll").attr("checked","");
|
||||
}
|
||||
if(datas.length > 0){
|
||||
if(f =="detecSetAdd" || f =="addNewTask"){
|
||||
//$("#checkAll").attr("checked","checked");
|
||||
}
|
||||
}
|
||||
if(datas[1]!=null ){
|
||||
$("#noInDCTable").show();
|
||||
//遍历未包含在DC分管IP中的节点
|
||||
$.each(datas[1], function(k, da) {
|
||||
var nodeGroupName = getNameById(da[2]);
|
||||
var nodeCount = $("#noInDCTable tr").length;
|
||||
var trHtml="";
|
||||
var nodeType="";
|
||||
|
||||
if(da[3]==0){
|
||||
nodeType ="i18n_tsnang.text.server_n81i";
|
||||
}else if(da[3]==1){
|
||||
nodeType ="i18n_tsnang.text.netElement_n81i";
|
||||
}
|
||||
var sysType ;
|
||||
if(da[4]==1){
|
||||
sysType = "Linux";
|
||||
}else if(da[4]==2){
|
||||
sysType = "Windows";
|
||||
}else{
|
||||
sysType = "";
|
||||
}
|
||||
if(nodeCount%2==0) {
|
||||
trHtml += "<tr><td class='color_1'>"+da[0]+"</td>"+
|
||||
"<td class='color_1'>"+da[1]+"</td>"+
|
||||
"<td class='color_1'>"+nodeGroupName+"</td>"+
|
||||
"<td class='color_1'>"+nodeType+"</td>"+
|
||||
"<td class='color_1'>"+sysType+"</td>"+
|
||||
"</tr>";
|
||||
}else{
|
||||
trHtml += "<tr><td class='color_3'>"+da[0]+"</td>"+
|
||||
"<td class='color_3'>"+da[1]+"</td>"+
|
||||
"<td class='color_3'>"+nodeGroupName+"</td>"+
|
||||
"<td class='color_3'>"+nodeType+"</td>"+
|
||||
"<td class='color_3'>"+sysType+"</td>"+
|
||||
"</tr>";
|
||||
}
|
||||
//tr放入table
|
||||
$("#noInDCTable").append(trHtml);
|
||||
});
|
||||
}
|
||||
|
||||
},
|
||||
"json");
|
||||
}else {//如果没有选中的节点组
|
||||
$("#nodesTable tr[id!='headTr']").remove();//只留下标题
|
||||
$("#noInDCTable tr[id!='infoTit']").remove();//只留下标题
|
||||
$("#noInDCTable").hide();
|
||||
$("#checkAll").attr("checked","");
|
||||
$("#nodesTable").append("<tr><td colspan='5' height='35' class='color_6' align='center'>i18n_tsnang.message.noRecord_n81i</td></tr>");
|
||||
}
|
||||
|
||||
}
|
||||
$(function(){
|
||||
if(navigator.userAgent.indexOf("MSIE")>0) {
|
||||
$("body").css({"width":"98%"});
|
||||
}else{
|
||||
$("body").css({"width":"100%"});
|
||||
}
|
||||
});
|
||||
|
||||
function layclose() {
|
||||
var index = parent.layer.getFrameIndex(window.name);
|
||||
parent.layer.close(index);
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="middle_list">
|
||||
<form action="" name="listForm" id="listForm" method="post" >
|
||||
<table border="0" cellpadding="0" cellspacing="0" class="table" >
|
||||
<tr>
|
||||
<td class="color_8" colspan="2">i18n_tsnang.text.selectNodeGroup_n81i</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="left" width="30%" valign="top" height="500px;" style="padding-left: 12px;">
|
||||
<div style="overflow: auto;height: auto;">
|
||||
<script type="text/javascript">
|
||||
var checkedNodeGroup = ','+'${groupId}'+',';//选中节点组的id
|
||||
d = new dTree('d','','','ids');
|
||||
var systemName = '${system.systemName}'
|
||||
var checkAllName = 'mkid';
|
||||
d.add('0','-1','<input type="checkbox" onclick="selectAllAndTriggerClick(this,\'mkid\')"/>'+systemName);
|
||||
<%
|
||||
List treeList = (List)request.getAttribute("treeList");
|
||||
List list = MakeTree.getAllResourceList(treeList);
|
||||
if(list != null && list.size() > 0){
|
||||
Resource resource = new Resource();
|
||||
for( int i = 0 ; i < list.size() ; i++ ){
|
||||
resource = (Resource) list.get(i);
|
||||
%>
|
||||
var reCode = '<%=resource.getRsCode()%>';
|
||||
var isChecked = " ";
|
||||
var nodeGoupId = ','+reCode+',';
|
||||
if(checkedNodeGroup.indexOf(nodeGoupId)>=0) {//说明当前节点组为选中的节点组
|
||||
isChecked = 'checked';
|
||||
}
|
||||
|
||||
d.add(reCode,'<%=resource.getParRsCode()%>','<%=resource.getRsname()%>',isChecked,'javascript:onClickNodeGroup('+reCode+');',reCode);
|
||||
<%
|
||||
|
||||
}
|
||||
}
|
||||
%>
|
||||
document.write(d);
|
||||
</script>
|
||||
<c:forEach items="${nodeGroupList}" var="group" varStatus="vs">
|
||||
<input type="hidden" id="pid${group.groupId }" name="pid${group.groupId }" value="${group.parentGroupId}" />
|
||||
<input type="hidden" id="name${group.groupId }" name="name${group.groupId }" value="${group.groupName}" />
|
||||
<input type="hidden" id="leaf${group.groupId }" name="leaf${group.groupId }" value="${group.leafGroup}" />
|
||||
</c:forEach>
|
||||
</div>
|
||||
</td>
|
||||
<td class="color_1" align="center" valign="top" >
|
||||
<div style="overflow: auto;height: auto;">
|
||||
<span id="changeType">
|
||||
<input type="radio" id="ng0" name="anWhat" class="ngstart" value="0" checked="checked" onclick="setDisabled();"/>i18n_tsnang.text.setDisabled_n81i
|
||||
<input type="radio" id="ng1" name="anWhat" class="ngstart" value="1" onclick="setNoDisabled();"/>i18n_tsnang.text.setNoDisabled_n81i
|
||||
</span>
|
||||
|
||||
<table id="nodesTable" border="0" cellpadding="0" cellspacing="0" class="tableTop" align="center" >
|
||||
<tr id="headTr">
|
||||
<td class="color_top" width="6%" >
|
||||
<div style="display: inline-block;text-align: left" >
|
||||
<input type="checkbox" id="checkAll" name="checkAll" onclick="selectAllCheckBoxByName(this,'nodeCheckBoxName')" title="i18n_tsnang.text.selectAll_n81i"/>
|
||||
i18n_tsnang.text.index_n81i
|
||||
<br/>
|
||||
<input type="checkbox" id="checkInvert" name="checkInvert" onclick="invertSelect(this,'nodeCheckBoxName')" title="i18n_tsnang.text.reverse_n81i"/> i18n_tsnang.text.reverse_n81i
|
||||
</div>
|
||||
</td>
|
||||
<td class="color_top" width="7%">
|
||||
i18n_tsnang.text.nodeGroup_n81i
|
||||
</td>
|
||||
<td class="color_top" width="5%">
|
||||
i18n_tsnang.text.nodeIp_n81i
|
||||
</td>
|
||||
<td class="color_top" width="5%">
|
||||
i18n_tsnang.text.nodeType_n81i
|
||||
</td>
|
||||
<td class="color_top" width="5%">
|
||||
i18n_tsnang.text.operateSystem_n81i
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="endTr">
|
||||
<td colspan="5" height="35" class="color_6" align="center">
|
||||
i18n_tsnang.text.noRecord_n81i
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table id="noInDCTable" border="0" cellpadding="0" cellspacing="0" class="tableTop" align="center">
|
||||
<tr id="infoTit">
|
||||
<td colspan="4" align="left">i18n_tsnang.message.dcControlIp_n81i:</td>
|
||||
</tr>
|
||||
<tr id="infoTit">
|
||||
<td class="color_top" width="5%">
|
||||
i18n_tsnang.message.nodeName_n81i
|
||||
</td>
|
||||
<td class="color_top" width="5%">
|
||||
i18n_tsnang.text.nodeIp_n81i
|
||||
</td>
|
||||
<td class="color_top" width="7%">
|
||||
i18n_tsnang.text.nodeGroup_n81i
|
||||
</td>
|
||||
<td class="color_top" width="5%">
|
||||
i18n_tsnang.text.nodeType_n81i
|
||||
</td>
|
||||
<td class="color_top" width="5%">
|
||||
i18n_tsnang.text.operateSystem_n81i
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="right" class="td_1" >
|
||||
<span id="buttons_add">
|
||||
<input type="button" class=btn3_mouseout id="sub"
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
onclick="selectNodeGroupAndNode()" value="i18n_tsnang.button.submit_n81i"/>
|
||||
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
onclick="layclose()" value="i18n_tsnang.button.close_n81i"/>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
190
WebRoot/page/systemManage/nodeGroupManage/toSelectNodeGroup.jsp
Normal file
190
WebRoot/page/systemManage/nodeGroupManage/toSelectNodeGroup.jsp
Normal file
@@ -0,0 +1,190 @@
|
||||
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
|
||||
<%@ page import="nis.nms.core.*"%>
|
||||
<%@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_tsng.message.title_n81i</title>
|
||||
<link href="<c:url value='/css/nms.css'/>" type="text/css" rel="stylesheet" />
|
||||
<link href="<c:url value='/js//dtree/css/dtree.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/jquery.tools.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/dtree/js/dtree_checkbox_multi_choose.js"/>"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
//点击各节点触发的事件:dTree
|
||||
function onClickNodeGroup(id){
|
||||
//点击节点组标题时:若复选框当前选中,则取消选中,若当前未选中,则选中。可以通过点击标题多选
|
||||
var isChecked= jQuery("input[type='checkbox'][name='mkid'][value='"+id+"']").attr("checked");
|
||||
jQuery("input[type='checkbox'][name='mkid'][value='"+id+"']").attr("checked",!isChecked);
|
||||
}
|
||||
|
||||
//全选节点组,取消所有节点组
|
||||
function selectAllCheckBox(checkBox) {
|
||||
|
||||
var checks = document.getElementsByTagName("input");
|
||||
for(i=0;i<checks.length;i++) {
|
||||
if(checks[i].type=='checkbox'&&checks[i].disabled!=true) {
|
||||
checks[i].checked = checkBox.checked;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//过滤选择的节点组:只返回最底层的节点组的id,可能是多个,返回后关闭当前窗口
|
||||
function selectNodeGroup(){
|
||||
if(!isRigthCheck("mkid", "remove")){
|
||||
alert("i18n_tsng.message.selectOne_n81i");
|
||||
return;
|
||||
}else {
|
||||
var idsArray = getBottomNodeGroup();
|
||||
var ids = idsArray.join(',')
|
||||
var namesArray = getNameStrByArray(idsArray);
|
||||
var names = namesArray.join(',');
|
||||
window.opener.reciveNodeGroup(ids,names);
|
||||
window.close();
|
||||
}
|
||||
}
|
||||
|
||||
//过滤得到所选节点组中的最底层id
|
||||
function getBottomNodeGroup() {
|
||||
var allCheckedIds = $("input[type='checkbox'][name='mkid']:checked");
|
||||
for(var i=0;i<allCheckedIds.length;i++) {
|
||||
if(allCheckedIds[i].value!='null') {
|
||||
var parId = getPid(allCheckedIds[i].value);//得到父id
|
||||
while(parId!=0) {
|
||||
var index = getIndexOf(allCheckedIds,parId);//父id在数组中的下标
|
||||
if(index!=-1) {
|
||||
allCheckedIds[index].value = 'null';
|
||||
}
|
||||
parId = getPid(parId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var bottomNodeGroupIds = new Array;
|
||||
var count = 0;
|
||||
for(var k=0;k<allCheckedIds.length;k++) {
|
||||
if(allCheckedIds[k].value!='null') {
|
||||
bottomNodeGroupIds[count] = allCheckedIds[k].value;
|
||||
count++;
|
||||
}
|
||||
}
|
||||
return bottomNodeGroupIds;
|
||||
}
|
||||
|
||||
//得到父id
|
||||
function getPid(childId) {
|
||||
var tempValue = 'pid'+childId;
|
||||
var parId = document.getElementById(tempValue).value;
|
||||
return parId;
|
||||
}
|
||||
|
||||
//根据id数组,获得对应的name数组
|
||||
function getNameStrByArray(arr) {
|
||||
var tempNameArray = new Array();
|
||||
for(i=0;i<arr.length;i++) {
|
||||
tempNameArray[i] = getNameById(arr[i]);
|
||||
}
|
||||
return tempNameArray;
|
||||
}
|
||||
|
||||
//根据id得到name
|
||||
function getNameById(id) {
|
||||
var tempValue = 'name'+id;
|
||||
var name = document.getElementById(tempValue).value;
|
||||
return name;
|
||||
}
|
||||
|
||||
//判断value是否在arr数组中,如果在返回在数组中的下标,如果不在返回-1
|
||||
function getIndexOf(arr,parId) {
|
||||
var index = -1;
|
||||
for(var j=0;j<arr.length;j++) {
|
||||
if(parId==arr[j].value) {
|
||||
index = j;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return index;
|
||||
}
|
||||
|
||||
function resize(){
|
||||
//alert("document.listForm.dtree:"+document.all.dtree.style.height+";document.all.dtree.style.height:"+document.all.dtree.style.height);
|
||||
{document.all.dtree.style.height = document.all.dtree.style.height;}
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body >
|
||||
<form action="" name="listForm" id="listForm" method="post" >
|
||||
<div align="right">
|
||||
<span id="buttons_add">
|
||||
<input type="button" value="i18n_tsng.button.select_n81i"
|
||||
onclick="selectNodeGroup()"
|
||||
class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"/>
|
||||
<input type="button" value="i18n_tsng.button.close_n81i"
|
||||
onclick="window.close()"
|
||||
class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"/>
|
||||
</span>
|
||||
</div>
|
||||
<div class="middle_list1" id="maindiv" name="maindiv" style="overflow-y:auto;overflow-x:auto;height:560px;width:360px;">
|
||||
i18n_tsng.button.nodeGroup_n81i
|
||||
<br/>
|
||||
<br/>
|
||||
<div id="dtree" name="dtree">
|
||||
<script type="text/javascript">
|
||||
var checkedNodeGroup = ','+'${nodeGroupIds}'+',';//选中节点组的id
|
||||
d = new dTree('d','','');
|
||||
var systemName = '${system.systemName}'
|
||||
d.add('0','-1','<input type="checkbox" onclick="selectAllCheckBox(this)"/>'+systemName);
|
||||
<%
|
||||
List treeList = (List)request.getAttribute("treeList");
|
||||
List list = MakeTree.getAllResourceList(treeList);
|
||||
if(list != null && list.size() > 0){
|
||||
Resource resource = new Resource();
|
||||
for( int i = 0 ; i < list.size() ; i++ ){
|
||||
resource = (Resource) list.get(i);
|
||||
%>
|
||||
var reCode = '<%=resource.getRsCode()%>';//当前节点id
|
||||
var isChecked = " ";
|
||||
var nodeGoupId = ','+reCode+',';
|
||||
if(checkedNodeGroup.indexOf(nodeGoupId)>=0) {//说明当前节点组为选中的节点组
|
||||
isChecked = 'checked';
|
||||
}
|
||||
d.add(reCode,'<%=resource.getParRsCode()%>','<%=resource.getRsname()%>',isChecked,'javascript:onClickNodeGroup('+reCode+');');
|
||||
<%
|
||||
|
||||
}
|
||||
}
|
||||
%>
|
||||
document.write(d);
|
||||
</script>
|
||||
<c:forEach items="${nodeGroupList}" var="group" varStatus="vs">
|
||||
<input type="hidden" id="pid${group.groupId }" name="pid${group.groupId }" value="${group.parentGroupId}" />
|
||||
<input type="hidden" id="name${group.groupId }" name="name${group.groupId }" value="${group.groupName}" />
|
||||
</c:forEach>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
resize();
|
||||
</script>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
224
WebRoot/page/systemManage/nodegroup/addNodegroupInfo.jsp
Normal file
224
WebRoot/page/systemManage/nodegroup/addNodegroupInfo.jsp
Normal file
@@ -0,0 +1,224 @@
|
||||
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
|
||||
<%@ page import="nis.nms.core.*"%>
|
||||
<%@ 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_angi.message.title_n81i</title>
|
||||
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
|
||||
type="text/css" />
|
||||
<link href="<c:url value='/js//dtree/css/dtree.css'/>"
|
||||
rel="stylesheet" type="text/css" />
|
||||
<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-1.4.2.min.js'/>"></script>
|
||||
<script language="javascript" type="text/javascript"
|
||||
src="<c:url value='/js/dtree/js/dtree_checkbox.js'/>"></script>
|
||||
<script language="javascript" type="text/javascript"
|
||||
src="<c:url value='/js/jquery.tools.js'/>"></script>
|
||||
<script type="text/javascript">
|
||||
function add(){
|
||||
//去空格
|
||||
$("#groupName").val($.trim($("#groupName").val()));
|
||||
//验证不能空与长度限制
|
||||
if($id("groupName","","i18n_angi.text.groupName_n81i") && $("#groupName").checkByteLength(64,"i18n_angi.text.groupName_n81i") && $id("mkid","","i18n_angi.text.systemId_n81i")){
|
||||
if(jQuery("#viewLevel2").attr('checked')==true){
|
||||
if($("#usergroupId option").length<=1){
|
||||
alert('i18n_angi.message.noGroupBelong_n81i');
|
||||
return;
|
||||
}else if($("#usergroupId").val()==''){//$("#usergroupIdTmp option:selected").length<=0
|
||||
alert('i18n_angi.message.groupSelect_n81i');
|
||||
return;
|
||||
}
|
||||
}
|
||||
document.Ngform.action="<%=path%>/sysManage/nodeGroupManage.do?action=doAdd";
|
||||
document.Ngform.submit();
|
||||
}
|
||||
}
|
||||
|
||||
function goBack(){
|
||||
document.Ngform.action="<%=path%>/sysManage/nodeGroupManage.do?action=query";
|
||||
document.Ngform.submit();
|
||||
}
|
||||
|
||||
jQuery(function(){
|
||||
jQuery("td[id=usergroup]").hide();
|
||||
jQuery("td[id=viewLevel]").attr('colspan',3).addClass('color_6').removeClass('color_3');
|
||||
//-- 查看权限事件绑定
|
||||
jQuery("input[type=radio][name=nodeGroup.viewLevel]").click(function(){
|
||||
if(jQuery(this).val() == 2){ //用户组显示且必选
|
||||
jQuery("td[id=usergroup]").show();
|
||||
jQuery("td[id=viewLevel]").attr('colspan',1).addClass('color_3').removeClass('td_6');
|
||||
}else{ //用户组隐藏
|
||||
jQuery("td[id=usergroup]").hide();
|
||||
jQuery("#usergroupId").val("");
|
||||
jQuery("td[id=viewLevel]").attr('colspan',3).addClass('color_6').removeClass('color_3');
|
||||
}
|
||||
});
|
||||
})
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="middle_list">
|
||||
<form action="" name="Ngform" method="post">
|
||||
<input type="hidden" name="position" value="${position }" />
|
||||
<input type="hidden" name="pageNo" value="${pageNo }" />
|
||||
<input type="hidden" name="pageSize" value="${pageSize }" />
|
||||
<input type="hidden" name="nodeGroup.groupId"
|
||||
value="${nodeGroup.groupId }" />
|
||||
<input type="hidden" name="nameVo" id="nameVo" value="${nameVo }" />
|
||||
<input type="hidden" name="descVo" id="descVo" value="${descVo }" />
|
||||
<!-- <div class="box_1">
|
||||
<img src="<c:url value='/images/sanjiao.png'/>" class="img_middle" />
|
||||
你现在所在的位置是: 业务系统管理 -> 添加节点组
|
||||
</div> -->
|
||||
<div style="clear: both"></div>
|
||||
<table border="0" cellpadding="0" cellspacing="0" class="table">
|
||||
<tr>
|
||||
<td colspan="4" class="color_8">
|
||||
<strong>i18n_angi.text.title_n81i</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" width="20%" align="right">
|
||||
i18n_angi.text.groupName_n81i:
|
||||
</td>
|
||||
<td class="color_3" width="30%" align="left">
|
||||
<input type="text" name="nodeGroup.groupName" id="groupName" />
|
||||
<font color="red">* </font>
|
||||
</td>
|
||||
<td class="color_1" width="20%" align="right">
|
||||
i18n_angi.text.groupType_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left">
|
||||
<input type="radio" name="nodeGroup.groupType" id="groupType"
|
||||
value="0" checked />i18n_angi.message.groupType0_n81i
|
||||
<input type="radio" name="nodeGroup.groupType" id="groupType"
|
||||
value="1" />i18n_angi.message.groupType1_n81i
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_angi.text.systemId_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left">
|
||||
<c:if test="${ADMFlag eq true}" var="flag">
|
||||
<select name="mkid" id="mkid" >
|
||||
<option selected="selected" value="">
|
||||
i18n_angi.message.systemId_n81i
|
||||
</option>
|
||||
<c:if test="${fn:length(systemList)>0 }">
|
||||
<c:forEach items="${systemList }" var="system">
|
||||
<option value="${system.systemId }">
|
||||
${system.systemName }
|
||||
</option>
|
||||
</c:forEach>
|
||||
</c:if>
|
||||
</select>
|
||||
</c:if>
|
||||
<c:if test="${!flag}">
|
||||
<input type="hidden" name="mkid" id="mkid"
|
||||
value="${system.systemId }" />
|
||||
<input type="text" name="mkName" id="mkName"
|
||||
value="${system.systemName }" readonly
|
||||
/>
|
||||
</c:if>
|
||||
<font color="red">* </font>
|
||||
</td>
|
||||
<td class="color_1" align="right">
|
||||
i18n_angi.text.isValid_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left">
|
||||
<input type="radio" name="nodeGroup.isValid" id="isValid"
|
||||
value="1" checked />
|
||||
i18n_angi.message.isValid_n81i
|
||||
<input type="radio" name="nodeGroup.isValid" id="isValid"
|
||||
value="0" />
|
||||
<font color="red">i18n_angi.message.isValid_n81i</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_angi.text.viewLevel_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left" id="viewLevel">
|
||||
<input type="radio" name="nodeGroup.viewLevel" id="viewLevel1"
|
||||
value="1" checked="checked" />
|
||||
i18n_angi.message.publisher_n81i
|
||||
<input type="radio" name="nodeGroup.viewLevel" id="viewLevel2"
|
||||
value="2" />
|
||||
i18n_angi.message.publisherGroup_n81i
|
||||
<input type="radio" name="nodeGroup.viewLevel" id="viewLevel3"
|
||||
value="3" />
|
||||
i18n_angi.message.allInSys_n81i
|
||||
</td>
|
||||
<td class="color_1" align="right" id="usergroup">
|
||||
i18n_angi.text.usergroup_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left" id="usergroup">
|
||||
<select name="nodeGroup.createUsergroupId" id="usergroupId" >
|
||||
<option selected="selected" value="">
|
||||
i18n_angi.message.usergroup_n81i
|
||||
</option>
|
||||
<c:if test="${fn:length(allUserGroup)>0 }">
|
||||
<c:forEach items="${allUserGroup }" var="userG">
|
||||
<option value="${userG.jsbh }">
|
||||
${userG.jsmc }
|
||||
</option>
|
||||
</c:forEach>
|
||||
</c:if>
|
||||
</select>
|
||||
<font color="red">* </font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_angi.text.groupDesc_n81i:
|
||||
</td>
|
||||
<td class="color_6" colspan="3" align="left">
|
||||
<textarea rows="4" cols="80" name="nodeGroup.groupDesc"
|
||||
id="groupDesc" style="width: 360px" ></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_7" colspan="4" align="right">
|
||||
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
onclick="add()" value="i18n_angi.text.submit_n81i"/>
|
||||
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
onclick="javascript:document.forms['Ngform'].reset()"
|
||||
value="i18n_angi.text.reset_n81i"/>
|
||||
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
onclick="goBack()" value="i18n_angi.text.back_n81i"/>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
191
WebRoot/page/systemManage/nodegroup/detailNodegroupInfo.jsp
Normal file
191
WebRoot/page/systemManage/nodegroup/detailNodegroupInfo.jsp
Normal file
@@ -0,0 +1,191 @@
|
||||
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
|
||||
<%@ page import="nis.nms.core.*"%>
|
||||
<%@ 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_dngi.message.title_n81i</title>
|
||||
<link href="<c:url value='/css/nms.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 type="text/javascript">
|
||||
function goBack(){
|
||||
document.Nodeform.action="<%=path%>/sysManage/nodeGroupManage.do?action=query";
|
||||
document.Nodeform.submit();
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="middle_list">
|
||||
<form action="" name="Nodeform" method="post"
|
||||
style="margin: 0; padding: 0">
|
||||
<input type="hidden" name="position" value="${position }" />
|
||||
<input type="hidden" name="nameVo" id="nameVo" value="${nameVo }" />
|
||||
<input type="hidden" name="descVo" id="descVo" value="${descVo }" />
|
||||
<jsp:include page="/common/transferHiddenParameter.jsp" />
|
||||
|
||||
<div style="clear: both" />
|
||||
<table border="0" cellpadding="0" cellspacing="0" class="table">
|
||||
<tr>
|
||||
<td colspan="4" class="color_8">
|
||||
<strong>i18n_dngi.text.title_n81i</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right" width="20%">
|
||||
i18n_dngi.text.groupName_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left" width="30%">
|
||||
${nodeGroup.groupName }
|
||||
</td>
|
||||
<td class="color_1" align="right" width="20%">
|
||||
i18n_dngi.text.groupType_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left">
|
||||
<c:if test="${nodeGroup.groupType==0 }">i18n_dngi.message.groupType0_n81i</c:if>
|
||||
<c:if test="${nodeGroup.groupType==1 }">i18n_dngi.message.groupType1_n81i</c:if>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_dngi.text.viewLevel_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left">
|
||||
<c:if test="${nodeGroup.viewLevel==1 }">i18n_dngi.message.publisher_n81i</c:if>
|
||||
<c:if test="${nodeGroup.viewLevel==2 }">i18n_dngi.message.publisherGroup_n81i</c:if>
|
||||
<c:if test="${nodeGroup.viewLevel==3 }">i18n_dngi.message.allInSys_n81i</c:if>
|
||||
</td>
|
||||
<td class="color_1" align="right">
|
||||
i18n_dngi.text.isValid_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left">
|
||||
<c:if test="${nodeGroup.isValid==1 }">i18n_dngi.message.valid_n81i</c:if>
|
||||
<c:if test="${nodeGroup.isValid==0 }"><font color="red">i18n_dngi.message.invalid_n81i</font></c:if>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_dngi.text.systemId_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left">
|
||||
${nodeGroup.systemIdName }
|
||||
</td>
|
||||
<td class="color_1" align="right">
|
||||
i18n_dngi.text.createTime_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left">
|
||||
<fmt:formatDate value='${nodeGroup.groupCreatetime}' type='both' />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_dngi.text.userGroupIdName_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left">
|
||||
${nodeGroup.userGroupIdName }
|
||||
</td>
|
||||
<td class="color_1" align="right">
|
||||
i18n_dngi.text.groupDesc_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left">
|
||||
${nodeGroup.groupDesc }
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_9" colspan="4">
|
||||
<strong>i18n_dngi.text.nodeList_n81i</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" colspan="4">
|
||||
<table width="100%" align="center" border="0" cellpadding="0"
|
||||
cellspacing="0">
|
||||
<tr>
|
||||
<td width="4%" class="color_1">
|
||||
i18n_dngi.text.index_n81i
|
||||
</td>
|
||||
<td width="10%" class="color_1">
|
||||
i18n_dngi.text.nodeIp_n81i
|
||||
</td>
|
||||
<td width="15%" class="color_1">
|
||||
i18n_dngi.text.nodeName_n81i
|
||||
</td>
|
||||
<td width="20%" class="color_1">
|
||||
i18n_dngi.text.nodeDesc_n81i
|
||||
</td>
|
||||
<td width="12%" class="color_1">
|
||||
i18n_dngi.text.createTime_n81i
|
||||
</td>
|
||||
<td width="8%" class="color_7">
|
||||
i18n_dngi.text.nodeState_n81i
|
||||
</td>
|
||||
</tr>
|
||||
<c:choose>
|
||||
<c:when test="${fn:length(nodeList) > 0}">
|
||||
<c:forEach items="${nodeList}" var="node" varStatus="nodeVar">
|
||||
|
||||
<tr>
|
||||
<td class="color_3">
|
||||
${nodeVar.count}
|
||||
<br /></td>
|
||||
<td class="color_3">
|
||||
${node.nodeIp}
|
||||
<br /></td>
|
||||
<td class="color_3">
|
||||
${node.nodeName}
|
||||
<br /></td>
|
||||
<td class="color_3">
|
||||
<c:if test="${fn:length(node.nodeDesc)>16}">
|
||||
${fn:substring(node.nodeDesc,0,16) }...
|
||||
</c:if>
|
||||
<c:if test="${fn:length(node.nodeDesc)<=16}">
|
||||
${node.nodeDesc }
|
||||
</c:if>
|
||||
|
||||
<br /></td>
|
||||
<td class="color_3">
|
||||
<fmt:formatDate value="${node.nodeCreatetime}" type="both" />
|
||||
</td>
|
||||
<td class="color_6">
|
||||
<c:if test="${node.nodeState==0 }">i18n_dngi.message.nodeState0_n81i</c:if>
|
||||
<c:if test="${node.nodeState==1 }"><font color="red">i18n_dngi.message.nodeState1_n81i</font></c:if>
|
||||
</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<tr>
|
||||
<td colspan="7" height="20" align="center" class="color_6">
|
||||
i18n_dngi.text.noRecord_n81i
|
||||
</td>
|
||||
</tr>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_7" colspan="4" align="right">
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'" onclick="goBack()" value="i18n_dngi.text.back_n81i"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
87
WebRoot/page/systemManage/nodegroup/nodeMgmtList.jsp
Normal file
87
WebRoot/page/systemManage/nodegroup/nodeMgmtList.jsp
Normal file
@@ -0,0 +1,87 @@
|
||||
<%@ 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 + "/";
|
||||
%>
|
||||
<script>
|
||||
document.location.href= "<%=path%>/sysManage/nodeManage!executeAction.do?action=query&nodeGroupId=${nodeGroup.groupId }";
|
||||
</script>
|
||||
|
||||
<!--
|
||||
<!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>节点组信息</title>
|
||||
<link href="<c:url value='/css/nms.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 type="text/javascript">
|
||||
function goBack(){
|
||||
document.Nodeform.action="<%=path%>/sysManage/nodeGroupManage.do?action=query";
|
||||
document.Nodeform.submit();
|
||||
}
|
||||
|
||||
$(function(){
|
||||
$("#win").load(function(){
|
||||
$(this).height($(this).contents().height());
|
||||
});
|
||||
$(window).resize(function(){
|
||||
$("#win").height($("#win").contents().height());
|
||||
});
|
||||
})
|
||||
|
||||
function iLoad(){
|
||||
$("#win").height($("#win").contents().height());
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body onload="iLoad();">
|
||||
<div class="middle_list">
|
||||
<form action="" name="Nodeform" method="post"
|
||||
style="margin: 0; padding: 0">
|
||||
<input type="hidden" name="position" value="${position }" />
|
||||
<input type="hidden" name="pageNo" value="${pageNo }" />
|
||||
<input type="hidden" name="pageSize" value="${pageSize }" />
|
||||
<input type="hidden" name="nameVo" id="nameVo" value="${nameVo }" />
|
||||
<input type="hidden" name="descVo" id="descVo" value="${descVo }" />
|
||||
</form>
|
||||
<div style="clear: both" />
|
||||
<table border="0" cellpadding="0" cellspacing="0" class="table">
|
||||
<tr>
|
||||
<td class="color_8">
|
||||
<strong>${nodeGroup.groupName }下的节点管理</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_6" align="center">
|
||||
<iframe name="win" scrolling="no" width="100%"
|
||||
frameborder="0" marginwidth="0" id="win"
|
||||
src="${pageContext.request.contextPath }/sysManage/nodeManage!executeAction.do?action=query&nodeGroupId=${nodeGroup.groupId }">
|
||||
</iframe>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_7" colspan="4" align="right">
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'" onclick="goBack()"
|
||||
value="返回" />
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
-->
|
||||
246
WebRoot/page/systemManage/nodegroup/nodegroupInfoList.jsp
Normal file
246
WebRoot/page/systemManage/nodegroup/nodegroupInfoList.jsp
Normal file
@@ -0,0 +1,246 @@
|
||||
<%@ 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_ngil.message.title_n81i</title>
|
||||
<link href="<c:url value='/css/nms.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.suggest.js'/>"></script>
|
||||
<script type="text/javascript">
|
||||
var msg = '${MSG}';
|
||||
if(msg=='1'){
|
||||
alert("i18n_ngil.message.success_n81i");
|
||||
}else if(msg=='2'){
|
||||
alert("i18n_ngil.message.faild_n81i");
|
||||
}
|
||||
|
||||
//添加记录
|
||||
function addNodeGroup(){
|
||||
document.form3.action ="<%=path%>/sysManage/nodeGroupManage!executeAction.do?action=openAdd";
|
||||
document.form3.submit();
|
||||
}
|
||||
//修改记录
|
||||
function updateNodeGroup(){
|
||||
if(!isRigthCheck("ids", "edit")){
|
||||
alert("i18n_ngil.message.updateNodeGroup_n81i");
|
||||
}else{
|
||||
document.form3.action ="<%=path%>/sysManage/nodeGroupManage!executeAction.do?action=openUpdate";
|
||||
document.form3.submit();
|
||||
}
|
||||
}
|
||||
//停用
|
||||
function stopNodeGroup(){
|
||||
if(!isRigthCheck("ids", "remove")){
|
||||
alert("i18n_ngil.message.SelectOne_n81i");
|
||||
}else{//0是失效,1是生效
|
||||
if(isOperation("ids", 0)){//当前状态是0,不能停用操作
|
||||
alert('i18n_ngil.message.includeUnusingNode_n81i');
|
||||
}else{
|
||||
document.form3.action ="<%=path%>/sysManage/nodeGroupManage!executeAction.do?action=stop";
|
||||
document.form3.submit();
|
||||
}
|
||||
}
|
||||
}
|
||||
//启用
|
||||
function startNodeGroup(){
|
||||
if(!isRigthCheck("ids", "remove")){
|
||||
alert("i18n_ngil.message.SelectOne_n81i");
|
||||
}else{//0是失效,1是生效
|
||||
if(isOperation("ids", 1)){//当前状态是1,不能启用操作
|
||||
alert('i18n_ngil.message.startNodeGroup_n81i');
|
||||
}else{
|
||||
document.form3.action ="<%=path%>/sysManage/nodeGroupManage!executeAction.do?action=start";
|
||||
document.form3.submit();
|
||||
}
|
||||
}
|
||||
}
|
||||
//查询记录
|
||||
function qry(){
|
||||
document.form3.action = "<%=path%>/sysManage/nodeGroupManage.do?action=query";
|
||||
document.form3.submit();
|
||||
}
|
||||
//查看详情
|
||||
function showRecord(id){
|
||||
document.form3.action = "<%=path%>/sysManage/nodeGroupManage!executeAction.do?action=detail&nodeGroupId="+id;
|
||||
document.form3.submit();
|
||||
}
|
||||
//管理节点
|
||||
function nodeMgmt(){
|
||||
if(!isRigthCheck("ids", "edit")){
|
||||
alert("i18n_ngil.message.updateNodeGroup_n81i");
|
||||
}else{
|
||||
document.form3.action = "<%=path%>/sysManage/nodeGroupManage!executeAction.do?action=nodeMgmt";
|
||||
document.form3.submit();
|
||||
}
|
||||
}
|
||||
//parent.document.all("listFrame").style.height = document.body.scrollHeight + 16;
|
||||
|
||||
|
||||
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.document.getElementById("lianxiangStatus").value=="2")
|
||||
{
|
||||
if(jQuery.trim(ajaxValue1)=="") return false;
|
||||
|
||||
ajaxProperties = ajaxProperties1;
|
||||
ajaxTableName = ajaxTableName1;
|
||||
ajaxType = ajaxType1;
|
||||
id = id1;
|
||||
returnDiv = returnDiv1;
|
||||
|
||||
if(!containSpecial(ajaxValue1)){
|
||||
ajaxValue = ajaxValue1;
|
||||
}else{
|
||||
alert('i18n_ngil.message.inputInfo_n81i');
|
||||
$("#"+id).val('');
|
||||
return;
|
||||
}
|
||||
clearTimeout(set_Id);
|
||||
set_Id = setTimeout(ajaxForLianxiang,500);
|
||||
}
|
||||
}
|
||||
|
||||
function ajaxForLianxiang()
|
||||
{
|
||||
jQuery.post("<%=path%>/sysManage/sysPopedomManage!queryInfoForAjax.do",
|
||||
{"ajaxProperties":ajaxProperties,"ajaxTableName":ajaxTableName,"ajaxType":ajaxType,"ajaxValue":ajaxValue},function(data)
|
||||
{
|
||||
var lianxiangList = data.split(",");
|
||||
jQuery("#"+id).suggest(lianxiangList,{hot_list:lianxiangList,attachObject:"#"+returnDiv});
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="middle_list">
|
||||
<!--中间部分右边开始-->
|
||||
<form name=form3 id="frmArticleType"
|
||||
action="<c:url value='/sysManage/nodeGroupManage.do'/>"
|
||||
method="post">
|
||||
<input type="hidden" name="position" value="${position }" />
|
||||
<div class="box_1">
|
||||
i18n_ngil.text.groupName_n81i
|
||||
<input type="text" id="nameVo"
|
||||
onkeyup="lianxiangkeyup('groupName','NodegroupTable','String','groupName','suggest1',this.value);"
|
||||
name="nameVo" title="i18n_ngil.message.groupName_n81i" value="${nameVo}" size="20" />
|
||||
<div id='suggest1' class="ac_results"></div>
|
||||
|
||||
<div id='suggest2' class="ac_results"></div>
|
||||
<img src="<c:url value='/images/button_chaxun.png'/>"
|
||||
class="img_middle" onclick="javascript:qry();" />
|
||||
</div>
|
||||
|
||||
<div class="box_2">
|
||||
<c:if test="${ADMFlag ne true}">
|
||||
<jsp:include page="/include/include.jsp" />
|
||||
</c:if>
|
||||
</div>
|
||||
<table border="0" cellpadding="0" cellspacing="0" class="table">
|
||||
<tr>
|
||||
<td class="color_top" width="4%">
|
||||
<input type="checkbox" name="checkbox62" value="checkbox"
|
||||
onClick="checkAll(this)" ${ADMFlag ? "disabled='disabled'":""}/>
|
||||
i18n_ngil.text.index_n81i
|
||||
</td>
|
||||
<td class="color_top" width="10%">
|
||||
i18n_ngil.text.nodeGroup_n81i
|
||||
</td>
|
||||
<td class="color_top" width="10%">
|
||||
i18n_ngil.text.nodeGroupType_n81i
|
||||
</td>
|
||||
<td class="color_top" width="12%">
|
||||
i18n_ngil.text.viewLevel_n81i
|
||||
</td>
|
||||
<td class="color_top" width="8%">
|
||||
i18n_ngil.text.createTime_n81i
|
||||
</td>
|
||||
<td class="color_8" width="6%">
|
||||
i18n_ngil.text.state_n81i
|
||||
</td>
|
||||
</tr>
|
||||
<c:set var="index" value="${1}" />
|
||||
<c:choose>
|
||||
<c:when test="${fn:length(nodeGroupList) > 0}">
|
||||
<c:forEach items="${nodeGroupList}" var="group" varStatus="vs">
|
||||
<input type="hidden" id="yxbz${group.groupId }"
|
||||
name="yxbz${group.groupId }" value="${group.isValid}" />
|
||||
<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 }">
|
||||
<input type="checkbox" name="ids" id="ids"
|
||||
value="${group.groupId}" ${ADMFlag ? "disabled='disabled'":""}/>
|
||||
${index+(pageNo-1)*pageSize}
|
||||
</td>
|
||||
<td class="${color }">
|
||||
<a href="javascript:showRecord('${group.groupId }')">${group.groupName}</a>
|
||||
</td>
|
||||
<td class="${color }">
|
||||
<c:if test="${group.groupType==0 }">i18n_ngil.message.nodeGroupType0_n81i</c:if>
|
||||
<c:if test="${group.groupType==1 }">i18n_ngil.message.nodeGroupType1</c:if>
|
||||
</td>
|
||||
<td class="${color }">
|
||||
<c:if test="${group.viewLevel==1 }">i18n_ngil.message.publisher_n81i</c:if>
|
||||
<c:if test="${group.viewLevel==2 }">i18n_ngil.message.publisherGroup_n81i</c:if>
|
||||
<c:if test="${group.viewLevel==3 }">i18n_ngil.message.allInSys_n81i</c:if>
|
||||
</td>
|
||||
<td class="${color }">
|
||||
<fmt:formatDate value="${group.groupCreatetime}"
|
||||
pattern="yyyy-MM-dd HH:mm:ss" />
|
||||
</td>
|
||||
<td class="${color_end }">
|
||||
<c:if test="${group.isValid==1 }">i18n_ngil.message.isValid0_n81i</c:if>
|
||||
<c:if test="${group.isValid==0 }"><font color="red">i18n_ngil.message.isValid1_n81i</font></c:if>
|
||||
</td>
|
||||
</tr>
|
||||
<c:set var="index" value="${index + 1}" />
|
||||
</c:forEach>
|
||||
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<tr>
|
||||
<td colspan="6" height="35" class="color_6" align="center">
|
||||
i18n_ngil.text.noRecord_n81i
|
||||
</td>
|
||||
</tr>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</table>
|
||||
<c:if test="${!empty nodeGroupList}">
|
||||
<jsp:include page="/common/page.jsp" />
|
||||
</c:if>
|
||||
<!--中间部分右边结束-->
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
232
WebRoot/page/systemManage/nodegroup/updateNodegroupInfo.jsp
Normal file
232
WebRoot/page/systemManage/nodegroup/updateNodegroupInfo.jsp
Normal file
@@ -0,0 +1,232 @@
|
||||
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
|
||||
<%@ page import="nis.nms.core.*"%>
|
||||
<%@ 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_ungi.message.title_n81i</title>
|
||||
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
|
||||
type="text/css" />
|
||||
<link href="<c:url value='/js//dtree/css/dtree.css'/>"
|
||||
rel="stylesheet" type="text/css" />
|
||||
<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-1.4.2.min.js'/>"></script>
|
||||
<script language="javascript" type="text/javascript"
|
||||
src="<c:url value='/js/dtree/js/dtree_checkbox.js'/>"></script>
|
||||
<script language="javascript" type="text/javascript"
|
||||
src="<c:url value='/js/jquery.tools.js'/>"></script>
|
||||
<script type="text/javascript">
|
||||
function add(){
|
||||
//去空格
|
||||
$("#groupName").val($.trim($("#groupName").val()));
|
||||
//验证不能空与长度限制
|
||||
//验证不能空与长度限制
|
||||
if($id("groupName","","i18n_ungi.text.groupName_n81i") && $("#groupName").checkByteLength(64,"i18n_ungi.text.groupName_n81i") && $id("mkid","","i18n_ungi.text.systemId_n81i")){
|
||||
if(jQuery("#viewLevel2").attr('checked')==true){
|
||||
if($("#usergroupId option").length<=1){
|
||||
alert('i18n_ungi.message.noGroupBelong_n81i');
|
||||
return;
|
||||
}else if($("#usergroupId").val()==''){
|
||||
alert('i18n_ungi.message.selectGroup_n81i');
|
||||
return;
|
||||
}
|
||||
}
|
||||
document.Ngform.action="<%=path%>/sysManage/nodeGroupManage.do?action=doUpdate";
|
||||
document.Ngform.submit();
|
||||
}
|
||||
}
|
||||
|
||||
function goBack(){
|
||||
document.Ngform.action="<%=path%>/sysManage/nodeGroupManage.do?action=query";
|
||||
document.Ngform.submit();
|
||||
}
|
||||
|
||||
|
||||
jQuery(function(){
|
||||
if(jQuery("#viewLevel2").attr('checked')==true){
|
||||
jQuery("td[id=usergroup]").show();
|
||||
}else{
|
||||
jQuery("td[id=usergroup]").hide();
|
||||
jQuery("td[id=viewLevel]").attr('colspan',3).addClass('color_6').removeClass('color_3');
|
||||
}
|
||||
|
||||
//-- 查看权限事件绑定
|
||||
jQuery("input[type=radio][name=nodeGroup.viewLevel]").click(function(){
|
||||
if(jQuery(this).val() == 2){ //用户组显示且必选
|
||||
jQuery("td[id=usergroup]").show();
|
||||
jQuery("td[id=viewLevel]").attr('colspan',1).addClass('color_3').removeClass('td_6');
|
||||
}else{ //用户组隐藏
|
||||
jQuery("td[id=usergroup]").hide();
|
||||
jQuery("#usergroupId").val("");
|
||||
jQuery("td[id=viewLevel]").attr('colspan',3).addClass('color_6').removeClass('color_3');
|
||||
}
|
||||
});
|
||||
})
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="middle_list">
|
||||
<form action="" name="Ngform" method="post">
|
||||
<input type="hidden" name="position" value="${position }" />
|
||||
<input type="hidden" name="nodeGroup.groupId"
|
||||
value="${nodeGroup.groupId }" />
|
||||
<input type="hidden" name="nameVo" id="nameVo" value="${nameVo }" />
|
||||
<input type="hidden" name="descVo" id="descVo" value="${descVo }" />
|
||||
<jsp:include page="/common/transferHiddenParameter.jsp" />
|
||||
|
||||
<!-- <div class="box_1">
|
||||
<img src="<c:url value='/images/sanjiao.png'/>" class="img_middle" />
|
||||
你现在所在的位置是: 业务系统管理 -> 修改节点组
|
||||
</div> -->
|
||||
<div style="clear: both"></div>
|
||||
<table border="0" cellpadding="0" cellspacing="0" class="table">
|
||||
<tr>
|
||||
<td colspan="4" class="color_8">
|
||||
<strong>i18n_ungi.text.title_n81i</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" width="20%" align="right">
|
||||
i18n_ungi.text.groupName_n81i:
|
||||
</td>
|
||||
<td class="color_3" width="30%" align="left">
|
||||
<input type="text" name="nodeGroup.groupName" value="${nodeGroup.groupName }" id="groupName" />
|
||||
<font color="red">* </font>
|
||||
</td>
|
||||
<td class="color_1" width="20%" align="right">
|
||||
i18n_ungi.text.groupType_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left">
|
||||
<input type="radio" name="nodeGroup.groupType" id="groupType"
|
||||
value="0" <c:if test="${nodeGroup.groupType==0 }">checked</c:if> />i18n_ungi.message.groupType0_n81i
|
||||
<input type="radio" name="nodeGroup.groupType" id="groupType"
|
||||
value="1" <c:if test="${nodeGroup.groupType==1 }">checked</c:if>/>i18n_ungi.message.groupType1_n81i
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_ungi.text.systemId_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left">
|
||||
<c:if test="${ADMFlag eq true}" var="flag">
|
||||
<select name="mkid" id="mkid" >
|
||||
<option selected="selected" value="">
|
||||
i18n_ungi.message.systemId_n81i
|
||||
</option>
|
||||
<c:if test="${fn:length(systemList)>0 }">
|
||||
<c:forEach items="${systemList }" var="system">
|
||||
<option value="${system.systemId }" <c:if test="${system.systemId==nodeGroup.systemId }">selected</c:if>>
|
||||
${system.systemName }
|
||||
</option>
|
||||
</c:forEach>
|
||||
</c:if>
|
||||
</select>
|
||||
</c:if>
|
||||
<c:if test="${!flag}">
|
||||
<input type="hidden" name="mkid" id="mkid"
|
||||
value="${system.systemId }" />
|
||||
<input type="text" name="mkName" id="mkName"
|
||||
value="${system.systemName }" readonly
|
||||
/>
|
||||
</c:if>
|
||||
<font color="red">* </font>
|
||||
</td>
|
||||
<td class="color_1" align="right">
|
||||
i18n_ungi.text.isValid_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left">
|
||||
<input type="radio" name="nodeGroup.isValid" id="isValid"
|
||||
value="1" <c:if test="${nodeGroup.isValid==1 }">checked</c:if> />
|
||||
i18n_ungi.message.valid_n81i
|
||||
<input type="radio" name="nodeGroup.isValid" id="isValid"
|
||||
value="0" <c:if test="${nodeGroup.isValid==0 }">checked</c:if>/>
|
||||
<font color="red">i18n_ungi.message.invalid_n81i</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_ungi.text.viewLevel_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left" id="viewLevel">
|
||||
<input type="radio" name="nodeGroup.viewLevel" id="viewLevel1"
|
||||
value="1" <c:if test="${nodeGroup.viewLevel==1 }">checked</c:if> />
|
||||
i18n_ungi.message.publisher_n81i
|
||||
<input type="radio" name="nodeGroup.viewLevel" id="viewLevel2"
|
||||
value="2" <c:if test="${nodeGroup.viewLevel==2 }">checked</c:if> />
|
||||
i18n_ungi.message.publisherGroup_n81i
|
||||
<input type="radio" name="nodeGroup.viewLevel" id="viewLevel3"
|
||||
value="3" <c:if test="${nodeGroup.viewLevel==3 }">checked</c:if> />
|
||||
i18n_ungi.message.allInSys_n81i
|
||||
</td>
|
||||
<td class="color_1" align="right" id="usergroup">
|
||||
i18n_ungi.text.usergroup_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left" id="usergroup">
|
||||
<select name="nodeGroup.createUsergroupId" id="usergroupId" >
|
||||
<option value="">
|
||||
i18n_ungi.message.usergroup_n81i
|
||||
</option>
|
||||
<c:if test="${fn:length(allUserGroup)>0 }">
|
||||
<c:forEach items="${allUserGroup }" var="userG">
|
||||
<option value="${userG.jsbh }"
|
||||
<c:if test="${userG.jsbh==nodeGroup.createUsergroupId }">selected</c:if>>
|
||||
${userG.jsmc }
|
||||
</option>
|
||||
</c:forEach>
|
||||
</c:if>
|
||||
</select>
|
||||
<font color="red">* </font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_ungi.text.groupDesc_n81i:
|
||||
</td>
|
||||
<td class="color_6" colspan="3" align="left">
|
||||
<textarea rows="4" cols="80" name="nodeGroup.groupDesc"
|
||||
id="groupDesc" style="width: 360px" >${nodeGroup.groupDesc }</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_7" colspan="4" align="right">
|
||||
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
onclick="add()" value="i18n_ungi.button.submit_n81i"/>
|
||||
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
onclick="javascript:document.forms['Ngform'].reset()"
|
||||
value="i18n_ungi.button.reset_n81i"/>
|
||||
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
onclick="goBack()" value="i18n_ungi.button.back_n81i"/>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
249
WebRoot/page/systemManage/server/addServerInfo.jsp
Normal file
249
WebRoot/page/systemManage/server/addServerInfo.jsp
Normal file
@@ -0,0 +1,249 @@
|
||||
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
|
||||
<%@ page import="nis.nms.core.*"%>
|
||||
<%@ 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_asi.message.title_n81i</title>
|
||||
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" type="text/css" />
|
||||
<link href="<c:url value='/js//dtree/css/dtree.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 type="text/javascript">
|
||||
|
||||
|
||||
function ajaxCheck(){
|
||||
var type;
|
||||
$.ajax({
|
||||
url:"<%=path%>/serverManager/serverManager.do?action=AjaxCheck",
|
||||
type : "POST",
|
||||
async:false,
|
||||
data:$('#Mkform').serialize(),
|
||||
success : function(data) {
|
||||
if(data == "error"){
|
||||
alert("i18n_asi.message.hasIp_n81i");
|
||||
type = false;
|
||||
}else if(data == "exception"){
|
||||
alert("i18n_asi.message.faild_n81i");
|
||||
type = false;
|
||||
}else if(data =="success"){
|
||||
type = true;
|
||||
}
|
||||
}
|
||||
});
|
||||
return type;
|
||||
}
|
||||
|
||||
function add(){
|
||||
//去空格
|
||||
$("#serverName").val($.trim($("#serverName").val()));
|
||||
|
||||
//验证不能空与长度限制
|
||||
if($id("serverName","","i18n_asi.text.serverName_n81i")
|
||||
&& $("#serverDesc").checkByteLength(256,"i18n_asi.text.serverDesc_n81i")
|
||||
&& $id("serverIp","ip","i18n_asi.text.serverIp_n81i")){
|
||||
if(checkSpecial($("#serverName").val())){
|
||||
$("#serverName").next().html("i18n_asi.message.serverName_n81i");
|
||||
return;
|
||||
}
|
||||
if(ajaxCheck()){
|
||||
document.Mkform.action="<%=path%>/serverManager/serverManager.do?action=doAdd";
|
||||
document.Mkform.submit();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function goBack(){
|
||||
document.Mkform.action="<%=path%>/serverManager/serverManager.do?action=query";
|
||||
document.Mkform.submit();
|
||||
}
|
||||
//删除文件
|
||||
$("#del_file_span").live("click",function(){
|
||||
$(this).parent().remove();
|
||||
});
|
||||
var s=0;
|
||||
function addIpSegment(){
|
||||
var startIP = $.trim($("#startIP").val());
|
||||
var endIP = $.trim($("#endIP").val());
|
||||
$("#startIP").val(startIP);
|
||||
$("#endIP").val(endIP);
|
||||
if(!$id("startIP","ip1","i18n_asi.text.startIP_n81i")|| !$id("endIP","ip1","i18n_asi.text.endIP_n81i")){
|
||||
return false;
|
||||
}
|
||||
var startIPSplit =startIP.split(".");
|
||||
var endIPSplit =endIP.split(".");
|
||||
var startIPN = startIPSplit[0]*256*256*256
|
||||
+ startIPSplit[1]*256*256
|
||||
+ startIPSplit[2]*256
|
||||
+ startIPSplit[3]*1;
|
||||
var endIPN = endIPSplit[0]*256*256*256
|
||||
+ endIPSplit[1]*256*256
|
||||
+ endIPSplit[2]*256
|
||||
+ endIPSplit[3]*1;
|
||||
//alert("start:"+startIPN);
|
||||
//alert("end:"+endIPN);
|
||||
if(startIPN-endIPN>0){
|
||||
$("#ipInfo").html("i18n_asi.message.ipRang_n81i");
|
||||
return false;
|
||||
}else{
|
||||
$("#ipInfo").html("");
|
||||
}
|
||||
if(!ipSegmentCheck(startIPN,endIPN)){
|
||||
return false;
|
||||
}
|
||||
//var s = $("input[type='hidden'][name^=sisList]").size()/2;
|
||||
$("#configIp").prepend("<span ipns='"+startIPN+"' ipne='"+endIPN+"' title='"+startIP+" -- "+endIP+"'>"+startIP+" -- "+endIP+""
|
||||
+"<input type='hidden' name='sisList["+s+"].startIp' value='"+startIP+"' /><input type='hidden' name='sisList["+s+"].endIp' value='"+endIP+"' /><a id='del_file_span' href='#'>i18n_asi.message.delete_n81i</a><br /></span>");
|
||||
s++;
|
||||
return true;
|
||||
}
|
||||
|
||||
function ipSegmentCheck(startIPN,endIPN){
|
||||
var falg = true;
|
||||
$("#contrastIp>div>span").each(function(i,n){
|
||||
var ipns = $(n).attr("ipns");
|
||||
var ipne = $(n).attr("ipne");
|
||||
if(Number(startIPN) > Number(ipne) || Number(endIPN) < Number(ipns)){
|
||||
return true;
|
||||
}else{
|
||||
alert($(n).attr("title")+": i18n_asi.message.ipRepeat.and_n81i "+$(n).text()+"i18n_asi.message.ipRepeat_n81i");
|
||||
falg = false;
|
||||
return false;
|
||||
}
|
||||
});
|
||||
if(!falg){
|
||||
return false;
|
||||
}
|
||||
$("#configIp>span").each(function(i,n){
|
||||
var ipns = $(n).attr("ipns");
|
||||
var ipne = $(n).attr("ipne");
|
||||
if(Number(startIPN) > Number(ipne) || Number(endIPN) < Number(ipns)){
|
||||
return true;
|
||||
}else{
|
||||
alert("i18n_asi.message.ipRepeat.with_n81i"+$(n).attr("title")+"i18n_asi.message.ipRepeat_n81i");
|
||||
falg = false;
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
return falg;
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="middle_list">
|
||||
<div class="box_2">
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
onclick="goBack()" value="i18n_asi.button.back_n81i"/>
|
||||
</div>
|
||||
<form action="" name="Mkform" method="post" id="Mkform">
|
||||
<input type="hidden" name="position" value="${position }" />
|
||||
<input type="hidden" name="pageNo" value="${pageNo }" />
|
||||
<input type="hidden" name="pageSize" value="${pageSize }" />
|
||||
<div style="clear: both"></div>
|
||||
<table border="0" cellpadding="0" cellspacing="0" class="table">
|
||||
<tr>
|
||||
<td colspan="2" class="color_8">
|
||||
<strong>i18n_asi.text.title_n81i</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" width="30%" align="right">
|
||||
i18n_asi.text.serverName_n81i:
|
||||
</td>
|
||||
<td class="color_6" width="70%" align="left">
|
||||
<input type="text" name="serverTable.serverName" id="serverName" style="width: 155px;"/>
|
||||
<font color="red">*</font>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_asi.text.serverDesc_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left">
|
||||
<textarea rows="5" cols="17" id="serverDesc" name="serverTable.serverDesc" ></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_asi.text.serverIp_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left">
|
||||
<input type="text" name="serverTable.serverIp" value="" id="serverIp" style="width: 155px;" />
|
||||
<font color="red">*</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_asi.text.configIp_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left">
|
||||
<table border="1" class="table1">
|
||||
<tr>
|
||||
<th width="550px" align="center">i18n_asi.message.configIp_n81i</th>
|
||||
<th align="center">i18n_asi.message.getIp_n81i</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id="configIp" valign="top">
|
||||
<input type="text" id ="startIP" name="startIP" size="14"/>
|
||||
<font color="red"></font> --
|
||||
<input type="text" id ="endIP" name="endIP" size="14" />
|
||||
<font color="red"></font>
|
||||
<input type="button" value="i18n_asi.button.add_n81i" onclick="addIpSegment()" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'" />
|
||||
<font color="red" id="ipInfo"></font>
|
||||
</td>
|
||||
<td id="contrastIp" align="center" valign="top">
|
||||
<div>
|
||||
<c:forEach items="${objsList}" var="obj" varStatus="vs">
|
||||
<span id="${obj[0] }" title="${obj[2] } ${obj[3]==0 ? "i18n_asi.message.state0_n81i" : "i18n_asi.message.state1_n81i" }" sid="${obj[1] }" ipns="${obj[5] }" ipne="${obj[7] }">${obj[4] } -- ${obj[6] }</span><br />
|
||||
</c:forEach>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_7" colspan="2" align="right">
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'" onclick="add()"
|
||||
value="i18n_asi.button.submit_n81i"/>
|
||||
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
onclick="javascript:document.forms['Mkform'].reset()"
|
||||
value="i18n_asi.button.reset_n81i"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
99
WebRoot/page/systemManage/server/detailServerInfo.jsp
Normal file
99
WebRoot/page/systemManage/server/detailServerInfo.jsp
Normal file
@@ -0,0 +1,99 @@
|
||||
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
|
||||
<%@ page import="nis.nms.core.*"%>
|
||||
<%@ 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_dsi.message.title_n81i</title>
|
||||
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" type="text/css" />
|
||||
<link href="<c:url value='/js//dtree/css/dtree.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/dtree/js/dtree_checkbox.js'/>"></script>
|
||||
<script language="javascript" type="text/javascript" src="<c:url value='/js/jquery.tools.js'/>"></script>
|
||||
<script type="text/javascript">
|
||||
function goBack(){
|
||||
document.Mkform.action="<%=path%>/serverManager/serverManager.do?action=query";
|
||||
document.Mkform.submit();
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="middle_list">
|
||||
<div class="box_2">
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
onclick="goBack()" value="i18n_dsi.button.back_n81i"/>
|
||||
</div>
|
||||
<form action="" name="Mkform" method="post">
|
||||
<input type="hidden" name="position" value="${position }" />
|
||||
<input type="hidden" name="serverTable.id" value="${serverTable.id }" />
|
||||
<input type="hidden" name="pageNo" value="${pageNo }" />
|
||||
<input type="hidden" name="pageSize" value="${pageSize }" />
|
||||
<div style="clear: both"></div>
|
||||
<table border="0" cellpadding="0" cellspacing="0" class="table">
|
||||
<tr>
|
||||
<td colspan="2" class="color_8">
|
||||
<strong>i18n_dsi.text.title_n81i</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" width="30%" align="right">
|
||||
i18n_dsi.text.serverName_n81i:
|
||||
</td>
|
||||
<td class="color_6" width="70%" align="left">
|
||||
${serverTable.serverName }
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_dsi.text.serverDesc_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left">
|
||||
<c:out value="${serverTable.serverDesc }"></c:out>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_dsi.text.serverIp_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left">
|
||||
${serverTable.serverIp }
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_dsi.text.serverState_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left">
|
||||
${serverTable.serverState eq 0? "i18n_dsi.message.serverState0_n81i":"i18n_dsi.message.serverState1_n81i" }
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_dsi.text.configIp_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left">
|
||||
<c:forEach items="${objsList }" var="obj" varStatus="vs">
|
||||
<span id="${obj[0] }" sid="${obj[1] }" ipns="${obj[5] }" ipne="${obj[7] }" title='${obj[4] } -- ${obj[6] }' flag="1" >${obj[4] } -- ${obj[6] }<br /></span>
|
||||
</c:forEach>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
503
WebRoot/page/systemManage/server/serverInfoList.jsp
Normal file
503
WebRoot/page/systemManage/server/serverInfoList.jsp
Normal file
@@ -0,0 +1,503 @@
|
||||
<%@ 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_serverinfo.message.title_n81i</title>
|
||||
<link href="<c:url value='/css/nms.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.suggest.js'/>"></script>
|
||||
<script language="javascript" type="text/javascript"
|
||||
src="<c:url value="/js/fileInput.js"/>"></script>
|
||||
<script language="javascript" type="text/javascript"
|
||||
src="<c:url value="/js/fileInput.js"/>"></script>
|
||||
<style type="text/css">
|
||||
.mydiv {
|
||||
background-color:#fff;
|
||||
border: 1px solid #000;
|
||||
text-align: center;
|
||||
line-height: 40px;
|
||||
font-size: 12px;
|
||||
font-weight: bold;
|
||||
z-index:99;
|
||||
width: 220px;
|
||||
height: 80px;
|
||||
left:50%;/*FF IE7*/
|
||||
top: 50%;/*FF IE7*/
|
||||
|
||||
margin-left:-150px!important;/*FF IE7 该值为本身宽的一半 */
|
||||
margin-top:-60px!important;/*FF IE7 该值为本身高的一半*/
|
||||
|
||||
margin-top:0px;
|
||||
|
||||
position:fixed!important;/*FF IE7*/
|
||||
position:absolute;/*IE6*/
|
||||
|
||||
_top: expression(eval(document.compatMode &&
|
||||
document.compatMode=='CSS1Compat') ?
|
||||
documentElement.scrollTop + (document.documentElement.clientHeight-this.offsetHeight)/2 :/*IE6*/
|
||||
document.body.scrollTop + (document.body.clientHeight - this.clientHeight)/2);/*IE5 IE5.5*/
|
||||
|
||||
}
|
||||
|
||||
|
||||
.bg {
|
||||
background-color: #ccc;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
left:0;
|
||||
top:0;/*FF IE7*/
|
||||
filter:alpha(opacity=50);/*IE*/
|
||||
opacity:0.5;/*FF*/
|
||||
z-index:1;
|
||||
|
||||
position:fixed!important;/*FF IE7*/
|
||||
position:absolute;/*IE6*/
|
||||
|
||||
_top: expression(eval(document.compatMode &&
|
||||
document.compatMode=='CSS1Compat') ?
|
||||
documentElement.scrollTop + (document.documentElement.clientHeight-this.offsetHeight)/2 :/*IE6*/
|
||||
document.body.scrollTop + (document.body.clientHeight - this.clientHeight)/2);/*IE5 IE5.5*/
|
||||
|
||||
}
|
||||
/*The END*/
|
||||
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
var msg = '${MSG}';
|
||||
if(msg=='1'){
|
||||
alert("i18n_serverinfo.message.success_n81i");
|
||||
}else if(msg=='2'){
|
||||
alert("i18n_serverinfo.message.faild_n81i");
|
||||
}
|
||||
|
||||
//添加记录
|
||||
function openAdd(){
|
||||
document.form3.action ="<%=path%>/serverManager/serverManager!executeAction.do?action=openAdd&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }';
|
||||
document.form3.submit();
|
||||
}
|
||||
//修改记录
|
||||
function openUpdate(){
|
||||
if(!isRigthCheck("ids", "edit")){
|
||||
alert("i18n_serverinfo.message.selectOne_n81i");
|
||||
}else{
|
||||
document.form3.action ="<%=path%>/serverManager/serverManager!executeAction.do?action=openUpdate&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }';
|
||||
document.form3.submit();
|
||||
}
|
||||
}
|
||||
//停用
|
||||
function stopServer(){
|
||||
if(!isRigthCheck("ids", "remove")){
|
||||
alert("i18n_serverinfo.message.selectOne_n81i");
|
||||
}else{//0 启用状态,1 停用状态
|
||||
if(isOperation("ids", 1)){//当前状态是1,不能停用操作
|
||||
alert('i18n_serverinfo.message.includeStop_n81i');
|
||||
}else{
|
||||
document.form3.action ="<%=path%>/serverManager/serverManager!executeAction.do?action=stop";
|
||||
document.form3.submit();
|
||||
}
|
||||
}
|
||||
}
|
||||
//启用
|
||||
function startServer(){
|
||||
if(!isRigthCheck("ids", "remove")){
|
||||
alert("i18n_serverinfo.message.selectOne_n81i");
|
||||
}else{//0 启用状态,1 停用状态
|
||||
if(isOperation("ids", 0)){//当前状态是0,不能启用操作
|
||||
alert('i18n_serverinfo.message.includeStart_n81i');
|
||||
}else{
|
||||
document.form3.action ="<%=path%>/serverManager/serverManager!executeAction.do?action=start";
|
||||
document.form3.submit();
|
||||
}
|
||||
}
|
||||
}
|
||||
//查询记录
|
||||
function qry(){
|
||||
document.form3.action = "<%=path%>/serverManager/serverManager.do?action=query";
|
||||
document.form3.submit();
|
||||
}
|
||||
//查看详情
|
||||
function showRecord(sysid){
|
||||
document.form3.action = "<%=path%>/serverManager/serverManager!executeAction.do?action=detail&serverId="+sysid+"&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }';
|
||||
document.form3.submit();
|
||||
}
|
||||
|
||||
//parent.document.all("listFrame").style.height = document.body.scrollHeight + 16;
|
||||
|
||||
|
||||
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.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_serverinfo.message.inputInfo_n81i');
|
||||
$("#"+id).val('');
|
||||
return;
|
||||
}
|
||||
clearTimeout(set_Id);
|
||||
set_Id = setTimeout(ajaxForLianxiang,500);
|
||||
}
|
||||
}
|
||||
|
||||
function ajaxForLianxiang()
|
||||
{
|
||||
jQuery.post("<%=path%>/sysManage/sysPopedomManage!queryInfoForAjax.do",
|
||||
{"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+
|
||||
}
|
||||
}
|
||||
}
|
||||
// 程辉 2013-5-8 新增 模板下载
|
||||
function downloadExample() {
|
||||
document.form3.action = "<%=path%>/serverManager/serverManager.do?action=downloadExample";
|
||||
document.form3.submit();
|
||||
document.form3.action = "<%=path%>/serverManager/serverManager.do?action=query";
|
||||
}
|
||||
|
||||
//程辉 2013-5-8 新增 导入
|
||||
function importXls() {
|
||||
var myfileVal = document.getElementById("myFile").value;
|
||||
if(myfileVal=="") {
|
||||
alert("i18n_serverinfo.message.selectFile_n81i");
|
||||
}else if((myfileVal.lastIndexOf(".xlsx")+5)!=myfileVal.length && (myfileVal.lastIndexOf(".xls")+4)!=myfileVal.length){
|
||||
alert("i18n_serverinfo.message.selectFileType_n81i");
|
||||
}else if(confirm('i18n_serverinfo.message.isImport_n81i')){
|
||||
document.form3.action = "<%=path%>/serverManager/serverManager.do?action=importXls";
|
||||
document.form3.submit();
|
||||
document.form3.action = "<%=path%>/serverManager/serverManager.do?action=query";
|
||||
}
|
||||
}
|
||||
//程辉 2013-5-8 新增 导出当前页
|
||||
function emportCurrentXls() {
|
||||
document.form3.action = "<%=path%>/serverManager/serverManager.do?action=emportCurrentXls&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }'+"&sn="+$("#serverName").val()+"&si="+$("#serverIp").val();
|
||||
document.form3.submit();
|
||||
closeDiv();
|
||||
document.form3.action = "<%=path%>/serverManager/serverManager.do?action=query";
|
||||
}
|
||||
//程辉 2013-5-8 新增 导出全部
|
||||
function emportAllXls() {
|
||||
document.form3.action = "<%=path%>/serverManager/serverManager.do?action=emportAllXls&sn="+$("#serverName").val()+"&si="+$("#serverIp").val();
|
||||
document.form3.submit();
|
||||
closeDiv();
|
||||
document.form3.action = "<%=path%>/serverManager/serverManager.do?action=query";
|
||||
}
|
||||
function showDiv(){
|
||||
document.getElementById('popDiv').style.display='block';
|
||||
document.getElementById('bg').style.display='block';
|
||||
}
|
||||
|
||||
function closeDiv(){
|
||||
document.getElementById('popDiv').style.display='none';
|
||||
document.getElementById('bg').style.display='none';
|
||||
}
|
||||
function showDiv1(serverid){
|
||||
$("#updateServerID").val(serverid);
|
||||
document.getElementById('popDiv1').style.display='block';
|
||||
document.getElementById('bg').style.display='block';
|
||||
}
|
||||
|
||||
function closeDiv1(){
|
||||
document.getElementById('popDiv1').style.display='none';
|
||||
document.getElementById('bg').style.display='none';
|
||||
}
|
||||
// 程辉 2013-5-8 新增 模板下载 update
|
||||
function downloadExampleUpdate() {
|
||||
document.form3.action = "<%=path%>/serverManager/serverManager.do?action=downloadExampleUpdate";
|
||||
document.form3.submit();
|
||||
}
|
||||
// 程辉 2013-5-8 新增导出 update
|
||||
function emportXlsUpdate() {
|
||||
document.form3.action = "<%=path%>/serverManager/serverManager.do?action=emportXlsUpdate";
|
||||
document.form3.submit();
|
||||
}
|
||||
//程辉 2013-5-8 新增 增量导入 update
|
||||
function importXlsAdd() {
|
||||
var myfileVal = document.getElementById("myFileUpdate"+$("#updateServerID").val()).value;
|
||||
if(myfileVal=="") {
|
||||
alert("i18n_serverinfo.message.selectFile1_n81i");
|
||||
}else if((myfileVal.lastIndexOf(".xlsx")+5)!=myfileVal.length && (myfileVal.lastIndexOf(".xls")+4)!=myfileVal.length){
|
||||
alert("i18n_serverinfo.message.selectFileType1_n81i");
|
||||
}else if(confirm('i18n_serverinfo.message.isImport1_n81i')){
|
||||
document.form3.action = "<%=path%>/serverManager/serverManager.do?action=importXlsUpdate&serverId="+$("#updateServerID").val()+"&operate=add";
|
||||
document.form3.submit();
|
||||
}
|
||||
}
|
||||
//程辉 2013-5-8 新增 全量导入 update
|
||||
function importXlsAll() {
|
||||
var myfileVal = document.getElementById("myFileUpdate"+$("#updateServerID").val()).value;
|
||||
if(myfileVal=="") {
|
||||
alert("i18n_serverinfo.message.selectFile1_n81i");
|
||||
}else if((myfileVal.lastIndexOf(".xlsx")+5)!=myfileVal.length && (myfileVal.lastIndexOf(".xls")+4)!=myfileVal.length){
|
||||
alert("i18n_serverinfo.message.selectFileType1_n81i");
|
||||
}else if(confirm('i18n_serverinfo.message.isImport1_n81i')){
|
||||
document.form3.action = "<%=path%>/serverManager/serverManager.do?action=importXlsUpdate&serverId="+$("#updateServerID").val()+"&operate=all";
|
||||
document.form3.submit();
|
||||
}
|
||||
}
|
||||
$(function(){
|
||||
var dh = document.body.clientHeight;
|
||||
var dhh = dh-60+"px;";
|
||||
var tableHeight = $("#info").height();
|
||||
if(tableHeight > dh-60){
|
||||
$("#maindiv").attr("style","clear:both;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","clear:both;margin-left:6px;overflow-y:auto;overflow-x:auto;width:98%;font-size:12px;height: "+dhh);
|
||||
$("#info").attr("style","width:100%;");
|
||||
}
|
||||
// $("#maindiv").attr("style","clear:left");
|
||||
$("#info").floatHeaderDiv();
|
||||
});
|
||||
|
||||
window.onresize = function(){
|
||||
$("#info").floatHeader();//用于浏览器调整大小后 列表表头自动适应
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="middle_list" style="overflow: hidden;">
|
||||
<!--中间部分右边开始-->
|
||||
<form name=form3 id="frmArticleType"
|
||||
action="<c:url value='/serverManager/serverManager.do?action=query'/>" method="post" enctype="multipart/form-data">
|
||||
<div id="divTop">
|
||||
<div class="box_1">
|
||||
<label class="divTopText"><font class="selectText">i18n_serverinfo.text.serverName_n81i</font>
|
||||
<input type="text" id="serverName"
|
||||
onkeyup="lianxiangkeyup('serverName','ServerTable','String','serverName','suggest1',this.value);"
|
||||
name="sn" title="i18n_serverinfo.message.serverName_n81i" value="${sn}" size="20" />
|
||||
<div id='suggest1' class="ac_results"></div></label>
|
||||
<label class="divTopText"><font class="selectText">i18n_serverinfo.text.serverIp_n81i</font>
|
||||
<input type="text" id="serverIp"
|
||||
onkeyup="lianxiangkeyup('serverIp','ServerTable','String','serverIp','suggest2',this.value);"
|
||||
name="si" title="i18n_serverinfo.message.serverIp_n81i" value="${si}" size="20" />
|
||||
<div id='suggest2' class="ac_results"></div></label>
|
||||
<img src="<c:url value='/images/button_chaxun.png'/>"
|
||||
class="img_middle2" onclick="javascript:qry();" />
|
||||
</div>
|
||||
<div class="box_2">
|
||||
<!-- 程辉 2013-4-27 新增 begin-->
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
onclick="javascript:downloadExample();" value="i18n_serverinfo.button.downloadExample_n81i"/>
|
||||
|
||||
|
||||
<input type="button" value="i18n_serverinfo.text.importXls_n81i" title="i18n_serverinfo.text.importXls_n81i" class="btn3_mouseout" onclick="javascript:uploadFile(this)"/>
|
||||
<input type="file" name="myFile" id="myFile" value="" class="filebtn" onchange="javascript:setValue(this.value)"/>
|
||||
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
onclick="javascript:importXls();" value="i18n_serverinfo.button.importXls_n81i"/>
|
||||
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
onclick="javascript:showDiv();" value="i18n_serverinfo.button.showDiv_n81i"/>
|
||||
|
||||
<!-- 程辉 2013-4-27 新增 end-->
|
||||
<jsp:include page="/include/include.jsp" />
|
||||
</div>
|
||||
</div>
|
||||
<div id="maindiv">
|
||||
<table border="0" cellpadding="0" cellspacing="0" class="table" id="info">
|
||||
<tr>
|
||||
<td class="color_top" width="4%">
|
||||
<input type="checkbox" name="checkbox62" value="checkbox"
|
||||
onClick="checkAll(this)" />
|
||||
i18n_serverinfo.text.index_n81i
|
||||
</td>
|
||||
<td class="color_top" width="12%">
|
||||
i18n_serverinfo.text.serverName_n81i
|
||||
</td>
|
||||
<td class="color_top" width="12%">
|
||||
i18n_serverinfo.message.serverIp_n81i
|
||||
</td>
|
||||
<td class="color_top" width="12%">
|
||||
i18n_serverinfo.text.createTime_n81i
|
||||
</td>
|
||||
<td class="color_top" width="4%">
|
||||
i18n_serverinfo.text.isOnline_n81i
|
||||
</td>
|
||||
<td class="color_top" width="18%">
|
||||
i18n_serverinfo.text.configIp_n81i
|
||||
</td>
|
||||
</tr>
|
||||
<c:set var="index" value="${1}" />
|
||||
<c:choose>
|
||||
<c:when test="${fn:length(stList) > 0}">
|
||||
<c:forEach items="${stList}" var="st" varStatus="vs">
|
||||
<input type="hidden" id="yxbz${st.id }"
|
||||
name="yxbz${st.id }" value="${st.serverState}" />
|
||||
<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 }">
|
||||
<input type="checkbox" name="ids" id="ids"
|
||||
value="${st.id}" />
|
||||
${index+(pageNo-1)*pageSize}
|
||||
</td>
|
||||
<td class="${color }">
|
||||
<a href="javascript:showRecord('${st.id }')">${st.serverName}</a>
|
||||
</td>
|
||||
<td class="${color }">
|
||||
${st.serverIp}
|
||||
</td>
|
||||
<td class="${color }">
|
||||
<fmt:formatDate value="${st.createTime}" type="both" />
|
||||
</td>
|
||||
<td class="${color }">
|
||||
<c:if test="${st.serverState=='0' }">i18n_serverinfo.message.Y_n81i</c:if>
|
||||
<c:if test="${st.serverState=='1' }"><font color="red">i18n_serverinfo.message.N_n81i</font></c:if>
|
||||
</td>
|
||||
<td class="${color_end }">
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
onclick="javascript:downloadExampleUpdate();" value="i18n_serverinfo.button.downloadExampleUpdate_n81i"/>
|
||||
|
||||
<input type="button" value="i18n_entip1.message.selectFile_n81i" title="i18n_entip1.message.selectFile_n81i" class="btn3_mouseout" onclick="javascript:uploadFile(this)"/>
|
||||
<input type="file" name="myFileUpdate" id="myFileUpdate${st.id}" value="" class="filebtn" onchange="javascript:setValue(this.value)"/>
|
||||
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
onclick="javascript:showDiv1(${st.id});" value="i18n_serverinfo.button.showDiv1_n81i"/>
|
||||
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
onclick="javascript:emportXlsUpdate();" value="i18n_serverinfo.button.emportXlsUpdate_n81i"/>
|
||||
</td>
|
||||
</tr>
|
||||
<c:set var="index" value="${index + 1}" />
|
||||
</c:forEach>
|
||||
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<tr>
|
||||
<td colspan="6" height="35" class="color_6" align="center">
|
||||
i18n_serverinfo.text.noRecord_n81i
|
||||
</td>
|
||||
</tr>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</table>
|
||||
</div>
|
||||
<c:if test="${!empty stList}">
|
||||
<div id="divBoot">
|
||||
<jsp:include page="/common/page.jsp" />
|
||||
</div>
|
||||
</c:if>
|
||||
<!--中间部分右边结束-->
|
||||
</form>
|
||||
</div>
|
||||
<div id="popDiv" class="mydiv" style="display:none;">
|
||||
<input type="hidden" />
|
||||
<input type="button" class=btn3_mouseout style="width:100px;"
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
onclick="javascript:emportCurrentXls();" value="i18n_serverinfo.button.emportCurrentXls_n81i"/>
|
||||
|
||||
<input type="button" class=btn3_mouseout style="width:80px;"
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
onclick="javascript:emportAllXls();" value="i18n_serverinfo.button.emportAllXls_n81i"/>
|
||||
<br/>
|
||||
<a href="javascript:closeDiv()">i18n_serverinfo.text.closeWindow_n81i</a></div>
|
||||
|
||||
<div id="bg" class="bg" style="display:none;"></div>
|
||||
<div id="popDiv1" class="mydiv" style="display:none;">
|
||||
<input type="hidden" name="updateServerID" id="updateServerID" value="" />
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
onclick="javascript:importXlsAdd();" value="i18n_serverinfo.button.importXlsAdd_n81i"/>
|
||||
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
onclick="javascript:importXlsAll();" value="i18n_serverinfo.button.importXlsAll_n81i"/>
|
||||
<br/>
|
||||
<a href="javascript:closeDiv1()">i18n_serverinfo.text.closeWindow_n81i</a></div>
|
||||
</body>
|
||||
</html>
|
||||
293
WebRoot/page/systemManage/server/updateServerInfo.jsp
Normal file
293
WebRoot/page/systemManage/server/updateServerInfo.jsp
Normal file
@@ -0,0 +1,293 @@
|
||||
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
|
||||
<%@ page import="nis.nms.core.*"%>
|
||||
<%@ 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_upserver.message.title_n81i</title>
|
||||
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" type="text/css" />
|
||||
<link href="<c:url value='/js//dtree/css/dtree.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/dtree/js/dtree_checkbox.js'/>"></script>
|
||||
<script language="javascript" type="text/javascript" src="<c:url value='/js/jquery.tools.js'/>"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
function checkUpdate(){
|
||||
var type;
|
||||
$.ajax({
|
||||
url:"<%=path%>/serverManager/serverManager.do?action=checkUpdate",
|
||||
type : "POST",
|
||||
async:false,
|
||||
data:$('#Mkform').serialize(),
|
||||
success : function(data) {
|
||||
if(data == "error"){
|
||||
alert("i18n_upserver.message.repeat_n81i");
|
||||
type = false;
|
||||
}else if(data == "exception"){
|
||||
alert("i18n_upserver.message.faild_n81i");
|
||||
type = false;
|
||||
}else if(data =="success"){
|
||||
type = true;
|
||||
}
|
||||
}
|
||||
});
|
||||
return type;
|
||||
}
|
||||
|
||||
function add(){
|
||||
//去空格
|
||||
$("#serverName").val($.trim($("#serverName").val()));
|
||||
|
||||
//验证不能空与长度限制
|
||||
if($id("serverName","","i18n_upserver.text.serverName_n81i")
|
||||
&& $("#serverDesc").checkByteLength(256,"i18n_upserver.text.serverDesc_n81i")
|
||||
&& $id("serverIp","ip","i18n_upserver.text.serverIp_n81i")){
|
||||
if(checkSpecial($("#serverName").val())){
|
||||
$("#serverName").next().html("i18n_upserver.message.serverName_n81i");
|
||||
$("#serverName").val($("#sn").val());
|
||||
return;
|
||||
}
|
||||
if(checkUpdate()){
|
||||
document.Mkform.action="<%=path%>/serverManager/serverManager.do?action=doUpdate";
|
||||
document.Mkform.submit();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function resetmy(){
|
||||
document.Mkform.action="<%=path%>/serverManager/serverManager.do?action=openUpdate";
|
||||
document.Mkform.submit();
|
||||
}
|
||||
|
||||
function goBack(){
|
||||
document.Mkform.action="<%=path%>/serverManager/serverManager.do?action=query";
|
||||
document.Mkform.submit();
|
||||
}
|
||||
//删除文件
|
||||
$("#del_file_span").live("click",function(){
|
||||
var $span = $(this).parent();
|
||||
if($span.attr("flag")==1){
|
||||
//jQuery.post("<%=path%>/serverManager/serverManager.do?action=delete",
|
||||
// {"dids":$span.attr("id"),
|
||||
// "sid":$("#sid").val()
|
||||
// },function(data)
|
||||
// {
|
||||
// if(data=='0'){
|
||||
// $span.remove();
|
||||
// }else{
|
||||
// alert("删除操作异常,请重新操作!");
|
||||
// };
|
||||
// });
|
||||
|
||||
if($("#dids").val()!=""){
|
||||
$("#dids").val($("#dids").val()+","+$span.attr("id"));
|
||||
}else{
|
||||
$("#dids").val($span.attr("id"));
|
||||
}
|
||||
$span.remove();
|
||||
}else{
|
||||
$span.remove();
|
||||
}
|
||||
});
|
||||
var s=0;
|
||||
function addIpSegment(){
|
||||
var startIP = $.trim($("#startIP").val());
|
||||
var endIP = $.trim($("#endIP").val());
|
||||
$("#startIP").val(startIP);
|
||||
$("#endIP").val(endIP);
|
||||
if(!$id("startIP","ip1","i18n_upserver.text.startIP_n81i")|| !$id("endIP","ip1","i18n_upserver.text.endIP_n81i")){
|
||||
return false;
|
||||
}
|
||||
var startIPSplit =startIP.split(".");
|
||||
var endIPSplit =endIP.split(".");
|
||||
var startIPN = startIPSplit[0]*256*256*256
|
||||
+ startIPSplit[1]*256*256
|
||||
+ startIPSplit[2]*256
|
||||
+ startIPSplit[3]*1;
|
||||
var endIPN = endIPSplit[0]*256*256*256
|
||||
+ endIPSplit[1]*256*256
|
||||
+ endIPSplit[2]*256
|
||||
+ endIPSplit[3]*1;
|
||||
if(startIPN-endIPN>0){
|
||||
$("#ipInfo").html("i18n_upserver.message.ipInfo_n81i");
|
||||
return false;
|
||||
}else{
|
||||
$("#ipInfo").html("");
|
||||
}
|
||||
if(!ipSegmentCheck(startIPN,endIPN)){
|
||||
return false;
|
||||
}
|
||||
//var s = $("input[type='hidden'][name^=sisList]").size()/2;
|
||||
$("#configIp").prepend("<span ipns='"+startIPN+"' ipne='"+endIPN+"' title='"+startIP+" -- "+startIP+"' flag='0'>"+startIP+" -- "+endIP+""
|
||||
+"<input type='hidden' name='sisList["+s+"].startIp' value='"+startIP+"' /><input type='hidden' name='sisList["+s+"].endIp' value='"+endIP+"' /><a id='del_file_span' href='#'>删除</a><br /></span>");
|
||||
s++;
|
||||
return true;
|
||||
}
|
||||
|
||||
function ipSegmentCheck(startIPN,endIPN){
|
||||
var falg = true;
|
||||
$("#contrastIp>div>span").each(function(i,n){
|
||||
var ipns = $(n).attr("ipns");
|
||||
var ipne = $(n).attr("ipne");
|
||||
if(Number(startIPN) > Number(ipne) || Number(endIPN) < Number(ipns)){
|
||||
return true;
|
||||
}else{
|
||||
//alert("startIPN "+startIPN+"\n"
|
||||
//+"endIPN "+endIPN+"\n"
|
||||
//+"Number(ipne) "+Number(ipne)+"\n"
|
||||
//+"Number(ipns) "+Number(ipns)+"\n");
|
||||
alert($(n).attr("title")+": i18n_upserver.message.ipRepeat.and_n81i "+$(n).text()+"i18n_upserver.message.ipRepeat_n81i");
|
||||
falg = false;
|
||||
return false;
|
||||
}
|
||||
});
|
||||
if(!falg){
|
||||
return false;
|
||||
}
|
||||
$("#configIp>span").each(function(i,n){
|
||||
var ipns = $(n).attr("ipns");
|
||||
var ipne = $(n).attr("ipne");
|
||||
if(Number(startIPN) > Number(ipne) || Number(endIPN) < Number(ipns)){
|
||||
return true;
|
||||
}else{
|
||||
alert("i18n_upserver.message.ipRepeat.with_n81i "+$(n).attr("title")+"i18n_upserver.message.ipRepeat_n81i");
|
||||
falg = false;
|
||||
return false;
|
||||
}
|
||||
});
|
||||
return falg;
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="middle_list">
|
||||
<div class="box_2">
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
onclick="goBack()" value="i18n_upserver.button.back_n81i"/>
|
||||
</div>
|
||||
<input type="hidden" id="sn" value="${serverTable.serverName }" />
|
||||
<form action="" name="Mkform" method="post" id="Mkform">
|
||||
<input type="hidden" name="position" value="${position }" />
|
||||
<input type="hidden" name="serverTable.id" id="sid" value="${serverTable.id }" />
|
||||
<input type="hidden" name="pageNo" value="${pageNo }" />
|
||||
<input type="hidden" name="pageSize" value="${pageSize }" />
|
||||
<input type="hidden" name="serverId" value="${serverId }" />
|
||||
<input type="hidden" name="dids" id="dids" value="" />
|
||||
<div style="clear: both"></div>
|
||||
<table border="0" cellpadding="0" cellspacing="0" class="table">
|
||||
<tr>
|
||||
<td colspan="2" class="color_8">
|
||||
<strong>i18n_upserver.text.title_n81i</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" width="30%" align="right">
|
||||
i18n_upserver.text.serverName_n81i:
|
||||
</td>
|
||||
<td class="color_6" width="70%" align="left">
|
||||
<input type="text" name="serverTable.serverName" id="serverName" value="${serverTable.serverName }" style="width: 155px;" />
|
||||
<font color="red">*</font>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_upserver.text.serverDesc_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left">
|
||||
<textarea rows="5" cols="17" id="serverDesc" name="serverTable.serverDesc" >${serverTable.serverDesc }</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_upserver.text.serverIp_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left">
|
||||
<input type="text" name="serverTable.serverIp" value="${serverTable.serverIp }" id="serverIp" style="width: 155px;" />
|
||||
<font color="red">*</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_upserver.text.serverState_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left">
|
||||
<input type="radio" name="serverTable.serverState" value="0" ${serverTable.serverState eq 0? "checked":"" } />i18n_nodeInfo.message.online_n81i
|
||||
<input type="radio" name="serverTable.serverState" value="1" ${serverTable.serverState eq 1? "checked":"" }/>i18n_nodeInfo.message.downline_n81i
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_upserver.text.configIp_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left">
|
||||
<table border="1" class="table1">
|
||||
<tr>
|
||||
<th width="350px" align="center">i18n_upserver.message.configIp_n81i</th>
|
||||
<th align="center">i18n_upserver.message.hasip_n81i</th>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
<td id="configIp" valign="top">
|
||||
<c:forEach items="${objsList1 }" var="obj1" varStatus="vs1">
|
||||
<span id="${obj1[0] }" sid="${obj1[1] }" ipns="${obj1[5] }" ipne="${obj1[7] }" title='${obj1[4] } -- ${obj1[6] }' flag="1" >${obj1[4] } -- ${obj1[6] }<a id='del_file_span' href='#'>i18n_client.AgentCommand.deleteSuccess_n81i</a><br /></span>
|
||||
</c:forEach>
|
||||
<input type="text" id ="startIP" name="startIP" size="14"/>
|
||||
<font color="red"></font> --
|
||||
<input type="text" id ="endIP" name="endIP" size="14" />
|
||||
<font color="red"></font>
|
||||
<input type="button" value="i18n_upserver.button.add_n81i" onclick="addIpSegment()" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'" />
|
||||
<font color="red" id="ipInfo"></font>
|
||||
</td>
|
||||
|
||||
<td id="contrastIp" align="center" valign="top">
|
||||
<div style="height: 100%; overflow-y:auto; ">
|
||||
<c:forEach items="${objsList}" var="obj" varStatus="vs">
|
||||
<span id="${obj[0] }" title="${obj[2] } ${obj[3]==0 ? "i18n_upserver.message.state0_n81i" : "i18n_upserver.message.state1_n81i" }" sid="${obj[1] }" ipns="${obj[5] }" ipne="${obj[7] }" flag="0">${obj[4] } -- ${obj[6] }</span><br />
|
||||
</c:forEach>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_7" colspan="2" align="right">
|
||||
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'" onclick="add()" value="i18n_upserver.button.submit_n81i"/>
|
||||
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
onclick="resetmy()" value="i18n_upserver.button.reset_n81i"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
349
WebRoot/page/systemManage/systemInfoList.jsp
Normal file
349
WebRoot/page/systemManage/systemInfoList.jsp
Normal file
@@ -0,0 +1,349 @@
|
||||
<%@ 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_sysinfolist.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.suggest.js'/>"></script>
|
||||
<script language="javascript" type="text/javascript"
|
||||
src="<c:url value="/js/jBox/jquery.jBox-2.3.min.js"/>"></script>
|
||||
<script language="javascript" type="text/javascript">
|
||||
var msg = '${MSG}';
|
||||
if(msg=='1'){
|
||||
alert("i18n_sysinfolist.message.success_n81i");
|
||||
}else if(msg=='2'){
|
||||
alert("i18n_sysinfolist.message.faild_n81i");
|
||||
}
|
||||
|
||||
//添加记录
|
||||
function addSystem(){
|
||||
document.form3.action ="<%=path%>/sysManage/systemManage!executeAction.do?action=openAdd&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }';
|
||||
document.form3.submit();
|
||||
}
|
||||
//修改记录
|
||||
function updateSystem(){
|
||||
if(!isRigthCheck("ids", "edit")){
|
||||
alert("i18n_sysinfolist.message.selectOne_n81i");
|
||||
}else{
|
||||
document.form3.action ="<%=path%>/sysManage/systemManage!executeAction.do?action=openUpdate&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }';
|
||||
document.form3.submit();
|
||||
}
|
||||
}
|
||||
//停用
|
||||
function stopSystem(){
|
||||
if(!isRigthCheck("ids", "remove")){
|
||||
alert("i18n_sysinfolist.message.selectOne_n81i");
|
||||
}else{//0 启用状态,1 停用状态
|
||||
if(isOperation("ids", 1)){//当前状态是1,不能停用操作
|
||||
alert('i18n_sysinfolist.message.includeStop_n81i');
|
||||
}else{
|
||||
document.form3.action ="<%=path%>/sysManage/systemManage!executeAction.do?action=stop";
|
||||
document.form3.submit();
|
||||
}
|
||||
}
|
||||
}
|
||||
//启用
|
||||
function startSystem(){
|
||||
if(!isRigthCheck("ids", "remove")){
|
||||
alert("i18n_sysinfolist.message.selectOne_n81i");
|
||||
}else{//0 启用状态,1 停用状态
|
||||
if(isOperation("ids", 0)){//当前状态是0,不能启用操作
|
||||
alert('i18n_sysinfolist.message.includeStart_n81i');
|
||||
}else{
|
||||
document.form3.action ="<%=path%>/sysManage/systemManage!executeAction.do?action=start";
|
||||
document.form3.submit();
|
||||
}
|
||||
}
|
||||
}
|
||||
//查询记录
|
||||
function qry(){
|
||||
document.form3.action = "<%=path%>/sysManage/systemManage.do?action=query";
|
||||
document.form3.submit();
|
||||
}
|
||||
//查看详情
|
||||
function showRecord(sysid){
|
||||
document.form3.action = "<%=path%>/sysManage/systemManage!executeAction.do?action=detail&systemId="+sysid+"&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }';
|
||||
document.form3.submit();
|
||||
}
|
||||
|
||||
//parent.document.all("listFrame").style.height = document.body.scrollHeight + 16;
|
||||
|
||||
|
||||
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.document.getElementById("lianxiangStatus").value=="2")
|
||||
{
|
||||
if(jQuery.trim(ajaxValue1)=="") return false;
|
||||
|
||||
ajaxProperties = ajaxProperties1;
|
||||
ajaxTableName = ajaxTableName1;
|
||||
ajaxType = ajaxType1;
|
||||
id = id1;
|
||||
returnDiv = returnDiv1;
|
||||
if(!containSpecial(ajaxValue1)){
|
||||
ajaxValue = ajaxValue1;
|
||||
}else{
|
||||
clearTimeout(set_Id);
|
||||
alert('i18n_sysinfolist.message.inputInfo_n81i');
|
||||
$("#"+id).val('');
|
||||
return;
|
||||
}
|
||||
|
||||
clearTimeout(set_Id);
|
||||
set_Id = setTimeout(ajaxForLianxiang,500);
|
||||
}
|
||||
}
|
||||
|
||||
function ajaxForLianxiang()
|
||||
{
|
||||
jQuery.post("<%=path%>/sysManage/sysPopedomManage!queryInfoForAjax.do",
|
||||
{"ajaxProperties":ajaxProperties,"ajaxTableName":ajaxTableName,"ajaxType":ajaxType,"ajaxValue":ajaxValue},function(data)
|
||||
{
|
||||
var lianxiangList = data.split(",");
|
||||
jQuery("#"+id).suggest(lianxiangList,{hot_list:lianxiangList,attachObject:"#"+returnDiv});
|
||||
});
|
||||
}
|
||||
|
||||
function ieBrowser(){
|
||||
if($.browser.msie){
|
||||
if($.browser.version.split('.')[0]<=7){
|
||||
return false;
|
||||
}else{
|
||||
return true;//ie8+
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
function goGuide(datas) {
|
||||
if(datas!=null && datas!=""){
|
||||
if(datas.resu=='over') {
|
||||
window.location ="<%=path%>/sysManage/guideManage!execute.do?action=index";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$(function(){
|
||||
var dh = document.body.clientHeight;
|
||||
var dhh = dh-60+"px;";
|
||||
var tableHeight = $("#info").height();
|
||||
if(tableHeight > dh-60){
|
||||
$("#maindiv").attr("style","clear:both;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","clear:both;margin-left:6px;overflow-y:auto;overflow-x:auto;width:98%;font-size:12px;height: "+dhh);
|
||||
$("#info").attr("style","width:100%;");
|
||||
}
|
||||
|
||||
if($("#isComplete").val()=='0'){
|
||||
//var content = {
|
||||
// content: '业务系统操作已完成,是否进行下一步操作?',
|
||||
// buttons: { '下一步': 1, '返回':0,'取消': -1 },
|
||||
// buttonsFocus: 0,
|
||||
// submit: function (v, h, f) {
|
||||
// if(v == 1) {//执行下一步--用户组
|
||||
// window.location ="<%=path%>/sysManage/userGroupPerssion.do?action=query";
|
||||
// }
|
||||
// if(v == 0){//返回到设置向导页
|
||||
// window.location ="<%=path%>/sysManage/guideManage!execute.do?action=index";
|
||||
// }
|
||||
// if(v == -1){//返回到设置向导页
|
||||
// return;
|
||||
// }
|
||||
// }
|
||||
//};
|
||||
|
||||
//$.jBox(content);
|
||||
var submit = function (v, h, f) {
|
||||
if (v == 'yes') {
|
||||
$("input[type=hidden][name=fromWhere]").val('formGuide');
|
||||
return;
|
||||
}
|
||||
if (v == 'no') {
|
||||
$.post("<c:url value='/sysManage/guideManage!setComplete.do'/>",
|
||||
{
|
||||
packNum:1,
|
||||
packName:'ywxt'
|
||||
},
|
||||
function(datas){
|
||||
goGuide(datas);
|
||||
},"json");
|
||||
|
||||
}
|
||||
};
|
||||
$.jBox.warning("i18n_sysinfolist.message.warning_n81i", "i18n_sysinfolist.message.hint_n81i", submit,{icon: false});
|
||||
}
|
||||
$("#info").floatHeaderDiv();
|
||||
});
|
||||
|
||||
window.onresize = function(){
|
||||
$("#info").floatHeader();//用于浏览器调整大小后 列表表头自动适应
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="middle_list" style="overflow: hidden;">
|
||||
<!--中间部分右边开始-->
|
||||
<form name=form3 id="frmArticleType"
|
||||
action="<c:url value='/sysManage/systemManage.do?action=query'/>" method="post">
|
||||
<input type="hidden" name = "isComplete" id="isComplete" value="${isComplete}"/>
|
||||
<input type="hidden" name="fromWhere" value="${fromWhere }"/>
|
||||
|
||||
<div id="divTop">
|
||||
<div class="box_1">
|
||||
<label class="divTopText"><font class="selectText">i18n_sysinfolist.text.systemName_n81i</font>
|
||||
<input type="text" id="systemName"
|
||||
onkeyup="lianxiangkeyup('systemName','SystemTable','String','systemName','suggest1',this.value);"
|
||||
name="sysName" title="i18n_sysinfolist.message.systemName_n81i" value="${sysName}" size="20" />
|
||||
<div id='suggest1' class="ac_results"></div></label>
|
||||
<label class="divTopText"><font class="selectText">i18n_sysinfolist.text.systemDesc_n81i</font>
|
||||
<input type="text" id="systemDesc"
|
||||
onkeyup="lianxiangkeyup('systemDesc','SystemTable','String','systemDesc','suggest2',this.value);"
|
||||
name="sysDesc" title="i18n_sysinfolist.message.systemDesc_n81i" value="${sysDesc}" size="20" />
|
||||
<div id='suggest2' class="ac_results"></div></label>
|
||||
<img src="<c:url value='/images/button_chaxun.png'/>"
|
||||
class="img_middle2" onclick="javascript:qry();" />
|
||||
</div>
|
||||
<div class="box_2">
|
||||
<jsp:include page="/include/include.jsp" />
|
||||
</div>
|
||||
</div>
|
||||
<div id="maindiv">
|
||||
<table border="0" cellpadding="0" cellspacing="0" class="table" id="info">
|
||||
<tr>
|
||||
<td class="color_top" width="4%">
|
||||
<input type="checkbox" name="checkbox62" value="checkbox"
|
||||
onClick="checkAll(this)" />
|
||||
i18n_sysinfolist.text.index_n81i
|
||||
</td>
|
||||
<td class="color_top" width="10%">
|
||||
i18n_sysinfolist.text.systemName_n81i
|
||||
</td>
|
||||
<td class="color_top" width="10%">
|
||||
i18n_sysinfolist.text.systemDesc_n81i
|
||||
</td>
|
||||
<!--
|
||||
<td class="color_top" width="10%">
|
||||
注册IP
|
||||
</td>
|
||||
<td class="color_top" width="10%">
|
||||
注册端口
|
||||
</td>
|
||||
-->
|
||||
<td class="color_top" width="10%">
|
||||
i18n_sysinfolist.text.isMaster_n81i
|
||||
</td>
|
||||
<td class="color_top" width="10%">
|
||||
i18n_sysinfolist.text.createTime_n81i
|
||||
</td>
|
||||
<td class="color_8" width="6%">
|
||||
i18n_sysinfolist.text.isOnline_n81i
|
||||
</td>
|
||||
</tr>
|
||||
<c:set var="index" value="${1}" />
|
||||
<c:choose>
|
||||
<c:when test="${fn:length(systemList) > 0}">
|
||||
<c:forEach items="${systemList}" var="sys" varStatus="vs">
|
||||
<input type="hidden" id="yxbz${sys.systemId }"
|
||||
name="yxbz${sys.systemId }" value="${sys.systemState}" />
|
||||
<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 }">
|
||||
<input type="checkbox" name="ids" id="ids"
|
||||
value="${sys.systemId}" />
|
||||
${index+(pageNo-1)*pageSize}
|
||||
</td>
|
||||
<td class="${color }">
|
||||
<a href="javascript:showRecord('${sys.systemId }')">${sys.systemName}</a>
|
||||
</td>
|
||||
<td class="${color }">
|
||||
${sys.systemDesc}
|
||||
</td>
|
||||
<!--
|
||||
<td class="${color }">
|
||||
${sys.systemIp}
|
||||
</td>
|
||||
<td class="${color }">
|
||||
${sys.systemPort}
|
||||
</td>
|
||||
-->
|
||||
<td class="${color }">
|
||||
<c:if test="${sys.isMaster=='2' }">i18n_sysinfolist.text.slave_n81i</c:if>
|
||||
<c:if test="${sys.isMaster=='1' }">i18n_sysinfolist.text.master_n81i</c:if>
|
||||
</td>
|
||||
<td class="${color }" >
|
||||
<fmt:formatDate value="${sys.systemCreatetime}"
|
||||
pattern="yyyy-MM-dd HH:mm:ss" />
|
||||
</td>
|
||||
<td class="${color_end }">
|
||||
<!--
|
||||
<c:if test="${sys.systemState=='0' }">启用</c:if>
|
||||
<c:if test="${sys.systemState=='1' }"><font color="red">停用</font></c:if>
|
||||
-->
|
||||
<c:if test="${sys.systemState=='0' }">i18n_sysinfolist.message.Y_n81i</c:if>
|
||||
<c:if test="${sys.systemState=='1' }"><font color="red">i18n_sysinfolist.message.N_n81i</font></c:if>
|
||||
</td>
|
||||
</tr>
|
||||
<c:set var="index" value="${index + 1}" />
|
||||
</c:forEach>
|
||||
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<tr>
|
||||
<td colspan="6" height="35" class="color_6" align="center">
|
||||
i18n_sysinfolist.text.noRecord_n81i
|
||||
</td>
|
||||
</tr>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</table>
|
||||
</div>
|
||||
<c:if test="${!empty systemList}">
|
||||
<div id="divBoot">
|
||||
<jsp:include page="/common/page.jsp" />
|
||||
</div>
|
||||
</c:if>
|
||||
<!--中间部分右边结束-->
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
383
WebRoot/page/systemManage/topoManage/topoManageIndex.jsp
Normal file
383
WebRoot/page/systemManage/topoManage/topoManageIndex.jsp
Normal file
@@ -0,0 +1,383 @@
|
||||
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
|
||||
<%@ page import="nis.nms.core.*"%>
|
||||
<%@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_nginfo.message.title_n81i</title>
|
||||
<link href="<c:url value='/css/nms.css'/>" type="text/css" rel="stylesheet" />
|
||||
<link href="<c:url value='/js//dtree/css/dtree.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/jquery.tools.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/MzTreeView10.js"/>"></script>
|
||||
<script language="javascript" type="text/javascript" src="<c:url value="/js/dtree/js/dtree_checkbox_expand.js"/>"></script>
|
||||
<script language="javascript" type="text/javascript" src="<c:url value="/js/jBox/jquery.jBox-2.3.min.js"/>"></script>
|
||||
<script language="javascript" type="text/javascript"
|
||||
src="<c:url value="/js/fileInput.js"/>"></script>
|
||||
<link href="<c:url value='/js/jBox/Skins/Gray/jbox.css'/>" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
|
||||
<script type="text/javascript">
|
||||
//页面初始化 回显节点对应信息
|
||||
$(function(){
|
||||
$("input[name^='topoNodeType']:checked").each(function(index,data){
|
||||
var radioValue=$(data).val();
|
||||
if(radioValue==1){
|
||||
$("#topoInfo"+index).hide();
|
||||
$("#chooseGroupNode"+index).show();
|
||||
$("#topoNodeOne"+index).show();
|
||||
$("#topoNodeTwo"+index).show();
|
||||
$("#chooseType").val(1);
|
||||
$('#chooseIndex').val(index);
|
||||
}else if(radioValue==2){
|
||||
$("#topoInfo"+index).hide();
|
||||
$("#chooseGroupNode"+index).show();
|
||||
$("#topoNodeOne"+index).hide();
|
||||
$("#topoNodeTwo"+index).hide();
|
||||
$("#chooseType").val(0);
|
||||
$('#chooseIndex').val(index);
|
||||
}else if(radioValue==4){
|
||||
$("#topoInfo"+index).show();
|
||||
$("#chooseGroupNode"+index).hide();
|
||||
$("#topoNodeOne"+index).hide();
|
||||
$("#topoNodeTwo"+index).hide();
|
||||
$("#chooseType").val(0);
|
||||
$('#chooseIndex').val(index);
|
||||
}else{
|
||||
$("#topoInfo"+index).hide();
|
||||
$("#chooseGroupNode"+index).hide();
|
||||
$("#topoNodeOne"+index).hide();
|
||||
$("#topoNodeTwo"+index).hide();
|
||||
$("#chooseType").val(0);
|
||||
$('#chooseIndex').val(index);
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
function selectNodeAndNodeGroup(index) {
|
||||
var groupId = $('#nodeGroupId'+index).val();//选中节点组
|
||||
var nodeId = $('#nodeId'+index).val();//选中ip
|
||||
var url = "<%=path%>/nodeGroupManage/nodeGroupManage!executeAction.do?action=toSelectNodeAndNodeGroup&type=topoManage&groupId="+groupId+"&nodeId="+nodeId; //转向网页的地址;
|
||||
var name;
|
||||
//改为layer-20180831-chenjs---
|
||||
parent.layer.open({
|
||||
type: 2,
|
||||
title: "i18n_tsnang.text.selectNodeGroup_n81i",
|
||||
area:['850px', '610px'],
|
||||
shade: 0.6,
|
||||
closeBtn: 1,
|
||||
maxmin:true,
|
||||
content: url
|
||||
});
|
||||
}
|
||||
|
||||
//弹窗设置的节点信息 在弹窗关闭后设置在页面
|
||||
function reciveTopoNodeAndNodeGroup(nodeGroupIds,nodeGroupNames,nodeIds,nodeIps){
|
||||
var index=$('#chooseIndex').val();
|
||||
document.getElementById("nodeGroupName"+index).value = nodeGroupNames;//节点组名称s
|
||||
document.getElementById("nodeGroupId"+index).value = nodeGroupIds;//节点组ids
|
||||
document.getElementById("nodeName"+index).value = nodeIps;//节点ips
|
||||
document.getElementById("nodeId"+index).value = nodeIds;//节点ids:nodeIds为选中的节点的id(用逗号连接的)
|
||||
}
|
||||
|
||||
//选择不同type类型后 切换页面显示
|
||||
function chooseTopoNodeType(data){
|
||||
var value=$(data).val();
|
||||
var index=$(data).attr('status');
|
||||
if(value==4){
|
||||
$("#topoInfo"+index).show();
|
||||
$("#chooseGroupNode"+index).hide();
|
||||
$("#topoNodeOne"+index).hide();
|
||||
$("#topoNodeTwo"+index).hide();
|
||||
$("#chooseType").val(0);
|
||||
$('#chooseIndex').val(index);
|
||||
}else if(value==3){
|
||||
$("#topoInfo"+index).hide();
|
||||
$("#chooseGroupNode"+index).hide();
|
||||
$("#topoNodeOne"+index).hide();
|
||||
$("#topoNodeTwo"+index).hide();
|
||||
$("#chooseType").val(0);
|
||||
$('#chooseIndex').val(index);
|
||||
}else if(value==2){
|
||||
$("#topoInfo"+index).hide();
|
||||
$("#chooseGroupNode"+index).show();
|
||||
$("#topoNodeOne"+index).hide();
|
||||
$("#topoNodeTwo"+index).hide();
|
||||
$("#chooseType").val(0);
|
||||
$('#chooseIndex').val(index);
|
||||
}else{
|
||||
$("#topoInfo"+index).hide();
|
||||
$("#chooseGroupNode"+index).show();
|
||||
$("#topoNodeOne"+index).show();
|
||||
$("#topoNodeTwo"+index).show();
|
||||
$("#chooseType").val(1);
|
||||
$('#chooseIndex').val(index);
|
||||
}
|
||||
}
|
||||
|
||||
//点击提交后 执行操作结果
|
||||
function commitAdd(){
|
||||
var flag=true;
|
||||
var topoManageInfos=new Array();
|
||||
$("input[name^='topoNodeType']:checked").each(function(index,data){
|
||||
var nodeIds=$('#nodeId'+index).val();
|
||||
var groupIds=$('#nodeGroupId'+index).val();
|
||||
var selectTopoInfoId=$("#chooseTopoInfo"+index).val();
|
||||
var radioValue=$(data).val();
|
||||
// 拼接json数据
|
||||
var topoManageInfo={};
|
||||
var data={};
|
||||
topoManageInfo.nodeId=$('#topoNodeInfoId'+index).val();
|
||||
topoManageInfo.nodeType=radioValue;
|
||||
if(radioValue==1){
|
||||
if(nodeIds==null||nodeIds==undefined||nodeIds==''){
|
||||
alert("i18n_topoManage.topoNodeError1_n81i");
|
||||
flag=false;
|
||||
return;
|
||||
}else if(nodeIds.indexOf(',')!=-1){
|
||||
alert("i18n_topoManage.topoNodeError2_n81i");
|
||||
flag=false;
|
||||
return;
|
||||
}
|
||||
topoManageInfo.nodeTypeId=nodeIds;
|
||||
}else if(radioValue==2){
|
||||
if(groupIds==null||groupIds==undefined||groupIds==''){
|
||||
alert("i18n_topoManage.topoNodeGroupError1_n81i");
|
||||
flag=false;
|
||||
return;
|
||||
}else if(groupIds.indexOf(',')!=-1){
|
||||
alert("i18n_topoManage.topoNodeGroupError2_n81i");
|
||||
flag=false;
|
||||
return;
|
||||
}
|
||||
topoManageInfo.nodeTypeId=groupIds;
|
||||
}else if(radioValue==4){
|
||||
if(selectTopoInfoId==null||selectTopoInfoId==undefined||selectTopoInfoId==''){
|
||||
alert("i18n_topoManage.topoNodeInfoError_n81i");
|
||||
flag=false;
|
||||
return;
|
||||
}
|
||||
topoManageInfo.nodeTypeId=selectTopoInfoId;
|
||||
}
|
||||
//data.topoManageInfo=topoManageInfo;
|
||||
topoManageInfos.push(topoManageInfo);
|
||||
});
|
||||
console.log(topoManageInfos)
|
||||
var systemId=$('#system').val();
|
||||
var topoInfoId=$('#topo').val();
|
||||
if(flag){
|
||||
$.ajax({
|
||||
type : "get",
|
||||
dataType : 'json',
|
||||
url : "<%=path%>/sysManage/topoManage.do?action=modify",
|
||||
data:{'datas':JSON.stringify(topoManageInfos),'topoInfoId':topoInfoId,'systemId':systemId},
|
||||
success : function(res) {
|
||||
alert("i18n_topoManage.handleSuccessInfo_n81i");
|
||||
location.href='<%=path%>/sysManage/topoManage.do?action=query&systemId='+systemId+'&topoInfoId='+topoInfoId;
|
||||
},
|
||||
error:function(){
|
||||
alert("i18n_topoManage.handleErrorInfo_n81i");
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
//业务系统下拉框改变时操作
|
||||
function selectSystem(data){
|
||||
var systemId=$(data).val();
|
||||
location.href='<%=path%>/sysManage/topoManage.do?action=query&systemId='+systemId;
|
||||
}
|
||||
|
||||
//选择topo图时操作
|
||||
function selectTopo(data){
|
||||
var systemId=$('#system').val();
|
||||
var topoInfoId=$(data).val();
|
||||
location.href='<%=path%>/sysManage/topoManage.do?action=query&systemId='+systemId+'&topoInfoId='+topoInfoId;
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<body>
|
||||
<input type='hidden' id="fw" value='topoManage'/>
|
||||
<div class="middle_list" style="overflow: hidden;">
|
||||
<div id="maindiv" style="clear:both;">
|
||||
<form action="" name="nodeGroupForm" id="nodeGroupForm" method="post" >
|
||||
<table border="0" cellpadding="0" cellspacing="0" class="table" id="info" style="">
|
||||
<tr>
|
||||
<td class="color_8">i18n_topoManage.topoInformation_n81i</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_3" align="left" valign="top">
|
||||
<table width="100%" align="center" border="0" cellpadding="0" cellspacing="1" style="padding-left: 5px; padding-right: 5px;">
|
||||
<tr type='form'>
|
||||
<td class="color_1" width="13%" align="right">
|
||||
i18n_topoManage.system_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left">
|
||||
<select name='systemId' id='system' onchange='selectSystem(this)'>
|
||||
<c:if test="${fn:length(sysList)>0 }">
|
||||
<c:forEach items="${sysList }" var="system">
|
||||
<c:choose>
|
||||
<c:when test="${system.systemId==systemId}">
|
||||
<option value="${system.systemId}" selected='selected'>
|
||||
${system.systemName}
|
||||
</option>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<option value="${system.systemId}">
|
||||
${system.systemName}
|
||||
</option>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</c:forEach>
|
||||
</c:if>
|
||||
</select>
|
||||
</td>
|
||||
<td class="color_1" width="13%" align="right">
|
||||
i18n_topoManage.topoPicture_n81i:
|
||||
</td>
|
||||
<td class="color_3" width="37%" align="left">
|
||||
<select name='topoInfoId' id='topo' onchange='selectTopo(this)'>
|
||||
<c:if test="${fn:length(allTopoInfoList)>0 }">
|
||||
<option selected="selected" value="">
|
||||
i18n_topoManage.chooseTopoMessage_n81i
|
||||
</option>
|
||||
<c:forEach items="${allTopoInfoList }" var="topoInfo">
|
||||
<c:choose>
|
||||
<c:when test="${topoInfo.id==topoInfoId}">
|
||||
<option value="${topoInfo.id }" selected='selected'>
|
||||
${topoInfo.name}
|
||||
</option>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<option value="${topoInfo.id }">
|
||||
${topoInfo.name}
|
||||
</option>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</c:forEach>
|
||||
</c:if>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<c:if test="${fn:length(topoManageInfos)>0 }">
|
||||
<tr>
|
||||
<td class="color_8">i18n_topoManage.TopoNodeMessage_n81i</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_3" align="left" valign="top">
|
||||
<table border="0" cellpadding="0" cellspacing="0" class="table" id="info2" style="">
|
||||
<c:forEach items="${topoManageInfos }" var="topoManageInfo" varStatus='status'>
|
||||
<input type='hidden' id="chooseType" value=''/>
|
||||
<input type='hidden' id="chooseIndex" value=''/>
|
||||
<tr type='form'>
|
||||
<td class="color_1" align="right">
|
||||
i18n_topoManage.topoNodeName_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left">
|
||||
<input name='topoManageInfo.topoNodeInfo.id' type='hidden' value='${topoManageInfo.topoNodeInfo.id}' id="topoNodeInfoId${status.index}"/>
|
||||
<input readonly='readonly' value="${topoManageInfo.topoNodeInfo.text}" style='width:300px'/>
|
||||
</td>
|
||||
<td class="color_1" align="right">
|
||||
i18n_topoManage.topoNodeType_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left">
|
||||
<c:forEach items="${typeList}" var="type">
|
||||
<c:choose>
|
||||
<c:when test='${type==topoManageInfo.topoNodeInfo.type}'>
|
||||
<input type='radio' status='${status.index}' value='${type}' name='topoNodeType${status.index}' checked='checked' onchange="chooseTopoNodeType(this)"/><c:if test='${type==1}'>i18n_topoManage.topoNode_n81i</c:if><c:if test='${type==2}'>i18n_topoManage.topoNodeGroup_n81i</c:if><c:if test='${type==3}'>i18n_topoManage.topoNone_n81i</c:if><c:if test='${type==4}'>i18n_topoManage.topoPicture_n81i</c:if>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<input type='radio' status='${status.index}' name='topoNodeType${status.index}' value='${type}' onchange="chooseTopoNodeType(this)"/><c:if test='${type==1}'>i18n_topoManage.topoNode_n81i</c:if><c:if test='${type==2}'>i18n_topoManage.topoNodeGroup_n81i</c:if><c:if test='${type==3}'>i18n_topoManage.topoNone_n81i</c:if><c:if test='${type==4}'>i18n_topoManage.topoPicture_n81i</c:if>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</c:forEach>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id='topoInfo${status.index}'>
|
||||
<td class="color_1" align="right">i18n_topoManage.topoPicture_n81i:</td>
|
||||
<td class="color_6" align="left" colspan='3'>
|
||||
<c:if test="${fn:length(allTopoInfoList)>0 }">
|
||||
<select id="chooseTopoInfo${status.index}">
|
||||
<option selected="selected" value="">
|
||||
i18n_topoManage.chooseTopoMessage_n81i
|
||||
</option>
|
||||
<c:forEach items="${allTopoInfoList }" var="allTopoInfo">
|
||||
<c:choose>
|
||||
<c:when test='${allTopoInfo.id==topoManageInfo.topoNodeInfo.typeId}'>
|
||||
<option value="${allTopoInfo.id}" name='selectTopoInfoId' selected='selected'/> ${allTopoInfo.name}</option>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<option value="${allTopoInfo.id}" name='selectTopoInfoId'/> ${allTopoInfo.name}</option>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</c:forEach>
|
||||
</select>
|
||||
</c:if>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="chooseGroupNode${status.index}" style='display:none'>
|
||||
<td class="color_1" width="20%" align="right">
|
||||
i18n_topoManage.topoNodeGroup_n81i:
|
||||
</td>
|
||||
<td class="color_6" width="30%" align="left">
|
||||
<input type="text" name="nodeGroupName${status.index}" id='nodeGroupName${status.index }' readonly="readonly" value="${topoManageInfo.nodeGroupName}"/>
|
||||
<input type="hidden" name="nodeGroupId${status.index }" id='nodeGroupId${status.index }' value="${topoManageInfo.nodeGroupId}"/>
|
||||
<input type="button" value="i18n_adsi.button.select_n81i" onclick="selectNodeAndNodeGroup(${status.index})"
|
||||
class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
/>
|
||||
</td>
|
||||
<td class="color_1" id='topoNodeOne${status.index}' width="20%" align="right" style='display:none'>
|
||||
i18n_topoManage.topoNode_n81i:
|
||||
</td>
|
||||
<td class="color_6" id='topoNodeTwo${status.index}' width="30%" align="left" style='display:none'>
|
||||
<input type="text" name="nodeName${status.index }" id='nodeName${status.index }' readonly="readonly" value="${topoManageInfo.nodeName}"/>
|
||||
<input type="hidden" id='nodeId${status.index}' name="nodeId${status.index}" value="${topoManageInfo.nodeId}"/>
|
||||
</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
<tr>
|
||||
<td colspan="4" align="right" class="td_1" >
|
||||
<div id="buttons_add">
|
||||
<input type="button" value="i18n_nginfo.button.submit_n81i" class='btn3_mouseout'
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
onclick="commitAdd()"/>
|
||||
<input type="reset" value="i18n_nginfo.button.reset_n81i" class='btn3_mouseout'
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"/>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</c:if>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
221
WebRoot/page/systemManage/updateSystemInfo.jsp
Normal file
221
WebRoot/page/systemManage/updateSystemInfo.jsp
Normal file
@@ -0,0 +1,221 @@
|
||||
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
|
||||
<%@ page import="nis.nms.core.*"%>
|
||||
<%@ 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_upsysinfo.message.title_n81i</title>
|
||||
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
|
||||
type="text/css" />
|
||||
<link href="<c:url value='/js//dtree/css/dtree.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/dtree/js/dtree_checkbox.js'/>"></script>
|
||||
<script language="javascript" type="text/javascript"
|
||||
src="<c:url value='/js/jquery.tools.js'/>"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
function updateCheck(){
|
||||
var type;
|
||||
$.ajax({
|
||||
url:"<%=path%>/sysManage/systemManage.do?action=updateCheck",
|
||||
type : "POST",
|
||||
async:false,
|
||||
data:$('#Mkform').serialize(),
|
||||
success : function(data) {
|
||||
if(data == "error"){
|
||||
alert("i18n_upsysinfo.message.repeat_n81i");
|
||||
type = false;
|
||||
}else if(data == "exception"){
|
||||
alert("i18n_upsysinfo.message.faild_n81i");
|
||||
type = false;
|
||||
}else if(data =="success"){
|
||||
type = true;
|
||||
}
|
||||
}
|
||||
});
|
||||
return type;
|
||||
}
|
||||
|
||||
function add(){
|
||||
//验证不能空与长度限制
|
||||
if($id("systemName","","i18n_upsysinfo.text.systemName_n81i") && $("#systemName").checkByteLength(64,"i18n_upsysinfo.text.systemName_n81i")
|
||||
&& $("#systemDesc").checkByteLength(256,"i18n_upsysinfo.text.systemDesc_n81i")){
|
||||
if(checkSpecial($.trim($("#systemName").val()))){
|
||||
$("#systemName").next().html("i18n_upsysinfo.message.systemName_n81i");
|
||||
$("#systemName").val($("#oldsysName").val());
|
||||
return;
|
||||
}
|
||||
if(updateCheck()){
|
||||
document.Mkform.action="<%=path%>/sysManage/systemManage.do?action=doUpdate";
|
||||
document.Mkform.submit();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function goBack(){
|
||||
window.location="<%=path%>/sysManage/systemManage.do?action=query&pageSize="+'${pageSize }'+"&pageNo="+'${pageNo }';
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="middle_list">
|
||||
<div class="box_2">
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
onclick="goBack()" value="i18n_upsysinfo.button.back_n81i"/>
|
||||
</div>
|
||||
<input type="hidden" id="oldsysName" value="${system.systemName }" />
|
||||
<form action="" name="Mkform" method="post" id="Mkform">
|
||||
<input type="hidden" name="position" value="${position }" />
|
||||
<input type="hidden" name="system.systemId" value="${system.systemId }" />
|
||||
<input type="hidden" name="sysName" id="sysName" value="${sysName }" />
|
||||
<input type="hidden" name="sysDesc" id="sysDesc" value="${sysDesc }" />
|
||||
<input type="hidden" name="pageNo" value="${pageNo }" />
|
||||
<input type="hidden" name="pageSize" value="${pageSize }" />
|
||||
|
||||
<input type="hidden" name="system.systemIp" value="${system.systemIp }" id="systemIp" />
|
||||
<input type="hidden" name="system.systemPort" value="${system.systemPort }" id="systemPort" />
|
||||
<input type="hidden" name="system.isMaster" value="${system.isMaster }" id="isMaster" />
|
||||
|
||||
<jsp:include page="/common/transferHiddenParameter.jsp" />
|
||||
<div style="clear: both"></div>
|
||||
<table border="0" cellpadding="0" cellspacing="0" class="table">
|
||||
<tr>
|
||||
<td colspan="2" class="color_8">
|
||||
<strong>i18n_upsysinfo.text.title_n81i</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" width="20%" align="right">
|
||||
i18n_upsysinfo.text.systemName_n81i:
|
||||
</td>
|
||||
<td class="color_6" width="50%" align="left">
|
||||
<input type="text" name="system.systemName"
|
||||
value="${system.systemName }" id="systemName"
|
||||
style="width: 155px;" />
|
||||
<font color="red">*</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_upsysinfo.text.systemDesc_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left">
|
||||
<textarea rows="4" cols="40" name="system.systemDesc"
|
||||
id="systemDesc" style="width: 155px; height: 50px;"
|
||||
>${system.systemDesc }</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<!--
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
注册IP:
|
||||
</td>
|
||||
<td class="color_3" align="left">
|
||||
${system.systemIp }
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
注册端口:
|
||||
</td>
|
||||
<td class="color_3" align="left">
|
||||
${system.systemPort }
|
||||
</td>
|
||||
</tr>
|
||||
-->
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_upsysinfo.text.isMaster_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left">
|
||||
<c:if test="${system.isMaster == 2}">i18n_upsysinfo.text.slave_n81i</c:if>
|
||||
<c:if test="${system.isMaster == 1}">i18n_upsysinfo.text.master_n81i</c:if>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_upsysinfo.text.isOnline_n81i:
|
||||
</td>
|
||||
<td class="color_3" align="left">
|
||||
<input type="radio" name="system.systemState" id="ss0" value="0"
|
||||
<c:if test="${system.systemState == '0'}">checked="checked"</c:if>
|
||||
/>i18n_upsysinfo.message.Y_n81i
|
||||
<input type="radio" name="system.systemState" id="ss1" value="1"
|
||||
<c:if test="${system.systemState == '1'}">checked="checked"</c:if>
|
||||
/>i18n_upsysinfo.message.N_n81i
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="color_1" align="right">
|
||||
i18n_upsysinfo.text.selectUser_n81i:
|
||||
</td>
|
||||
<td class="color_6" align="left">
|
||||
<div id="tree" name="tree"
|
||||
style="OVERFLOW-Y: auto; width: 100%;">
|
||||
<script type="text/javascript">
|
||||
d = new dTree('d');
|
||||
d.add('0','-1','i18n_upsysinfo.message.selectUser_n81i');
|
||||
<%
|
||||
List treeList = (List)request.getAttribute("userGroupTree");
|
||||
List list = MakeTree.getAllResourceList(treeList);
|
||||
if(list != null && list.size() > 0){
|
||||
Resource resource = new Resource();
|
||||
for( int i = 0 ; i < list.size() ; i++ ){
|
||||
resource = (Resource) list.get(i);
|
||||
if(resource.getChecked()!=null && !"".equals(resource.getChecked())){
|
||||
%>
|
||||
d.add('<%=resource.getRsCode()%>','<%=resource.getParRsCode()%>','<%=resource.getRsname()%>','checked');
|
||||
<%
|
||||
}else{
|
||||
%>
|
||||
d.add('<%=resource.getRsCode()%>','<%=resource.getParRsCode()%>','<%=resource.getRsname()%>','');
|
||||
<%
|
||||
}
|
||||
}
|
||||
}
|
||||
%>
|
||||
document.write(d);
|
||||
</script>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="color_7" colspan="4" align="right">
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'" onclick="add()" value="i18n_upsysinfo.button.submit_n81i"/>
|
||||
|
||||
<input type="button" class=btn3_mouseout
|
||||
onmouseover="this.className='btn3_mouseover'"
|
||||
onmouseout="this.className='btn3_mouseout'"
|
||||
onmousedown="this.className='btn3_mousedown'"
|
||||
onmouseup="this.className='btn3_mouseup'"
|
||||
onclick="javascript:document.forms['Mkform'].reset()" value="i18n_upsysinfo.button.reset_n81i"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user