initial commit
This commit is contained in:
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>
|
||||
Reference in New Issue
Block a user