1.事务添加

2.亦庄bug修改
3.业务系统添加逻辑变更
This commit is contained in:
wangwenrui
2018-09-29 09:52:11 +08:00
parent dc91c4c987
commit dc168fa9b9
270 changed files with 128480 additions and 128056 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1,318 +1,318 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%> <%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib uri="/jstl/fn" prefix="fn"%> <%@ taglib uri="/jstl/fn" prefix="fn"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
%> %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!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"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_actsi.message.title_n81i</title> <title>i18n_actsi.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" <link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<link href="<c:url value='/js//dtree/css/dtree.css'/>" <link href="<c:url value='/js//dtree/css/dtree.css'/>"
rel="stylesheet" type="text/css" /> rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script> src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script> src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/dtree/js/dtree_checkbox.js'/>"></script> src="<c:url value='/js/dtree/js/dtree_checkbox.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.tools.js'/>"></script> src="<c:url value='/js/jquery.tools.js'/>"></script>
<script type="text/javascript" <script type="text/javascript"
src="<c:url value='/js/WebCalendar.js' />"></script> src="<c:url value='/js/WebCalendar.js' />"></script>
</head> </head>
<script language="javascript" type="text/javascript"> <script language="javascript" type="text/javascript">
function add(){ function add(){
$('#tnts').text(""); $('#tnts').text("");
$('#cnts').text(""); $('#cnts').text("");
$('#cnl').text(""); $('#cnl').text("");
$('#cnll').text(""); $('#cnll').text("");
$('#tnl').text(""); $('#tnl').text("");
$("#oidFont").attr('color','red'); $("#oidFont").attr('color','red');
if($id("checkTypeName1","","i18n_actsi.text.checkTypeName1_n81i") && $id("checkTypeName","","i18n_actsi.text.checkTypeName_n81i")&& $id("tableName","","i18n_actsi.text.tableName_n81i")){ if($id("checkTypeName1","","i18n_actsi.text.checkTypeName1_n81i") && $id("checkTypeName","","i18n_actsi.text.checkTypeName_n81i")&& $id("tableName","","i18n_actsi.text.tableName_n81i")){
if(containSpecial($("#checkTypeName1").val())){ if(containSpecial($("#checkTypeName1").val())){
$("#checkTypeName1").next().html("i18n_actsi.text.checkTypeName1.hasSpecialChar_n81i"); $("#checkTypeName1").next().html("i18n_actsi.text.checkTypeName1.hasSpecialChar_n81i");
return; return;
} }
if(containSpecial1($("#checkTypeName").val())){//判断是否包含特殊字符和中文 if(containSpecial1($("#checkTypeName").val())){//判断是否包含特殊字符和中文
if($("#checkTypeName").val().length<64 && $("#tableName").val().length<=20){ if($("#checkTypeName").val().length<64 && $("#tableName").val().length<=20){
if($("#tableName").val()=='DI_'){ if($("#tableName").val()=='DI_'){
$("#tableName").next().html("i18n_actsi.text.tableName.enterDBName_n81i"); $("#tableName").next().html("i18n_actsi.text.tableName.enterDBName_n81i");
return; return;
} }
if(containSpecial($("#tableName").val())){ if(containSpecial($("#tableName").val())){
$("#tableName").next().html("i18n_actsi.text.tableName.tabSpecialChar_n81i"); $("#tableName").next().html("i18n_actsi.text.tableName.tabSpecialChar_n81i");
$("#tableName").val('DI_'); $("#tableName").val('DI_');
return; return;
} }
if(!containSpecial1($("#tableName").val())){ if(!containSpecial1($("#tableName").val())){
$("#tableName").next().html("i18n_actsi.text.tableName.tabHasZh_n81i"); $("#tableName").next().html("i18n_actsi.text.tableName.tabHasZh_n81i");
$("#tableName").val('DI_'); $("#tableName").val('DI_');
return; return;
} }
if(jQuery("#viewLevel2").attr('checked')==true){ if(jQuery("#viewLevel2").attr('checked')==true){
if($id("usergroupid","xz","i18n_actsi.text.usergroup_n81i")){ if($id("usergroupid","xz","i18n_actsi.text.usergroup_n81i")){
if(jQuery("#isSnmp0").attr('checked')==true){ if(jQuery("#isSnmp0").attr('checked')==true){
if($id("snmpOID","","OID") && checkOID($("#snmpOID").val())){ if($id("snmpOID","","OID") && checkOID($("#snmpOID").val())){
document.Mkform.action="<%=path%>/detection/checkTypeSet.do?action=doAdd"; document.Mkform.action="<%=path%>/detection/checkTypeSet.do?action=doAdd";
document.Mkform.submit(); document.Mkform.submit();
}else{ }else{
$("#oidFont").text("i18n_actsi.text.oidFont_n81i"); $("#oidFont").text("i18n_actsi.text.oidFont_n81i");
$("#snmpOID").val(""); $("#snmpOID").val("");
$("#snmpOID").focus(); $("#snmpOID").focus();
return; return;
} }
}else{ }else{
document.Mkform.action="<%=path%>/detection/checkTypeSet.do?action=doAdd"; document.Mkform.action="<%=path%>/detection/checkTypeSet.do?action=doAdd";
document.Mkform.submit(); document.Mkform.submit();
} }
} }
}else{ }else{
if(jQuery("#isSnmp0").attr('checked')==true){ if(jQuery("#isSnmp0").attr('checked')==true){
if($id("snmpOID","","OID") && checkOID($("#snmpOID").val())){ if($id("snmpOID","","OID") && checkOID($("#snmpOID").val())){
document.Mkform.action="<%=path%>/detection/checkTypeSet.do?action=doAdd"; document.Mkform.action="<%=path%>/detection/checkTypeSet.do?action=doAdd";
document.Mkform.submit(); document.Mkform.submit();
}else{ }else{
$("#oidFont").text("i18n_actsi.text.oidFont_n81i"); $("#oidFont").text("i18n_actsi.text.oidFont_n81i");
$("#snmpOID").val(""); $("#snmpOID").val("");
$("#snmpOID").focus(); $("#snmpOID").focus();
return; return;
} }
}else{ }else{
document.Mkform.action="<%=path%>/detection/checkTypeSet.do?action=doAdd"; document.Mkform.action="<%=path%>/detection/checkTypeSet.do?action=doAdd";
document.Mkform.submit(); document.Mkform.submit();
} }
} }
}else{ }else{
if($("#checkTypeName").val().length>63){ if($("#checkTypeName").val().length>63){
$("#ctypeName").html("i18n_actsi.text.ctypeName.exception1_n81i"); $("#ctypeName").html("i18n_actsi.text.ctypeName.exception1_n81i");
} }
if($("#tableName").val().length>20){ if($("#tableName").val().length>20){
$("#tableNameFont").html("i18n_actsi.text.tableNameFont.exception_n81i"); $("#tableNameFont").html("i18n_actsi.text.tableNameFont.exception_n81i");
} }
} }
}else{ }else{
$("#ctypeName").html("i18n_actsi.text.ctypeName.exception2_n81i"); $("#ctypeName").html("i18n_actsi.text.ctypeName.exception2_n81i");
} }
} }
} }
function goBack(){ function goBack(){
document.Mkform.action="<%=path%>/detection/checkTypeSet.do?action=query"; document.Mkform.action="<%=path%>/detection/checkTypeSet.do?action=query";
document.Mkform.submit(); document.Mkform.submit();
} }
//验证非中文和特殊字符 //验证非中文和特殊字符
function containSpecial1(s) function containSpecial1(s)
{ {
var cs = /^\w+$/; var cs = /^\w+$/;
resu = cs.test(s); resu = cs.test(s);
return (cs.test(s)); return (cs.test(s));
} }
//验证oid //验证oid
function checkOID(oid){ function checkOID(oid){
var cs = /^([1-9]|\.)([\d\.]+\d)?$/; var cs = /^([1-9]|\.)([\d\.]+\d)?$/;
var resu = cs.test(oid); var resu = cs.test(oid);
return resu; return resu;
} }
jQuery(function(){ jQuery(function(){
jQuery("td[id=usergroup]").hide(); jQuery("td[id=usergroup]").hide();
jQuery("td[id=viewLevel0]").attr('colspan','3').addClass('td_3').removeClass('td_2'); jQuery("td[id=viewLevel0]").attr('colspan','3').addClass('td_3').removeClass('td_2');
if($("#isSnmp0").attr('checked')==true ||$("#isSnmp1").attr('checked')==true){ //oid显示且必选 if($("#isSnmp0").attr('checked')==true ||$("#isSnmp1").attr('checked')==true){ //oid显示且必选
jQuery("td[id=oid]").show(); jQuery("td[id=oid]").show();
jQuery("td[id=snmp]").attr('colspan',1).addClass('td_3').removeClass('td_2'); jQuery("td[id=snmp]").attr('colspan',1).addClass('td_3').removeClass('td_2');
}else{ }else{
jQuery("td[id=oid]").hide(); jQuery("td[id=oid]").hide();
jQuery("td[id=snmp]").attr('colspan',3).addClass('td_2').removeClass('td_3'); jQuery("td[id=snmp]").attr('colspan',3).addClass('td_2').removeClass('td_3');
} }
//-- 查看权限事件绑定 //-- 查看权限事件绑定
jQuery("input[type=radio][name=checkTypeInfo.viewLevel]").click(function(){ jQuery("input[type=radio][name=checkTypeInfo.viewLevel]").click(function(){
if(jQuery(this).val() == 2){ //用户组显示且必选 if(jQuery(this).val() == 2){ //用户组显示且必选
jQuery("td[id=usergroup]").show(); jQuery("td[id=usergroup]").show();
jQuery("td[id=viewLevel0]").attr('colspan',1).addClass('td_3').removeClass('td_2'); jQuery("td[id=viewLevel0]").attr('colspan',1).addClass('td_3').removeClass('td_2');
}else{ //用户组隐藏 }else{ //用户组隐藏
jQuery("td[id=usergroup]").hide(); jQuery("td[id=usergroup]").hide();
jQuery("#usergroupid").val(""); jQuery("#usergroupid").val("");
jQuery("td[id=viewLevel0]").attr('colspan',3).addClass('td_2').removeClass('td_3'); jQuery("td[id=viewLevel0]").attr('colspan',3).addClass('td_2').removeClass('td_3');
} }
}); });
//-- 是否为snmp监控事件绑定 //-- 是否为snmp监控事件绑定
jQuery("input[type=radio][name=checkTypeInfo.isSnmp]").click(function(){ jQuery("input[type=radio][name=checkTypeInfo.isSnmp]").click(function(){
if(jQuery(this).val() == 0 || jQuery(this).val() == 1){ //oid显示且必选 if(jQuery(this).val() == 0 || jQuery(this).val() == 1){ //oid显示且必选
jQuery("td[id=oid]").show(); jQuery("td[id=oid]").show();
jQuery("td[id=snmp]").attr('colspan',1).addClass('td_3').removeClass('td_2'); jQuery("td[id=snmp]").attr('colspan',1).addClass('td_3').removeClass('td_2');
}else{ //用户组隐藏 }else{ //用户组隐藏
jQuery("td[id=oid]").hide(); jQuery("td[id=oid]").hide();
jQuery("#snmpOID").val(""); jQuery("#snmpOID").val("");
jQuery("td[id=snmp]").attr('colspan',3).addClass('td_2').removeClass('td_3'); jQuery("td[id=snmp]").attr('colspan',3).addClass('td_2').removeClass('td_3');
} }
}); });
//--验证OID失去焦点事件 //--验证OID失去焦点事件
$("#snmpOID").focusout(function() { $("#snmpOID").focusout(function() {
if($("#snmpOID").val()!="" && checkOID($("#snmpOID").val())){ if($("#snmpOID").val()!="" && checkOID($("#snmpOID").val())){
$("#oidFont").attr('color','#009900').text("OIDi18n_actsi.text.lawful_n81i"); $("#oidFont").attr('color','#009900').text("OIDi18n_actsi.text.lawful_n81i");
} }
}); });
}) })
</script> </script>
<body> <body>
<div class="middle_list" > <div class="middle_list" >
<div class="box_2"> <div class="box_2">
<input type="button" class="btn3_mouseout" <input type="button" class="btn3_mouseout"
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="goBack()" value="i18n_actsi.button.back_n81i"/> onclick="goBack()" value="i18n_actsi.button.back_n81i"/>
</div> </div>
<form action="" name="Mkform" method="post"> <form action="" name="Mkform" method="post">
<input type="hidden" name="ctn" id="ctn" value="${ctn }" /> <input type="hidden" name="ctn" id="ctn" value="${ctn }" />
<input type="hidden" name="pageNo" value="${pageNo }" /> <input type="hidden" name="pageNo" value="${pageNo }" />
<input type="hidden" name="pageSize" value="${pageSize }" /> <input type="hidden" name="pageSize" value="${pageSize }" />
<input type="hidden" name="fromWhere" value="${fromWhere }"/> <input type="hidden" name="fromWhere" value="${fromWhere }"/>
<div style="clear: both"></div> <div style="clear: both"></div>
<table border="0" cellpadding="0" cellspacing="0" class="table"> <table border="0" cellpadding="0" cellspacing="0" class="table">
<tr> <tr>
<td colspan="4" class="color_8"> <td colspan="4" class="color_8">
<strong>i18n_actsi.text.addCheckType_n81i</strong> <strong>i18n_actsi.text.addCheckType_n81i</strong>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" width="15%" align="right" nowrap="nowrap"> <td class="color_1" width="15%" align="right" nowrap="nowrap">
i18n_actsi.text.checkTypeName1_n81i i18n_actsi.text.checkTypeName1_n81i
</td> </td>
<td class="color_3" width="30%" align="left"> <td class="color_3" width="30%" align="left">
<input type="text" name="checkTypeInfo.checkTypeName1" id="checkTypeName1"/> <input type="text" name="checkTypeInfo.checkTypeName1" id="checkTypeName1"/>
<font color="red">*</font> <font color="red">*</font>
</td> </td>
<td class="color_1" width="10%" align="right" nowrap="nowrap"> <td class="color_1" width="10%" align="right" nowrap="nowrap">
i18n_actsi.text.checkTypeName_n81i i18n_actsi.text.checkTypeName_n81i
</td> </td>
<td class="color_3" width="35%" align="left"> <td class="color_3" width="35%" align="left">
<input type="text" name="checkTypeInfo.checkTypeName" id="checkTypeName" value="${checkTypeIden }"/> <input type="text" name="checkTypeInfo.checkTypeName" id="checkTypeName" value="${checkTypeIden }"/>
<font id="ctypeName" color="red">*</font> <font id="ctypeName" color="red">*</font>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" width="20%" align="right" nowrap="nowrap"> <td class="color_1" width="20%" align="right" nowrap="nowrap">
i18n_actsi.text.tableName_n81i i18n_actsi.text.tableName_n81i
</td> </td>
<td class="color_3" width="30%" align="left"> <td class="color_3" width="30%" align="left">
<input type="text" name="checkTypeInfo.tableName" <input type="text" name="checkTypeInfo.tableName"
id="tableName" value="DI_"/> id="tableName" value="DI_"/>
<font id="tableNameFont" color="red">*</font> <font id="tableNameFont" color="red">*</font>
</td> </td>
<td class="color_1" align="right" valign="top" nowrap="nowrap"> <td class="color_1" align="right" valign="top" nowrap="nowrap">
i18n_actsi.text.tableDesc_n81i i18n_actsi.text.tableDesc_n81i
</td> </td>
<td class="color_3" align="left"> <td class="color_3" align="left">
<input type="text" name="checkTypeInfo.tableComments" <input type="text" name="checkTypeInfo.tableComments"
id="tableName" /> id="tableName" />
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="td_1" nowrap="nowrap">i18n_actsi.text.viewPrivilege_n81i</td> <td class="td_1" nowrap="nowrap">i18n_actsi.text.viewPrivilege_n81i</td>
<td class="td_3" id="viewLevel0"> <td class="td_3" id="viewLevel0">
<c:if test="${!ADMFlag }"> <c:if test="${!ADMFlag }">
<input type="radio" name="checkTypeInfo.viewLevel" id="" value="1" checked="checked" />i18n_actsi.text.viewPrivilege.publisher_n81i&nbsp; <input type="radio" name="checkTypeInfo.viewLevel" id="" value="1" checked="checked" />i18n_actsi.text.viewPrivilege.publisher_n81i&nbsp;
<input type="radio" name="checkTypeInfo.viewLevel" id="viewLevel2" value="2" />i18n_actsi.text.viewPrivilege.publisherGroup_n81i&nbsp; <input type="radio" name="checkTypeInfo.viewLevel" id="viewLevel2" value="2" />i18n_actsi.text.viewPrivilege.publisherGroup_n81i&nbsp;
<input type="radio" name="checkTypeInfo.viewLevel" id="" value="3" />i18n_actsi.text.viewPrivilege.allInSys_n81i&nbsp; <input type="radio" name="checkTypeInfo.viewLevel" id="" value="3" />i18n_actsi.text.viewPrivilege.allInSys_n81i&nbsp;
</c:if> </c:if>
<c:if test="${ADMFlag }"> <c:if test="${ADMFlag }">
<input type="radio" name="checkTypeInfo.viewLevel" id="" value="4" checked="checked"/>i18n_actsi.text.viewPrivilege.unlimited_n81i&nbsp; <input type="radio" name="checkTypeInfo.viewLevel" id="" value="4" checked="checked"/>i18n_actsi.text.viewPrivilege.unlimited_n81i&nbsp;
</c:if> </c:if>
</td> </td>
<td class="td_1" id="usergroup">i18n_actsi.text.usergroup1_n81i</td> <td class="td_1" id="usergroup">i18n_actsi.text.usergroup1_n81i</td>
<td class="td_2" id="usergroup"> <td class="td_2" id="usergroup">
<select name="checkTypeInfo.groupId" id="usergroupid"> <select name="checkTypeInfo.groupId" id="usergroupid">
<option selected="selected" value=""> <option selected="selected" value="">
i18n_actsi.text.selectUserGroup_n81i i18n_actsi.text.selectUserGroup_n81i
</option> </option>
<c:forEach items="${setxtjs}" var="stjs"> <c:forEach items="${setxtjs}" var="stjs">
<option value="${stjs.jsbh}"> <option value="${stjs.jsbh}">
${stjs.jsmc} ${stjs.jsmc}
</option> </option>
</c:forEach> </c:forEach>
</select> </select>
<font color="red" id="group_red">* </font> <font color="red" id="group_red">* </font>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right" valign="top" nowrap="nowrap"> <td class="color_1" align="right" valign="top" nowrap="nowrap">
i18n_actsi.text.snmp_n81i i18n_actsi.text.snmp_n81i
</td> </td>
<td class="color_3" align="left" id="snmp"> <td class="color_3" align="left" id="snmp">
<input type="radio" name="checkTypeInfo.isSnmp" id="isSnmp1" value="1" />SNMP4J <input type="radio" name="checkTypeInfo.isSnmp" id="isSnmp1" value="1" />SNMP4J
<input type="radio" name="checkTypeInfo.isSnmp" id="isSnmp0" value="0" />ObjectSNMP <input type="radio" name="checkTypeInfo.isSnmp" id="isSnmp0" value="0" />ObjectSNMP
<!-- <!--
--> -->
<input type="radio" name="checkTypeInfo.isSnmp" id="isSnmp2" value="2" checked="checked"/>i18n_actsi.text.NO_n81i <input type="radio" name="checkTypeInfo.isSnmp" id="isSnmp2" value="2" checked="checked"/>i18n_actsi.text.NO_n81i
</td> </td>
<td id="oid" class="color_1" align="right" valign="top" nowrap="nowrap"> <td id="oid" class="color_1" align="right" valign="top" nowrap="nowrap">
OID OID
</td> </td>
<td id="oid" class="color_3" align="left"> <td id="oid" class="color_3" align="left">
<input type="text" name="checkTypeInfo.snmpOID" id="snmpOID" size="30"/> <input type="text" name="checkTypeInfo.snmpOID" id="snmpOID" size="30"/>
<font id="oidFont" color="red">*</font> <font id="oidFont" color="red">*</font>
</td> </td>
<!-- <!--
<td class="color_1" align="right" valign="top" nowrap="nowrap"> <td class="color_1" align="right" valign="top" nowrap="nowrap">
存在是否替换 存在是否替换
</td> </td>
<td class="color_3" align="left"> <td class="color_3" align="left">
<input type="radio" name="replace" id="yes" value="1" checked="checked"/>是 <input type="radio" name="replace" id="yes" value="1" checked="checked"/>是
<input type="radio" name="replace" id="no" value="2" />否 <input type="radio" name="replace" id="no" value="2" />否
</td> </td>
--> -->
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right" valign="top" nowrap="nowrap"> <td class="color_1" align="right" valign="top" nowrap="nowrap">
i18n_actsi.text.isSchedule_n81i i18n_actsi.text.isSchedule_n81i
</td> </td>
<td class="color_3" align="left" colspan="3"> <td class="color_3" align="left" colspan="3">
<input type="radio" name="isSchedule" value="1" disabled="disabled" checked="checked"/>i18n_actsi.text.NO_n81i <input type="radio" name="isSchedule" value="1" disabled="disabled" checked="checked"/>i18n_actsi.text.NO_n81i
<input type="hidden" name="checkTypeInfo.isSchedule" value="1"/> <input type="hidden" name="checkTypeInfo.isSchedule" value="1"/>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right" valign="top" nowrap="nowrap"> <td class="color_1" align="right" valign="top" nowrap="nowrap">
i18n_actsi.text.remark_n81i i18n_actsi.text.remark_n81i
</td> </td>
<td class="color_3" align="left" colspan="3"> <td class="color_3" align="left" colspan="3">
<textarea rows="3" cols="50" name="checkTypeInfo.checkRemark" id="checkRemark"></textarea> <textarea rows="3" cols="50" name="checkTypeInfo.checkRemark" id="checkRemark"></textarea>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_7" colspan="4" align="right"> <td class="color_7" colspan="4" align="right">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onclick="add()" onmouseup="this.className='btn3_mouseup'" onclick="add()"
value="i18n_actsi.button.submit_n81i"/> value="i18n_actsi.button.submit_n81i"/>
&nbsp; &nbsp;
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="javascript:document.forms['Mkform'].reset()" onclick="javascript:document.forms['Mkform'].reset()"
value="i18n_actsi.button.reset_n81i"/> value="i18n_actsi.button.reset_n81i"/>
</td> </td>
</tr> </tr>
</table> </table>
</form> </form>
</div> </div>
</body> </body>
</html> </html>

View File

@@ -1,319 +1,319 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%> <%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib uri="/jstl/fn" prefix="fn"%> <%@ taglib uri="/jstl/fn" prefix="fn"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
%> %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_acts.message.title_n81i</title> <title>i18n_acts.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" <link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script> src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script> src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.tools.js'/>"></script> src="<c:url value='/js/jquery.tools.js'/>"></script>
</head> </head>
<script language="javascript" type="text/javascript"> <script language="javascript" type="text/javascript">
function addCheck(){ function addCheck(){
var type; var type;
$.ajax({ $.ajax({
url:"<%=path%>/detection/metaDataSet.do?action=addCheck", url:"<%=path%>/detection/metaDataSet.do?action=addCheck",
type : "POST", type : "POST",
async:false, async:false,
data:$('#form1').serialize(), data:$('#form1').serialize(),
success : function(data) { success : function(data) {
if(data == "exception"){ if(data == "exception"){
type = false; type = false;
alert("i18n_acts.error.abnormalOperation_n81i"); alert("i18n_acts.error.abnormalOperation_n81i");
}else if(data =="success"){ }else if(data =="success"){
type = true; type = true;
}else{ }else{
type = false; type = false;
alert(data); alert(data);
} }
} }
}); });
return type; return type;
} }
var flag = false; var flag = false;
function add(){ function add(){
$("#filedNameFont").html("*"); $("#filedNameFont").html("*");
$("#zfcd").html("*"); $("#zfcd").html("*");
if(flag==true){ if(flag==true){
var legthValue = document.getElementById('filedTypeLength'); var legthValue = document.getElementById('filedTypeLength');
if(legthValue.value==""){ if(legthValue.value==""){
$("#zfcd").html("i18n_acts.error.charLen_n81i"); $("#zfcd").html("i18n_acts.error.charLen_n81i");
legthValue.focus(); legthValue.focus();
return; return;
} }
} }
if($id("filedName","","i18n_acts.text.filedName_n81i")&& $id("filedComments","","i18n_acts.text.filedComments_n81i") if($id("filedName","","i18n_acts.text.filedName_n81i")&& $id("filedComments","","i18n_acts.text.filedComments_n81i")
&& $id("filedType","xz","i18n_acts.text.filedType_n81i") && $id("showNum","","i18n_acts.text.showNum_n81i") && $id("filedType","xz","i18n_acts.text.filedType_n81i") && $id("showNum","","i18n_acts.text.showNum_n81i")
&& $id("showNum","sz","i18n_acts.text.showNum_n81i")){ && $id("showNum","sz","i18n_acts.text.showNum_n81i")){
var oid = document.getElementById("oid"); var oid = document.getElementById("oid");
if(oid!=undefined && oid!=null) {//snmp监控进行oid非空检查 if(oid!=undefined && oid!=null) {//snmp监控进行oid非空检查
if(!$id("oid","","OID")) { if(!$id("oid","","OID")) {
return; return;
} }
} }
if($("#filedName").val().length<15){ if($("#filedName").val().length<15){
if(!containSpecial($("#filedName").val())){ if(!containSpecial($("#filedName").val())){
if(!containSpecial1($("#filedName").val())){ if(!containSpecial1($("#filedName").val())){
$("#filedName").next().html("i18n_acts.error.filedName_n81i"); $("#filedName").next().html("i18n_acts.error.filedName_n81i");
return; return;
} }
if(!checkNum($("#filedName").val())){ if(!checkNum($("#filedName").val())){
if(document.getElementById('filedType').value=='VARCHAR2'){ if(document.getElementById('filedType').value=='VARCHAR2'){
if($id("filedTypeLength","","i18n_acts.text.filedTypeLength_n81i") && $id("filedTypeLength","sz","i18n_acts.text.filedTypeLength_n81i") && addCheck()){ if($id("filedTypeLength","","i18n_acts.text.filedTypeLength_n81i") && $id("filedTypeLength","sz","i18n_acts.text.filedTypeLength_n81i") && addCheck()){
document.form1.action="<%=path%>/detection/metaDataSet.do?action=doAdd"; document.form1.action="<%=path%>/detection/metaDataSet.do?action=doAdd";
document.form1.submit(); document.form1.submit();
} }
}else{ }else{
if(addCheck()){ if(addCheck()){
document.form1.action="<%=path%>/detection/metaDataSet.do?action=doAdd"; document.form1.action="<%=path%>/detection/metaDataSet.do?action=doAdd";
document.form1.submit(); document.form1.submit();
} }
} }
}else{ }else{
$("#filedNameFont").html("i18n_acts.error.cannotNum_n81i"); $("#filedNameFont").html("i18n_acts.error.cannotNum_n81i");
} }
}else{ }else{
$("#filedNameFont").html("i18n_acts.error.hasSpecialChar_n81i"); $("#filedNameFont").html("i18n_acts.error.hasSpecialChar_n81i");
} }
}else{ }else{
$("#filedNameFont").html("i18n_acts.error.lenTooLess_n81i"); $("#filedNameFont").html("i18n_acts.error.lenTooLess_n81i");
} }
} }
} }
//检查是否以数字开头 //检查是否以数字开头
function checkNum(s) function checkNum(s)
{ {
var cs = /^[0-9]*$/; var cs = /^[0-9]*$/;
resu = cs.test(s); resu = cs.test(s);
return (cs.test(s)); return (cs.test(s));
} }
//验证非中文和特殊字符 //验证非中文和特殊字符
function containSpecial1(s) function containSpecial1(s)
{ {
var cs = /^\w+$/; var cs = /^\w+$/;
resu = cs.test(s); resu = cs.test(s);
return (cs.test(s)); return (cs.test(s));
} }
function goBack(tid){ function goBack(tid){
var fw = $("#fw").val(); var fw = $("#fw").val();
var ic = $("#ic").val(); var ic = $("#ic").val();
if(fw!=null && fw !=""){//从向导过来 if(fw!=null && fw !=""){//从向导过来
if(ic!=null && ic =='0'){//添加提交过 ----监测类别源数据 操作完成 if(ic!=null && ic =='0'){//添加提交过 ----监测类别源数据 操作完成
window.location="<%=path%>/detection/metaDataSet.do?action=query&typeids="+tid+"&fromWhere="+fw+"&isComplete="+ic; window.location="<%=path%>/detection/metaDataSet.do?action=query&typeids="+tid+"&fromWhere="+fw+"&isComplete="+ic;
}else{//监测类别完成 }else{//监测类别完成
window.location="<%=path%>/detection/metaDataSet.do?action=query&typeids="+tid+"&fromWhere="+fw+"&isJclbComplete=0"; window.location="<%=path%>/detection/metaDataSet.do?action=query&typeids="+tid+"&fromWhere="+fw+"&isJclbComplete=0";
} }
}else{ }else{
window.location="<%=path%>/detection/metaDataSet.do?action=query&typeids="+tid; window.location="<%=path%>/detection/metaDataSet.do?action=query&typeids="+tid;
} }
} }
function rclick(obj){ function rclick(obj){
if(obj.id=='State1'){//停用 if(obj.id=='State1'){//停用
document.getElementById('chartState1').checked="checked"; document.getElementById('chartState1').checked="checked";
}else{//启用 }else{//启用
if($("#filedType").val() == "VARCHAR2"){ if($("#filedType").val() == "VARCHAR2"){
document.getElementById('chartState1').checked="checked"; document.getElementById('chartState1').checked="checked";
} }
} }
} }
jQuery(function(){ jQuery(function(){
jQuery("td[id=lengthFt]").hide(); jQuery("td[id=lengthFt]").hide();
jQuery("td[id=viewLevel0]").attr('colspan',3); jQuery("td[id=viewLevel0]").attr('colspan',3);
//-- 字段类型选择事件绑定 //-- 字段类型选择事件绑定
jQuery("#filedType").change(function(){ jQuery("#filedType").change(function(){
if(jQuery(this).val() == "VARCHAR2"){ if(jQuery(this).val() == "VARCHAR2"){
jQuery("td[id=lengthFt]").show(); jQuery("td[id=lengthFt]").show();
jQuery("td[id=viewLevel0]").attr('colspan',1); jQuery("td[id=viewLevel0]").attr('colspan',1);
flag = true; flag = true;
//$("#chartState0").attr("disabled","disabled"); //$("#chartState0").attr("disabled","disabled");
$("#chartState1").attr("checked","checked"); $("#chartState1").attr("checked","checked");
}else{ //字段长度隐藏 }else{ //字段长度隐藏
jQuery("td[id=lengthFt]").hide(); jQuery("td[id=lengthFt]").hide();
jQuery("#filedTypeLength").val(""); jQuery("#filedTypeLength").val("");
jQuery("td[id=viewLevel0]").attr('colspan',3); jQuery("td[id=viewLevel0]").attr('colspan',3);
flag = false; flag = false;
if($("#State1").attr("checked")==true){//停用 if($("#State1").attr("checked")==true){//停用
//$("#chartState0").attr("disabled","disabled"); //$("#chartState0").attr("disabled","disabled");
$("#chartState1").attr("checked","checked"); $("#chartState1").attr("checked","checked");
} }
} }
}); });
}) })
</script> </script>
<body> <body>
<div class="middle_list" > <div class="middle_list" >
<form action="" name="form1" method="post" id="form1"> <form action="" name="form1" method="post" id="form1">
<input type="hidden" name="pageNo" value="${pageNo }" /> <input type="hidden" name="pageNo" value="${pageNo }" />
<input type="hidden" name="pageSize" value="${pageSize }" /> <input type="hidden" name="pageSize" value="${pageSize }" />
<input type="hidden" value="${typeids[0] }" name="typeids"/> <input type="hidden" value="${typeids[0] }" name="typeids"/>
<input type="hidden" id="fw" name="fromWhere" value="${fromWhere }"/> <input type="hidden" id="fw" name="fromWhere" value="${fromWhere }"/>
<input type="hidden" id="ic" name = "isComplete" id="isComplete" value="${isComplete}"/> <input type="hidden" id="ic" name = "isComplete" id="isComplete" value="${isComplete}"/>
<input type="hidden" id="ijc" name = "isJclbComplete" id="isJclbComplete" value="${isJclbComplete}"/> <input type="hidden" id="ijc" name = "isJclbComplete" id="isJclbComplete" value="${isJclbComplete}"/>
<div style="clear: both"></div> <div style="clear: both"></div>
<table border="0" cellpadding="0" cellspacing="0" class="table"> <table border="0" cellpadding="0" cellspacing="0" class="table">
<tr> <tr>
<td colspan="4" class="color_8"> <td colspan="4" class="color_8">
<strong>i18n_acts.text.addDetecationMetaDate_n81i</strong> <strong>i18n_acts.text.addDetecationMetaDate_n81i</strong>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" width="15%" align="right"> <td class="color_1" width="15%" align="right">
i18n_acts.text.detecationType_n81i i18n_acts.text.detecationType_n81i
</td> </td>
<td class="color_3" width="35%" align="left"> <td class="color_3" width="35%" align="left">
<input type="hidden" name="checkTypeInfo.id" <input type="hidden" name="checkTypeInfo.id"
id="checkTypeId" value="${checkTypeInfo.id }"/> id="checkTypeId" value="${checkTypeInfo.id }"/>
<input type="text" name="checkTypeInfo.checkTypeName" <input type="text" name="checkTypeInfo.checkTypeName"
id="checkTypeName" value="${checkTypeInfo.checkTypeName }" readonly="readonly"/> id="checkTypeName" value="${checkTypeInfo.checkTypeName }" readonly="readonly"/>
<font color="red">*</font> <font color="red">*</font>
</td> </td>
<td class="color_1" width="15%" align="right"> <td class="color_1" width="15%" align="right">
i18n_acts.text.tableName_n81i i18n_acts.text.tableName_n81i
</td> </td>
<td class="color_3" width="35%" align="left"> <td class="color_3" width="35%" align="left">
<input type="text" name="metadata.tableName" <input type="text" name="metadata.tableName"
id="tableName" value="${checkTypeInfo.tableName }" readonly="readonly"/> id="tableName" value="${checkTypeInfo.tableName }" readonly="readonly"/>
<font color="red">*</font> <font color="red">*</font>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right"> <td class="color_1" align="right">
i18n_acts.text.filedName_n81i i18n_acts.text.filedName_n81i
</td> </td>
<td class="color_3" align="left"> <td class="color_3" align="left">
<input type="text" name="metadata.filedName" <input type="text" name="metadata.filedName"
id="filedName" value=""/> id="filedName" value=""/>
<font id="filedNameFont" color="red">*</font> <font id="filedNameFont" color="red">*</font>
</td> </td>
<td class="color_1" align="right"> <td class="color_1" align="right">
i18n_acts.text.filedComments_n81i i18n_acts.text.filedComments_n81i
</td> </td>
<td class="color_3" align="left" > <td class="color_3" align="left" >
<input type="text" name="metadata.filedComments" <input type="text" name="metadata.filedComments"
id="filedComments" value=""/> id="filedComments" value=""/>
<font color="red">*i18n_acts.error.filedComments_n81i</font> <font color="red">*i18n_acts.error.filedComments_n81i</font>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right"> <td class="color_1" align="right">
i18n_acts.text.filedType_n81i i18n_acts.text.filedType_n81i
</td> </td>
<td class="color_6" align="left" id="viewLevel0"> <td class="color_6" align="left" id="viewLevel0">
<select name="filedType" id="filedType"> <select name="filedType" id="filedType">
<option value=""> <option value="">
i18n_acts.message.filedType.selectDefault_n81i i18n_acts.message.filedType.selectDefault_n81i
</option> </option>
<option value="Number"> <option value="Number">
i18n_acts.message.filedType.selectNumber_n81i i18n_acts.message.filedType.selectNumber_n81i
</option> </option>
<option value="DATE"> <option value="DATE">
i18n_acts.message.filedType.selectDATE_n81i i18n_acts.message.filedType.selectDATE_n81i
</option> </option>
<option value="VARCHAR2"> <option value="VARCHAR2">
i18n_acts.message.filedType.selectVARCHAR2_n81i i18n_acts.message.filedType.selectVARCHAR2_n81i
</option> </option>
</select> </select>
<font color="red">*</font> <font color="red">*</font>
</td> </td>
<td class="color_1" align="right" id="lengthFt"> <td class="color_1" align="right" id="lengthFt">
i18n_acts.text.filedTypeLength_n81i i18n_acts.text.filedTypeLength_n81i
</td> </td>
<td class="color_3" align="left" id="lengthFt"> <td class="color_3" align="left" id="lengthFt">
<input type="text" name="filedTypeLength" <input type="text" name="filedTypeLength"
id="filedTypeLength" /> id="filedTypeLength" />
<font color="red" id="zfcd">*</font> <font color="red" id="zfcd">*</font>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right"> <td class="color_1" align="right">
i18n_acts.text.metaDateState_n81i i18n_acts.text.metaDateState_n81i
</td> </td>
<td nowrap="nowrap" class="color_6" align="left"> <td nowrap="nowrap" class="color_6" align="left">
<input type="radio" name="metadata.state" <input type="radio" name="metadata.state"
id="State0" value="0" onclick="rclick(this)" checked="checked" />i18n_acts.message.metaDateState0_n81i id="State0" value="0" onclick="rclick(this)" checked="checked" />i18n_acts.message.metaDateState0_n81i
<input type="radio" name="metadata.state" <input type="radio" name="metadata.state"
id="State1" value="1" onclick="rclick(this)"/>i18n_acts.message.metaDateState1_n81i id="State1" value="1" onclick="rclick(this)"/>i18n_acts.message.metaDateState1_n81i
</td> </td>
<td class="color_1" align="right"> <td class="color_1" align="right">
i18n_acts.text.ChartState_n81i i18n_acts.text.ChartState_n81i
</td> </td>
<td nowrap="nowrap" class="color_6" align="left"> <td nowrap="nowrap" class="color_6" align="left">
<input type="radio" name="metadata.chartState" <input type="radio" name="metadata.chartState"
id="chartState0" value="0" />i18n_acts.message.yes_n81i id="chartState0" value="0" />i18n_acts.message.yes_n81i
<input type="radio" name="metadata.chartState" <input type="radio" name="metadata.chartState"
id="chartState1" value="1" checked="checked" />i18n_acts.message.no_n81i id="chartState1" value="1" checked="checked" />i18n_acts.message.no_n81i
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right"> <td class="color_1" align="right">
i18n_acts.text.serialNumber_n81i i18n_acts.text.serialNumber_n81i
</td> </td>
<td class="color_3" align="left" <td class="color_3" align="left"
<c:if test="${checkTypeInfo.isSnmp != 1&&checkTypeInfo.isSnmp !=0}">colspan="3"</c:if> > <c:if test="${checkTypeInfo.isSnmp != 1&&checkTypeInfo.isSnmp !=0}">colspan="3"</c:if> >
<input type="text" name="metadata.showNum" id="showNum" value="${maxNum+1 }"/> <input type="text" name="metadata.showNum" id="showNum" value="${maxNum+1 }"/>
<font color="red">*</font> <font color="red">*</font>
</td> </td>
<c:if test="${checkTypeInfo.isSnmp == 1||checkTypeInfo.isSnmp == 0}"><!-- 是SNMP监控 --> <c:if test="${checkTypeInfo.isSnmp == 1||checkTypeInfo.isSnmp == 0}"><!-- 是SNMP监控 -->
<td class="color_1" align="right"> <td class="color_1" align="right">
OID OID
</td> </td>
<td class="color_3" align="left" > <td class="color_3" align="left" >
<input type="text" name="metadata.oid" <input type="text" name="metadata.oid"
id="oid" value=""/> id="oid" value=""/>
<font color="red">*</font> <font color="red">*</font>
</td> </td>
</c:if> </c:if>
</tr> </tr>
<tr> <tr>
<td class="color_7" colspan="4" align="right"> <td class="color_7" colspan="4" align="right">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onclick="add()" value="i18n_acts.button.submit_n81i"/> onmouseup="this.className='btn3_mouseup'" onclick="add()" value="i18n_acts.button.submit_n81i"/>
&nbsp; &nbsp;
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="javascript:document.forms['form1'].reset()" value="i18n_acts.button.reset_n81i"/> onclick="javascript:document.forms['form1'].reset()" value="i18n_acts.button.reset_n81i"/>
&nbsp; &nbsp;
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="goBack(${checkTypeInfo.id })" onclick="goBack(${checkTypeInfo.id })"
value="i18n_acts.button.back_n81i"/> value="i18n_acts.button.back_n81i"/>
&nbsp; &nbsp;
</td> </td>
</tr> </tr>
</table> </table>
</form> </form>
</div> </div>
</body> </body>
</html> </html>

View File

@@ -1,442 +1,442 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="/jstl/c"%> <%@ taglib prefix="c" uri="/jstl/c"%>
<%@ taglib prefix="fn" uri="/jstl/fn"%> <%@ taglib prefix="fn" uri="/jstl/fn"%>
<%@ taglib prefix="fmt" uri="/jstl/fmt"%> <%@ taglib prefix="fmt" uri="/jstl/fmt"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
%> %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_ctsil.message.title_n81i</title> <title>i18n_ctsil.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" type="text/css" /> <link href="<c:url value='/css/nms.css'/>" rel="stylesheet" type="text/css" />
<link href="<c:url value='/js/jBox/Skins/Gray/jbox.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" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script> src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script> src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value="/js/jBox/jquery.jBox-2.3.min.js"/>"></script> src="<c:url value="/js/jBox/jquery.jBox-2.3.min.js"/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value="/js/fileInput.js"/>"></script> src="<c:url value="/js/fileInput.js"/>"></script>
<style type="text/css"> <style type="text/css">
.mydiv { .mydiv {
background-color:#fff; background-color:#fff;
border: 1px solid #000; border: 1px solid #000;
text-align: center; text-align: center;
line-height: 40px; line-height: 40px;
font-size: 12px; font-size: 12px;
font-weight: bold; font-weight: bold;
z-index:99; z-index:99;
width: 220px; width: 220px;
height: 80px; height: 80px;
left:50%;/*FF IE7*/ left:50%;/*FF IE7*/
top: 50%;/*FF IE7*/ top: 50%;/*FF IE7*/
margin-left:-150px!important;/*FF IE7 该值为本身宽的一半 */ margin-left:-150px!important;/*FF IE7 该值为本身宽的一半 */
margin-top:-60px!important;/*FF IE7 该值为本身高的一半*/ margin-top:-60px!important;/*FF IE7 该值为本身高的一半*/
margin-top:0px; margin-top:0px;
position:fixed!important;/*FF IE7*/ position:fixed!important;/*FF IE7*/
position:absolute;/*IE6*/ position:absolute;/*IE6*/
_top: expression(eval(document.compatMode && _top: expression(eval(document.compatMode &&
document.compatMode=='CSS1Compat') ? document.compatMode=='CSS1Compat') ?
documentElement.scrollTop + (document.documentElement.clientHeight-this.offsetHeight)/2 :/*IE6*/ documentElement.scrollTop + (document.documentElement.clientHeight-this.offsetHeight)/2 :/*IE6*/
document.body.scrollTop + (document.body.clientHeight - this.clientHeight)/2);/*IE5 IE5.5*/ document.body.scrollTop + (document.body.clientHeight - this.clientHeight)/2);/*IE5 IE5.5*/
} }
.bg { .bg {
background-color: #ccc; background-color: #ccc;
width: 100%; width: 100%;
height: 100%; height: 100%;
left:0; left:0;
top:0;/*FF IE7*/ top:0;/*FF IE7*/
filter:alpha(opacity=50);/*IE*/ filter:alpha(opacity=50);/*IE*/
opacity:0.5;/*FF*/ opacity:0.5;/*FF*/
z-index:1; z-index:1;
position:fixed!important;/*FF IE7*/ position:fixed!important;/*FF IE7*/
position:absolute;/*IE6*/ position:absolute;/*IE6*/
_top: expression(eval(document.compatMode && _top: expression(eval(document.compatMode &&
document.compatMode=='CSS1Compat') ? document.compatMode=='CSS1Compat') ?
documentElement.scrollTop + (document.documentElement.clientHeight-this.offsetHeight)/2 :/*IE6*/ documentElement.scrollTop + (document.documentElement.clientHeight-this.offsetHeight)/2 :/*IE6*/
document.body.scrollTop + (document.body.clientHeight - this.clientHeight)/2);/*IE5 IE5.5*/ document.body.scrollTop + (document.body.clientHeight - this.clientHeight)/2);/*IE5 IE5.5*/
} }
/*The END*/ /*The END*/
</style> </style>
</head> </head>
<script language="javascript" type="text/javascript"> <script language="javascript" type="text/javascript">
var msg = '${MSG}'; var msg = '${MSG}';
if(msg=='1'){ if(msg=='1'){
alert("i18n_ctsil.message.success_n81i"); alert("i18n_ctsil.message.success_n81i");
}else if(msg=='2'){ }else if(msg=='2'){
alert("i18n_ctsil.message.faild_n81i"); alert("i18n_ctsil.message.faild_n81i");
} }
//添加记录 //添加记录
function addCheckTypeSet(){ function addCheckTypeSet(){
document.form3.action ="<%=path%>/detection/checkTypeSet!executeAction.do?action=openAdd&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }'; document.form3.action ="<%=path%>/detection/checkTypeSet!executeAction.do?action=openAdd&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }';
document.form3.submit(); document.form3.submit();
} }
//修改记录 //修改记录
function updCheckTypeSet(){ function updCheckTypeSet(){
if(!isRigthCheck("ids", "edit")){ if(!isRigthCheck("ids", "edit")){
alert("i18n_ctsil.error.itemSelect_n81i"); alert("i18n_ctsil.error.itemSelect_n81i");
}else{ }else{
document.form3.action ="<%=path%>/detection/checkTypeSet!executeAction.do?action=openUpdate&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }'; document.form3.action ="<%=path%>/detection/checkTypeSet!executeAction.do?action=openUpdate&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }';
document.form3.submit(); document.form3.submit();
} }
} }
//删除记录 //删除记录
function delCheckTypeSet(){ function delCheckTypeSet(){
if(!isRigthCheck("ids", "remove")){ if(!isRigthCheck("ids", "remove")){
alert("i18n_ctsil.error.itemSelect_n81i"); alert("i18n_ctsil.error.itemSelect_n81i");
}else if(confirm("i18n_ctsil.error.isDelete_n81i")){ }else if(confirm("i18n_ctsil.error.isDelete_n81i")){
document.form3.action ="<%=path%>/detection/checkTypeSet.do?action=del&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }'; document.form3.action ="<%=path%>/detection/checkTypeSet.do?action=del&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }';
document.form3.submit(); document.form3.submit();
} }
} }
//查询记录 //查询记录
function qry(){ function qry(){
document.form3.action = "<%=path%>/detection/checkTypeSet.do?action=query"; document.form3.action = "<%=path%>/detection/checkTypeSet.do?action=query";
document.form3.submit(); document.form3.submit();
} }
//配置元数据 //配置元数据
function showRecord(checktypeid){ function showRecord(checktypeid){
document.form3.action = "<%=path%>/detection/metaDataSet!executeAction.do?action=query&pageSize="+'${pageSize }'+"&pageNo="+'${pageNo }'+"&typeids="+checktypeid; document.form3.action = "<%=path%>/detection/metaDataSet!executeAction.do?action=query&pageSize="+'${pageSize }'+"&pageNo="+'${pageNo }'+"&typeids="+checktypeid;
document.form3.submit(); document.form3.submit();
} }
function ieBrowser(){ function ieBrowser(){
if($.browser.msie){ if($.browser.msie){
if($.browser.version.split('.')[0]<=7){ if($.browser.version.split('.')[0]<=7){
return false; return false;
}else{ }else{
return true;//ie8+ return true;//ie8+
} }
} }
} }
// 程辉 2013-5-8 新增 模板下载 // 程辉 2013-5-8 新增 模板下载
function downloadExample() { function downloadExample() {
document.form3.action = "<c:url value='/'/>/detection/checkTypeSet.do?action=downloadExample"; document.form3.action = "<c:url value='/'/>/detection/checkTypeSet.do?action=downloadExample";
document.form3.submit(); document.form3.submit();
document.form3.action = "<%=path%>/detection/checkTypeSet.do?action=query"; document.form3.action = "<%=path%>/detection/checkTypeSet.do?action=query";
} }
//程辉 2013-5-8 新增 导入 //程辉 2013-5-8 新增 导入
function importXls() { function importXls() {
var myfileVal = document.getElementById("myFile").value; var myfileVal = document.getElementById("myFile").value;
if(myfileVal=="") { if(myfileVal=="") {
alert("i18n_ctsil.error.selectFile_n81i"); alert("i18n_ctsil.error.selectFile_n81i");
}else if((myfileVal.lastIndexOf(".xlsx")+5)!=myfileVal.length && (myfileVal.lastIndexOf(".xls")+4)!=myfileVal.length){ }else if((myfileVal.lastIndexOf(".xlsx")+5)!=myfileVal.length && (myfileVal.lastIndexOf(".xls")+4)!=myfileVal.length){
alert("i18n_ctsil.error.selectFileType_n81i"); alert("i18n_ctsil.error.selectFileType_n81i");
}else if(confirm('i18n_ctsil.error.isImport_n81i')){ }else if(confirm('i18n_ctsil.error.isImport_n81i')){
document.form3.action = "<c:url value='/'/>/detection/checkTypeSet.do?action=importXls"; document.form3.action = "<c:url value='/'/>/detection/checkTypeSet.do?action=importXls";
document.form3.submit(); document.form3.submit();
document.form3.action = "<%=path%>/detection/checkTypeSet.do?action=query"; document.form3.action = "<%=path%>/detection/checkTypeSet.do?action=query";
} }
} }
//程辉 2013-5-8 新增 导出当前页 //程辉 2013-5-8 新增 导出当前页
function emportCurrentXls() { function emportCurrentXls() {
document.form3.action = "<c:url value='/'/>/detection/checkTypeSet.do?action=emportCurrentXls&pageNo="+$("#pageNo").val()+"&pageSize="+'${pageSize }'+"&ctn="+$("#checkTypeId").val(); document.form3.action = "<c:url value='/'/>/detection/checkTypeSet.do?action=emportCurrentXls&pageNo="+$("#pageNo").val()+"&pageSize="+'${pageSize }'+"&ctn="+$("#checkTypeId").val();
document.form3.submit(); document.form3.submit();
closeDiv(); closeDiv();
document.form3.action = "<%=path%>/detection/checkTypeSet.do?action=query"; document.form3.action = "<%=path%>/detection/checkTypeSet.do?action=query";
} }
//程辉 2013-5-8 新增 导出全部 //程辉 2013-5-8 新增 导出全部
function emportAllXls() { function emportAllXls() {
document.form3.action = "<c:url value='/'/>/detection/checkTypeSet.do?action=emportAllXls&ctn="+$("#checkTypeId").val(); document.form3.action = "<c:url value='/'/>/detection/checkTypeSet.do?action=emportAllXls&ctn="+$("#checkTypeId").val();
document.form3.submit(); document.form3.submit();
closeDiv(); closeDiv();
document.form3.action = "<%=path%>/detection/checkTypeSet.do?action=query"; document.form3.action = "<%=path%>/detection/checkTypeSet.do?action=query";
} }
function showDiv(){ function showDiv(){
document.getElementById('popDiv').style.display='block'; document.getElementById('popDiv').style.display='block';
document.getElementById('bg').style.display='block'; document.getElementById('bg').style.display='block';
} }
function closeDiv(){ function closeDiv(){
document.getElementById('popDiv').style.display='none'; document.getElementById('popDiv').style.display='none';
document.getElementById('bg').style.display='none'; document.getElementById('bg').style.display='none';
} }
$(function(){ $(function(){
var dh = document.body.clientHeight; var dh = document.body.clientHeight;
var dhh = dh-60+"px;"; var dhh = dh-60+"px;";
var tableHeight = $("#info").height(); var tableHeight = $("#info").height();
if(tableHeight > dh-60){ 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); $("#maindiv").attr("style","clear:both;margin-left:6px;overflow-y:auto;overflow-x:auto;width:99%;font-size:12px;height: "+dhh);
if(ieBrowser()){ if(ieBrowser()){
$("#info").attr("style","width:100%;"); $("#info").attr("style","width:100%;");
}else{ }else{
$("#info").attr("style","width:98.5%;"); $("#info").attr("style","width:98.5%;");
} }
}else{ }else{
$("#maindiv").attr("style","clear:both;margin-left:6px;overflow-y:auto;overflow-x:auto;width:98%;font-size:12px;height: "+dhh); $("#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%;"); $("#info").attr("style","width:100%;");
} }
// $("#maindiv").attr("style","clear:left"); // $("#maindiv").attr("style","clear:left");
$("#info").floatHeaderDiv(); $("#info").floatHeaderDiv();
}); });
window.onresize = function(){ window.onresize = function(){
$("#info").floatHeader();//用于浏览器调整大小后 列表表头自动适应 $("#info").floatHeader();//用于浏览器调整大小后 列表表头自动适应
} }
/*------ 滚动条滚动 延迟加载页面操作--------------*/ /*------ 滚动条滚动 延迟加载页面操作--------------*/
var hght=0;//初始化滚动条总长 var hght=0;//初始化滚动条总长
var topH=0;//初始化滚动条的当前位置 var topH=0;//初始化滚动条的当前位置
var pagePoint = ${pageNo}; var pagePoint = ${pageNo};
var flashFlag = false; var flashFlag = false;
var memoryData ; var memoryData ;
var intervalID ; var intervalID ;
$(document).ready(function(){//DOM的onload事件 $(document).ready(function(){//DOM的onload事件
//$(”#mypage”).load(”table.html”);//table.html的内容被加载到mypage元素 //$(”#mypage”).load(”table.html”);//table.html的内容被加载到mypage元素
$("#maindiv").scroll( function() {//定义滚动条位置改变时触发的事件。 $("#maindiv").scroll( function() {//定义滚动条位置改变时触发的事件。
hght=this.scrollHeight;//得到滚动条总长赋给hght变量 hght=this.scrollHeight;//得到滚动条总长赋给hght变量
topH=this.scrollTop+this.clientHeight;//得到滚动条当前值赋给top变量 topH=this.scrollTop+this.clientHeight;//得到滚动条当前值赋给top变量
}); });
$.get("<c:url value='checkTypeSet.do?action=queryChild'/>&pageSize="+'${pageSize }'+"&pageNo="+(++pagePoint)+"&ctn="+$("#checkTypeId").val(), function(data){//利用jquery的get方法得到table.html内容 $.get("<c:url value='checkTypeSet.do?action=queryChild'/>&pageSize="+'${pageSize }'+"&pageNo="+(++pagePoint)+"&ctn="+$("#checkTypeId").val(), function(data){//利用jquery的get方法得到table.html内容
memoryData = data; memoryData = data;
flashFlag = true; flashFlag = true;
}); });
intervalID = setInterval(function(){cando();},1000);//每隔2秒钟调用一次cando函数来判断当前滚动条位置。 intervalID = setInterval(function(){cando();},1000);//每隔2秒钟调用一次cando函数来判断当前滚动条位置。
function cando(){ function cando(){
//alert(topH+" " +hght); //alert(topH+" " +hght);
if(topH!=0 && hght!=0 && topH == hght && flashFlag){//判断滚动条当前位置是否超过总长的3/2parseInt为取整函数 if(topH!=0 && hght!=0 && topH == hght && flashFlag){//判断滚动条当前位置是否超过总长的3/2parseInt为取整函数
show();//如果是调用show函数加载内容。 show();//如果是调用show函数加载内容。
} }
//if(topH>parseInt(hght/3)*2){//判断滚动条当前位置是否超过总长的3/2parseInt为取整函数 //if(topH>parseInt(hght/3)*2){//判断滚动条当前位置是否超过总长的3/2parseInt为取整函数
// show();//如果是调用show函数加载内容。 // show();//如果是调用show函数加载内容。
//} //}
} }
function show(){ function show(){
flashFlag=false; flashFlag=false;
hght=0;//恢复滚动条总长,因为$(”#mypage”).scroll事件一触发又会得到新值不恢复的话可能会造成判断错误而再次加载…… hght=0;//恢复滚动条总长,因为$(”#mypage”).scroll事件一触发又会得到新值不恢复的话可能会造成判断错误而再次加载……
topH=0;//原因同上。 topH=0;//原因同上。
var flag2 = true; var flag2 = true;
if(memoryData!=null&&memoryData!=""&&memoryData.replace(/(^\s*)|(\s*$)/g,"")!=""){ if(memoryData!=null&&memoryData!=""&&memoryData.replace(/(^\s*)|(\s*$)/g,"")!=""){
try{ try{
$("#info").append($(memoryData));//用append方法追加内容到mypage元素。 $("#info").append($(memoryData));//用append方法追加内容到mypage元素。
$("#currentPage").html(pagePoint); $("#currentPage").html(pagePoint);
$("#pageNo").val(pagePoint); $("#pageNo").val(pagePoint);
flag2 = false; flag2 = false;
}catch(err){ }catch(err){
} }
} }
$.get("<c:url value='checkTypeSet.do?action=queryChild'/>&pageSize="+'${pageSize }'+"&pageNo="+(++pagePoint)+"&ctn="+$("#checkTypeId").val(), function(data){//利用jquery的get方法得到table.html内容 $.get("<c:url value='checkTypeSet.do?action=queryChild'/>&pageSize="+'${pageSize }'+"&pageNo="+(++pagePoint)+"&ctn="+$("#checkTypeId").val(), function(data){//利用jquery的get方法得到table.html内容
if(flag2){ if(flag2){
try{ try{
$("#info").append($(data));//用append方法追加内容到mypage元素。 $("#info").append($(data));//用append方法追加内容到mypage元素。
}catch(err){ }catch(err){
} }
}else{ }else{
flag2 = true; flag2 = true;
memoryData = data; memoryData = data;
} }
//无数据 //无数据
if(data==null||data==""){ if(data==null||data==""){
clearInterval(intervalID); clearInterval(intervalID);
} }
flashFlag = true; flashFlag = true;
}); });
loadButton(); loadButton();
} }
}); });
/*------ 滚动条滚动 延迟加载页面操作--------------*/ /*------ 滚动条滚动 延迟加载页面操作--------------*/
</script> </script>
<body> <body>
<div class="middle_list" style="overflow: hidden;"> <div class="middle_list" style="overflow: hidden;">
<form name=form3 id="frmArticleType" action="<c:url value='/detection/checkTypeSet.do?action=query'/>" method="post" enctype="multipart/form-data"> <form name=form3 id="frmArticleType" action="<c:url value='/detection/checkTypeSet.do?action=query'/>" method="post" enctype="multipart/form-data">
<input type="hidden" name = "isComplete" id="isComplete" value="${isComplete}"/> <input type="hidden" name = "isComplete" id="isComplete" value="${isComplete}"/>
<input type="hidden" id="fw" name="fromWhere" value="${fromWhere }"/> <input type="hidden" id="fw" name="fromWhere" value="${fromWhere }"/>
<input type="hidden" name="pageNoforexp" id="pageNo" value="${pageNo }"/> <input type="hidden" name="pageNoforexp" id="pageNo" value="${pageNo }"/>
<div id="divTop"> <div id="divTop">
<div class="box_1"> <div class="box_1">
<label class="divTopText"><font class="selectText">i18n_ctsil.text.detecationTypeName_n81i</font> <label class="divTopText"><font class="selectText">i18n_ctsil.text.detecationTypeName_n81i</font>
<select style="width:140px;" name="ctn" id="checkTypeId"> <select style="width:140px;" name="ctn" id="checkTypeId">
<option value=""> <option value="">
--i18n_ctsil.message.selectDetecationTypeDefault_n81i-- --i18n_ctsil.message.selectDetecationTypeDefault_n81i--
</option> </option>
<c:if test="${fn:length(allCheckTypeInfo) > 0}"> <c:if test="${fn:length(allCheckTypeInfo) > 0}">
<c:set var="isSchedule0" value="0"/> <c:set var="isSchedule0" value="0"/>
<c:forEach items="${allCheckTypeInfo}" var="checkType"> <c:forEach items="${allCheckTypeInfo}" var="checkType">
<c:if test="${checkType.isSchedule != isSchedule0 }"> <c:if test="${checkType.isSchedule != isSchedule0 }">
<option style="height: 2px;" disabled="disabled">--------------------</option> <option style="height: 2px;" disabled="disabled">--------------------</option>
<c:set var="isSchedule0" value="${checkType.isSchedule}"/> <c:set var="isSchedule0" value="${checkType.isSchedule}"/>
</c:if> </c:if>
<option value="${checkType.id}" <option value="${checkType.id}"
<c:if test="${not empty ctn && ctn == checkType.id }">selected="selected"</c:if>> <c:if test="${not empty ctn && ctn == checkType.id }">selected="selected"</c:if>>
${checkType.checkTypeName1} ${checkType.checkTypeName1}
</option> </option>
</c:forEach> </c:forEach>
</c:if> </c:if>
</select></label> </select></label>
<img src="<c:url value='/images/button_chaxun.png'/>" <img src="<c:url value='/images/button_chaxun.png'/>"
class="img_middle2" onclick="javascript:qry();" /> class="img_middle2" onclick="javascript:qry();" />
</div> </div>
<div class="box_2"> <div class="box_2">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="javascript:downloadExample();" value="i18n_ctsil.button.downloadModel_n81i"/> onclick="javascript:downloadExample();" value="i18n_ctsil.button.downloadModel_n81i"/>
&nbsp; &nbsp;
<input type="button" value="i18n_ctsil.button.import_n81i Excel" title="i18n_ctsil.button.import_n81i Excel" class="btn3_mouseout" onclick="javascript:uploadFile(this)"/> <input type="button" value="i18n_ctsil.button.import_n81i Excel" title="i18n_ctsil.button.import_n81i Excel" class="btn3_mouseout" onclick="javascript:uploadFile(this)"/>
<input type="file" name="myFile" id="myFile" value="" class="filebtn" onchange="javascript:setValue(this.value)"/> <input type="file" name="myFile" id="myFile" value="" class="filebtn" onchange="javascript:setValue(this.value)"/>
&nbsp; &nbsp;
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="javascript:importXls();" value="i18n_ctsil.button.import_n81i"/> onclick="javascript:importXls();" value="i18n_ctsil.button.import_n81i"/>
&nbsp; &nbsp;
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="javascript:showDiv();" value="i18n_ctsil.button.export_n81i"/> onclick="javascript:showDiv();" value="i18n_ctsil.button.export_n81i"/>
&nbsp; &nbsp;
<jsp:include page="/include/include.jsp" /> <jsp:include page="/include/include.jsp" />
</div> </div>
</div> </div>
<div id="maindiv"> <div id="maindiv">
<table border="0" cellpadding="0" cellspacing="0" class="table" id="info"> <table border="0" cellpadding="0" cellspacing="0" class="table" id="info">
<tr > <tr >
<td width="6%" class="color_top"> <td width="6%" class="color_top">
<input type="checkbox" name="checkbox62" value="checkbox" onClick="checkAll(this)" />i18n_ctsil.button.index_n81i <input type="checkbox" name="checkbox62" value="checkbox" onClick="checkAll(this)" />i18n_ctsil.button.index_n81i
</td> </td>
<td width="12%" class="color_top"> <td width="12%" class="color_top">
i18n_ctsil.text.detecationTypeName_n81i i18n_ctsil.text.detecationTypeName_n81i
</td> </td>
<td width="12%" class="color_top"> <td width="12%" class="color_top">
i18n_ctsil.text.detecationType_n81i i18n_ctsil.text.detecationType_n81i
</td> </td>
<td width="10%" class="color_top"> <td width="10%" class="color_top">
i18n_ctsil.text.tableMap_n81i i18n_ctsil.text.tableMap_n81i
</td> </td>
<td width="10%" class="color_top"> <td width="10%" class="color_top">
i18n_ctsil.text.tableComments_n81i i18n_ctsil.text.tableComments_n81i
</td> </td>
<td width="5%" class="color_top"> <td width="5%" class="color_top">
i18n_ctsil.text.isSchedule_n81i i18n_ctsil.text.isSchedule_n81i
</td> </td>
<td width="5%" class="color_top"> <td width="5%" class="color_top">
i18n_ctsil.text.isSnmp_n81i i18n_ctsil.text.isSnmp_n81i
</td> </td>
<td width="12%" class="color_8"> <td width="12%" class="color_8">
i18n_ctsil.text.remark_n81i i18n_ctsil.text.remark_n81i
</td> </td>
</tr> </tr>
<c:set var="index" value="${1}" /> <c:set var="index" value="${1}" />
<c:choose> <c:choose>
<c:when test="${fn:length(checkTypeSetList) > 0}"> <c:when test="${fn:length(checkTypeSetList) > 0}">
<c:forEach items="${checkTypeSetList}" var="checkTypeSet" varStatus="vs"> <c:forEach items="${checkTypeSetList}" var="checkTypeSet" varStatus="vs">
<c:set var="color" value="color_1"/> <c:set var="color" value="color_1"/>
<c:set var="color_end" value="color_7"/> <c:set var="color_end" value="color_7"/>
<c:if test="${vs.count%2!=0 }"> <c:if test="${vs.count%2!=0 }">
<c:set var="color" value="color_3"/> <c:set var="color" value="color_3"/>
<c:set var="color_end" value="color_6"/> <c:set var="color_end" value="color_6"/>
</c:if> </c:if>
<tr > <tr >
<td class="${color }"> <td class="${color }">
<c:if test="${checkTypeSet.isSchedule=='0'}"> <c:if test="${checkTypeSet.isSchedule=='0'}">
<input type="checkbox" name="ids" id="ids" <input type="checkbox" name="ids" id="ids"
value="${checkTypeSet.id}" disabled="disabled"/> value="${checkTypeSet.id}" disabled="disabled"/>
</c:if> </c:if>
<c:if test="${checkTypeSet.isSchedule=='2'}"> <c:if test="${checkTypeSet.isSchedule=='2'}">
<input type="checkbox" name="ids" id="ids" <input type="checkbox" name="ids" id="ids"
value="${checkTypeSet.id}" disabled="disabled"/> value="${checkTypeSet.id}" disabled="disabled"/>
</c:if> </c:if>
<c:if test="${checkTypeSet.isSchedule=='1'}"> <c:if test="${checkTypeSet.isSchedule=='1'}">
<input type="checkbox" name="ids" id="ids" ${(ADMFlag && checkTypeSet.viewLevel ne 4) || (!ADMFlag && checkTypeSet.viewLevel eq 4) ? "disabled='disabled'":""} <input type="checkbox" name="ids" id="ids" ${(ADMFlag && checkTypeSet.viewLevel ne 4) || (!ADMFlag && checkTypeSet.viewLevel eq 4) ? "disabled='disabled'":""}
value="${checkTypeSet.id}"/> value="${checkTypeSet.id}"/>
</c:if> </c:if>
${index+(pageNo-1)*pageSize} ${index+(pageNo-1)*pageSize}
</td> </td>
<td class="${color }"> <td class="${color }">
<a href="javascript:showRecord('${checkTypeSet.id}')">${checkTypeSet.checkTypeName1}</a> <a href="javascript:showRecord('${checkTypeSet.id}')">${checkTypeSet.checkTypeName1}</a>
</td> </td>
<td class="${color }"> <td class="${color }">
${checkTypeSet.checkTypeName} ${checkTypeSet.checkTypeName}
</td> </td>
<td class="${color }"> <td class="${color }">
${checkTypeSet.tableName} ${checkTypeSet.tableName}
</td> </td>
<td class="${color }"> <td class="${color }">
${checkTypeSet.tableComments} ${checkTypeSet.tableComments}
</td> </td>
<td class="${color }"> <td class="${color }">
<c:if test="${checkTypeSet.isSchedule=='0'}">i18n_ctsil.message.yes_n81i</c:if> <c:if test="${checkTypeSet.isSchedule=='0'}">i18n_ctsil.message.yes_n81i</c:if>
<c:if test="${checkTypeSet.isSchedule=='1'}">i18n_ctsil.message.no_n81i</c:if> <c:if test="${checkTypeSet.isSchedule=='1'}">i18n_ctsil.message.no_n81i</c:if>
<c:if test="${checkTypeSet.isSchedule=='2'}">i18n_ctsil.message.yes_n81i</c:if> <c:if test="${checkTypeSet.isSchedule=='2'}">i18n_ctsil.message.yes_n81i</c:if>
</td> </td>
<td class="${color }"> <td class="${color }">
<c:if test="${checkTypeSet.isSnmp=='1'||checkTypeSet.isSnmp=='0'}">i18n_ctsil.message.yes_n81i</c:if> <c:if test="${checkTypeSet.isSnmp=='1'||checkTypeSet.isSnmp=='0'}">i18n_ctsil.message.yes_n81i</c:if>
<c:if test="${checkTypeSet.isSnmp=='2'||checkTypeSet.isSnmp eq null}">i18n_ctsil.message.no_n81i</c:if> <c:if test="${checkTypeSet.isSnmp=='2'||checkTypeSet.isSnmp eq null}">i18n_ctsil.message.no_n81i</c:if>
</td> </td>
<td class="${color_end }"> <td class="${color_end }">
${checkTypeSet.checkRemark} ${checkTypeSet.checkRemark}
</td> </td>
</tr> </tr>
<c:set var="index" value="${index + 1}" /> <c:set var="index" value="${index + 1}" />
</c:forEach> </c:forEach>
</c:when> </c:when>
<c:otherwise> <c:otherwise>
<tr> <tr>
<td colspan="8" class="color_6" align="center"> <td colspan="8" class="color_6" align="center">
i18n_ctsil.message.noRecord_n81i i18n_ctsil.message.noRecord_n81i
</td> </td>
</tr> </tr>
</c:otherwise> </c:otherwise>
</c:choose> </c:choose>
</table> </table>
</div> </div>
<c:if test="${!empty checkTypeSetList}"> <c:if test="${!empty checkTypeSetList}">
<div id="divBoot"> <div id="divBoot">
<jsp:include page="/common/page.jsp" /> <jsp:include page="/common/page.jsp" />
</div> </div>
</c:if> </c:if>
</form> </form>
</div> </div>
<div id="popDiv" class="mydiv" style="display:none;"> <div id="popDiv" class="mydiv" style="display:none;">
<input type="hidden" /> <input type="hidden" />
<input type="button" class=btn3_mouseout style="width:100px;" <input type="button" class=btn3_mouseout style="width:100px;"
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="javascript:emportCurrentXls();" value="i18n_ctsil.button.exportCurrentPage_n81i"/> onclick="javascript:emportCurrentXls();" value="i18n_ctsil.button.exportCurrentPage_n81i"/>
&nbsp; &nbsp;
<input type="button" class=btn3_mouseout style="width:80px" <input type="button" class=btn3_mouseout style="width:80px"
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="javascript:emportAllXls();" value="i18n_ctsil.button.exportAllData_n81i"/> onclick="javascript:emportAllXls();" value="i18n_ctsil.button.exportAllData_n81i"/>
&nbsp;<br/> &nbsp;<br/>
<a href="javascript:closeDiv()">i18n_ctsil.button.closeWindow_n81i</a></div> <a href="javascript:closeDiv()">i18n_ctsil.button.closeWindow_n81i</a></div>
<div id="bg" class="bg" style="display:none;"></div> <div id="bg" class="bg" style="display:none;"></div>
</body> </body>
</html> </html>

View File

@@ -1,64 +1,64 @@
<%@ page language="java" pageEncoding="utf-8"%> <%@ page language="java" pageEncoding="utf-8"%>
<%@include file="/common/taglib.jsp"%> <%@include file="/common/taglib.jsp"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
%> %>
<c:set var="index" value="${1}" /> <c:set var="index" value="${1}" />
<c:choose> <c:choose>
<c:when test="${fn:length(checkTypeSetList) > 0}"> <c:when test="${fn:length(checkTypeSetList) > 0}">
<c:forEach items="${checkTypeSetList}" var="checkTypeSet" varStatus="vs"> <c:forEach items="${checkTypeSetList}" var="checkTypeSet" varStatus="vs">
<c:set var="color" value="color_1"/> <c:set var="color" value="color_1"/>
<c:set var="color_end" value="color_7"/> <c:set var="color_end" value="color_7"/>
<c:if test="${vs.count%2!=0 }"> <c:if test="${vs.count%2!=0 }">
<c:set var="color" value="color_3"/> <c:set var="color" value="color_3"/>
<c:set var="color_end" value="color_6"/> <c:set var="color_end" value="color_6"/>
</c:if> </c:if>
<tr > <tr >
<td class="${color }"> <td class="${color }">
<c:if test="${checkTypeSet.isSchedule=='0'}"> <c:if test="${checkTypeSet.isSchedule=='0'}">
<input type="checkbox" name="ids" id="ids" <input type="checkbox" name="ids" id="ids"
value="${checkTypeSet.id}" disabled="disabled"/> value="${checkTypeSet.id}" disabled="disabled"/>
</c:if> </c:if>
<c:if test="${checkTypeSet.isSchedule=='2'}"> <c:if test="${checkTypeSet.isSchedule=='2'}">
<input type="checkbox" name="ids" id="ids" <input type="checkbox" name="ids" id="ids"
value="${checkTypeSet.id}" disabled="disabled"/> value="${checkTypeSet.id}" disabled="disabled"/>
</c:if> </c:if>
<c:if test="${checkTypeSet.isSchedule=='1'}"> <c:if test="${checkTypeSet.isSchedule=='1'}">
<input type="checkbox" name="ids" id="ids" ${(ADMFlag && checkTypeSet.viewLevel ne 4) || (!ADMFlag && checkTypeSet.viewLevel eq 4) ? "disabled='disabled'":""} <input type="checkbox" name="ids" id="ids" ${(ADMFlag && checkTypeSet.viewLevel ne 4) || (!ADMFlag && checkTypeSet.viewLevel eq 4) ? "disabled='disabled'":""}
value="${checkTypeSet.id}"/> value="${checkTypeSet.id}"/>
</c:if> </c:if>
${index+(pageNo-1)*pageSize} ${index+(pageNo-1)*pageSize}
</td> </td>
<td class="${color }"> <td class="${color }">
<a href="javascript:showRecord('${checkTypeSet.id}')">${checkTypeSet.checkTypeName1}</a> <a href="javascript:showRecord('${checkTypeSet.id}')">${checkTypeSet.checkTypeName1}</a>
</td> </td>
<td class="${color }"> <td class="${color }">
${checkTypeSet.checkTypeName} ${checkTypeSet.checkTypeName}
</td> </td>
<td class="${color }"> <td class="${color }">
${checkTypeSet.tableName} ${checkTypeSet.tableName}
</td> </td>
<td class="${color }"> <td class="${color }">
${checkTypeSet.tableComments} ${checkTypeSet.tableComments}
</td> </td>
<td class="${color }"> <td class="${color }">
<c:if test="${checkTypeSet.isSchedule=='0'}">i18n_ctsilc.message.yes_n81i</c:if> <c:if test="${checkTypeSet.isSchedule=='0'}">i18n_ctsilc.message.yes_n81i</c:if>
<c:if test="${checkTypeSet.isSchedule=='1'}">i18n_ctsilc.message.no_n81i</c:if> <c:if test="${checkTypeSet.isSchedule=='1'}">i18n_ctsilc.message.no_n81i</c:if>
<c:if test="${checkTypeSet.isSchedule=='2'}">i18n_ctsilc.message.yes_n81i</c:if> <c:if test="${checkTypeSet.isSchedule=='2'}">i18n_ctsilc.message.yes_n81i</c:if>
</td> </td>
<td class="${color }"> <td class="${color }">
<c:if test="${checkTypeSet.isSnmp=='1'||checkTypeSet.isSnmp=='0'}">i18n_ctsilc.message.yes_n81i</c:if> <c:if test="${checkTypeSet.isSnmp=='1'||checkTypeSet.isSnmp=='0'}">i18n_ctsilc.message.yes_n81i</c:if>
<c:if test="${checkTypeSet.isSnmp=='2'||checkTypeSet.isSnmp eq null}">i18n_ctsilc.message.no_n81i</c:if> <c:if test="${checkTypeSet.isSnmp=='2'||checkTypeSet.isSnmp eq null}">i18n_ctsilc.message.no_n81i</c:if>
</td> </td>
<td class="${color_end }"> <td class="${color_end }">
${checkTypeSet.checkRemark} ${checkTypeSet.checkRemark}
</td> </td>
</tr> </tr>
<c:set var="index" value="${index + 1}" /> <c:set var="index" value="${index + 1}" />
</c:forEach> </c:forEach>
</c:when> </c:when>
</c:choose> </c:choose>

View File

@@ -1,410 +1,410 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="/jstl/c"%> <%@ taglib prefix="c" uri="/jstl/c"%>
<%@ taglib prefix="fn" uri="/jstl/fn"%> <%@ taglib prefix="fn" uri="/jstl/fn"%>
<%@ taglib prefix="fmt" uri="/jstl/fmt"%> <%@ taglib prefix="fmt" uri="/jstl/fmt"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
%> %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_ctsl.message.title_n81i</title> <title>i18n_ctsl.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" type="text/css" /> <link href="<c:url value='/css/nms.css'/>" rel="stylesheet" type="text/css" />
<link href="<c:url value='/js/jBox/Skins/Gray/jbox.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" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script> src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script> src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.suggest.js'/>"></script> src="<c:url value='/js/jquery.suggest.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value="/js/jBox/jquery.jBox-2.3.min.js"/>"></script> src="<c:url value="/js/jBox/jquery.jBox-2.3.min.js"/>"></script>
</head> </head>
<script language="javascript" type="text/javascript"> <script language="javascript" type="text/javascript">
var msg = '${MSG}'; var msg = '${MSG}';
if(msg=='1'){ if(msg=='1'){
alert("i18n_ctsl.message.success_n81i"); alert("i18n_ctsl.message.success_n81i");
}else if(msg=='2'){ }else if(msg=='2'){
alert("i18n_ctsl.message.faild_n81i"); alert("i18n_ctsl.message.faild_n81i");
} }
//添加记录 //添加记录
function add(id){ function add(id){
document.form3.action = "<%=path%>/detection/metaDataSet!executeAction.do?action=oppAdd&typeids="+id; document.form3.action = "<%=path%>/detection/metaDataSet!executeAction.do?action=oppAdd&typeids="+id;
document.form3.submit(); document.form3.submit();
} }
//批量修改记录: //批量修改记录:
function upd(){ function upd(){
if(!isRigthCheck("ids", "remove")){ if(!isRigthCheck("ids", "remove")){
alert("i18n_ctsl.error.itemSelect_n81i"); alert("i18n_ctsl.error.itemSelect_n81i");
}else{ }else{
document.form3.action ="<%=path%>/detection/metaDataSet!executeAction.do?action=oppUpdList"; document.form3.action ="<%=path%>/detection/metaDataSet!executeAction.do?action=oppUpdList";
document.form3.submit(); document.form3.submit();
} }
} }
//修改记录,暂时不用 //修改记录,暂时不用
function updOld(){ function updOld(){
//alert(1); //alert(1);
if(!isRigthCheck("ids", "edit")){ if(!isRigthCheck("ids", "edit")){
alert("i18n_ctsl.error.itemSelect1_n81i"); alert("i18n_ctsl.error.itemSelect1_n81i");
}else{ }else{
document.form3.action ="<%=path%>/detection/metaDataSet!executeAction.do?action=oppUpd"; document.form3.action ="<%=path%>/detection/metaDataSet!executeAction.do?action=oppUpd";
document.form3.submit(); document.form3.submit();
} }
} }
//生成数据表 //生成数据表
function createTable(){ function createTable(){
if(confirm("i18n_ctsl.message.isCreateTable_n81i")){ if(confirm("i18n_ctsl.message.isCreateTable_n81i")){
document.form3.action ="<%=path%>/detection/metaDataSet!executeAction.do?action=createTab"; document.form3.action ="<%=path%>/detection/metaDataSet!executeAction.do?action=createTab";
document.form3.submit(); document.form3.submit();
} }
} }
//向数据表添加字段 //向数据表添加字段
function addFiled(){ function addFiled(){
if(confirm("i18n_ctsl.message.isAddFiled_n81i")){ if(confirm("i18n_ctsl.message.isAddFiled_n81i")){
document.form3.action ="<%=path%>/detection/metaDataSet!executeAction.do?action=addFiled"; document.form3.action ="<%=path%>/detection/metaDataSet!executeAction.do?action=addFiled";
document.form3.submit(); document.form3.submit();
} }
} }
//停用:将METADATA表中的STATE字段置为1 //停用:将METADATA表中的STATE字段置为1
function startUpOrStop(type) { function startUpOrStop(type) {
if(!isRigthCheck("ids", "remove")){ if(!isRigthCheck("ids", "remove")){
alert("i18n_ctsl.error.itemSelect_n81i"); alert("i18n_ctsl.error.itemSelect_n81i");
}else { }else {
var num = jQuery("input[name='ids']:checked").size(); var num = jQuery("input[name='ids']:checked").size();
var mids = new Array(num); var mids = new Array(num);
jQuery("input[name='ids']:checked").each(function(i){ jQuery("input[name='ids']:checked").each(function(i){
mids[i]=$(this).val(); mids[i]=$(this).val();
}); });
jQuery.post("<c:url value='/'/>detection/metaDataSet!getState.do",{ids:mids.toString()},function(datas){checkIsState(datas,type);},"json"); jQuery.post("<c:url value='/'/>detection/metaDataSet!getState.do",{ids:mids.toString()},function(datas){checkIsState(datas,type);},"json");
} }
} }
function checkIsState(datas,type) { function checkIsState(datas,type) {
if(datas!=null && datas.length>0) { if(datas!=null && datas.length>0) {
if(type=='1'){//停用 if(type=='1'){//停用
document.form3.action="<%=path%>/detection/metaDataSet.do?action=stop"; document.form3.action="<%=path%>/detection/metaDataSet.do?action=stop";
document.form3.submit(); document.form3.submit();
}else{//启用 }else{//启用
document.form3.action="<%=path%>/detection/metaDataSet.do?action=start"; document.form3.action="<%=path%>/detection/metaDataSet.do?action=start";
document.form3.submit(); document.form3.submit();
} }
} }
} }
function goBack(){ function goBack(){
document.form3.action ="<%=path%>/detection/checkTypeSet.do?action=query"; document.form3.action ="<%=path%>/detection/checkTypeSet.do?action=query";
document.form3.submit(); document.form3.submit();
} }
function ieBrowser(){ function ieBrowser(){
if($.browser.msie){ if($.browser.msie){
if($.browser.version.split('.')[0]<=7){ if($.browser.version.split('.')[0]<=7){
return false; return false;
}else{ }else{
return true;//ie8+ return true;//ie8+
} }
} }
} }
function goGuide(datas) { function goGuide(datas) {
if(datas!=null && datas!=""){ if(datas!=null && datas!=""){
if(datas.resu=='over') { if(datas.resu=='over') {
window.location ="<%=path%>/sysManage/guideManage!execute.do?action=index"; window.location ="<%=path%>/sysManage/guideManage!execute.do?action=index";
} }
} }
} }
$(function(){ $(function(){
var dh = document.body.clientHeight; var dh = document.body.clientHeight;
var dhh = dh-60+"px;"; var dhh = dh-60+"px;";
var tableHeight = $("#info").height(); var tableHeight = $("#info").height();
if(tableHeight > dh-60){ 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); $("#maindiv").attr("style","clear:both;margin-left:6px;overflow-y:auto;overflow-x:auto;width:99%;font-size:12px;height: "+dhh);
if(ieBrowser()){ if(ieBrowser()){
$("#info").attr("style","width:100%;"); $("#info").attr("style","width:100%;");
}else{ }else{
$("#info").attr("style","width:98.5%;"); $("#info").attr("style","width:98.5%;");
} }
}else{ }else{
$("#maindiv").attr("style","clear:both;margin-left:6px;overflow-y:auto;overflow-x:auto;width:98%;font-size:12px;height: "+dhh); $("#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%;"); $("#info").attr("style","width:100%;");
} }
if($("#isComplete").val()=='0'){ if($("#isComplete").val()=='0'){
var submit = function (v, h, f) { var submit = function (v, h, f) {
if (v == 'yes') { if (v == 'yes') {
$("input[type=hidden][name=fromWhere]").val('formGuide'); $("input[type=hidden][name=fromWhere]").val('formGuide');
return; return;
} }
if (v == 'no') { if (v == 'no') {
$.post("<c:url value='/sysManage/guideManage!setComplete.do'/>", $.post("<c:url value='/sysManage/guideManage!setComplete.do'/>",
{ {
packNum:9, packNum:9,
packName:'jclbysj' packName:'jclbysj'
}, },
function(datas){ function(datas){
goGuide(datas); goGuide(datas);
},"json"); },"json");
} }
}; };
$.jBox.warning("i18n_ctsl.message.warningDetecationMetaDate_n81i", "i18n_ctsl.message.hint_n81i", submit,{icon: false}); $.jBox.warning("i18n_ctsl.message.warningDetecationMetaDate_n81i", "i18n_ctsl.message.hint_n81i", submit,{icon: false});
} }
if($("#isJclbComplete").val()=='0'){ if($("#isJclbComplete").val()=='0'){
var submit = function (v, h, f) { var submit = function (v, h, f) {
if (v == 'yes') { if (v == 'yes') {
$("input[type=hidden][name=fromWhere]").val('formGuide'); $("input[type=hidden][name=fromWhere]").val('formGuide');
return; return;
} }
if (v == 'no') { if (v == 'no') {
$.post("<c:url value='/sysManage/guideManage!setComplete.do'/>", $.post("<c:url value='/sysManage/guideManage!setComplete.do'/>",
{ {
packNum:8, packNum:8,
packName:'jclb' packName:'jclb'
}, },
function(datas){ function(datas){
goGuide(datas); goGuide(datas);
},"json"); },"json");
} }
}; };
$.jBox.warning("i18n_ctsl.message.warningDetecationType_n81i", "i18n_ctsl.message.hint_n81i", submit,{icon: false}); $.jBox.warning("i18n_ctsl.message.warningDetecationType_n81i", "i18n_ctsl.message.hint_n81i", submit,{icon: false});
} }
$("#info").floatHeaderDiv(); $("#info").floatHeaderDiv();
}); });
window.onresize = function(){ window.onresize = function(){
$("#info").floatHeader();//用于浏览器调整大小后 列表表头自动适应 $("#info").floatHeader();//用于浏览器调整大小后 列表表头自动适应
} }
</script> </script>
<body> <body>
<div class="middle_list" style="overflow: hidden;"> <div class="middle_list" style="overflow: hidden;">
<form name=form3 id="frmArticleType" <form name=form3 id="frmArticleType"
action="<c:url value='/detection/metaDataSet.do'/>" method="post"> action="<c:url value='/detection/metaDataSet.do'/>" method="post">
<input type="hidden" name="typeids" value="${typeids[0]}"/> <input type="hidden" name="typeids" value="${typeids[0]}"/>
<input type="hidden" name="ctn" id="ctn" value="${ctn }" /> <input type="hidden" name="ctn" id="ctn" value="${ctn }" />
<input type="hidden" name = "isComplete" id="isComplete" value="${isComplete}"/> <input type="hidden" name = "isComplete" id="isComplete" value="${isComplete}"/>
<input type="hidden" name = "isJclbComplete" id="isJclbComplete" value="${isJclbComplete}"/> <input type="hidden" name = "isJclbComplete" id="isJclbComplete" value="${isJclbComplete}"/>
<input type="hidden" name="fromWhere" value="${fromWhere }"/> <input type="hidden" name="fromWhere" value="${fromWhere }"/>
<input type="hidden" name="isSnmp" value="${isSnmp }"/> <input type="hidden" name="isSnmp" value="${isSnmp }"/>
<input type="hidden" name="pageNo" value="${pageNo }" /> <input type="hidden" name="pageNo" value="${pageNo }" />
<input type="hidden" name="pageSize" value="${pageSize }" /> <input type="hidden" name="pageSize" value="${pageSize }" />
<div id="divTop"> <div id="divTop">
<div class="box_2"> <div class="box_2">
<c:if test="${isSch=='0'&& isHaveTable=='no'}"> <c:if test="${isSch=='0'&& isHaveTable=='no'}">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="add(${typeids[0]})" value="i18n_ctsl.button.add_n81i" disabled="disabled"/> <!-- 预置表的新增 --> onclick="add(${typeids[0]})" value="i18n_ctsl.button.add_n81i" disabled="disabled"/> <!-- 预置表的新增 -->
</c:if> </c:if>
<c:if test="${isSch=='1'}"> <c:if test="${isSch=='1'}">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="add(${typeids[0]})" value="i18n_ctsl.button.add_n81i" onclick="add(${typeids[0]})" value="i18n_ctsl.button.add_n81i"
${(ADMFlag && checkTypeInfo.viewLevel ne 4) || (!ADMFlag && checkTypeInfo.viewLevel eq 4) ? "disabled='disabled'":""}/> ${(ADMFlag && checkTypeInfo.viewLevel ne 4) || (!ADMFlag && checkTypeInfo.viewLevel eq 4) ? "disabled='disabled'":""}/>
</c:if> </c:if>
&nbsp; &nbsp;
<c:if test="${isSch=='0' && isHaveTable=='no'}"> <c:if test="${isSch=='0' && isHaveTable=='no'}">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="upd()" value="i18n_ctsl.button.update_n81i" disabled="disabled"/> onclick="upd()" value="i18n_ctsl.button.update_n81i" disabled="disabled"/>
</c:if> </c:if>
<c:if test="${isSch=='1'}"> <c:if test="${isSch=='1'}">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="upd()" value="i18n_ctsl.button.update_n81i" onclick="upd()" value="i18n_ctsl.button.update_n81i"
${(ADMFlag && checkTypeInfo.viewLevel ne 4) || (!ADMFlag && checkTypeInfo.viewLevel eq 4) ? "disabled='disabled'":""}/> ${(ADMFlag && checkTypeInfo.viewLevel ne 4) || (!ADMFlag && checkTypeInfo.viewLevel eq 4) ? "disabled='disabled'":""}/>
</c:if> </c:if>
&nbsp; &nbsp;
<c:if test="${isHaveTable=='no'}"> <c:if test="${isHaveTable=='no'}">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="createTable()" value="i18n_ctsl.button.createTable_n81i" onclick="createTable()" value="i18n_ctsl.button.createTable_n81i"
${(ADMFlag && checkTypeInfo.viewLevel ne 4) || (!ADMFlag && checkTypeInfo.viewLevel eq 4) ? "disabled='disabled'":""} ${(ADMFlag && checkTypeInfo.viewLevel ne 4) || (!ADMFlag && checkTypeInfo.viewLevel eq 4) ? "disabled='disabled'":""}
/> />
</c:if> </c:if>
&nbsp; &nbsp;
<c:if test="${isSch=='1'}"> <c:if test="${isSch=='1'}">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="startUpOrStop(1)" value="i18n_ctsl.button.stop_n81i"/> <!-- 非预置的表才有停用 --> onclick="startUpOrStop(1)" value="i18n_ctsl.button.stop_n81i"/> <!-- 非预置的表才有停用 -->
</c:if> </c:if>
&nbsp; &nbsp;
<c:if test="${isSch=='1'}"> <c:if test="${isSch=='1'}">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="startUpOrStop(0);" value="i18n_ctsl.button.start_n81i"/> <!-- 非预置的表才有启用 --> onclick="startUpOrStop(0);" value="i18n_ctsl.button.start_n81i"/> <!-- 非预置的表才有启用 -->
</c:if> </c:if>
&nbsp; &nbsp;
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="goBack()" value="i18n_ctsl.button.back_n81i" style="margin-right: 20px"/> onclick="goBack()" value="i18n_ctsl.button.back_n81i" style="margin-right: 20px"/>
</div> </div>
</div> </div>
<div style="height: 25px"></div> <div style="height: 25px"></div>
<div id="maindiv"> <div id="maindiv">
<table border="0" cellpadding="0" cellspacing="0" class="table" id="info"> <table border="0" cellpadding="0" cellspacing="0" class="table" id="info">
<tr> <tr>
<td width="6%" class="color_top"> <td width="6%" class="color_top">
<input type="checkbox" <input type="checkbox"
name="checkbox62" value="checkbox" onClick="checkAll(this)" />i18n_ctsl.text.index_n81i name="checkbox62" value="checkbox" onClick="checkAll(this)" />i18n_ctsl.text.index_n81i
</td> </td>
<td width="10%" class="color_top"> <td width="10%" class="color_top">
i18n_ctsl.text.detecationType_n81i i18n_ctsl.text.detecationType_n81i
</td> </td>
<td width="12%" class="color_top"> <td width="12%" class="color_top">
i18n_ctsl.text.tableName_n81i i18n_ctsl.text.tableName_n81i
</td> </td>
<td width="12%" class="color_top"> <td width="12%" class="color_top">
i18n_ctsl.text.tableComments_n81i i18n_ctsl.text.tableComments_n81i
</td> </td>
<td width="10%" class="color_top"> <td width="10%" class="color_top">
i18n_ctsl.text.filedName_n81i i18n_ctsl.text.filedName_n81i
</td> </td>
<td width="10%" class="color_top"> <td width="10%" class="color_top">
i18n_ctsl.text.filedDesc_n81i i18n_ctsl.text.filedDesc_n81i
</td> </td>
<td width="8%" class="color_top"> <td width="8%" class="color_top">
i18n_ctsl.text.filedType_n81i i18n_ctsl.text.filedType_n81i
</td> </td>
<td width="8%" class="color_top"> <td width="8%" class="color_top">
i18n_ctsl.text.isMetaDateState_n81i i18n_ctsl.text.isMetaDateState_n81i
</td> </td>
<td width="8%" class="color_top"> <td width="8%" class="color_top">
i18n_ctsl.text.isChartState_n81i i18n_ctsl.text.isChartState_n81i
</td> </td>
<td width="7%" <td width="7%"
<c:if test="${isSnmp != 1 && isSnmp!=0}"> class="color_8"</c:if> <c:if test="${isSnmp != 1 && isSnmp!=0}"> class="color_8"</c:if>
<c:if test="${isSnmp == 1||isSnmp==0}"> class="color_top"</c:if> <c:if test="${isSnmp == 1||isSnmp==0}"> class="color_top"</c:if>
> >
i18n_ctsl.text.transIndex_n81i i18n_ctsl.text.transIndex_n81i
</td> </td>
<c:if test="${isSnmp == 1||isSnmp==0}"> <c:if test="${isSnmp == 1||isSnmp==0}">
<td width="9%" class="color_8"> <td width="9%" class="color_8">
OID OID
</td> </td>
</c:if> </c:if>
</tr> </tr>
<c:set var="index" value="${1}" /> <c:set var="index" value="${1}" />
<c:choose> <c:choose>
<c:when test="${fn:length(metadataList) > 0}"> <c:when test="${fn:length(metadataList) > 0}">
<c:forEach items="${metadataList}" var="metadata" varStatus="vs"> <c:forEach items="${metadataList}" var="metadata" varStatus="vs">
<c:set var="color" value="color_1"/> <c:set var="color" value="color_1"/>
<c:set var="color_end" value="color_7"/> <c:set var="color_end" value="color_7"/>
<c:if test="${vs.count%2!=0 }"> <c:if test="${vs.count%2!=0 }">
<c:set var="color" value="color_3"/> <c:set var="color" value="color_3"/>
<c:set var="color_end" value="color_6"/> <c:set var="color_end" value="color_6"/>
</c:if> </c:if>
<tr> <tr>
<td class="${color }"> <td class="${color }">
<c:if test="${isSch=='0'}"> <c:if test="${isSch=='0'}">
<input type="checkbox" name="ids" id="ids" <input type="checkbox" name="ids" id="ids"
value="${metadata.id}" disabled="disabled"/> value="${metadata.id}" disabled="disabled"/>
</c:if> </c:if>
<c:if test="${isSch=='1'}"> <c:if test="${isSch=='1'}">
<input type="checkbox" name="ids" id="ids" ${(ADMFlag && checkTypeInfo.viewLevel ne 4) || (!ADMFlag && checkTypeInfo.viewLevel eq 4) ? "disabled='disabled'":""} <input type="checkbox" name="ids" id="ids" ${(ADMFlag && checkTypeInfo.viewLevel ne 4) || (!ADMFlag && checkTypeInfo.viewLevel eq 4) ? "disabled='disabled'":""}
value="${metadata.id}" /> value="${metadata.id}" />
</c:if> </c:if>
${index+(pageNo-1)*pageSize} ${index+(pageNo-1)*pageSize}
</td> </td>
<td class="${color }"> <td class="${color }">
${metadata.checkTypeInfo.checkTypeName} ${metadata.checkTypeInfo.checkTypeName}
</td> </td>
<td class="${color }"> <td class="${color }">
${metadata.checkTypeInfo.tableName} ${metadata.checkTypeInfo.tableName}
</td> </td>
<td class="${color }"> <td class="${color }">
${metadata.checkTypeInfo.tableComments} ${metadata.checkTypeInfo.tableComments}
</td> </td>
<td class="${color }"> <td class="${color }">
${metadata.filedName} ${metadata.filedName}
</td> </td>
<td class="${color }"> <td class="${color }">
${metadata.filedComments} ${metadata.filedComments}
</td> </td>
<td class="${color }"> <td class="${color }">
${metadata.filedType} ${metadata.filedType}
</td> </td>
<td class="${color }"> <td class="${color }">
<c:if test="${metadata.state=='0' }">i18n_ctsl.button.start_n81i</c:if> <c:if test="${metadata.state=='0' }">i18n_ctsl.button.start_n81i</c:if>
<c:if test="${metadata.state=='1' }"><font color="red">i18n_ctsl.button.stop_n81i</font></c:if> <c:if test="${metadata.state=='1' }"><font color="red">i18n_ctsl.button.stop_n81i</font></c:if>
</td> </td>
<td class="${color }"> <td class="${color }">
<c:if test="${metadata.chartState=='0' }">i18n_ctsl.message.yes_n81i</c:if> <c:if test="${metadata.chartState=='0' }">i18n_ctsl.message.yes_n81i</c:if>
<c:if test="${metadata.chartState=='1' }">i18n_ctsl.message.no_n81i</c:if> <c:if test="${metadata.chartState=='1' }">i18n_ctsl.message.no_n81i</c:if>
</td> </td>
<td <td
<c:if test="${metadata.checkTypeInfo.isSnmp == 1||metadata.checkTypeInfo.isSnmp==0}">class="${color }"</c:if> <c:if test="${metadata.checkTypeInfo.isSnmp == 1||metadata.checkTypeInfo.isSnmp==0}">class="${color }"</c:if>
<c:if test="${metadata.checkTypeInfo.isSnmp != 1&&metadata.checkTypeInfo.isSnmp!=0}">class="${color_end }"</c:if> <c:if test="${metadata.checkTypeInfo.isSnmp != 1&&metadata.checkTypeInfo.isSnmp!=0}">class="${color_end }"</c:if>
> >
${metadata.showNum} ${metadata.showNum}
</td> </td>
<c:if test="${metadata.checkTypeInfo.isSnmp == 1||metadata.checkTypeInfo.isSnmp == 0}"> <c:if test="${metadata.checkTypeInfo.isSnmp == 1||metadata.checkTypeInfo.isSnmp == 0}">
<td class="${color_end }"> <td class="${color_end }">
${metadata.oid} ${metadata.oid}
</td> </td>
</c:if> </c:if>
</tr> </tr>
<c:set var="index" value="${index + 1}" /> <c:set var="index" value="${index + 1}" />
</c:forEach> </c:forEach>
</c:when> </c:when>
<c:otherwise> <c:otherwise>
<tr> <tr>
<td <td
<c:if test="${isSnmp != 1 && isSnmp!=0}"> colspan="10" </c:if> <c:if test="${isSnmp != 1 && isSnmp!=0}"> colspan="10" </c:if>
<c:if test="${isSnmp == 1||isSnmp ==0}"> colspan="11" </c:if> <c:if test="${isSnmp == 1||isSnmp ==0}"> colspan="11" </c:if>
class="color_6" align="center"> class="color_6" align="center">
i18n_ctsl.message.noRecord_n81i i18n_ctsl.message.noRecord_n81i
</td> </td>
</tr> </tr>
</c:otherwise> </c:otherwise>
</c:choose> </c:choose>
</table> </table>
</div> </div>
<c:if test="${!empty metadataList}"> <c:if test="${!empty metadataList}">
<div id="divBoot"> <div id="divBoot">
<jsp:include page="/common/page.jsp" /> <jsp:include page="/common/page.jsp" />
</div> </div>
</c:if> </c:if>
</form> </form>
</div> </div>
</body> </body>
</html> </html>

View File

@@ -1,262 +1,262 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%> <%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib uri="/jstl/fn" prefix="fn"%> <%@ taglib uri="/jstl/fn" prefix="fn"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
%> %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_ucts.message.title_n81i</title> <title>i18n_ucts.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" <link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<link href="<c:url value='/js//dtree/css/dtree.css'/>" <link href="<c:url value='/js//dtree/css/dtree.css'/>"
rel="stylesheet" type="text/css" /> rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script> src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script> src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/dtree/js/dtree_checkbox.js'/>"></script> src="<c:url value='/js/dtree/js/dtree_checkbox.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.tools.js'/>"></script> src="<c:url value='/js/jquery.tools.js'/>"></script>
<script type="text/javascript" <script type="text/javascript"
src="<c:url value='/js/WebCalendar.js' />"></script> src="<c:url value='/js/WebCalendar.js' />"></script>
</head> </head>
<script language="javascript" type="text/javascript"> <script language="javascript" type="text/javascript">
var flag = false; var flag = false;
function add(){ function add(){
if(document.getElementById('lengthFt').style.display=='block'){ if(document.getElementById('lengthFt').style.display=='block'){
var legthValue = document.getElementById('filedTypeLength'); var legthValue = document.getElementById('filedTypeLength');
if(legthValue.value==""){ if(legthValue.value==""){
alert("i18n_ucts.message.inputFiledTypeLength_n81i"); alert("i18n_ucts.message.inputFiledTypeLength_n81i");
legthValue.focus(); legthValue.focus();
return; return;
} }
} }
if($id("filedName","","i18n_ucts.message.filedName_n81i") && $id("filedType","","i18n_ucts.message.filedType_n81i") && $id("filedComments","","i18n_ucts.message.filedComments_n81i")) if($id("filedName","","i18n_ucts.message.filedName_n81i") && $id("filedType","","i18n_ucts.message.filedType_n81i") && $id("filedComments","","i18n_ucts.message.filedComments_n81i"))
{ {
var oid = document.getElementById("oid"); var oid = document.getElementById("oid");
if(oid!=undefined && oid!=null) {//snmp监控进行oid非空检查 if(oid!=undefined && oid!=null) {//snmp监控进行oid非空检查
if(!$id("oid","","OID")) { if(!$id("oid","","OID")) {
return; return;
} }
} }
if(document.getElementById('filedType').value=='VARCHAR2'){ if(document.getElementById('filedType').value=='VARCHAR2'){
if($id("filedTypeLength","","i18n_ucts.message.filedTypeLength_n81i") && $id("filedTypeLength","sz","i18n_ucts.message.filedTypeLength_n81i")){ if($id("filedTypeLength","","i18n_ucts.message.filedTypeLength_n81i") && $id("filedTypeLength","sz","i18n_ucts.message.filedTypeLength_n81i")){
document.form1.action="<%=path%>/detection/metaDataSet.do?action=doUpd"; document.form1.action="<%=path%>/detection/metaDataSet.do?action=doUpd";
document.form1.submit(); document.form1.submit();
} }
}else{ }else{
document.form1.action="<%=path%>/detection/metaDataSet.do?action=doUpd"; document.form1.action="<%=path%>/detection/metaDataSet.do?action=doUpd";
document.form1.submit(); document.form1.submit();
} }
} }
} }
function goBack(tid){ function goBack(tid){
window.location="<%=path%>/detection/metaDataSet.do?action=query&typeids="+tid; window.location="<%=path%>/detection/metaDataSet.do?action=query&typeids="+tid;
} }
function rclick(obj){ function rclick(obj){
if(obj.id=='state1'){//停用 if(obj.id=='state1'){//停用
document.getElementById('chartState1').checked="checked"; document.getElementById('chartState1').checked="checked";
}else{ }else{
if($("#filedType").val() == "VARCHAR2"){ if($("#filedType").val() == "VARCHAR2"){
$("#chartState1").attr("checked","checked");//1停用 $("#chartState1").attr("checked","checked");//1停用
} }
} }
} }
jQuery(function(){ jQuery(function(){
if(jQuery("#filedType").val() == "VARCHAR2"){ if(jQuery("#filedType").val() == "VARCHAR2"){
jQuery("td[id=lengthFt]").show(); jQuery("td[id=lengthFt]").show();
jQuery("td[id=viewLevel0]").attr('colspan',1); jQuery("td[id=viewLevel0]").attr('colspan',1);
$("#chartState1").attr("checked","checked");//1停用 $("#chartState1").attr("checked","checked");//1停用
}else{ }else{
jQuery("td[id=lengthFt]").hide(); jQuery("td[id=lengthFt]").hide();
jQuery("td[id=viewLevel0]").attr('colspan',3); jQuery("td[id=viewLevel0]").attr('colspan',3);
} }
//-- 字段类型选择事件绑定 //-- 字段类型选择事件绑定
jQuery("#filedType").change(function(){ jQuery("#filedType").change(function(){
if(jQuery(this).val() == "VARCHAR2"){ if(jQuery(this).val() == "VARCHAR2"){
jQuery("td[id=lengthFt]").show(); jQuery("td[id=lengthFt]").show();
jQuery("td[id=viewLevel0]").attr('colspan',1); jQuery("td[id=viewLevel0]").attr('colspan',1);
flag = true; flag = true;
$("#chartState1").attr("checked","checked");//1停用 $("#chartState1").attr("checked","checked");//1停用
}else{ //字段长度隐藏--数字 时间 }else{ //字段长度隐藏--数字 时间
jQuery("td[id=lengthFt]").hide(); jQuery("td[id=lengthFt]").hide();
jQuery("#filedTypeLength").val(""); jQuery("#filedTypeLength").val("");
jQuery("td[id=viewLevel0]").attr('colspan',3); jQuery("td[id=viewLevel0]").attr('colspan',3);
flag = false; flag = false;
//判断是启用还是停用 //判断是启用还是停用
if($("#state1").attr("checked")==true){//停用 if($("#state1").attr("checked")==true){//停用
$("#chartState1").attr("checked","checked");//1停用 $("#chartState1").attr("checked","checked");//1停用
} }
} }
}); });
}) })
</script> </script>
<body> <body>
<div class="middle_list" > <div class="middle_list" >
<form action="" name="form1" method="post"> <form action="" name="form1" method="post">
<input type="hidden" name="pageNo" value="${pageNo }" /> <input type="hidden" name="pageNo" value="${pageNo }" />
<input type="hidden" name="pageSize" value="${pageSize }" /> <input type="hidden" name="pageSize" value="${pageSize }" />
<input type="hidden" value="${metadata.checkTypeInfo.id }" name="typeids"/> <input type="hidden" value="${metadata.checkTypeInfo.id }" name="typeids"/>
<input type="hidden" value="${metadata.id }" name="metadata.id"> <input type="hidden" value="${metadata.id }" name="metadata.id">
<input type="hidden" value="${mState }" name="mState"> <input type="hidden" value="${mState }" name="mState">
<div style="clear: both"></div> <div style="clear: both"></div>
<table border="0" cellpadding="0" cellspacing="0" class="table"> <table border="0" cellpadding="0" cellspacing="0" class="table">
<tr> <tr>
<td colspan="4" class="color_8"> <td colspan="4" class="color_8">
<strong>i18n_ucts.text.updateMetaData_n81i</strong> <strong>i18n_ucts.text.updateMetaData_n81i</strong>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" width="15%" align="right"> <td class="color_1" width="15%" align="right">
i18n_ucts.text.checkType_n81i i18n_ucts.text.checkType_n81i
</td> </td>
<td class="color_3" width="35%" align="left"> <td class="color_3" width="35%" align="left">
<input type="hidden" name="checkTypeInfo.id" <input type="hidden" name="checkTypeInfo.id"
id="checkTypeId" value="${metadata.checkTypeInfo.id }"/> id="checkTypeId" value="${metadata.checkTypeInfo.id }"/>
<input type="text" name="checkTypeInfo.checkTypeName" <input type="text" name="checkTypeInfo.checkTypeName"
id="checkTypeName" value="${metadata.checkTypeInfo.checkTypeName }" readonly /> id="checkTypeName" value="${metadata.checkTypeInfo.checkTypeName }" readonly />
<font color="red">*</font> <font color="red">*</font>
</td> </td>
<td class="color_1" width="15%" align="right"> <td class="color_1" width="15%" align="right">
i18n_ucts.text.tableName_n81i i18n_ucts.text.tableName_n81i
</td> </td>
<td class="color_3" width="35%" align="left"> <td class="color_3" width="35%" align="left">
<input type="text" name="metadata.tableName" <input type="text" name="metadata.tableName"
id="tableName" value="${metadata.tableName }" readonly/> id="tableName" value="${metadata.tableName }" readonly/>
<font color="red">*</font> <font color="red">*</font>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right"> <td class="color_1" align="right">
i18n_ucts.message.filedName_n81i i18n_ucts.message.filedName_n81i
</td> </td>
<td class="color_3" align="left"> <td class="color_3" align="left">
<input type="text" name="metadata.filedName" <input type="text" name="metadata.filedName"
id="filedName" value="${metadata.filedName }"/> id="filedName" value="${metadata.filedName }"/>
<font color="red">*</font> <font color="red">*</font>
</td> </td>
<td class="color_1" align="right"> <td class="color_1" align="right">
i18n_ucts.message.filedComments_n81i i18n_ucts.message.filedComments_n81i
</td> </td>
<td class="color_3" align="left"> <td class="color_3" align="left">
<input type="text" name="metadata.filedComments" <input type="text" name="metadata.filedComments"
id="filedComments" value="${metadata.filedComments }" /> id="filedComments" value="${metadata.filedComments }" />
<font color="red">*</font> <font color="red">*</font>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right"> <td class="color_1" align="right">
i18n_ucts.message.filedType_n81i i18n_ucts.message.filedType_n81i
</td> </td>
<td class="color_6" align="left" id="viewLevel0"> <td class="color_6" align="left" id="viewLevel0">
<select name="filedType" id="filedType"> <select name="filedType" id="filedType">
<option value=""> <option value="">
i18n_ucts.message.filedTypeDefault_n81i i18n_ucts.message.filedTypeDefault_n81i
</option> </option>
<option value="Number" <c:if test="${metadata.filedType == 'Number'}">selected="selected"</c:if>> <option value="Number" <c:if test="${metadata.filedType == 'Number'}">selected="selected"</c:if>>
i18n_ucts.message.filedTypeNumber_n81i i18n_ucts.message.filedTypeNumber_n81i
</option> </option>
<option value="DATE" <c:if test="${metadata.filedType == 'DATE'}">selected="selected"</c:if>> <option value="DATE" <c:if test="${metadata.filedType == 'DATE'}">selected="selected"</c:if>>
i18n_ucts.message.filedTypeDATE_n81i i18n_ucts.message.filedTypeDATE_n81i
</option> </option>
<option value="VARCHAR2" <c:if test="${filedType == 'VARCHAR2'}">selected="selected"</c:if>> <option value="VARCHAR2" <c:if test="${filedType == 'VARCHAR2'}">selected="selected"</c:if>>
i18n_ucts.message.filedTypeVARCHAR2_n81i i18n_ucts.message.filedTypeVARCHAR2_n81i
</option> </option>
</select> </select>
<font color="red">*</font> <font color="red">*</font>
</td> </td>
<td class="color_1" align="right" id="lengthFt"> <td class="color_1" align="right" id="lengthFt">
i18n_ucts.message.filedTypeLength_n81i i18n_ucts.message.filedTypeLength_n81i
</td> </td>
<td class="color_3" align="left" id="lengthFt"> <td class="color_3" align="left" id="lengthFt">
<input type="text" name="filedTypeLength" value="${filedTypeLength}" <input type="text" name="filedTypeLength" value="${filedTypeLength}"
id="filedTypeLength" /> id="filedTypeLength" />
<font color="red">*</font> <font color="red">*</font>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right"> <td class="color_1" align="right">
i18n_ucts.text.isState_n81i i18n_ucts.text.isState_n81i
</td> </td>
<td nowrap="nowrap" class="color_6" align="left"> <td nowrap="nowrap" class="color_6" align="left">
<input type="radio" name="metadata.state" <input type="radio" name="metadata.state"
id="state" onclick="rclick(this)" value="0" <c:if test="${metadata.state == '0' }">checked="checked"</c:if>/>启用 id="state" onclick="rclick(this)" value="0" <c:if test="${metadata.state == '0' }">checked="checked"</c:if>/>启用
<input type="radio" name="metadata.state" <input type="radio" name="metadata.state"
id="state1" onclick="rclick(this)" value="1" <c:if test="${metadata.state == '1' }">checked="checked"</c:if>/>停用 id="state1" onclick="rclick(this)" value="1" <c:if test="${metadata.state == '1' }">checked="checked"</c:if>/>停用
</td> </td>
<td class="color_1" align="right"> <td class="color_1" align="right">
i18n_ucts.text.isChartState_n81i i18n_ucts.text.isChartState_n81i
</td> </td>
<td nowrap="nowrap" class="color_6" align="left"> <td nowrap="nowrap" class="color_6" align="left">
<input type="radio" name="metadata.chartState" <input type="radio" name="metadata.chartState"
id="chartState0" value="0" <c:if test="${metadata.chartState == '0' }">checked="checked"</c:if>/>是 id="chartState0" value="0" <c:if test="${metadata.chartState == '0' }">checked="checked"</c:if>/>是
<input type="radio" name="metadata.chartState" <input type="radio" name="metadata.chartState"
id="chartState1" value="1" <c:if test="${metadata.chartState == '1' }">checked="checked"</c:if>/>否 id="chartState1" value="1" <c:if test="${metadata.chartState == '1' }">checked="checked"</c:if>/>否
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right"> <td class="color_1" align="right">
i18n_ucts.text.showNum_n81i i18n_ucts.text.showNum_n81i
</td> </td>
<td class="color_3" align="left" <td class="color_3" align="left"
<c:if test="${metadata.checkTypeInfo.isSnmp == 2||metadata.checkTypeInfo.isSnmp eq null}">colspan="3"</c:if> > <c:if test="${metadata.checkTypeInfo.isSnmp == 2||metadata.checkTypeInfo.isSnmp eq null}">colspan="3"</c:if> >
<input type="text" name="metadata.showNum" <input type="text" name="metadata.showNum"
id="showNum" value="${metadata.showNum }" /> id="showNum" value="${metadata.showNum }" />
</td> </td>
<c:if test="${metadata.checkTypeInfo.isSnmp == 1}"><!-- 是SNMP监控 --> <c:if test="${metadata.checkTypeInfo.isSnmp == 1}"><!-- 是SNMP监控 -->
<td class="color_1" align="right"> <td class="color_1" align="right">
OID OID
</td> </td>
<td class="color_3" align="left" > <td class="color_3" align="left" >
<input type="text" name="metadata.oid" <input type="text" name="metadata.oid"
id="oid" value="${metadata.oid}"/> id="oid" value="${metadata.oid}"/>
<font color="red">*</font> <font color="red">*</font>
</c:if> </c:if>
</tr> </tr>
<tr> <tr>
<td class="color_7" colspan="4" align="right"> <td class="color_7" colspan="4" align="right">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="add()" value="i18n_ucts.button.submit_n81i"/> onclick="add()" value="i18n_ucts.button.submit_n81i"/>
&nbsp; &nbsp;
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="javascript:document.forms['form1'].reset()" onclick="javascript:document.forms['form1'].reset()"
value="i18n_ucts.button.reset_n81i"/> value="i18n_ucts.button.reset_n81i"/>
&nbsp; &nbsp;
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="goBack(${metadata.checkTypeInfo.id })" onclick="goBack(${metadata.checkTypeInfo.id })"
value="i18n_ucts.button.back_n81i"/> value="i18n_ucts.button.back_n81i"/>
&nbsp; &nbsp;
</td> </td>
</tr> </tr>
</table> </table>
</form> </form>
</div> </div>
</body> </body>
</html> </html>

View File

@@ -1,353 +1,353 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%> <%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib uri="/jstl/fn" prefix="fn"%> <%@ taglib uri="/jstl/fn" prefix="fn"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
%> %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_uctsi.message.title_n81i</title> <title>i18n_uctsi.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" <link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<link href="<c:url value='/js//dtree/css/dtree.css'/>" <link href="<c:url value='/js//dtree/css/dtree.css'/>"
rel="stylesheet" type="text/css" /> rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script> src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script> src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/dtree/js/dtree_checkbox.js'/>"></script> src="<c:url value='/js/dtree/js/dtree_checkbox.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.tools.js'/>"></script> src="<c:url value='/js/jquery.tools.js'/>"></script>
<script type="text/javascript" <script type="text/javascript"
src="<c:url value='/js/WebCalendar.js' />"></script> src="<c:url value='/js/WebCalendar.js' />"></script>
</head> </head>
<script language="javascript" type="text/javascript"> <script language="javascript" type="text/javascript">
function goBack(){ function goBack(){
document.Mkform.action="<%=path%>/detection/checkTypeSet.do?action=query"; document.Mkform.action="<%=path%>/detection/checkTypeSet.do?action=query";
document.Mkform.submit(); document.Mkform.submit();
} }
//验证oid //验证oid
function checkOID(oid){ function checkOID(oid){
var cs = /^[1-9]([\d\.]+\d)?$/; var cs = /^[1-9]([\d\.]+\d)?$/;
var resu = cs.test(oid); var resu = cs.test(oid);
return resu; return resu;
} }
//验证非中文和特殊字符 //验证非中文和特殊字符
function containSpecial1(s) function containSpecial1(s)
{ {
var cs = /^\w+$/; var cs = /^\w+$/;
resu = cs.test(s); resu = cs.test(s);
return (cs.test(s)); return (cs.test(s));
} }
function updateCheck(){ function updateCheck(){
var type; var type;
var isSnmp = $("input[type=radio][name=checkTypeInfo.isSnmp]:checked").val(); var isSnmp = $("input[type=radio][name=checkTypeInfo.isSnmp]:checked").val();
$.ajax({ $.ajax({
url:"<%=path%>/detection/checkTypeSet.do?action=updateCheck&checkTypeInfo.isSnmp="+isSnmp, url:"<%=path%>/detection/checkTypeSet.do?action=updateCheck&checkTypeInfo.isSnmp="+isSnmp,
type : "POST", type : "POST",
async:false, async:false,
data:$('#Mkform').serialize(), data:$('#Mkform').serialize(),
success : function(data) { success : function(data) {
if(data == "exception"){ if(data == "exception"){
type = false; type = false;
alert("i18n_uctsi.message.faild_n81i"); alert("i18n_uctsi.message.faild_n81i");
}else if(data =="success"){ }else if(data =="success"){
type = true; type = true;
}else{ }else{
type = false; type = false;
alert(data); alert(data);
} }
} }
}); });
return type; return type;
} }
function add(){ function add(){
if($id("checkTypeName1","","i18n_uctsi.message.checkTypeName1_n81i") && $id("tableName","","i18n_uctsi.message.tableName_n81i")){ if($id("checkTypeName1","","i18n_uctsi.message.checkTypeName1_n81i") && $id("tableName","","i18n_uctsi.message.tableName_n81i")){
if(containSpecial($("#checkTypeName1").val())){ if(containSpecial($("#checkTypeName1").val())){
$("#checkTypeName1").next().html("i18n_uctsi.error.hasSpecialChar_n81i"); $("#checkTypeName1").next().html("i18n_uctsi.error.hasSpecialChar_n81i");
$("#checkTypeName1").val($("#ctname1").val()); $("#checkTypeName1").val($("#ctname1").val());
return; return;
} }
if($("#tableName").val()=='DI_'){ if($("#tableName").val()=='DI_'){
$("#tableName").next().html("i18n_uctsi.error.inputTableName_n81i"); $("#tableName").next().html("i18n_uctsi.error.inputTableName_n81i");
return; return;
} }
if($("#tableName").val().length>20){ if($("#tableName").val().length>20){
$("#tableNameFont").html("i18n_uctsi.error.tooLong_n81i"); $("#tableNameFont").html("i18n_uctsi.error.tooLong_n81i");
return; return;
} }
if(containSpecial($("#tableName").val())){ if(containSpecial($("#tableName").val())){
$("#tableName").next().html("i18n_uctsi.error.tabHasSpecialChar_n81i"); $("#tableName").next().html("i18n_uctsi.error.tabHasSpecialChar_n81i");
$("#tableName").val($("#tnBk").val()); $("#tableName").val($("#tnBk").val());
return; return;
} }
if(!containSpecial1($("#tableName").val())){ if(!containSpecial1($("#tableName").val())){
$("#tableName").next().html("i18n_uctsi.error.tabHasZh_n81i"); $("#tableName").next().html("i18n_uctsi.error.tabHasZh_n81i");
$("#tableName").val($("#tnBk").val()); $("#tableName").val($("#tnBk").val());
return; return;
} }
if(jQuery("#viewLevel2").attr('checked')==true){ if(jQuery("#viewLevel2").attr('checked')==true){
if($id("usergroupid","xz","i18n_uctsi.message.usergroup_n81i")){ if($id("usergroupid","xz","i18n_uctsi.message.usergroup_n81i")){
if(jQuery("#isSnmp0").attr('checked')==true){ if(jQuery("#isSnmp0").attr('checked')==true){
if($id("snmpOID","","OID") && checkOID($("#snmpOID").val()) && updateCheck()){ if($id("snmpOID","","OID") && checkOID($("#snmpOID").val()) && updateCheck()){
jQuery("input[type='radio'][name='checkTypeInfo.isSnmp']").removeAttr('disabled'); jQuery("input[type='radio'][name='checkTypeInfo.isSnmp']").removeAttr('disabled');
document.Mkform.action="<%=path%>/detection/checkTypeSet.do?action=doUpdate"; document.Mkform.action="<%=path%>/detection/checkTypeSet.do?action=doUpdate";
document.Mkform.submit(); document.Mkform.submit();
}else{ }else{
$("#OIDFont").text("i18n_uctsi.error.OIDFont_n81i"); $("#OIDFont").text("i18n_uctsi.error.OIDFont_n81i");
$("#snmpOID").val(""); $("#snmpOID").val("");
$("#snmpOID").focus(); $("#snmpOID").focus();
return; return;
} }
}else{ }else{
if(updateCheck()){ if(updateCheck()){
jQuery("input[type='radio'][name='checkTypeInfo.isSnmp']").removeAttr('disabled'); jQuery("input[type='radio'][name='checkTypeInfo.isSnmp']").removeAttr('disabled');
document.Mkform.action="<%=path%>/detection/checkTypeSet.do?action=doUpdate"; document.Mkform.action="<%=path%>/detection/checkTypeSet.do?action=doUpdate";
document.Mkform.submit(); document.Mkform.submit();
} }
} }
} }
}else{ }else{
if(jQuery("#isSnmp0").attr('checked')==true){ if(jQuery("#isSnmp0").attr('checked')==true){
if($id("snmpOID","","OID") && checkOID($("#snmpOID").val()) && updateCheck()){ if($id("snmpOID","","OID") && checkOID($("#snmpOID").val()) && updateCheck()){
jQuery("input[type='radio'][name='checkTypeInfo.isSnmp']").removeAttr('disabled'); jQuery("input[type='radio'][name='checkTypeInfo.isSnmp']").removeAttr('disabled');
document.Mkform.action="<%=path%>/detection/checkTypeSet.do?action=doUpdate"; document.Mkform.action="<%=path%>/detection/checkTypeSet.do?action=doUpdate";
document.Mkform.submit(); document.Mkform.submit();
}else{ }else{
$("#OIDFont").text("i18n_uctsi.error.OIDFont_n81i"); $("#OIDFont").text("i18n_uctsi.error.OIDFont_n81i");
$("#snmpOID").val(""); $("#snmpOID").val("");
$("#snmpOID").focus(); $("#snmpOID").focus();
return; return;
} }
}else{ }else{
if(updateCheck()){ if(updateCheck()){
jQuery("input[type='radio'][name='checkTypeInfo.isSnmp']").removeAttr('disabled'); jQuery("input[type='radio'][name='checkTypeInfo.isSnmp']").removeAttr('disabled');
document.Mkform.action="<%=path%>/detection/checkTypeSet.do?action=doUpdate"; document.Mkform.action="<%=path%>/detection/checkTypeSet.do?action=doUpdate";
document.Mkform.submit(); document.Mkform.submit();
} }
} }
} }
} }
} }
jQuery(function(){ jQuery(function(){
if(jQuery("#viewLevel2").attr('checked')==true){ if(jQuery("#viewLevel2").attr('checked')==true){
jQuery("td[id=usergroup]").show(); jQuery("td[id=usergroup]").show();
}else{ }else{
jQuery("td[id=usergroup]").hide(); jQuery("td[id=usergroup]").hide();
jQuery("td[id=viewLevel0]").attr('colspan','3').addClass('td_3').removeClass('td_2'); jQuery("td[id=viewLevel0]").attr('colspan','3').addClass('td_3').removeClass('td_2');
} }
//-- 查看权限事件绑定 //-- 查看权限事件绑定
jQuery("input[type='radio'][name='checkTypeInfo.viewLevel']").click(function(){ jQuery("input[type='radio'][name='checkTypeInfo.viewLevel']").click(function(){
if(jQuery(this).val() == 2){ //用户组显示且必选 if(jQuery(this).val() == 2){ //用户组显示且必选
jQuery("td[id=usergroup]").show(); jQuery("td[id=usergroup]").show();
jQuery("td[id=viewLevel0]").attr('colspan',1).addClass('td_3').removeClass('td_2'); jQuery("td[id=viewLevel0]").attr('colspan',1).addClass('td_3').removeClass('td_2');
}else{ //用户组隐藏 }else{ //用户组隐藏
jQuery("td[id=usergroup]").hide(); jQuery("td[id=usergroup]").hide();
jQuery("#usergroupid").val(""); jQuery("#usergroupid").val("");
jQuery("td[id=viewLevel0]").attr('colspan',3).addClass('td_2').removeClass('td_3'); jQuery("td[id=viewLevel0]").attr('colspan',3).addClass('td_2').removeClass('td_3');
} }
}); });
if(jQuery("#isSnmp0").attr('checked')==true || jQuery("#isSnmp1").attr('checked')==true){ if(jQuery("#isSnmp0").attr('checked')==true || jQuery("#isSnmp1").attr('checked')==true){
jQuery("td[id=oid]").show(); jQuery("td[id=oid]").show();
jQuery("td[id=snmp]").attr('colspan',1).addClass('td_3').removeClass('td_2'); jQuery("td[id=snmp]").attr('colspan',1).addClass('td_3').removeClass('td_2');
}else{ }else{
jQuery("td[id=oid]").hide(); jQuery("td[id=oid]").hide();
jQuery("td[id=snmp]").attr('colspan',3).addClass('td_2').removeClass('td_3'); jQuery("td[id=snmp]").attr('colspan',3).addClass('td_2').removeClass('td_3');
} }
//-- 是否snmp监控事件绑定 //-- 是否snmp监控事件绑定
jQuery("input[type='radio'][name='checkTypeInfo.isSnmp']").click(function(){ jQuery("input[type='radio'][name='checkTypeInfo.isSnmp']").click(function(){
if(jQuery(this).val() == 0 || jQuery(this).val() == 1){ //oid显示且必选 if(jQuery(this).val() == 0 || jQuery(this).val() == 1){ //oid显示且必选
jQuery("td[id=oid]").show(); jQuery("td[id=oid]").show();
jQuery("td[id=snmp]").attr('colspan',1).addClass('td_3').removeClass('td_2'); jQuery("td[id=snmp]").attr('colspan',1).addClass('td_3').removeClass('td_2');
}else{ //用户组隐藏 }else{ //用户组隐藏
jQuery("td[id=oid]").hide(); jQuery("td[id=oid]").hide();
jQuery("td[id=snmp]").attr('colspan',3).addClass('td_2').removeClass('td_3'); jQuery("td[id=snmp]").attr('colspan',3).addClass('td_2').removeClass('td_3');
//jQuery("#snmpOID").val(""); //jQuery("#snmpOID").val("");
} }
}); });
//--验证OID失去焦点事件 //--验证OID失去焦点事件
$("#snmpOID").focusout(function() { $("#snmpOID").focusout(function() {
if($("#snmpOID").val()!="" && checkOID($("#snmpOID").val())){ if($("#snmpOID").val()!="" && checkOID($("#snmpOID").val())){
$("#OIDFont").attr('color','#009900').text("OID合法"); $("#OIDFont").attr('color','#009900').text("OID合法");
} }
}); });
}) })
</script> </script>
<body> <body>
<div class="middle_list" > <div class="middle_list" >
<div class="box_2"> <div class="box_2">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="goBack()" value="i18n_uctsi.button.back_n81i"/> onclick="goBack()" value="i18n_uctsi.button.back_n81i"/>
</div> </div>
<input type="hidden" id="ctname1" value="${checkTypeInfo.checkTypeName1 }"/> <input type="hidden" id="ctname1" value="${checkTypeInfo.checkTypeName1 }"/>
<form action="" name="Mkform" method="post" id="Mkform"> <form action="" name="Mkform" method="post" id="Mkform">
<input type="hidden" name="pageNo" value="${pageNo }" /> <input type="hidden" name="pageNo" value="${pageNo }" />
<input type="hidden" name="pageSize" value="${pageSize }" /> <input type="hidden" name="pageSize" value="${pageSize }" />
<input type="hidden" name="checkTypeInfo.id" value="${checkTypeInfo.id }" /> <input type="hidden" name="checkTypeInfo.id" value="${checkTypeInfo.id }" />
<input type="hidden" name="ctn" id="ctn" value="${ctn }" /> <input type="hidden" name="ctn" id="ctn" value="${ctn }" />
<input type="hidden" id="tnBk" value="${checkTypeInfo.tableName }" /> <input type="hidden" id="tnBk" value="${checkTypeInfo.tableName }" />
<div style="clear: both"></div> <div style="clear: both"></div>
<table border="0" cellpadding="0" cellspacing="0" class="table"> <table border="0" cellpadding="0" cellspacing="0" class="table">
<tr> <tr>
<td colspan="4" class="color_8"> <td colspan="4" class="color_8">
<strong>i18n_uctsi.text.updateDetecationType_n81i</strong> <strong>i18n_uctsi.text.updateDetecationType_n81i</strong>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" width="15%" align="right"> <td class="color_1" width="15%" align="right">
i18n_uctsi.message.checkTypeName1_n81i i18n_uctsi.message.checkTypeName1_n81i
</td> </td>
<td class="color_3" width="30%" align="left"> <td class="color_3" width="30%" align="left">
<input type="text" name="checkTypeInfo.checkTypeName1" id="checkTypeName1" value="${checkTypeInfo.checkTypeName1 }"/> <input type="text" name="checkTypeInfo.checkTypeName1" id="checkTypeName1" value="${checkTypeInfo.checkTypeName1 }"/>
<font color="red">*</font> <font color="red">*</font>
</td> </td>
<td class="color_1" width="15%" align="right"> <td class="color_1" width="15%" align="right">
i18n_uctsi.text.checkTypeName_n81i i18n_uctsi.text.checkTypeName_n81i
</td> </td>
<td class="color_3" width="30%" align="left"> <td class="color_3" width="30%" align="left">
<input type="text" name="checkTypeNameShow" value="${checkTypeInfo.checkTypeName }" disabled/> <input type="text" name="checkTypeNameShow" value="${checkTypeInfo.checkTypeName }" disabled/>
<input type="hidden" name="checkTypeInfo.checkTypeName" id="checkTypeName" value="${checkTypeInfo.checkTypeName }"/> <input type="hidden" name="checkTypeInfo.checkTypeName" id="checkTypeName" value="${checkTypeInfo.checkTypeName }"/>
<font color="red">*</font> <font color="red">*</font>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" width="12%" align="right"> <td class="color_1" width="12%" align="right">
i18n_uctsi.message.tableName_n81i i18n_uctsi.message.tableName_n81i
</td> </td>
<!--<c:if test="${isHaveTable=='1' }">readonly</c:if>--> <!--<c:if test="${isHaveTable=='1' }">readonly</c:if>-->
<td class="color_3" width="38%" align="left"> <td class="color_3" width="38%" align="left">
<c:if test="${isHaveTable=='1' }" var="ihtFlag"> <c:if test="${isHaveTable=='1' }" var="ihtFlag">
<input type="text" name="tableNameShow" value="${checkTypeInfo.tableName }" disabled/> <input type="text" name="tableNameShow" value="${checkTypeInfo.tableName }" disabled/>
<input type="hidden" name="checkTypeInfo.tableName" id="tableName" value="${checkTypeInfo.tableName }" /> <input type="hidden" name="checkTypeInfo.tableName" id="tableName" value="${checkTypeInfo.tableName }" />
</c:if> </c:if>
<c:if test="${!ihtFlag}"> <c:if test="${!ihtFlag}">
<input type="text" name="checkTypeInfo.tableName" id="tableName" value="${checkTypeInfo.tableName }" /> <input type="text" name="checkTypeInfo.tableName" id="tableName" value="${checkTypeInfo.tableName }" />
</c:if> </c:if>
<font id="tableNameFont" color="red">*</font> <font id="tableNameFont" color="red">*</font>
</td> </td>
<td class="color_1" align="right" valign="top"> <td class="color_1" align="right" valign="top">
i18n_uctsi.text.tableComments_n81i i18n_uctsi.text.tableComments_n81i
</td> </td>
<td class="color_3" align="left" valign="top"> <td class="color_3" align="left" valign="top">
<input type="text" name="checkTypeInfo.tableComments" <input type="text" name="checkTypeInfo.tableComments"
id="tableComments" value="${checkTypeInfo.tableComments }"/> id="tableComments" value="${checkTypeInfo.tableComments }"/>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="td_1">i18n_uctsi.text.viewPrivilige_n81i</td> <td class="td_1">i18n_uctsi.text.viewPrivilige_n81i</td>
<td class="td_3" id="viewLevel0"> <td class="td_3" id="viewLevel0">
<c:if test="${!ADMFlag }"> <c:if test="${!ADMFlag }">
<input type="radio" name="checkTypeInfo.viewLevel" <input type="radio" name="checkTypeInfo.viewLevel"
id="" value="1" <c:if test="${checkTypeInfo.viewLevel == '1' }">checked="checked"</c:if>/>i18n_uctsi.text.publisher_n81i&nbsp; id="" value="1" <c:if test="${checkTypeInfo.viewLevel == '1' }">checked="checked"</c:if>/>i18n_uctsi.text.publisher_n81i&nbsp;
<input type="radio" name="checkTypeInfo.viewLevel" <input type="radio" name="checkTypeInfo.viewLevel"
id="viewLevel2" value="2" <c:if test="${checkTypeInfo.viewLevel == '2' }">checked="checked"</c:if>/>i18n_uctsi.text.publisherGroup_n81i&nbsp; id="viewLevel2" value="2" <c:if test="${checkTypeInfo.viewLevel == '2' }">checked="checked"</c:if>/>i18n_uctsi.text.publisherGroup_n81i&nbsp;
<input type="radio" name="checkTypeInfo.viewLevel" <input type="radio" name="checkTypeInfo.viewLevel"
id="" value="3" <c:if test="${checkTypeInfo.viewLevel == '3' }">checked="checked"</c:if>/>i18n_uctsi.text.allInSys_n81i&nbsp; id="" value="3" <c:if test="${checkTypeInfo.viewLevel == '3' }">checked="checked"</c:if>/>i18n_uctsi.text.allInSys_n81i&nbsp;
</c:if> </c:if>
<c:if test="${ADMFlag }"> <c:if test="${ADMFlag }">
<input type="radio" name="checkTypeInfo.viewLevel" <input type="radio" name="checkTypeInfo.viewLevel"
id="" value="4" <c:if test="${checkTypeInfo.viewLevel == '4' }">checked="checked"</c:if>/>i18n_uctsi.text.unlimited_n81i&nbsp; id="" value="4" <c:if test="${checkTypeInfo.viewLevel == '4' }">checked="checked"</c:if>/>i18n_uctsi.text.unlimited_n81i&nbsp;
</c:if> </c:if>
</td> </td>
<td class="td_1" id="usergroup">i18n_uctsi.text.usergroup_n81i</td> <td class="td_1" id="usergroup">i18n_uctsi.text.usergroup_n81i</td>
<td class="td_2" id="usergroup"> <td class="td_2" id="usergroup">
<select name="checkTypeInfo.groupId" id="usergroupid"> <select name="checkTypeInfo.groupId" id="usergroupid">
<option selected="selected" value=""> <option selected="selected" value="">
i18n_uctsi.message.selectUserGroup_n81i i18n_uctsi.message.selectUserGroup_n81i
</option> </option>
<c:forEach items="${setxtjs}" var="stjs"> <c:forEach items="${setxtjs}" var="stjs">
<option value="${stjs.jsbh}" <c:if test="${stjs.jsbh == checkTypeInfo.groupId }">selected="selected"</c:if>> <option value="${stjs.jsbh}" <c:if test="${stjs.jsbh == checkTypeInfo.groupId }">selected="selected"</c:if>>
${stjs.jsmc} ${stjs.jsmc}
</option> </option>
</c:forEach> </c:forEach>
</select> </select>
<font color="red" id="group_red">* </font> <font color="red" id="group_red">* </font>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right" valign="top" nowrap="nowrap"> <td class="color_1" align="right" valign="top" nowrap="nowrap">
i18n_uctsi.message.isSnmp_n81i i18n_uctsi.message.isSnmp_n81i
</td> </td>
<td class="color_3" align="left" id="snmp"> <td class="color_3" align="left" id="snmp">
<input type="radio" name="checkTypeInfo.isSnmp" id="isSnmp0" value="0" <input type="radio" name="checkTypeInfo.isSnmp" id="isSnmp0" value="0"
<c:if test="${checkTypeInfo.isSnmp == 0}">checked="checked"</c:if> <c:if test="${checkTypeInfo.isSnmp == 0}">checked="checked"</c:if>
<c:if test="${isHaveTable=='1' }">disabled="disabled"</c:if>/>ObjectSNMP <c:if test="${isHaveTable=='1' }">disabled="disabled"</c:if>/>ObjectSNMP
<input type="radio" name="checkTypeInfo.isSnmp" id="isSnmp1" value="1" <input type="radio" name="checkTypeInfo.isSnmp" id="isSnmp1" value="1"
<c:if test="${checkTypeInfo.isSnmp == 1}">checked="checked"</c:if> <c:if test="${checkTypeInfo.isSnmp == 1}">checked="checked"</c:if>
<c:if test="${isHaveTable=='1' }">disabled="disabled"</c:if>/>SNMP4J <c:if test="${isHaveTable=='1' }">disabled="disabled"</c:if>/>SNMP4J
<input type="radio" name="checkTypeInfo.isSnmp" id="isSnmp2" value="2" <input type="radio" name="checkTypeInfo.isSnmp" id="isSnmp2" value="2"
<c:if test="${checkTypeInfo.isSnmp == 2||checkTypeInfo.isSnmp eq null}">checked="checked"</c:if> <c:if test="${checkTypeInfo.isSnmp == 2||checkTypeInfo.isSnmp eq null}">checked="checked"</c:if>
<c:if test="${isHaveTable=='1' }">disabled="disabled"</c:if>/>i18n_uctsi.message.no_n81i <c:if test="${isHaveTable=='1' }">disabled="disabled"</c:if>/>i18n_uctsi.message.no_n81i
</td> </td>
<td id="oid" class="color_1" align="right" valign="top" nowrap="nowrap"> <td id="oid" class="color_1" align="right" valign="top" nowrap="nowrap">
OID OID
</td> </td>
<td id="oid" class="color_3" align="left"> <td id="oid" class="color_3" align="left">
<input type="text" name="checkTypeInfo.snmpOID" id="snmpOID" size="50" value="${checkTypeInfo.snmpOID}"/> <input type="text" name="checkTypeInfo.snmpOID" id="snmpOID" size="50" value="${checkTypeInfo.snmpOID}"/>
<font id="OIDFont" color="red">*</font> <font id="OIDFont" color="red">*</font>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right" valign="top" nowrap="nowrap"> <td class="color_1" align="right" valign="top" nowrap="nowrap">
i18n_uctsi.text.isSchedule_n81i i18n_uctsi.text.isSchedule_n81i
</td> </td>
<td class="color_3" align="left" colspan="3"> <td class="color_3" align="left" colspan="3">
<input type="radio" name="isSchedule" value="1" disabled="disabled" checked="checked"/>i18n_uctsi.message.no_n81i <input type="radio" name="isSchedule" value="1" disabled="disabled" checked="checked"/>i18n_uctsi.message.no_n81i
<input type="hidden" name="checkTypeInfo.isSchedule" value="${checkTypeInfo.isSchedule}"/> <input type="hidden" name="checkTypeInfo.isSchedule" value="${checkTypeInfo.isSchedule}"/>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right" valign="top"> <td class="color_1" align="right" valign="top">
i18n_uctsi.text.remark_n81i i18n_uctsi.text.remark_n81i
</td> </td>
<td class="color_3" align="left" colspan="3"> <td class="color_3" align="left" colspan="3">
<textarea rows="3" cols="50" id="checkRemark" name="checkTypeInfo.checkRemark">${checkTypeInfo.checkRemark }</textarea> <textarea rows="3" cols="50" id="checkRemark" name="checkTypeInfo.checkRemark">${checkTypeInfo.checkRemark }</textarea>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_7" colspan="4" align="right"> <td class="color_7" colspan="4" align="right">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="add()" value="i18n_uctsi.button.submit_n81i"/> onclick="add()" value="i18n_uctsi.button.submit_n81i"/>
&nbsp; &nbsp;
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="javascript:document.forms['Mkform'].reset()" onclick="javascript:document.forms['Mkform'].reset()"
value="i18n_uctsi.button.reset_n81i"/> value="i18n_uctsi.button.reset_n81i"/>
</td> </td>
</tr> </tr>
</table> </table>
</form> </form>
</div> </div>
</body> </body>
</html> </html>

View File

@@ -1,450 +1,450 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="/jstl/c"%> <%@ taglib prefix="c" uri="/jstl/c"%>
<%@ taglib prefix="fn" uri="/jstl/fn"%> <%@ taglib prefix="fn" uri="/jstl/fn"%>
<%@ taglib prefix="fmt" uri="/jstl/fmt"%> <%@ taglib prefix="fmt" uri="/jstl/fmt"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
%> %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_uctsl.message.title_n81i</title> <title>i18n_uctsl.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" type="text/css" /> <link href="<c:url value='/css/nms.css'/>" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script> src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.tools.js'/>"></script> src="<c:url value='/js/jquery.tools.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script> src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.suggest.js'/>"></script> src="<c:url value='/js/jquery.suggest.js'/>"></script>
</head> </head>
<script language="javascript" type="text/javascript"> <script language="javascript" type="text/javascript">
function updateCheck(){ function updateCheck(){
var type; var type;
$.ajax({ $.ajax({
url:"<%=path%>/detection/metaDataSet.do?action=updateCheck", url:"<%=path%>/detection/metaDataSet.do?action=updateCheck",
type : "POST", type : "POST",
async:false, async:false,
data:$('#frmArticleType').serialize(), data:$('#frmArticleType').serialize(),
success : function(data) { success : function(data) {
if(data == "exception"){ if(data == "exception"){
type = false; type = false;
alert("i18n_uctsl.message.faild_n81i"); alert("i18n_uctsl.message.faild_n81i");
}else if(data =="success"){ }else if(data =="success"){
type = true; type = true;
}else{ }else{
type = false; type = false;
alert(data); alert(data);
} }
} }
}); });
return type; return type;
} }
function add() { function add() {
if(checkForm()&&updateCheck()) { if(checkForm()&&updateCheck()) {
jQuery("select[ltype='haveTable']").removeAttr('disabled'); jQuery("select[ltype='haveTable']").removeAttr('disabled');
jQuery("input[type='text'][ltype='haveTable']").removeAttr('disabled'); jQuery("input[type='text'][ltype='haveTable']").removeAttr('disabled');
document.form3.action="<%=path%>/detection/metaDataSet.do?action=doUpdList"; document.form3.action="<%=path%>/detection/metaDataSet.do?action=doUpdList";
document.form3.submit(); document.form3.submit();
} }
} }
//表单检查字段名非空长度小于30字段名不可重名 //表单检查字段名非空长度小于30字段名不可重名
function checkForm() { function checkForm() {
var flag = true; var flag = true;
//字段名 //字段名
var nameArray = new Array(); var nameArray = new Array();
jQuery("[id^='filedName_']").each(function(i) { jQuery("[id^='filedName_']").each(function(i) {
var filedName = this.value; var filedName = this.value;
if(filedName==""||filedName==undefined||filedName==null) { if(filedName==""||filedName==undefined||filedName==null) {
//alert("字段名均不可为空"); //alert("字段名均不可为空");
$(this).next().html("i18n_uctsl.message.inputFiledName_n81i"); $(this).next().html("i18n_uctsl.message.inputFiledName_n81i");
$(this).focus(); $(this).focus();
flag = false; flag = false;
return false;//跳出的是each而不是checkForm return false;//跳出的是each而不是checkForm
}else if(!$(this).checkByteLength(30,"i18n_uctsl.text.filedName_n81i")) {//长度不符合 }else if(!$(this).checkByteLength(30,"i18n_uctsl.text.filedName_n81i")) {//长度不符合
$(this).focus(); $(this).focus();
flag = false; flag = false;
return false; return false;
}else if(checkNum(filedName)){ }else if(checkNum(filedName)){
//alert("字段名均不能以数字开头"); //alert("字段名均不能以数字开头");
$(this).next().html("i18n_uctsl.message.cannotNum_n81i"); $(this).next().html("i18n_uctsl.message.cannotNum_n81i");
$(this).focus(); $(this).focus();
flag = false; flag = false;
return false; return false;
}else {//进行字段名是否重复验证,如果重复则返回false }else {//进行字段名是否重复验证,如果重复则返回false
nameArray[i] = this.value; nameArray[i] = this.value;
} }
}); });
//符合条件:非空,长度,才有判断元素是否重复的意义 //符合条件:非空,长度,才有判断元素是否重复的意义
if(flag==true) { if(flag==true) {
var names = ","+nameArray.join(",")+","; var names = ","+nameArray.join(",")+",";
for(var i=0;i<nameArray.length;i++) { for(var i=0;i<nameArray.length;i++) {
if(names.replace(nameArray[i]+",","").indexOf(","+nameArray[i]+",")>-1) {//说明有重复元素 if(names.replace(nameArray[i]+",","").indexOf(","+nameArray[i]+",")>-1) {//说明有重复元素
//alert("字段名重复,请修改!"); //alert("字段名重复,请修改!");
$("[id^='filedName_'][value='"+nameArray[i]+"']").next().html("i18n_uctsl.message.filedNameRepeat_n81i"); $("[id^='filedName_'][value='"+nameArray[i]+"']").next().html("i18n_uctsl.message.filedNameRepeat_n81i");
$("[id^='filedName_'][value='"+nameArray[i]+"']").focus(); $("[id^='filedName_'][value='"+nameArray[i]+"']").focus();
flag = false; flag = false;
break; break;
} }
} }
} }
if(flag==true) { if(flag==true) {
//字段描述非空 //字段描述非空
jQuery("[id^='filedComments_']").each(function(i) { jQuery("[id^='filedComments_']").each(function(i) {
var filedName = this.value; var filedName = this.value;
if(filedName==""||filedName==undefined||filedName==null) { if(filedName==""||filedName==undefined||filedName==null) {
alert("i18n_uctsl.message.filedComments_n81i"); alert("i18n_uctsl.message.filedComments_n81i");
$(this).focus(); $(this).focus();
flag = false; flag = false;
return false;//跳出的是each而不是checkForm return false;//跳出的是each而不是checkForm
} }
}); });
} }
if(flag==true) { if(flag==true) {
//字段类型非空 //字段类型非空
jQuery("[id^='filedType_']").each(function(i) { jQuery("[id^='filedType_']").each(function(i) {
var filedName = this.value; var filedName = this.value;
if(filedName==""||filedName==undefined||filedName==null) { if(filedName==""||filedName==undefined||filedName==null) {
alert("i18n_uctsl.message.filedType1_n81i"); alert("i18n_uctsl.message.filedType1_n81i");
$(this).focus(); $(this).focus();
flag = false; flag = false;
return false;//跳出的是each而不是checkForm return false;//跳出的是each而不是checkForm
}else if('VARCHAR2'==this.value) { }else if('VARCHAR2'==this.value) {
var lengthId = "filedTypeLength_" + jQuery(this).attr('id').substr(10); var lengthId = "filedTypeLength_" + jQuery(this).attr('id').substr(10);
var filedLength = jQuery("input[type='text'][id='"+lengthId+"']").val(); var filedLength = jQuery("input[type='text'][id='"+lengthId+"']").val();
if(filedLength==""||filedLength==undefined||filedLength==null) { if(filedLength==""||filedLength==undefined||filedLength==null) {
alert("i18n_uctsl.message.filedLength1_n81i"); alert("i18n_uctsl.message.filedLength1_n81i");
jQuery("input[type='text'][id='"+lengthId+"']").focus(); jQuery("input[type='text'][id='"+lengthId+"']").focus();
flag = false; flag = false;
return false;//跳出的是each而不是checkForm return false;//跳出的是each而不是checkForm
}else if(filedLength.replace(/[\d+]/ig,"").length>0) {//文本类型的长度应为数字 }else if(filedLength.replace(/[\d+]/ig,"").length>0) {//文本类型的长度应为数字
alert('i18n_uctsl.message.filedLength2_n81i') alert('i18n_uctsl.message.filedLength2_n81i')
jQuery("input[type='text'][id='"+lengthId+"']").focus(); jQuery("input[type='text'][id='"+lengthId+"']").focus();
flag = false; flag = false;
return false;//跳出的是each而不是checkForm return false;//跳出的是each而不是checkForm
} }
} }
}); });
} }
//判断是否选择了分类标识 //判断是否选择了分类标识
if(flag==true) { if(flag==true) {
var issnmp =$("#is").val(); var issnmp =$("#is").val();
if(issnmp!=null && issnmp !=""){ if(issnmp!=null && issnmp !=""){
if(Number(issnmp) < 2){//snmp监控 if(Number(issnmp) < 2){//snmp监控
var checkedSize = $("input[type='radio'][id^='sortSign_'][value='0']:checked").size(); var checkedSize = $("input[type='radio'][id^='sortSign_'][value='0']:checked").size();
var hasSortSign = $("#hasSortSign").val(); var hasSortSign = $("#hasSortSign").val();
if(hasSortSign!=null&& hasSortSign !="yes"&&Number(checkedSize) == 0){ if(hasSortSign!=null&& hasSortSign !="yes"&&Number(checkedSize) == 0){
alert("i18n_uctsl.message.hasSortSign_n81i"); alert("i18n_uctsl.message.hasSortSign_n81i");
flag = false; flag = false;
return false; return false;
} }
} }
} }
} }
return flag; return flag;
} }
//检查是否以数字开头 //检查是否以数字开头
function checkNum(s) function checkNum(s)
{ {
var cs = /^[0-9]*$/; var cs = /^[0-9]*$/;
resu = cs.test(s); resu = cs.test(s);
return (cs.test(s)); return (cs.test(s));
} }
//无用? //无用?
function rclick(obj){ function rclick(obj){
if(obj.id=='state1'){//停用此字段时,字段不可用于统计 if(obj.id=='state1'){//停用此字段时,字段不可用于统计
document.getElementById('chartState1').checked="checked"; document.getElementById('chartState1').checked="checked";
}else{ }else{
if($("#filedType").val() == "VARCHAR2"){ if($("#filedType").val() == "VARCHAR2"){
$("#chartState1").attr("checked","checked");//1停用 $("#chartState1").attr("checked","checked");//1停用
} }
} }
} }
jQuery(function(){ jQuery(function(){
//if(jQuery("select[id^='filedType_']").val() == "VARCHAR2"){ //if(jQuery("select[id^='filedType_']").val() == "VARCHAR2"){
// $("#chartState1").attr("checked","checked");//1停用,文本字段类型不可用于统计,所以当为文本类型时,用于统计选停用?? // $("#chartState1").attr("checked","checked");//1停用,文本字段类型不可用于统计,所以当为文本类型时,用于统计选停用??
//} //}
//-- 字段类型选择事件绑定 //-- 字段类型选择事件绑定
/*jQuery("[id^='filedType_']").change(function(){ /*jQuery("[id^='filedType_']").change(function(){
var idTemp = jQuery(this).attr('id'); var idTemp = jQuery(this).attr('id');
var id = idTemp.substr(idTemp.indexOf("_")); var id = idTemp.substr(idTemp.indexOf("_"));
if(jQuery(this).val() == "VARCHAR2"){ if(jQuery(this).val() == "VARCHAR2"){
jQuery("[id='lengthFt"+id+"']").css("display","inline"); jQuery("[id='lengthFt"+id+"']").css("display","inline");
}else{ //字段长度隐藏--数字 时间 }else{ //字段长度隐藏--数字 时间
jQuery("[id='lengthFt"+id+"']").css("display","none"); jQuery("[id='lengthFt"+id+"']").css("display","none");
jQuery("[id='lengthFt"+id+"']").val("");//数字和时间类型字段,长度为空 jQuery("[id='lengthFt"+id+"']").val("");//数字和时间类型字段,长度为空
} }
}); });
*/ */
//分类标识选择【是】事件绑定:有一个点击是,除了这个元素以为的其它都点击否 //分类标识选择【是】事件绑定:有一个点击是,除了这个元素以为的其它都点击否
jQuery("input[type='radio'][id^='sortSign_'][value='0']").click(function() { jQuery("input[type='radio'][id^='sortSign_'][value='0']").click(function() {
var curId = jQuery(this).attr('id');//当前选择元素的ID var curId = jQuery(this).attr('id');//当前选择元素的ID
jQuery("input[type='radio'][id^='sortSign_'][id!='"+curId+"'][value='1']").each(function(i){ jQuery("input[type='radio'][id^='sortSign_'][id!='"+curId+"'][value='1']").each(function(i){
jQuery(this).trigger('click'); jQuery(this).trigger('click');
}); });
}); });
//选择统计时 判断字段类型 //选择统计时 判断字段类型
jQuery("input[type='radio'][id^='chartState_'][value='0']").click(function() { jQuery("input[type='radio'][id^='chartState_'][value='0']").click(function() {
var curId = jQuery(this).attr('id');//当前选择元素的ID var curId = jQuery(this).attr('id');//当前选择元素的ID
var id = curId.substr(curId.indexOf("_"));//metaId var id = curId.substr(curId.indexOf("_"));//metaId
if(jQuery("#filedType"+id).val() == "VARCHAR2"){ if(jQuery("#filedType"+id).val() == "VARCHAR2"){
alert("i18n_uctsl.message.filedType2_n81i"); alert("i18n_uctsl.message.filedType2_n81i");
jQuery("input[type='radio'][id='"+curId+"'][value='1']").trigger('click'); jQuery("input[type='radio'][id='"+curId+"'][value='1']").trigger('click');
return; return;
} }
}); });
//不可把统计改为否 //不可把统计改为否
//if(jQuery("input[type='radio'][id^='chartState_'][value='0']").attr('checked') == true){ //if(jQuery("input[type='radio'][id^='chartState_'][value='0']").attr('checked') == true){
// alert("inin"); // alert("inin");
// alert(jQuery("input[type='radio'][id^='chartState_'][value='1']")); // alert(jQuery("input[type='radio'][id^='chartState_'][value='1']"));
// jQuery("input[type='radio'][id^='chartState_'][value='1']").attr('readonly','readonly'); // jQuery("input[type='radio'][id^='chartState_'][value='1']").attr('readonly','readonly');
//} //}
$("#tt").floatHeaderDiv(); $("#tt").floatHeaderDiv();
}) })
function fieldTypeChange(obj){ function fieldTypeChange(obj){
var idTemp = jQuery(obj).attr('id'); var idTemp = jQuery(obj).attr('id');
var id = idTemp.substr(idTemp.indexOf("_")); var id = idTemp.substr(idTemp.indexOf("_"));
if(jQuery(obj).val() == "VARCHAR2"){ if(jQuery(obj).val() == "VARCHAR2"){
jQuery("[id='lengthFt"+id+"']").css("display","inline"); jQuery("[id='lengthFt"+id+"']").css("display","inline");
}else { //字段长度隐藏--数字 时间 }else { //字段长度隐藏--数字 时间
jQuery("[id='lengthFt"+id+"']").css("display","none"); jQuery("[id='lengthFt"+id+"']").css("display","none");
jQuery("[id='filedTypeLength"+id+"']").val("");//数字和时间类型字段,长度为空 jQuery("[id='filedTypeLength"+id+"']").val("");//数字和时间类型字段,长度为空
} }
} }
function readOnlySelect(obj) { function readOnlySelect(obj) {
var index = obj.selectedIndex; var index = obj.selectedIndex;
obj.onchange = function() { obj.onchange = function() {
obj.selectedIndex = index; obj.selectedIndex = index;
} }
} }
function goBack(){ function goBack(){
document.form3.action ="<%=path%>/detection/metaDataSet!executeAction.do?action=query"; document.form3.action ="<%=path%>/detection/metaDataSet!executeAction.do?action=query";
document.form3.submit(); document.form3.submit();
} }
</script> </script>
<body> <body>
<div class="middle_list"> <div class="middle_list">
<form name=form3 id="frmArticleType" action="" method="post"> <form name=form3 id="frmArticleType" action="" method="post">
<input type="hidden" name="typeids" value="${typeids[0]}"/> <input type="hidden" name="typeids" value="${typeids[0]}"/>
<input type="hidden" name="pageNo" value="${pageNo}" /><!-- 列表当前页数 --> <input type="hidden" name="pageNo" value="${pageNo}" /><!-- 列表当前页数 -->
<input type="hidden" name="pageSize" value="${pageSize}" /><!-- 列表当前页数 --> <input type="hidden" name="pageSize" value="${pageSize}" /><!-- 列表当前页数 -->
<input type="hidden" name="isSnmp" value="${isSnmp}" id="is"/> <input type="hidden" name="isSnmp" value="${isSnmp}" id="is"/>
<input type="hidden" name="hasSortSign" value="${hasSortSign}" id="hasSortSign"/> <input type="hidden" name="hasSortSign" value="${hasSortSign}" id="hasSortSign"/>
<c:forEach items="${ids}" var="ids" varStatus="vs"> <c:forEach items="${ids}" var="ids" varStatus="vs">
<input type="hidden" name="ids" id="ids" value="${ids}"/> <input type="hidden" name="ids" id="ids" value="${ids}"/>
</c:forEach> </c:forEach>
<input type="hidden" name="ctn" id="ctn" value="${ctn }" /> <input type="hidden" name="ctn" id="ctn" value="${ctn }" />
<table border="0" cellpadding="0" cellspacing="0" class="table" id="tt"> <table border="0" cellpadding="0" cellspacing="0" class="table" id="tt">
<tr> <tr>
<td colspan="8" class="color_7" style="font-size:13px;"> <td colspan="8" class="color_7" style="font-size:13px;">
<strong>i18n_uctsl.text.updateMetaData_n81i</strong> <strong>i18n_uctsl.text.updateMetaData_n81i</strong>
</td> </td>
</tr> </tr>
<tr> <tr>
<td width="2%" class="color_top"> <td width="2%" class="color_top">
i18n_uctsl.text.index_n81i i18n_uctsl.text.index_n81i
</td> </td>
<td width="12%" class="color_top"> <td width="12%" class="color_top">
i18n_uctsl.text.filedName_n81i i18n_uctsl.text.filedName_n81i
</td> </td>
<td width="16%" class="color_top"> <td width="16%" class="color_top">
i18n_uctsl.text.filedComments_n81i i18n_uctsl.text.filedComments_n81i
</td> </td>
<td width="8%" class="color_top"> <td width="8%" class="color_top">
i18n_uctsl.text.filedType_n81i i18n_uctsl.text.filedType_n81i
</td> </td>
<td width="6%" class="color_top"> <td width="6%" class="color_top">
i18n_uctsl.text.isMetaDateState_n81i i18n_uctsl.text.isMetaDateState_n81i
</td> </td>
<td width="6%" class="color_top"> <td width="6%" class="color_top">
i18n_uctsl.text.isChartState_n81i i18n_uctsl.text.isChartState_n81i
</td> </td>
<td width="6%" class="color_top"> <td width="6%" class="color_top">
i18n_uctsl.text.dict_n81i i18n_uctsl.text.dict_n81i
</td> </td>
<td width="6%" class="color_top"> <td width="6%" class="color_top">
i18n_uctsl.text.isClassify_n81i i18n_uctsl.text.isClassify_n81i
</td> </td>
</tr> </tr>
<c:set var="index" value="${1}" /> <c:set var="index" value="${1}" />
<c:choose> <c:choose>
<c:when test="${fn:length(metadataList) > 0}"> <c:when test="${fn:length(metadataList) > 0}">
<c:forEach items="${metadataList}" var="metadata" varStatus="vs"> <c:forEach items="${metadataList}" var="metadata" varStatus="vs">
<c:set var="color" value="color_1"/> <c:set var="color" value="color_1"/>
<c:set var="color_end" value="color_7"/> <c:set var="color_end" value="color_7"/>
<c:set var="color_btton" value="color_3"/> <c:set var="color_btton" value="color_3"/>
<c:if test="${vs.count%2!=0 }"> <c:if test="${vs.count%2!=0 }">
<c:set var="color" value="color_3"/> <c:set var="color" value="color_3"/>
<c:set var="color_end" value="color_6"/> <c:set var="color_end" value="color_6"/>
<c:set var="color_btton" value="color_1"/> <c:set var="color_btton" value="color_1"/>
</c:if> </c:if>
<tr> <tr>
<td class="${color }"> <td class="${color }">
${index+(pageNo-1)*pageSize} ${index+(pageNo-1)*pageSize}
<input type="hidden" value="${metadata.id }" name="metadataList[${index-1}].id" id="id_${metadata.id}"> <input type="hidden" value="${metadata.id }" name="metadataList[${index-1}].id" id="id_${metadata.id}">
<input type="hidden" value="${metadata.id }" name="metadataIds" id="metadataIds"> <input type="hidden" value="${metadata.id }" name="metadataIds" id="metadataIds">
</td> </td>
<td class="${color }"> <td class="${color }">
<input type="text" name="metadataList[${index-1}].filedName" id="filedName_${metadata.id}" <input type="text" name="metadataList[${index-1}].filedName" id="filedName_${metadata.id}"
<c:if test="${fn:trim(metadata.filedName)==''}"> value="${metadata.filedComments}" </c:if> <c:if test="${fn:trim(metadata.filedName)==''}"> value="${metadata.filedComments}" </c:if>
<c:if test="${fn:trim(metadata.filedName)!=''}"> value="${metadata.filedName}" </c:if> <c:if test="${fn:trim(metadata.filedName)!=''}"> value="${metadata.filedName}" </c:if>
<c:if test="${isHaveTable=='yes'}"> readonly="readonly" </c:if> <c:if test="${isHaveTable=='yes'}"> readonly="readonly" </c:if>
/> />
<font color="red">*</font> <font color="red">*</font>
</td> </td>
<td class="${color }"> <td class="${color }">
<input type="text" name="metadataList[${index-1}].filedComments" <input type="text" name="metadataList[${index-1}].filedComments"
id="filedComments_${metadata.id}" value="${metadata.filedComments }" /> id="filedComments_${metadata.id}" value="${metadata.filedComments }" />
<font color="red">*i18n_uctsl.text.showFiledUtil_n81i</font> <font color="red">*i18n_uctsl.text.showFiledUtil_n81i</font>
</td> </td>
<td class="${color }"> <td class="${color }">
<c:if test="${isHaveTable=='no'}"> <c:if test="${isHaveTable=='no'}">
<select name="metadataList[${index-1}].filedTypeOnly" id="filedType_${metadata.id}" onchange="javascript:fieldTypeChange(this);"> <select name="metadataList[${index-1}].filedTypeOnly" id="filedType_${metadata.id}" onchange="javascript:fieldTypeChange(this);">
<option value="" > <option value="" >
i18n_uctsl.message.metaDataDefault_n81i i18n_uctsl.message.metaDataDefault_n81i
</option> </option>
<option value="NUMBER" <c:if test="${fn:toUpperCase(metadata.filedTypeOnly) == 'NUMBER'}">selected="selected"</c:if>> <option value="NUMBER" <c:if test="${fn:toUpperCase(metadata.filedTypeOnly) == 'NUMBER'}">selected="selected"</c:if>>
i18n_uctsl.message.metaDataNumber_n81i i18n_uctsl.message.metaDataNumber_n81i
</option> </option>
<option value="DATE" <c:if test="${fn:toUpperCase(metadata.filedTypeOnly) == 'DATE'}">selected="selected"</c:if>> <option value="DATE" <c:if test="${fn:toUpperCase(metadata.filedTypeOnly) == 'DATE'}">selected="selected"</c:if>>
i18n_uctsl.message.metaDataDATE_n81i i18n_uctsl.message.metaDataDATE_n81i
</option> </option>
<option value="VARCHAR2" <c:if test="${fn:toUpperCase(metadata.filedTypeOnly) == 'VARCHAR2'}">selected="selected"</c:if>> <option value="VARCHAR2" <c:if test="${fn:toUpperCase(metadata.filedTypeOnly) == 'VARCHAR2'}">selected="selected"</c:if>>
i18n_uctsl.message.metaDataVARCHAR2_n81i i18n_uctsl.message.metaDataVARCHAR2_n81i
</option> </option>
</select> </select>
</c:if> </c:if>
<c:if test="${isHaveTable=='yes'}"> <c:if test="${isHaveTable=='yes'}">
<select disabled="disabled" ltype="haveTable" name="metadataList[${index-1}].filedTypeOnly" id="filedType_${metadata.id}" onfocus="javascript:readOnlySelect(this);"> <select disabled="disabled" ltype="haveTable" name="metadataList[${index-1}].filedTypeOnly" id="filedType_${metadata.id}" onfocus="javascript:readOnlySelect(this);">
<option value="" > <option value="" >
i18n_uctsl.message.metaDataDefault_n81i i18n_uctsl.message.metaDataDefault_n81i
</option> </option>
<option value="NUMBER" <c:if test="${fn:toUpperCase(metadata.filedTypeOnly) == 'NUMBER'}">selected="selected"</c:if>> <option value="NUMBER" <c:if test="${fn:toUpperCase(metadata.filedTypeOnly) == 'NUMBER'}">selected="selected"</c:if>>
i18n_uctsl.message.metaDataNumber_n81i i18n_uctsl.message.metaDataNumber_n81i
</option> </option>
<option value="DATE" <c:if test="${fn:toUpperCase(metadata.filedTypeOnly) == 'DATE'}">selected="selected"</c:if>> <option value="DATE" <c:if test="${fn:toUpperCase(metadata.filedTypeOnly) == 'DATE'}">selected="selected"</c:if>>
i18n_uctsl.message.metaDataDATE_n81i i18n_uctsl.message.metaDataDATE_n81i
</option> </option>
<option value="VARCHAR2" <c:if test="${fn:toUpperCase(metadata.filedTypeOnly) == 'VARCHAR2'}">selected="selected"</c:if>> <option value="VARCHAR2" <c:if test="${fn:toUpperCase(metadata.filedTypeOnly) == 'VARCHAR2'}">selected="selected"</c:if>>
i18n_uctsl.message.metaDataVARCHAR2_n81i i18n_uctsl.message.metaDataVARCHAR2_n81i
</option> </option>
</select> </select>
</c:if> </c:if>
<font color="red">*</font> <font color="red">*</font>
<div align="left" id="lengthFt_${metadata.id}" <div align="left" id="lengthFt_${metadata.id}"
<c:if test="${metadata.filedTypeOnly == 'VARCHAR2'}"> style="display:inline;" </c:if> <c:if test="${metadata.filedTypeOnly == 'VARCHAR2'}"> style="display:inline;" </c:if>
<c:if test="${metadata.filedTypeOnly != 'VARCHAR2'}"> style="display:none;" </c:if> > <c:if test="${metadata.filedTypeOnly != 'VARCHAR2'}"> style="display:none;" </c:if> >
i18n_uctsl.message.metaDataLength_n81i i18n_uctsl.message.metaDataLength_n81i
<input type="text" name="metadataList[${index-1}].filedTypeLength" value="${metadata.filedTypeLength}" <input type="text" name="metadataList[${index-1}].filedTypeLength" value="${metadata.filedTypeLength}"
id="filedTypeLength_${metadata.id}" maxlength="5" size="2" id="filedTypeLength_${metadata.id}" maxlength="5" size="2"
<c:if test="${isHaveTable=='yes'}"> readonly="readonly" </c:if> <c:if test="${isHaveTable=='yes'}"> readonly="readonly" </c:if>
<c:if test="${isHaveTable=='yes'}">ltype="haveTable" disabled="disabled" </c:if> <c:if test="${isHaveTable=='yes'}">ltype="haveTable" disabled="disabled" </c:if>
/> />
<font color="red">*</font> <font color="red">*</font>
</div> </div>
</td> </td>
<td class="${color }"> <td class="${color }">
<input type="radio" name="metadataList[${index-1}].state" <input type="radio" name="metadataList[${index-1}].state"
id="state_${metadata.id}" onclick="rclick(this)" value="0" <c:if test="${metadata.state == '0' || fn:trim(metadata.state) ==''}">checked="checked"</c:if>/>i18n_uctsl.message.start_n81i id="state_${metadata.id}" onclick="rclick(this)" value="0" <c:if test="${metadata.state == '0' || fn:trim(metadata.state) ==''}">checked="checked"</c:if>/>i18n_uctsl.message.start_n81i
<input type="radio" name="metadataList[${index-1}].state" <input type="radio" name="metadataList[${index-1}].state"
id="state_${metadata.id}" onclick="rclick(this)" value="1" <c:if test="${metadata.state == '1' }">checked="checked"</c:if>/>i18n_uctsl.message.stop_n81i id="state_${metadata.id}" onclick="rclick(this)" value="1" <c:if test="${metadata.state == '1' }">checked="checked"</c:if>/>i18n_uctsl.message.stop_n81i
</td> </td>
<td class="${color }"> <td class="${color }">
<input type="radio" name="metadataList[${index-1}].chartState" <input type="radio" name="metadataList[${index-1}].chartState"
id="chartState_${metadata.id}" value="0" <c:if test="${metadata.chartState == '0' }">checked="checked"</c:if>/>i18n_uctsl.message.yes_n81i id="chartState_${metadata.id}" value="0" <c:if test="${metadata.chartState == '0' }">checked="checked"</c:if>/>i18n_uctsl.message.yes_n81i
<input type="radio" name="metadataList[${index-1}].chartState" <input type="radio" name="metadataList[${index-1}].chartState"
id="chartState_${metadata.id}" value="1" <c:if test="${metadata.chartState == '1' || fn:trim(metadata.chartState) ==''}">checked="checked"</c:if> id="chartState_${metadata.id}" value="1" <c:if test="${metadata.chartState == '1' || fn:trim(metadata.chartState) ==''}">checked="checked"</c:if>
<c:if test="${metadata.chartState == '0' }"> disabled="disabled" </c:if>/>i18n_uctsl.message.no_n81i <c:if test="${metadata.chartState == '0' }"> disabled="disabled" </c:if>/>i18n_uctsl.message.no_n81i
</td> </td>
<td class="${color }"> <td class="${color }">
<select name="metadataList[${index-1}].typeId" id="typeId_${metadata.id}"> <select name="metadataList[${index-1}].typeId" id="typeId_${metadata.id}">
<option value=""> <option value="">
i18n_uctsl.message.metaDataDefault_n81i i18n_uctsl.message.metaDataDefault_n81i
</option> </option>
<c:choose> <c:choose>
<c:when test="${fn:length(typeTableList) > 0}"> <c:when test="${fn:length(typeTableList) > 0}">
<c:forEach items="${typeTableList}" var="typeTable" > <c:forEach items="${typeTableList}" var="typeTable" >
<option value="${typeTable.id}" <c:if test="${typeTable.id == metadata.typeId}">selected="selected"</c:if>> <option value="${typeTable.id}" <c:if test="${typeTable.id == metadata.typeId}">selected="selected"</c:if>>
${typeTable.typeName} ${typeTable.typeName}
</option> </option>
</c:forEach> </c:forEach>
</c:when> </c:when>
<c:otherwise> <c:otherwise>
</c:otherwise> </c:otherwise>
</c:choose> </c:choose>
</select> </select>
</td> </td>
<td class="${color }"> <td class="${color }">
<input type="radio" name="metadataList[${index-1}].sortSign" <input type="radio" name="metadataList[${index-1}].sortSign"
id="sortSign_${metadata.id}" value="0" <c:if test="${metadata.sortSign == '0' }">checked="checked"</c:if>/>i18n_uctsl.message.yes_n81i id="sortSign_${metadata.id}" value="0" <c:if test="${metadata.sortSign == '0' }">checked="checked"</c:if>/>i18n_uctsl.message.yes_n81i
<input type="radio" name="metadataList[${index-1}].sortSign" <input type="radio" name="metadataList[${index-1}].sortSign"
id="sortSign_${metadata.id}" value="1" <c:if test="${metadata.sortSign == '1' || fn:trim(metadata.sortSign) ==''}">checked="checked"</c:if>/>i18n_uctsl.message.no_n81i id="sortSign_${metadata.id}" value="1" <c:if test="${metadata.sortSign == '1' || fn:trim(metadata.sortSign) ==''}">checked="checked"</c:if>/>i18n_uctsl.message.no_n81i
</td> </td>
</tr> </tr>
<c:set var="index" value="${index + 1}" /> <c:set var="index" value="${index + 1}" />
</c:forEach> </c:forEach>
</c:when> </c:when>
<c:otherwise> <c:otherwise>
<tr> <tr>
<td colspan="8" align="center"> <td colspan="8" align="center">
i18n_uctsl.message.noRecord_n81i i18n_uctsl.message.noRecord_n81i
</td> </td>
</tr> </tr>
</c:otherwise> </c:otherwise>
</c:choose> </c:choose>
<tr> <tr>
<td class="${color_btton}" colspan="8" align="right"> <td class="${color_btton}" colspan="8" align="right">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="add()" value="i18n_uctsl.button.submit_n81i"/> onclick="add()" value="i18n_uctsl.button.submit_n81i"/>
&nbsp; &nbsp;
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="javascript:document.forms['form3'].reset()" onclick="javascript:document.forms['form3'].reset()"
value="i18n_uctsl.button.reset_n81i"/> value="i18n_uctsl.button.reset_n81i"/>
&nbsp; &nbsp;
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="goBack(${metadata.checkTypeInfo.id })" onclick="goBack(${metadata.checkTypeInfo.id })"
value="i18n_uctsl.button.back_n81i"/> value="i18n_uctsl.button.back_n81i"/>
&nbsp; &nbsp;
</td> </td>
</tr> </tr>
</table> </table>
</form> </form>
</div> </div>
</body> </body>
</html> </html>

View File

@@ -1,284 +1,284 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%> <%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib uri="/jstl/fn" prefix="fn"%> <%@ taglib uri="/jstl/fn" prefix="fn"%>
<%@ taglib uri="/jstl/fmt" prefix="fmt"%> <%@ taglib uri="/jstl/fmt" prefix="fmt"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
%> %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_ddsi.message.title_n81i</title> <title>i18n_ddsi.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" <link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script> src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.tools.js'/>"></script> src="<c:url value='/js/jquery.tools.js'/>"></script>
</head> </head>
<script language="javascript" type="text/javascript"> <script language="javascript" type="text/javascript">
function goBack(){ function goBack(){
document.Mkform.action="<%=path%>/detection/detectionSet.do?action=query"; document.Mkform.action="<%=path%>/detection/detectionSet.do?action=query";
document.Mkform.submit(); document.Mkform.submit();
} }
$(function(){ $(function(){
//下载附件 //下载附件
$(".downloadA").click(function(){ $(".downloadA").click(function(){
window.location="<%=path%>/detection/detectionSet.do?action=downloadScript&myFileFileName=${myFileFileName}"; window.location="<%=path%>/detection/detectionSet.do?action=downloadScript&myFileFileName=${myFileFileName}";
}); });
}); });
</script> </script>
<body> <body>
<div class="middle_list" > <div class="middle_list" >
<div class="box_2"> <div class="box_2">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="goBack()" value="i18n_ddsi.button.back_n81i"/> onclick="goBack()" value="i18n_ddsi.button.back_n81i"/>
</div> </div>
<div style="height: 25px"></div> <div style="height: 25px"></div>
<form action="" name="Mkform" method="post"> <form action="" name="Mkform" method="post">
<input type="hidden" name="ip" id="ip" value="${ip }" /> <input type="hidden" name="ip" id="ip" value="${ip }" />
<input type="hidden" name="ctn" id="ctn" value="${ctn }" /> <input type="hidden" name="ctn" id="ctn" value="${ctn }" />
<input type="hidden" name="pIden" id="pIden" value="${pIden }" /> <input type="hidden" name="pIden" id="pIden" value="${pIden }" />
<input type="hidden" name="pageNo" value="${pageNo }" /> <input type="hidden" name="pageNo" value="${pageNo }" />
<input type="hidden" name="pageSize" value="${pageSize }" /> <input type="hidden" name="pageSize" value="${pageSize }" />
<jsp:include page="/common/transferHiddenParameter.jsp" /> <jsp:include page="/common/transferHiddenParameter.jsp" />
<table border="0" cellpadding="0" cellspacing="0" class="table" style="table-layout: fixed;word-wrap:break-word;"> <table border="0" cellpadding="0" cellspacing="0" class="table" style="table-layout: fixed;word-wrap:break-word;">
<tr> <tr>
<td colspan="4" class="color_8"> <td colspan="4" class="color_8">
<strong>i18n_ddsi.text.title_n81i</strong> <strong>i18n_ddsi.text.title_n81i</strong>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right" width="20%"> <td class="color_1" align="right" width="20%">
i18n_ddsi.text.processIdenName_n81i i18n_ddsi.text.processIdenName_n81i
</td> </td>
<td class="color_3" align="left" width="20%"> <td class="color_3" align="left" width="20%">
${detectionSetInfo.processIdenName } ${detectionSetInfo.processIdenName }
</td> </td>
<td class="color_1" align="right" width="20%"> <td class="color_1" align="right" width="20%">
i18n_ddsi.text.processIden_n81i i18n_ddsi.text.processIden_n81i
</td> </td>
<td class="color_3" align="left" width="20%"> <td class="color_3" align="left" width="20%">
${detectionSetInfo.processIden } ${detectionSetInfo.processIden }
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right" width="20%"> <td class="color_1" align="right" width="20%">
i18n_ddsi.text.nodeGroup_n81i i18n_ddsi.text.nodeGroup_n81i
</td> </td>
<td class="color_6" align="left" width="20%"> <td class="color_6" align="left" width="20%">
${detectionSetInfo.nodeGroupsName } ${detectionSetInfo.nodeGroupsName }
</td> </td>
<td class="color_1" align="right" width="20%"> <td class="color_1" align="right" width="20%">
i18n_ddsi.text.nodeIp_n81i i18n_ddsi.text.nodeIp_n81i
</td> </td>
<td class="color_3" align="left" width="20%" > <td class="color_3" align="left" width="20%" >
${detectionSetInfo.nodeIpsName } ${detectionSetInfo.nodeIpsName }
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right" width="20%"> <td class="color_1" align="right" width="20%">
i18n_ddsi.text.checkTypeName_n81i i18n_ddsi.text.checkTypeName_n81i
</td> </td>
<td class="color_6" align="left" width="20%"> <td class="color_6" align="left" width="20%">
${detectionSetInfo.checkTypeInfo.checkTypeName1 } ${detectionSetInfo.checkTypeInfo.checkTypeName1 }
</td> </td>
<td class="color_1" align="right" width="20%"> <td class="color_1" align="right" width="20%">
i18n_ddsi.text.checkType_n81i i18n_ddsi.text.checkType_n81i
</td> </td>
<td class="color_6" align="left" width="20%"> <td class="color_6" align="left" width="20%">
${detectionSetInfo.checkTypeInfo.checkTypeName } ${detectionSetInfo.checkTypeInfo.checkTypeName }
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right"> <td class="color_1" align="right">
i18n_ddsi.text.checkWay_n81i i18n_ddsi.text.checkWay_n81i
</td> </td>
<td class="color_3" align="left"> <td class="color_3" align="left">
<c:if test="${detectionSetInfo.checkWay == '1' }">i18n_ddsi.message.passive_n81i</c:if> <c:if test="${detectionSetInfo.checkWay == '1' }">i18n_ddsi.message.passive_n81i</c:if>
<c:if test="${detectionSetInfo.checkWay == '0' }">i18n_ddsi.message.active_n81i</c:if> <c:if test="${detectionSetInfo.checkWay == '0' }">i18n_ddsi.message.active_n81i</c:if>
</td> </td>
<td class="color_1" align="right"> <td class="color_1" align="right">
i18n_ddsi.text.detectionSetState_n81i i18n_ddsi.text.detectionSetState_n81i
</td> </td>
<td class="color_6" align="left"> <td class="color_6" align="left">
<c:if test="${detectionSetInfo.detectionSetState == '1' }">i18n_ddsi.message.valid_n81i</c:if> <c:if test="${detectionSetInfo.detectionSetState == '1' }">i18n_ddsi.message.valid_n81i</c:if>
<c:if test="${detectionSetInfo.detectionSetState == '0' }">i18n_ddsi.message.invalid_n81i</c:if> <c:if test="${detectionSetInfo.detectionSetState == '0' }">i18n_ddsi.message.invalid_n81i</c:if>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right"> <td class="color_1" align="right">
i18n_ddsi.text.viewLevel_n81i i18n_ddsi.text.viewLevel_n81i
</td> </td>
<td class="color_3" align="left"> <td class="color_3" align="left">
<c:if test="${detectionSetInfo.viewLevel=='1' }">i18n_ddsi.message.publisher_n81i</c:if> <c:if test="${detectionSetInfo.viewLevel=='1' }">i18n_ddsi.message.publisher_n81i</c:if>
<c:if test="${detectionSetInfo.viewLevel=='2' }">i18n_ddsi.message.publisherGroup_n81i</c:if> <c:if test="${detectionSetInfo.viewLevel=='2' }">i18n_ddsi.message.publisherGroup_n81i</c:if>
<c:if test="${detectionSetInfo.viewLevel=='3' }">i18n_ddsi.message.allInSys_n81i</c:if> <c:if test="${detectionSetInfo.viewLevel=='3' }">i18n_ddsi.message.allInSys_n81i</c:if>
<c:if test="${detectionSetInfo.viewLevel=='4' }">i18n_ddsi.message.unlimited_n81i</c:if> <c:if test="${detectionSetInfo.viewLevel=='4' }">i18n_ddsi.message.unlimited_n81i</c:if>
</td> </td>
<td class="color_1" align="right"> <td class="color_1" align="right">
i18n_ddsi.text.isSchedule_n81i i18n_ddsi.text.isSchedule_n81i
</td> </td>
<td class="color_6" align="left" > <td class="color_6" align="left" >
<c:if test="${detectionSetInfo.checkTypeInfo.isSchedule=='0' }">i18n_ddsi.message.isSchedule0_n81i</c:if> <c:if test="${detectionSetInfo.checkTypeInfo.isSchedule=='0' }">i18n_ddsi.message.isSchedule0_n81i</c:if>
<c:if test="${detectionSetInfo.checkTypeInfo.isSchedule=='1' }">i18n_ddsi.message.isSchedule1_n81i</c:if> <c:if test="${detectionSetInfo.checkTypeInfo.isSchedule=='1' }">i18n_ddsi.message.isSchedule1_n81i</c:if>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right"> <td class="color_1" align="right">
i18n_ddsi.text.checkGap_n81i i18n_ddsi.text.checkGap_n81i
</td> </td>
<td class="color_3" align="left"> <td class="color_3" align="left">
${detectionSetInfo.checkGap } ${detectionSetInfo.checkGap }
</td> </td>
<!-- <!--
<td class="color_1" align="right"> <td class="color_1" align="right">
上传监测数据时间间隔(分钟) 上传监测数据时间间隔(分钟)
</td> </td>
<td class="color_6" align="left"> <td class="color_6" align="left">
${detectionSetInfo.uploadGap } ${detectionSetInfo.uploadGap }
</td> </td>
--> -->
<td class="color_1" align="right"> <td class="color_1" align="right">
i18n_ddsi.text.checkOutTime_n81i i18n_ddsi.text.checkOutTime_n81i
</td> </td>
<td class="color_3" align="left"> <td class="color_3" align="left">
${detectionSetInfo.checkOutTime } ${detectionSetInfo.checkOutTime }
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right"> <td class="color_1" align="right">
i18n_ddsi.text.planCheckTime_n81i i18n_ddsi.text.planCheckTime_n81i
</td> </td>
<td class="color_3" align="left"> <td class="color_3" align="left">
<fmt:formatDate value="${detectionSetInfo.planCheckTime}" pattern="yyyy-MM-dd HH:mm:ss"/> <fmt:formatDate value="${detectionSetInfo.planCheckTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
</td> </td>
<td class="color_1" align="right"> <td class="color_1" align="right">
i18n_ddsi.text.checkMaxTimes_n81i i18n_ddsi.text.checkMaxTimes_n81i
</td> </td>
<td class="color_6" align="left"> <td class="color_6" align="left">
${detectionSetInfo.checkMaxTimes } ${detectionSetInfo.checkMaxTimes }
</td> </td>
</tr> </tr>
<%-- 1. 系统预置监测 --%> <%-- 1. 系统预置监测 --%>
<c:if test="${detectionSetInfo.id < 8}"> <c:if test="${detectionSetInfo.id < 8}">
<tr> <tr>
<td class="color_1" align="right"> <td class="color_1" align="right">
i18n_ddsi.text.processFile_n81i i18n_ddsi.text.processFile_n81i
</td> </td>
<td class="color_3" align="left"> <td class="color_3" align="left">
${detectionSetInfo.processFile } ${detectionSetInfo.processFile }
</td> </td>
<td class="color_1" align="right"> <td class="color_1" align="right">
i18n_ddsi.text.processPath_n81i i18n_ddsi.text.processPath_n81i
</td> </td>
<td class="color_6" align="left"> <td class="color_6" align="left">
${detectionSetInfo.processPath } ${detectionSetInfo.processPath }
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right"> <td class="color_1" align="right">
i18n_ddsi.text.isControlStart_n81i i18n_ddsi.text.isControlStart_n81i
</td> </td>
<td class="color_3" align="left"> <td class="color_3" align="left">
<c:if test="${detectionSetInfo.id < 8}">i18n_ddsi.text.ncStartup_n81i</c:if> <c:if test="${detectionSetInfo.id < 8}">i18n_ddsi.text.ncStartup_n81i</c:if>
<c:if test="${detectionSetInfo.id >= 8}"> <c:if test="${detectionSetInfo.id >= 8}">
<c:if test="${detectionSetInfo.isControlStart=='0' }">i18n_ddsi.message.manually_n81i</c:if> <c:if test="${detectionSetInfo.isControlStart=='0' }">i18n_ddsi.message.manually_n81i</c:if>
<c:if test="${detectionSetInfo.isControlStart=='1' }">i18n_ddsi.message.singleStart_n81i</c:if> <c:if test="${detectionSetInfo.isControlStart=='1' }">i18n_ddsi.message.singleStart_n81i</c:if>
<c:if test="${detectionSetInfo.isControlStart=='2' }">i18n_ddsi.message.cycleStart_n81i</c:if> <c:if test="${detectionSetInfo.isControlStart=='2' }">i18n_ddsi.message.cycleStart_n81i</c:if>
</c:if> </c:if>
</td> </td>
<td class="color_1" align="right"> <td class="color_1" align="right">
i18n_ddsi.text.controlStartTime_n81i i18n_ddsi.text.controlStartTime_n81i
</td> </td>
<td class="color_6" align="left"> <td class="color_6" align="left">
<fmt:formatDate value="${detectionSetInfo.controlStartTime}" pattern="yyyy-MM-dd HH:mm:ss"/> <fmt:formatDate value="${detectionSetInfo.controlStartTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
</td> </td>
</tr> </tr>
</c:if><%-- end of 1 --%> </c:if><%-- end of 1 --%>
<%-- 2.1 第三方监测手动启动 --%> <%-- 2.1 第三方监测手动启动 --%>
<c:if test="${detectionSetInfo.id >= 8 and detectionSetInfo.isControlStart == '0'}"> <c:if test="${detectionSetInfo.id >= 8 and detectionSetInfo.isControlStart == '0'}">
<tr> <tr>
<td class="color_1" align="right">i18n_ddsi.text.processFile_n81i</td> <td class="color_1" align="right">i18n_ddsi.text.processFile_n81i</td>
<td class="color_3" align="left">${detectionSetInfo.processFile }</td> <td class="color_3" align="left">${detectionSetInfo.processFile }</td>
<td class="color_1" align="right">i18n_ddsi.text.processSearchCode_n81i</td> <td class="color_1" align="right">i18n_ddsi.text.processSearchCode_n81i</td>
<td class="color_6" align="left">${detectionSetInfo.processSearchCode }</td> <td class="color_6" align="left">${detectionSetInfo.processSearchCode }</td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right">i18n_ddsi.text.isControlStart_n81i</td> <td class="color_1" align="right">i18n_ddsi.text.isControlStart_n81i</td>
<td class="color_3" align="left"> <td class="color_3" align="left">
<c:if test="${detectionSetInfo.isControlStart=='0' }">i18n_ddsi.message.manually_n81i</c:if> <c:if test="${detectionSetInfo.isControlStart=='0' }">i18n_ddsi.message.manually_n81i</c:if>
<c:if test="${detectionSetInfo.isControlStart=='1' }">i18n_ddsi.message.singleStart_n81i</c:if> <c:if test="${detectionSetInfo.isControlStart=='1' }">i18n_ddsi.message.singleStart_n81i</c:if>
<c:if test="${detectionSetInfo.isControlStart=='2' }">i18n_ddsi.message.cycleStart_n81i</c:if> <c:if test="${detectionSetInfo.isControlStart=='2' }">i18n_ddsi.message.cycleStart_n81i</c:if>
</td> </td>
<td class="color_1" align="right"></td> <td class="color_1" align="right"></td>
<td class="color_6" align="left"></td> <td class="color_6" align="left"></td>
</tr> </tr>
</c:if><%-- end of 2.1 --%> </c:if><%-- end of 2.1 --%>
<%-- 2.2 第三方监测NC单次启动 --%> <%-- 2.2 第三方监测NC单次启动 --%>
<c:if test="${detectionSetInfo.id >= 8 and detectionSetInfo.isControlStart == '1'}"> <c:if test="${detectionSetInfo.id >= 8 and detectionSetInfo.isControlStart == '1'}">
<tr> <tr>
<td class="color_1" align="right">i18n_ddsi.text.isControlStart_n81i</td> <td class="color_1" align="right">i18n_ddsi.text.isControlStart_n81i</td>
<td class="color_3" align="left"> <td class="color_3" align="left">
<c:if test="${detectionSetInfo.isControlStart=='0' }">i18n_ddsi.message.manually_n81i</c:if> <c:if test="${detectionSetInfo.isControlStart=='0' }">i18n_ddsi.message.manually_n81i</c:if>
<c:if test="${detectionSetInfo.isControlStart=='1' }">i18n_ddsi.message.singleStart_n81i</c:if> <c:if test="${detectionSetInfo.isControlStart=='1' }">i18n_ddsi.message.singleStart_n81i</c:if>
<c:if test="${detectionSetInfo.isControlStart=='2' }">i18n_ddsi.message.cycleStart_n81i</c:if> <c:if test="${detectionSetInfo.isControlStart=='2' }">i18n_ddsi.message.cycleStart_n81i</c:if>
</td> </td>
<td class="color_1" align="right">i18n_ddsi.text.controlStartTime_n81i</td> <td class="color_1" align="right">i18n_ddsi.text.controlStartTime_n81i</td>
<td class="color_6" align="left"> <td class="color_6" align="left">
<fmt:formatDate value="${detectionSetInfo.controlStartTime}" pattern="yyyy-MM-dd HH:mm:ss"/> <fmt:formatDate value="${detectionSetInfo.controlStartTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right">i18n_ddsi.text.processFile_n81i</td> <td class="color_1" align="right">i18n_ddsi.text.processFile_n81i</td>
<td class="color_3" align="left">${detectionSetInfo.processFile }</td> <td class="color_3" align="left">${detectionSetInfo.processFile }</td>
<td class="color_1" align="right">i18n_ddsi.text.processSearchCode_n81i</td> <td class="color_1" align="right">i18n_ddsi.text.processSearchCode_n81i</td>
<td class="color_6" align="left">${detectionSetInfo.processSearchCode }</td> <td class="color_6" align="left">${detectionSetInfo.processSearchCode }</td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right">i18n_ddsi.text.processPath_n81i</td> <td class="color_1" align="right">i18n_ddsi.text.processPath_n81i</td>
<td class="color_3" align="left">${detectionSetInfo.processPath }</td> <td class="color_3" align="left">${detectionSetInfo.processPath }</td>
<td class="color_1" align="right"></td> <td class="color_1" align="right"></td>
<td class="color_6" align="left"></td> <td class="color_6" align="left"></td>
</tr> </tr>
</c:if><%-- end of 2.2 --%> </c:if><%-- end of 2.2 --%>
<%-- 2.3 第三方监测NC周期启动类型 --%> <%-- 2.3 第三方监测NC周期启动类型 --%>
<c:if test="${detectionSetInfo.id >= 8 and detectionSetInfo.isControlStart == '2'}"> <c:if test="${detectionSetInfo.id >= 8 and detectionSetInfo.isControlStart == '2'}">
<tr> <tr>
<td class="color_1" align="right">i18n_ddsi.text.isControlStart_n81i</td> <td class="color_1" align="right">i18n_ddsi.text.isControlStart_n81i</td>
<td class="color_3" align="left"> <td class="color_3" align="left">
<c:if test="${detectionSetInfo.isControlStart=='0' }">i18n_ddsi.message.manually_n81i</c:if> <c:if test="${detectionSetInfo.isControlStart=='0' }">i18n_ddsi.message.manually_n81i</c:if>
<c:if test="${detectionSetInfo.isControlStart=='1' }">i18n_ddsi.message.singleStart_n81i</c:if> <c:if test="${detectionSetInfo.isControlStart=='1' }">i18n_ddsi.message.singleStart_n81i</c:if>
<c:if test="${detectionSetInfo.isControlStart=='2' }">i18n_ddsi.message.cycleStart_n81i</c:if> <c:if test="${detectionSetInfo.isControlStart=='2' }">i18n_ddsi.message.cycleStart_n81i</c:if>
</td> </td>
<td class="color_1" align="right">i18n_ddsi.text.controlStartTime_n81i</td> <td class="color_1" align="right">i18n_ddsi.text.controlStartTime_n81i</td>
<td class="color_6" align="left"> <td class="color_6" align="left">
<fmt:formatDate value="${detectionSetInfo.controlStartTime}" pattern="yyyy-MM-dd HH:mm:ss"/> <fmt:formatDate value="${detectionSetInfo.controlStartTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right">i18n_ddsi.text.myFileFile_n81i</td> <td class="color_1" align="right">i18n_ddsi.text.myFileFile_n81i</td>
<td class="color_3" align="left"> <td class="color_3" align="left">
<a title="点击下载" href="#" class="downloadA" id="scriptFile">${myFileFileName}</a> <a title="点击下载" href="#" class="downloadA" id="scriptFile">${myFileFileName}</a>
</td> </td>
<td class="color_1" align="right"></td> <td class="color_1" align="right"></td>
<td class="color_6" align="left"></td> <td class="color_6" align="left"></td>
</tr> </tr>
</c:if><%-- end of 2.3 --%> </c:if><%-- end of 2.3 --%>
</table> </table>
</form> </form>
</div> </div>
</body> </body>
</html> </html>

File diff suppressed because it is too large Load Diff

View File

@@ -1,84 +1,84 @@
<%@ page language="java" pageEncoding="utf-8"%> <%@ page language="java" pageEncoding="utf-8"%>
<%@include file="/common/taglib.jsp"%> <%@include file="/common/taglib.jsp"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
%> %>
<c:set var="index" value="${1}" /> <c:set var="index" value="${1}" />
<c:choose> <c:choose>
<c:when test="${fn:length(detecSetList) > 0}"> <c:when test="${fn:length(detecSetList) > 0}">
<c:forEach items="${detecSetList}" var="detecSet" varStatus="vs"> <c:forEach items="${detecSetList}" var="detecSet" varStatus="vs">
<c:set var="color" value="color_1"/> <c:set var="color" value="color_1"/>
<c:set var="color_end" value="color_7"/> <c:set var="color_end" value="color_7"/>
<c:if test="${vs.count%2!=0 }"> <c:if test="${vs.count%2!=0 }">
<c:set var="color" value="color_3"/> <c:set var="color" value="color_3"/>
<c:set var="color_end" value="color_6"/> <c:set var="color_end" value="color_6"/>
</c:if> </c:if>
<tr> <tr>
<td class="${color }"> <td class="${color }">
<input type="checkbox" name="ids" id="ids" ${(ADMFlag && detecSet.viewLevel ne 4) || (!ADMFlag && detecSet.viewLevel eq 4) ? "disabled='disabled'":""} <input type="checkbox" name="ids" id="ids" ${(ADMFlag && detecSet.viewLevel ne 4) || (!ADMFlag && detecSet.viewLevel eq 4) ? "disabled='disabled'":""}
value="${detecSet.id}" /> value="${detecSet.id}" />
<input type="hidden" id="yxbz${detecSet.id }" <input type="hidden" id="yxbz${detecSet.id }"
name="yxbz${detecSet.id }" value="${detecSet.detectionSetState}" /> name="yxbz${detecSet.id }" value="${detecSet.detectionSetState}" />
${index+(pageNo-1)*pageSize} ${index+(pageNo-1)*pageSize}
</td> </td>
<td class="${color }" > <td class="${color }" >
${detecSet.nodeGroupsName} ${detecSet.nodeGroupsName}
</td> </td>
<td class="${color }"> <td class="${color }">
${detecSet.nodeIpsName} ${detecSet.nodeIpsName}
</td> </td>
<td class="${color }"> <td class="${color }">
<a href="javascript:showRecord('${detecSet.id }')">${detecSet.checkTypeInfo.checkTypeName1}</a> <a href="javascript:showRecord('${detecSet.id }')">${detecSet.checkTypeInfo.checkTypeName1}</a>
</td> </td>
<!-- <!--
<td class="${color }"> <td class="${color }">
<c:if test="${detecSet.checkWay=='0' }">主动</c:if> <c:if test="${detecSet.checkWay=='0' }">主动</c:if>
<c:if test="${detecSet.checkWay=='1' }">被动</c:if> <c:if test="${detecSet.checkWay=='1' }">被动</c:if>
</td> </td>
--> -->
<td class="${color }"> <td class="${color }">
${detecSet.checkGap} ${detecSet.checkGap}
</td> </td>
<td class="${color }"> <td class="${color }">
${detecSet.checkMaxTimes} ${detecSet.checkMaxTimes}
</td> </td>
<td class="${color }"> <td class="${color }">
${detecSet.checkOutTime} ${detecSet.checkOutTime}
</td> </td>
<td class="${color }"> <td class="${color }">
<fmt:formatDate value="${detecSet.planCheckTime}" pattern="yyyy-MM-dd HH:mm:ss"/> <fmt:formatDate value="${detecSet.planCheckTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
</td> </td>
<td class="${color }"> <td class="${color }">
${detecSet.processIdenName} ${detecSet.processIdenName}
</td> </td>
<td class="${color }" style="word-break:break-all"> <td class="${color }" style="word-break:break-all">
${detecSet.processFile} ${detecSet.processFile}
</td> </td>
<td class="${color }" style="word-break:break-all"> <td class="${color }" style="word-break:break-all">
${detecSet.processPath} ${detecSet.processPath}
</td> </td>
<td class="${color }"> <td class="${color }">
<c:if test="${detecSet.isControlStart=='0' }">i18n_dsilc.message.manually_n81i</c:if> <c:if test="${detecSet.isControlStart=='0' }">i18n_dsilc.message.manually_n81i</c:if>
<c:if test="${detecSet.isControlStart=='1' }">i18n_dsilc.message.NCStart_n81i</c:if> <c:if test="${detecSet.isControlStart=='1' }">i18n_dsilc.message.NCStart_n81i</c:if>
</td> </td>
<td class="${color }"> <td class="${color }">
<fmt:formatDate value="${detecSet.controlStartTime}" pattern="yyyy-MM-dd HH:mm:ss"/> <fmt:formatDate value="${detecSet.controlStartTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
</td> </td>
<td class="${color }"> <td class="${color }">
<c:if test="${detecSet.checkTypeInfo.isSchedule=='0' }">i18n_dsilc.message.yes_n81i</c:if> <c:if test="${detecSet.checkTypeInfo.isSchedule=='0' }">i18n_dsilc.message.yes_n81i</c:if>
<c:if test="${detecSet.checkTypeInfo.isSchedule=='1' }">i18n_dsilc.message.no_n81i</c:if> <c:if test="${detecSet.checkTypeInfo.isSchedule=='1' }">i18n_dsilc.message.no_n81i</c:if>
</td> </td>
<td class="${color_end }"> <td class="${color_end }">
<c:if test="${detecSet.detectionSetState=='0' }"><font color="#FF0000">i18n_dsilc.message.invalid_n81i</font></c:if> <c:if test="${detecSet.detectionSetState=='0' }"><font color="#FF0000">i18n_dsilc.message.invalid_n81i</font></c:if>
<c:if test="${detecSet.detectionSetState=='1' }">i18n_dsilc.message.valid_n81i</c:if> <c:if test="${detecSet.detectionSetState=='1' }">i18n_dsilc.message.valid_n81i</c:if>
</td> </td>
</tr> </tr>
<c:set var="index" value="${index + 1}" /> <c:set var="index" value="${index + 1}" />
</c:forEach> </c:forEach>
</c:when> </c:when>
</c:choose> </c:choose>

View File

@@ -1,231 +1,231 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%> <%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib uri="/jstl/fn" prefix="fn"%> <%@ taglib uri="/jstl/fn" prefix="fn"%>
<%@ taglib uri="/jstl/fmt" prefix="fmt"%> <%@ taglib uri="/jstl/fmt" prefix="fmt"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
request.setAttribute("vEnter","\n"); request.setAttribute("vEnter","\n");
%> %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_dwi.message.title_n81i</title> <title>i18n_dwi.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" <link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script> src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.tools.js'/>"></script> src="<c:url value='/js/jquery.tools.js'/>"></script>
</head> </head>
<script language="javascript" type="text/javascript"> <script language="javascript" type="text/javascript">
function goBack(){ function goBack(){
var nodeType='${nodeType}'; var nodeType='${nodeType}';
var url; var url;
if("${type}"=="3Droom"){ if("${type}"=="3Droom"){
url="<c:url value='/detection/detectionWarning.do?action=queryAll'/>"; url="<c:url value='/detection/detectionWarning.do?action=queryAll'/>";
}else if(nodeType == '0'){ }else if(nodeType == '0'){
url="<c:url value='/detection/detectionWarning.do?action=query'/>"; url="<c:url value='/detection/detectionWarning.do?action=query'/>";
}else if(nodeType == '1'){ }else if(nodeType == '1'){
url="<c:url value='/detection/detectionWarning.do?action=queryNE'/>"; url="<c:url value='/detection/detectionWarning.do?action=queryNE'/>";
}else{ }else{
url="<c:url value='/detection/detectionWarning.do?action=queryAllConfigLevel'/>";//告警信息 url="<c:url value='/detection/detectionWarning.do?action=queryAllConfigLevel'/>";//告警信息
} }
document.Mkform.action=url; document.Mkform.action=url;
document.Mkform.submit(); document.Mkform.submit();
} }
</script> </script>
<body> <body>
<div class="middle_list" > <div class="middle_list" >
<div class="box_2"> <div class="box_2">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="goBack()" value="i18n_dwi.button.back_n81i"/> onclick="goBack()" value="i18n_dwi.button.back_n81i"/>
</div> </div>
<div style="height: 25px"></div> <div style="height: 25px"></div>
<form action="" name="Mkform" method="post"> <form action="" name="Mkform" method="post">
<!-- 查询页面查询条件 Start --> <!-- 查询页面查询条件 Start -->
<input type="hidden" name="police_level" value="${police_level }"> <input type="hidden" name="police_level" value="${police_level }">
<input type="hidden" name="ctn" value="${ctn }" /> <input type="hidden" name="ctn" value="${ctn }" />
<input type="hidden" name="ip" value="${ip }" /> <input type="hidden" name="ip" value="${ip }" />
<input type="hidden" name="dct" value="${dct }" /> <input type="hidden" name="dct" value="${dct }" />
<input type="hidden" name="stateInfo" id="stateInfo" value="${stateInfo }" /> <input type="hidden" name="stateInfo" id="stateInfo" value="${stateInfo }" />
<input type="hidden" name="pIden" value="${pIden }" /> <input type="hidden" name="pIden" value="${pIden }" />
<input type="hidden" name="pageNo" value="${pageNo }" /> <input type="hidden" name="pageNo" value="${pageNo }" />
<input type="hidden" name="pageSize" value="${pageSize }" /> <input type="hidden" name="pageSize" value="${pageSize }" />
<input type="hidden" name="timeoutDetecFilter" value="${timeoutDetecFilter}" /> <input type="hidden" name="timeoutDetecFilter" value="${timeoutDetecFilter}" />
<!-- 从监测网元信息进入的参数 --> <!-- 从监测网元信息进入的参数 -->
<input type="hidden" name="entry" value="${entry}"/> <input type="hidden" name="entry" value="${entry}"/>
<input type="hidden" name="detectId" value="${detectId}"/> <input type="hidden" name="detectId" value="${detectId}"/>
<input type="hidden" name="seqId" value="${seqId}"/> <input type="hidden" name="seqId" value="${seqId}"/>
<input type="hidden" name="police_emergent" value="${police_emergent}"/> <input type="hidden" name="police_emergent" value="${police_emergent}"/>
<input type="hidden" name="nodeIpRange" value="${nodeIpRange}"/> <input type="hidden" name="nodeIpRange" value="${nodeIpRange}"/>
<input type="hidden" name="nodeType" value="${nodeType}"/> <input type="hidden" name="nodeType" value="${nodeType}"/>
<input type="hidden" name="type" value="${type}"/> <input type="hidden" name="type" value="${type}"/>
<input type="hidden" name="nameFlag" value="${nameFlag}"/> <input type="hidden" name="nameFlag" value="${nameFlag}"/>
<input type="hidden" name="pid" value="${pid}"/> <input type="hidden" name="pid" value="${pid}"/>
<input type="hidden" name="isLeaf" value="${isLeaf}"/> <input type="hidden" name="isLeaf" value="${isLeaf}"/>
<input type="hidden" name="picId" value="${picId}"/> <input type="hidden" name="picId" value="${picId}"/>
<input type="hidden" name="queryParConditionDisplay" value="${queryParConditionDisplay}"/> <input type="hidden" name="queryParConditionDisplay" value="${queryParConditionDisplay}"/>
<input type="hidden" name="queryChildConditionDisplay" value="${queryChildConditionDisplay}"/> <input type="hidden" name="queryChildConditionDisplay" value="${queryChildConditionDisplay}"/>
<jsp:include page="/common/transferHiddenParameter.jsp" /> <jsp:include page="/common/transferHiddenParameter.jsp" />
<!-- 查询页面查询条件 end --> <!-- 查询页面查询条件 end -->
<table border="0" cellpadding="0" cellspacing="0" class="table"> <table border="0" cellpadding="0" cellspacing="0" class="table">
<tr> <tr>
<td colspan="4" class="color_8"> <td colspan="4" class="color_8">
<strong>i18n_dwi.message.warningInfo_n81i</strong> <strong>i18n_dwi.message.warningInfo_n81i</strong>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right" width="20%"> <td class="color_1" align="right" width="20%">
i18n_dwi.text.processIdenName_n81i i18n_dwi.text.processIdenName_n81i
</td> </td>
<td class="color_3" align="left" width="20%"> <td class="color_3" align="left" width="20%">
${detectionWarningInfo.detectionSetInfo.processIdenName} ${detectionWarningInfo.detectionSetInfo.processIdenName}
</td> </td>
<td class="color_1" align="right" width="20%"> <td class="color_1" align="right" width="20%">
i18n_dwi.text.nodeIp_n81i i18n_dwi.text.nodeIp_n81i
</td> </td>
<td class="color_3" align="left" width="20%"> <td class="color_3" align="left" width="20%">
${nodeIp} ${nodeIp}
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right" > <td class="color_1" align="right" >
i18n_dwi.text.detecationState_n81i i18n_dwi.text.detecationState_n81i
</td> </td>
<td class="color_3" align="left" > <td class="color_3" align="left" >
<c:if test="${detectionWarningInfo.detectionedState=='0' }"><font color="#FF0000">i18n_dwi.message.abnormal_n81i</font></c:if> <c:if test="${detectionWarningInfo.detectionedState=='0' }"><font color="#FF0000">i18n_dwi.message.abnormal_n81i</font></c:if>
<c:if test="${detectionWarningInfo.detectionedState=='1' }">i18n_dwi.message.normal_n81i</c:if> <c:if test="${detectionWarningInfo.detectionedState=='1' }">i18n_dwi.message.normal_n81i</c:if>
<c:if test="${detectionWarningInfo.detectionedState=='-1' }"><font color="#FF0000">i18n_dwi.message.execFailed_n81i</font></c:if> <c:if test="${detectionWarningInfo.detectionedState=='-1' }"><font color="#FF0000">i18n_dwi.message.execFailed_n81i</font></c:if>
</td> </td>
<td class="color_1" align="right"> <td class="color_1" align="right">
i18n_dwi.text.viewLevel_n81i i18n_dwi.text.viewLevel_n81i
</td> </td>
<td class="color_3" align="left"> <td class="color_3" align="left">
<c:if test="${detectionWarningInfo.detectionSetInfo.viewLevel=='1' }">i18n_dwi.message.publisher_n81i</c:if> <c:if test="${detectionWarningInfo.detectionSetInfo.viewLevel=='1' }">i18n_dwi.message.publisher_n81i</c:if>
<c:if test="${detectionWarningInfo.detectionSetInfo.viewLevel=='2' }">i18n_dwi.message.publisherGroup_n81i</c:if> <c:if test="${detectionWarningInfo.detectionSetInfo.viewLevel=='2' }">i18n_dwi.message.publisherGroup_n81i</c:if>
<c:if test="${detectionWarningInfo.detectionSetInfo.viewLevel=='3' }">i18n_dwi.message.allInSys_n81i</c:if> <c:if test="${detectionWarningInfo.detectionSetInfo.viewLevel=='3' }">i18n_dwi.message.allInSys_n81i</c:if>
<c:if test="${detectionWarningInfo.detectionSetInfo.viewLevel=='4' }">i18n_dwi.message.unlimited_n81i</c:if> <c:if test="${detectionWarningInfo.detectionSetInfo.viewLevel=='4' }">i18n_dwi.message.unlimited_n81i</c:if>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right"> <td class="color_1" align="right">
i18n_dwi.text.stateInfo_n81i i18n_dwi.text.stateInfo_n81i
</td> </td>
<td class="color_3" align="left" colspan="3"> <td class="color_3" align="left" colspan="3">
${fn:replace(fn:replace(detectionWarningInfo.detectionStateInfo,vEnter,'$@$'),'$@$','<br/>')} ${fn:replace(fn:replace(detectionWarningInfo.detectionStateInfo,vEnter,'$@$'),'$@$','<br/>')}
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right"> <td class="color_1" align="right">
i18n_dwi.text.performaceData_n81i i18n_dwi.text.performaceData_n81i
</td> </td>
<td class="color_3" align="left" colspan="3"> <td class="color_3" align="left" colspan="3">
${fn:replace(fn:replace(detectionWarningInfo.performaceData,vEnter,'$@$'),'$@$','<br/>')} ${fn:replace(fn:replace(detectionWarningInfo.performaceData,vEnter,'$@$'),'$@$','<br/>')}
</td> </td>
</tr> </tr>
<%-- <tr>--%> <%-- <tr>--%>
<%-- <td class="color_1" align="right">--%> <%-- <td class="color_1" align="right">--%>
<%-- 监测首次执行时间:--%> <%-- 监测首次执行时间:--%>
<%-- </td>--%> <%-- </td>--%>
<%-- <td class="color_3" align="left">--%> <%-- <td class="color_3" align="left">--%>
<%-- <fmt:formatDate value="${detectionWarningInfo.detectionSetInfo.planCheckTime}" pattern="yyyy-MM-dd HH:mm:ss"/>--%> <%-- <fmt:formatDate value="${detectionWarningInfo.detectionSetInfo.planCheckTime}" pattern="yyyy-MM-dd HH:mm:ss"/>--%>
<%-- </td>--%> <%-- </td>--%>
<%-- <td class="color_1" align="right">--%> <%-- <td class="color_1" align="right">--%>
<%-- 上传监测数据时间间隔(分钟)--%> <%-- 上传监测数据时间间隔(分钟)--%>
<%-- </td>--%> <%-- </td>--%>
<%-- <td class="color_3" align="left">--%> <%-- <td class="color_3" align="left">--%>
<%-- ${detectionWarningInfo.detectionSetInfo.uploadGap}--%> <%-- ${detectionWarningInfo.detectionSetInfo.uploadGap}--%>
<%-- </td>--%> <%-- </td>--%>
<%-- </tr>--%> <%-- </tr>--%>
<tr> <tr>
<td class="color_1" align="right"> <td class="color_1" align="right">
i18n_dwi.text.checkGap_n81i i18n_dwi.text.checkGap_n81i
</td> </td>
<td class="color_3" align="left"> <td class="color_3" align="left">
${detectionWarningInfo.detectionSetInfo.checkGap} ${detectionWarningInfo.detectionSetInfo.checkGap}
</td> </td>
<td class="color_1" align="right"> <td class="color_1" align="right">
i18n_dwi.text.currentTimes_n81i i18n_dwi.text.currentTimes_n81i
</td> </td>
<td class="color_3" align="left"> <td class="color_3" align="left">
${detectionWarningInfo.currentTimes } ${detectionWarningInfo.currentTimes }
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right"> <td class="color_1" align="right">
i18n_dwi.text.nextCheckTime_n81i i18n_dwi.text.nextCheckTime_n81i
</td> </td>
<td class="color_3" align="left"> <td class="color_3" align="left">
<fmt:formatDate value="${detectionWarningInfo.nextCheckTime}" pattern="yyyy-MM-dd HH:mm:ss"/> <fmt:formatDate value="${detectionWarningInfo.nextCheckTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
</td> </td>
<td class="color_1" align="right" > <td class="color_1" align="right" >
i18n_dwi.text.dataArriveTime_n81i i18n_dwi.text.dataArriveTime_n81i
</td> </td>
<td class="color_3" align="left" > <td class="color_3" align="left" >
<fmt:formatDate value="${detectionWarningInfo.dataArriveTime}" pattern="yyyy-MM-dd HH:mm:ss"/> <fmt:formatDate value="${detectionWarningInfo.dataArriveTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right" > <td class="color_1" align="right" >
i18n_dwi.text.dataCheckTime_n81i i18n_dwi.text.dataCheckTime_n81i
</td> </td>
<td class="color_3" align="left" colspan="3"> <td class="color_3" align="left" colspan="3">
<fmt:formatDate value="${detectionWarningInfo.dataCheckTime}" pattern="yyyy-MM-dd HH:mm:ss"/> <fmt:formatDate value="${detectionWarningInfo.dataCheckTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
</td> </td>
<!-- <!--
<td class="color_1" align="right"> <td class="color_1" align="right">
监测方式: 监测方式:
</td> </td>
<td class="color_3" align="left" > <td class="color_3" align="left" >
<c:if test="${detectionWarningInfo.detectionSetInfo.checkWay == '0'}">主动</c:if> <c:if test="${detectionWarningInfo.detectionSetInfo.checkWay == '0'}">主动</c:if>
<c:if test="${detectionWarningInfo.detectionSetInfo.checkWay == '1'}">被动</c:if> <c:if test="${detectionWarningInfo.detectionSetInfo.checkWay == '1'}">被动</c:if>
</td> </td>
--> -->
</tr> </tr>
<tr> <tr>
<td colspan="4" align="center" class="color_8"> <td colspan="4" align="center" class="color_8">
<strong>i18n_dwi.text.warningInfo_n81i</strong> <strong>i18n_dwi.text.warningInfo_n81i</strong>
</td> </td>
</tr> </tr>
<tr> <tr>
<td align="center" colspan="4" class="color_6"> <td align="center" colspan="4" class="color_6">
<c:if test="${!empty infoMap}"> <c:if test="${!empty infoMap}">
<table align="center" border="0" cellpadding="0" cellspacing="1" > <table align="center" border="0" cellpadding="0" cellspacing="1" >
<c:forEach items="${infoMap}" var="datarow" > <c:forEach items="${infoMap}" var="datarow" >
<tr> <tr>
<td class="color_1" width="30%" align="right"> <td class="color_1" width="30%" align="right">
${datarow.key} ${datarow.key}
</td> </td>
<td class="color_3" width="30%" align="left"> <td class="color_3" width="30%" align="left">
${datarow.value} ${datarow.value}
</td> </td>
</tr> </tr>
</c:forEach> </c:forEach>
</table> </table>
</c:if> </c:if>
<c:if test="${empty infoMap}">i18n_dwi.text.noRecord_n81i</c:if> <c:if test="${empty infoMap}">i18n_dwi.text.noRecord_n81i</c:if>
</td> </td>
</tr> </tr>
</table> </table>
</form> </form>
</div> </div>
</body> </body>
</html> </html>

View File

@@ -1,167 +1,167 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@include file="/common/taglib.jsp"%> <%@include file="/common/taglib.jsp"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
request.setAttribute("vEnter","\n"); request.setAttribute("vEnter","\n");
%> %>
</script> </script>
<c:set var="index" value="${1}" /> <c:set var="index" value="${1}" />
<c:choose> <c:choose>
<c:when test="${fn:length(detecWarningList) > 0}"> <c:when test="${fn:length(detecWarningList) > 0}">
<c:forEach items="${detecWarningList}" var="detecWarning" <c:forEach items="${detecWarningList}" var="detecWarning"
varStatus="vs"> varStatus="vs">
<c:set var="color" value="color_1" /> <c:set var="color" value="color_1" />
<c:set var="color_end" value="color_7" /> <c:set var="color_end" value="color_7" />
<c:if test="${vs.count%2!=0 }"> <c:if test="${vs.count%2!=0 }">
<c:set var="color" value="color_3" /> <c:set var="color" value="color_3" />
<c:set var="color_end" value="color_6" /> <c:set var="color_end" value="color_6" />
</c:if> </c:if>
<tr> <tr>
<td class="${color }"> <td class="${color }">
${index+(pageNo-1)*pageSize} ${index+(pageNo-1)*pageSize}
</td> </td>
<td class="${color }"> <td class="${color }">
<font color="${detecWarning.bgcolor}"> <!-- 2、 调用JS此处远程连接调用JS在/common/remoteConn.jsp中 --> <font color="${detecWarning.bgcolor}"> <!-- 2、 调用JS此处远程连接调用JS在/common/remoteConn.jsp中 -->
<a <a
href="javascript:void(0);" href="javascript:void(0);"
onclick="remoteConn('${detecWarning.nodeSysType }','${detecWarning.nodeIp}','${detecWarning.nodeType }', this)" onclick="remoteConn('${detecWarning.nodeSysType }','${detecWarning.nodeIp}','${detecWarning.nodeType }', this)"
style="color:${detecWarning.bgcolor};}"> style="color:${detecWarning.bgcolor};}">
${detecWarning.nodeIp} </a> ${detecWarning.nodeIp} </a>
</font> </font>
</td> </td>
<td class="${color }"> <td class="${color }">
<a href="javascript:showRecord('${detecWarning.id }')" title="i18n_dclwlc.message.showRecord_n81i">${detecWarning.detectionSetInfo.checkTypeInfo.checkTypeName1}</a>&nbsp;&nbsp; <a href="javascript:showRecord('${detecWarning.id }')" title="i18n_dclwlc.message.showRecord_n81i">${detecWarning.detectionSetInfo.checkTypeInfo.checkTypeName1}</a>&nbsp;&nbsp;
</td> </td>
<td class="${color }"> <td class="${color }">
<a href="javascript:showDetectionInfo('${detecWarning.detectionSetInfo.id }','${detecWarning.seqId}')" <a href="javascript:showDetectionInfo('${detecWarning.detectionSetInfo.id }','${detecWarning.seqId}')"
title="i18n_dclwlc.message.showDetectionInfo_n81i"> ${detecWarning.detectionSetInfo.processIdenName} title="i18n_dclwlc.message.showDetectionInfo_n81i"> ${detecWarning.detectionSetInfo.processIdenName}
</a> </a>
</td> </td>
<td class="${color }"> <td class="${color }">
<c:if test="${detecWarning.checkWay=='0' }">i18n_dclwlc.message.active_n81i</c:if> <c:if test="${detecWarning.checkWay=='0' }">i18n_dclwlc.message.active_n81i</c:if>
<c:if test="${detecWarning.checkWay=='1' }">i18n_dclwlc.message.passive_n81i</c:if> <c:if test="${detecWarning.checkWay=='1' }">i18n_dclwlc.message.passive_n81i</c:if>
</td> </td>
<td class="${color }"> <td class="${color }">
<fmt:formatDate value="${detecWarning.dataCheckTime}" <fmt:formatDate value="${detecWarning.dataCheckTime}"
pattern="yyyy-MM-dd HH:mm:ss" /> pattern="yyyy-MM-dd HH:mm:ss" />
</td> </td>
<td class="${color }"> <td class="${color }">
${detecWarning.persistTime} ${detecWarning.persistTime}
</td> </td>
<td class="${color }"> <td class="${color }">
${detecWarning.currentTimes} ${detecWarning.currentTimes}
</td> </td>
<td class="${color }"> <td class="${color }">
${detecWarning.policeLevel} ${detecWarning.policeLevel}
</td> </td>
<td class="${color }" > <td class="${color }" >
<span class="STYLE1" style="word-break:break-all; color: ${detecWarning.bgcolor}"> <span class="STYLE1" style="word-break:break-all; color: ${detecWarning.bgcolor}">
<c:set value="${fn:replace(fn:replace(detecWarning.performaceData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set> <c:set value="${fn:replace(fn:replace(detecWarning.performaceData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set>
<c:set value="${fn:replace(fn:replace(detecWarning.performaceData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set> <c:set value="${fn:replace(fn:replace(detecWarning.performaceData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set>
<span class="prop" data-temp="${stateInfoParam}"<%-- onmouseover="showTitle('infoTipSpan_${detecWarning.seqId}_${detecWarning.detectionSetInfo.id}',this,event);" onmouseout="hideTitle('infoTipSpan_${detecWarning.seqId}_${detecWarning.detectionSetInfo.id}');" --%>> <span class="prop" data-temp="${stateInfoParam}"<%-- onmouseover="showTitle('infoTipSpan_${detecWarning.seqId}_${detecWarning.detectionSetInfo.id}',this,event);" onmouseout="hideTitle('infoTipSpan_${detecWarning.seqId}_${detecWarning.detectionSetInfo.id}');" --%>>
<%-- <c:if test="${fn:length(stateInfo) >= 25}"> <%-- <c:if test="${fn:length(stateInfo) >= 25}">
${fn:substring(stateInfo,0,25)}... ${fn:substring(stateInfo,0,25)}...
</c:if> </c:if>
<c:if test="${fn:length(stateInfo) < 25}"> <c:if test="${fn:length(stateInfo) < 25}">
${stateInfo} ${stateInfo}
</c:if> --%> </c:if> --%>
<span class="stateInfoVal">${stateInfoParam}</span> <span class="stateInfoVal">${stateInfoParam}</span>
<%-- <span id="infoTipSpan_${detecWarning.seqId}_${detecWarning.detectionSetInfo.id}" class="infoTip" style="display:none;">${stateInfoParam}</span> --%> <%-- <span id="infoTipSpan_${detecWarning.seqId}_${detecWarning.detectionSetInfo.id}" class="infoTip" style="display:none;">${stateInfoParam}</span> --%>
</span> </span>
</span> </span>
</td> </td>
</tr> </tr>
<c:set var="index" value="${index + 1}" /> <c:set var="index" value="${index + 1}" />
</c:forEach> </c:forEach>
</c:when> </c:when>
</c:choose> </c:choose>
<script type="text/javascript" > <script type="text/javascript" >
/*--------------控制表格输出长度--------------------*/ /*--------------控制表格输出长度--------------------*/
$(function(){ $(function(){
$(".prop").each(function(){ $(".prop").each(function(){
var obj = $(this); var obj = $(this);
var tx = document.body.clientWidth; //文档的可见长宽 var tx = document.body.clientWidth; //文档的可见长宽
var ty = document.body.clientHeight; var ty = document.body.clientHeight;
$(obj).on("mouseenter",function(event){ $(obj).on("mouseenter",function(event){
event = event ? event : window.event; event = event ? event : window.event;
$(".popover").remove(); $(".popover").remove();
var x = event.clientX;//鼠标位置 var x = event.clientX;//鼠标位置
var y = event.clientY; var y = event.clientY;
//alert(tx + "," + ty + "," + x + "," + y); //alert(tx + "," + ty + "," + x + "," + y);
if (y < ty/2) { if (y < ty/2) {
var placement = "bottom"; var placement = "bottom";
} else { } else {
var placement = "top"; var placement = "top";
} }
$(obj).popover({ $(obj).popover({
html:true, html:true,
content:"<div class='pop-content'><div style='margin-right:15px'>" + $(this).attr("data-temp") + "</div></div>", content:"<div class='pop-content'><div style='margin-right:15px'>" + $(this).attr("data-temp") + "</div></div>",
placement:placement placement:placement
}); });
$(obj).popover("show"); $(obj).popover("show");
const ps = new PerfectScrollbar('.pop-content'); const ps = new PerfectScrollbar('.pop-content');
//修复因浏览器兼容性导致的弹出框位置不对的问题 //修复因浏览器兼容性导致的弹出框位置不对的问题
var pop = document.getElementsByClassName("popover")[0]; //弹出层的信息 var pop = document.getElementsByClassName("popover")[0]; //弹出层的信息
var popx1 = pop.offsetLeft; var popx1 = pop.offsetLeft;
var popy1 = pop.offsetTop; var popy1 = pop.offsetTop;
var popx2 = pop.offsetLeft + pop.offsetWidth; var popx2 = pop.offsetLeft + pop.offsetWidth;
var popy2 = pop.offsetTop + pop.offsetHeight; var popy2 = pop.offsetTop + pop.offsetHeight;
var propy1 = $(obj).offset().top; var propy1 = $(obj).offset().top;
var propy2 = $(obj).offset().top + $(obj).height(); var propy2 = $(obj).offset().top + $(obj).height();
if (placement == "top") { if (placement == "top") {
if (propy1 < popy2) { if (propy1 < popy2) {
$(pop).css("top", propy1 - 3); $(pop).css("top", propy1 - 3);
} }
} else if (placement == "bottom") { } else if (placement == "bottom") {
if (propy2 > popy1) { if (propy2 > popy1) {
$(pop).css("top", propy2 + 3); $(pop).css("top", propy2 + 3);
} }
} }
}).on("mouseleave",function(event){ }).on("mouseleave",function(event){
event = event ? event : window.event; event = event ? event : window.event;
var pop = document.getElementsByClassName("popover")[0]; //弹出层的信息 var pop = document.getElementsByClassName("popover")[0]; //弹出层的信息
var popx1 = pop.offsetLeft; var popx1 = pop.offsetLeft;
var popy1 = pop.offsetTop; var popy1 = pop.offsetTop;
var popx2 = pop.offsetLeft + pop.offsetWidth; var popx2 = pop.offsetLeft + pop.offsetWidth;
var popy2 = pop.offsetTop + pop.offsetHeight; var popy2 = pop.offsetTop + pop.offsetHeight;
//var popChild = $(obj).find(".stateInfoVal")[0]; //td中的span //var popChild = $(obj).find(".stateInfoVal")[0]; //td中的span
//var popChildyHeight = popChild.offsetHeight; //var popChildyHeight = popChild.offsetHeight;
var x = event.clientX; //鼠标位置 var x = event.clientX; //鼠标位置
var y = event.clientY; var y = event.clientY;
if (y < ty/2) { if (y < ty/2) {
var extraTop = 3; var extraTop = 3;
var extraBottom = 0; var extraBottom = 0;
} else { } else {
var extraTop = 0; var extraTop = 0;
var extraBottom = 3; var extraBottom = 3;
} }
if (x < popx1 || x > popx2 || y < (popy1 - extraTop) || y > (popy2 + extraBottom)) { if (x < popx1 || x > popx2 || y < (popy1 - extraTop) || y > (popy2 + extraBottom)) {
$(obj).popover("hide"); $(obj).popover("hide");
} else { } else {
$(pop).on("mouseleave",function(event){ $(pop).on("mouseleave",function(event){
$(obj).popover("hide"); $(obj).popover("hide");
}); });
} }
}); });
}); });
var stateInfos=$(".stateInfoVal"); var stateInfos=$(".stateInfoVal");
for(var i=0;i<stateInfos.length;i++){ for(var i=0;i<stateInfos.length;i++){
var infoVal=$(stateInfos[i]).text().trim(); var infoVal=$(stateInfos[i]).text().trim();
if(infoVal.length>25){ if(infoVal.length>25){
$(stateInfos[i]).text(infoVal.substring(0,25)).append("..."); $(stateInfos[i]).text(infoVal.substring(0,25)).append("...");
}else{ }else{
$(stateInfos[i]).text(infoVal); $(stateInfos[i]).text(infoVal);
} }
} }
}); });

File diff suppressed because it is too large Load Diff

View File

@@ -1,167 +1,167 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@include file="/common/taglib.jsp"%> <%@include file="/common/taglib.jsp"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
request.setAttribute("vEnter","\n"); request.setAttribute("vEnter","\n");
%> %>
<c:set var="index" value="${1}" /> <c:set var="index" value="${1}" />
<c:choose> <c:choose>
<c:when test="${fn:length(detecWarningList) > 0}"> <c:when test="${fn:length(detecWarningList) > 0}">
<c:forEach items="${detecWarningList}" var="detecWarning" <c:forEach items="${detecWarningList}" var="detecWarning"
varStatus="vs"> varStatus="vs">
<c:set var="color" value="color_1" /> <c:set var="color" value="color_1" />
<c:set var="color_end" value="color_7" /> <c:set var="color_end" value="color_7" />
<c:if test="${vs.count%2!=0 }"> <c:if test="${vs.count%2!=0 }">
<c:set var="color" value="color_3" /> <c:set var="color" value="color_3" />
<c:set var="color_end" value="color_6" /> <c:set var="color_end" value="color_6" />
</c:if> </c:if>
<tr> <tr>
<td class="${color }"> <td class="${color }">
${index+(pageNo-1)*pageSize} ${index+(pageNo-1)*pageSize}
</td> </td>
<td class="${color }"> <td class="${color }">
<font color="${detecWarning.bgcolor}"> <!-- 2、 调用JS此处远程连接调用JS在/common/remoteConn.jsp中 --> <font color="${detecWarning.bgcolor}"> <!-- 2、 调用JS此处远程连接调用JS在/common/remoteConn.jsp中 -->
<a <a
href="javascript:void(0);" href="javascript:void(0);"
onclick="remoteConn('${detecWarning.nodeSysType }','${detecWarning.nodeIp}','${detecWarning.nodeType }', this)" onclick="remoteConn('${detecWarning.nodeSysType }','${detecWarning.nodeIp}','${detecWarning.nodeType }', this)"
style="color:${detecWarning.bgcolor};}"> style="color:${detecWarning.bgcolor};}">
${detecWarning.nodeIp} </a> ${detecWarning.nodeIp} </a>
</td> </td>
<td class="${color }"> <td class="${color }">
<a href="javascript:showRecord('${detecWarning.id }')" title="i18n_dwlc.message.showRecord_n81i">${detecWarning.detectionSetInfo.checkTypeInfo.checkTypeName1}</a>&nbsp;&nbsp; <a href="javascript:showRecord('${detecWarning.id }')" title="i18n_dwlc.message.showRecord_n81i">${detecWarning.detectionSetInfo.checkTypeInfo.checkTypeName1}</a>&nbsp;&nbsp;
</td> </td>
<td class="${color }"> <td class="${color }">
<a href="javascript:showDetectionInfo('${detecWarning.detectionSetInfo.id }','${detecWarning.seqId}')" <a href="javascript:showDetectionInfo('${detecWarning.detectionSetInfo.id }','${detecWarning.seqId}')"
title="i18n_dwlc.message.showDetectionInfo_n81i"> ${detecWarning.detectionSetInfo.processIdenName} title="i18n_dwlc.message.showDetectionInfo_n81i"> ${detecWarning.detectionSetInfo.processIdenName}
</a> </a>
</td> </td>
<td class="${color }"> <td class="${color }">
<c:if test="${detecWarning.checkWay=='0' }">i18n_dwlc.message.active_n81i</c:if> <c:if test="${detecWarning.checkWay=='0' }">i18n_dwlc.message.active_n81i</c:if>
<c:if test="${detecWarning.checkWay=='1' }">i18n_dwlc.message.passive_n81i</c:if> <c:if test="${detecWarning.checkWay=='1' }">i18n_dwlc.message.passive_n81i</c:if>
</td> </td>
<td class="${color }"> <td class="${color }">
<fmt:formatDate value="${detecWarning.dataCheckTime}" <fmt:formatDate value="${detecWarning.dataCheckTime}"
pattern="yyyy-MM-dd HH:mm:ss" /> pattern="yyyy-MM-dd HH:mm:ss" />
</td> </td>
<td class="${color }"> <td class="${color }">
${detecWarning.persistTime} ${detecWarning.persistTime}
</td> </td>
<td class="${color }"> <td class="${color }">
${detecWarning.currentTimes} ${detecWarning.currentTimes}
</td> </td>
<td class="${color }"> <td class="${color }">
${detecWarning.policeLevel} ${detecWarning.policeLevel}
</td> </td>
<td class="${color }" > <td class="${color }" >
<span class="STYLE1" style="word-break:break-all; color: ${detecWarning.bgcolor}"> <span class="STYLE1" style="word-break:break-all; color: ${detecWarning.bgcolor}">
<c:set value="${fn:replace(fn:replace(detecWarning.performaceData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set> <c:set value="${fn:replace(fn:replace(detecWarning.performaceData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set>
<c:set value="${fn:replace(fn:replace(detecWarning.performaceData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set> <c:set value="${fn:replace(fn:replace(detecWarning.performaceData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set>
<span class="prop" data-temp="${stateInfoParam}"<%-- onmouseover="showTitle('infoTipSpan_${detecWarning.seqId}_${detecWarning.detectionSetInfo.id}',this,event);" onmouseout="hideTitle('infoTipSpan_${detecWarning.seqId}_${detecWarning.detectionSetInfo.id}');" --%> > <span class="prop" data-temp="${stateInfoParam}"<%-- onmouseover="showTitle('infoTipSpan_${detecWarning.seqId}_${detecWarning.detectionSetInfo.id}',this,event);" onmouseout="hideTitle('infoTipSpan_${detecWarning.seqId}_${detecWarning.detectionSetInfo.id}');" --%> >
<%-- <c:if test="${fn:length(stateInfo) >= 25}"> <%-- <c:if test="${fn:length(stateInfo) >= 25}">
${fn:substring(stateInfo,0,25)}... ${fn:substring(stateInfo,0,25)}...
</c:if> </c:if>
<c:if test="${fn:length(stateInfo) < 25}"> <c:if test="${fn:length(stateInfo) < 25}">
${stateInfo} ${stateInfo}
</c:if> --%> </c:if> --%>
<span class="stateInfoVal">${stateInfo}</span> <span class="stateInfoVal">${stateInfo}</span>
<span id="infoTipSpan_${detecWarning.seqId}_${detecWarning.detectionSetInfo.id}" class="infoTip" style="display:none;">${stateInfoParam}</span> <span id="infoTipSpan_${detecWarning.seqId}_${detecWarning.detectionSetInfo.id}" class="infoTip" style="display:none;">${stateInfoParam}</span>
</span> </span>
</span> </span>
</td> </td>
</tr> </tr>
<c:set var="index" value="${index + 1}" /> <c:set var="index" value="${index + 1}" />
</c:forEach> </c:forEach>
</c:when> </c:when>
</c:choose> </c:choose>
<script type="text/javascript" > <script type="text/javascript" >
/*--------------控制表格输出长度--------------------*/ /*--------------控制表格输出长度--------------------*/
$(function(){ $(function(){
$(".prop").each(function(){ $(".prop").each(function(){
var obj = $(this); var obj = $(this);
var tx = document.body.clientWidth; //文档的可见长宽 var tx = document.body.clientWidth; //文档的可见长宽
var ty = document.body.clientHeight; var ty = document.body.clientHeight;
$(obj).on("mouseenter",function(event){ $(obj).on("mouseenter",function(event){
event = event ? event : window.event; event = event ? event : window.event;
$(".popover").remove(); $(".popover").remove();
var x = event.clientX;//鼠标位置 var x = event.clientX;//鼠标位置
var y = event.clientY; var y = event.clientY;
//alert(tx + "," + ty + "," + x + "," + y); //alert(tx + "," + ty + "," + x + "," + y);
if (y < ty/2) { if (y < ty/2) {
var placement = "bottom"; var placement = "bottom";
} else { } else {
var placement = "top"; var placement = "top";
} }
$(obj).popover({ $(obj).popover({
html:true, html:true,
content:"<div class='pop-content'><div style='margin-right:15px'>" + $(this).attr("data-temp") + "</div></div>", content:"<div class='pop-content'><div style='margin-right:15px'>" + $(this).attr("data-temp") + "</div></div>",
placement:placement placement:placement
}); });
$(obj).popover("show"); $(obj).popover("show");
const ps = new PerfectScrollbar('.pop-content'); const ps = new PerfectScrollbar('.pop-content');
//修复因浏览器兼容性导致的弹出框位置不对的问题 //修复因浏览器兼容性导致的弹出框位置不对的问题
var pop = document.getElementsByClassName("popover")[0]; //弹出层的信息 var pop = document.getElementsByClassName("popover")[0]; //弹出层的信息
var popx1 = pop.offsetLeft; var popx1 = pop.offsetLeft;
var popy1 = pop.offsetTop; var popy1 = pop.offsetTop;
var popx2 = pop.offsetLeft + pop.offsetWidth; var popx2 = pop.offsetLeft + pop.offsetWidth;
var popy2 = pop.offsetTop + pop.offsetHeight; var popy2 = pop.offsetTop + pop.offsetHeight;
var propy1 = $(obj).offset().top; var propy1 = $(obj).offset().top;
var propy2 = $(obj).offset().top + $(obj).height(); var propy2 = $(obj).offset().top + $(obj).height();
if (placement == "top") { if (placement == "top") {
if (propy1 < popy2) { if (propy1 < popy2) {
$(pop).css("top", propy1 - 3); $(pop).css("top", propy1 - 3);
} }
} else if (placement == "bottom") { } else if (placement == "bottom") {
if (propy2 > popy1) { if (propy2 > popy1) {
$(pop).css("top", propy2 + 3); $(pop).css("top", propy2 + 3);
} }
} }
}).on("mouseleave",function(event){ }).on("mouseleave",function(event){
event = event ? event : window.event; event = event ? event : window.event;
var pop = document.getElementsByClassName("popover")[0]; //弹出层的信息 var pop = document.getElementsByClassName("popover")[0]; //弹出层的信息
var popx1 = pop.offsetLeft; var popx1 = pop.offsetLeft;
var popy1 = pop.offsetTop; var popy1 = pop.offsetTop;
var popx2 = pop.offsetLeft + pop.offsetWidth; var popx2 = pop.offsetLeft + pop.offsetWidth;
var popy2 = pop.offsetTop + pop.offsetHeight; var popy2 = pop.offsetTop + pop.offsetHeight;
//var popChild = $(obj).find(".stateInfoVal")[0]; //td中的span //var popChild = $(obj).find(".stateInfoVal")[0]; //td中的span
//var popChildyHeight = popChild.offsetHeight; //var popChildyHeight = popChild.offsetHeight;
var x = event.clientX; //鼠标位置 var x = event.clientX; //鼠标位置
var y = event.clientY; var y = event.clientY;
if (y < ty/2) { if (y < ty/2) {
var extraTop = 3; var extraTop = 3;
var extraBottom = 0; var extraBottom = 0;
} else { } else {
var extraTop = 0; var extraTop = 0;
var extraBottom = 3; var extraBottom = 3;
} }
if (x < popx1 || x > popx2 || y < (popy1 - extraTop) || y > (popy2 + extraBottom)) { if (x < popx1 || x > popx2 || y < (popy1 - extraTop) || y > (popy2 + extraBottom)) {
$(obj).popover("hide"); $(obj).popover("hide");
} else { } else {
$(pop).on("mouseleave",function(event){ $(pop).on("mouseleave",function(event){
$(obj).popover("hide"); $(obj).popover("hide");
}); });
} }
}); });
}); });
var stateInfos=$(".stateInfoVal"); var stateInfos=$(".stateInfoVal");
for(var i=0;i<stateInfos.length;i++){ for(var i=0;i<stateInfos.length;i++){
var infoVal=$(stateInfos[i]).text().trim(); var infoVal=$(stateInfos[i]).text().trim();
if(infoVal.length>25){ if(infoVal.length>25){
$(stateInfos[i]).text(infoVal.substring(0,25)).append("..."); $(stateInfos[i]).text(infoVal.substring(0,25)).append("...");
}else{ }else{
$(stateInfos[i]).text(infoVal); $(stateInfos[i]).text(infoVal);
} }
} }
}); });
</script> </script>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1,395 +1,395 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="java.text.SimpleDateFormat"%> <%@page import="java.text.SimpleDateFormat"%>
<%@ taglib prefix="c" uri="/jstl/c"%> <%@ taglib prefix="c" uri="/jstl/c"%>
<%@ taglib prefix="fn" uri="/jstl/fn"%> <%@ taglib prefix="fn" uri="/jstl/fn"%>
<%@ taglib prefix="fmt" uri="/jstl/fmt"%> <%@ taglib prefix="fmt" uri="/jstl/fmt"%>
<% <%
response.setHeader("Cache-Control", "no-store"); response.setHeader("Cache-Control", "no-store");
response.setHeader("Pragma", "no-cache"); response.setHeader("Pragma", "no-cache");
response.setDateHeader("Expires", 0); response.setDateHeader("Expires", 0);
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
request.setAttribute("vEnter", "\n"); request.setAttribute("vEnter", "\n");
%> %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!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"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_dil.message.title_n81i</title> <title>i18n_dil.message.title_n81i</title>
<style> <style>
/* 自定义滚动条 */ /* 自定义滚动条 */
.pop-content { .pop-content {
position:relative; position:relative;
max-height:300px; max-height:300px;
} }
/* .pop-content::-webkit-scrollbar { /* .pop-content::-webkit-scrollbar {
width:3px; width:3px;
height:1px; height:1px;
} }
.pop-content::-webkit-scrollbar-thumb { .pop-content::-webkit-scrollbar-thumb {
border-radius:5px; border-radius:5px;
-webkit-box-shadow:inset 0 0 2px #CCCCCC; -webkit-box-shadow:inset 0 0 2px #CCCCCC;
background:#CCCCCC; background:#CCCCCC;
} }
.pop-content::-webkit-scrollbar-track { .pop-content::-webkit-scrollbar-track {
-webkit-box-shadow:inset 0 0 2px #EDEDED; -webkit-box-shadow:inset 0 0 2px #EDEDED;
background:white; background:white;
border-radius:5px; border-radius:5px;
} */ } */
</style> </style>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" <link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<link href="<c:url value='/css/suggest.css'/>" rel="stylesheet" <link href="<c:url value='/css/suggest.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<link rel="stylesheet" type="text/css" href="<c:url value='/scrollBar/perfect-scrollbar.css'/>" /> <link rel="stylesheet" type="text/css" href="<c:url value='/scrollBar/perfect-scrollbar.css'/>" />
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery1.11.3.js'/>"></script> src="<c:url value='/js/jquery1.11.3.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script> src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.tools.js'/>"></script> src="<c:url value='/js/jquery.tools.js'/>"></script>
<script type="text/javascript" <script type="text/javascript"
src="<c:url value='/js/WebCalendar.js' />"></script> src="<c:url value='/js/WebCalendar.js' />"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value="/scrollBar/perfect-scrollbar.js"/>"></script> src="<c:url value="/scrollBar/perfect-scrollbar.js"/>"></script>
<script type="text/javascript"> <script type="text/javascript">
//查询记录 //查询记录
function qry(){ function qry(){
document.form3.action = "<c:url value='monitorData.do?action=showDetectionInfo&date="+new Date()+"'/>"; document.form3.action = "<c:url value='monitorData.do?action=showDetectionInfo&date="+new Date()+"'/>";
document.form3.submit(); document.form3.submit();
} }
//查看详情 //查看详情
function showRecord(monid,cid){ function showRecord(monid,cid){
document.form3.action = "<%=path%>/detection/monitorData!executeAction.do?action=detailWarning&cId="+cid+"&ids="+monid+"&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }'; document.form3.action = "<%=path%>/detection/monitorData!executeAction.do?action=detailWarning&cId="+cid+"&ids="+monid+"&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }';
document.form3.submit(); document.form3.submit();
} }
//绘制折线图 //绘制折线图
function drawPic(ctid,dsiId,id){ function drawPic(ctid,dsiId,id){
document.form3.action = "<%=path%>/detection/monitorData!executeAction.do?action=drawPic&checkTypeId="+ctid+"&dsiId="+dsiId+"&sqId="+id+"&nodeType="+$("#nodeType").val()+"&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }'; document.form3.action = "<%=path%>/detection/monitorData!executeAction.do?action=drawPic&checkTypeId="+ctid+"&dsiId="+dsiId+"&sqId="+id+"&nodeType="+$("#nodeType").val()+"&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }';
document.form3.submit(); document.form3.submit();
} }
function goBack(){ function goBack(){
var action ="<c:url value='/detection/monitorData.do?action=query'/>"; var action ="<c:url value='/detection/monitorData.do?action=query'/>";
if($("#type").val()== "1"){ if($("#type").val()== "1"){
action ="<c:url value='/detection/monitorData.do?action=queryNE'/>"; action ="<c:url value='/detection/monitorData.do?action=queryNE'/>";
}else if($("#type").val()== "2"){ }else if($("#type").val()== "2"){
action ="<c:url value='/detection/monitorData.do?action=queryAbnormalSet'/>"; action ="<c:url value='/detection/monitorData.do?action=queryAbnormalSet'/>";
}else if($("#flag").val()== "warning"&&$("#nodeType").val()== "0"){ }else if($("#flag").val()== "warning"&&$("#nodeType").val()== "0"){
action ="<c:url value='/detection/detectionWarning.do?action=query'/>"; action ="<c:url value='/detection/detectionWarning.do?action=query'/>";
}else if($("#flag").val()== "warning"&&$("#nodeType").val()== "1"){ }else if($("#flag").val()== "warning"&&$("#nodeType").val()== "1"){
action ="<c:url value='/detection/detectionWarning.do?action=queryNE'/>"; action ="<c:url value='/detection/detectionWarning.do?action=queryNE'/>";
}else if($("#flag").val()== "warning"&&$("#nodeType").val()== ""){//左下角动画报警 }else if($("#flag").val()== "warning"&&$("#nodeType").val()== ""){//左下角动画报警
action ="<c:url value='/detection/detectionWarning.do?action=queryAll&warnType=leftWarn&police_emergent=0'/>"; action ="<c:url value='/detection/detectionWarning.do?action=queryAll&warnType=leftWarn&police_emergent=0'/>";
}else if($("#flag").val()== "queryAllConfigLevel"){ }else if($("#flag").val()== "queryAllConfigLevel"){
action ="<c:url value='/detection/detectionWarning.do?action=queryAllConfigLevel'/>"; action ="<c:url value='/detection/detectionWarning.do?action=queryAllConfigLevel'/>";
} else if($("#flag").val()== "queryEmergent"){ } else if($("#flag").val()== "queryEmergent"){
action ="<c:url value='/detection/monitorData.do?action=queryEmergent'/>"; action ="<c:url value='/detection/monitorData.do?action=queryEmergent'/>";
} else if($("#flag").val()== "queryEmergentDetail"){ } else if($("#flag").val()== "queryEmergentDetail"){
action ="<c:url value='/detection/monitorData.do?action=queryEmergentDetail&nodeType=${nodeType}&requestType=topo&nodeGroupId=${nodeGroupId}&nodeId=${nodeId}'/>"; action ="<c:url value='/detection/monitorData.do?action=queryEmergentDetail&nodeType=${nodeType}&requestType=topo&nodeGroupId=${nodeGroupId}&nodeId=${nodeId}'/>";
} }
if($("#requestType").val()== "newTopo"){ if($("#requestType").val()== "newTopo"){
console.log("ccccmmmmmmmmmmmmmmmm") console.log("ccccmmmmmmmmmmmmmmmm")
action ="<c:url value='/detection/monitorData.do?action=query&nodeId=${nodeId}'/>"; action ="<c:url value='/detection/monitorData.do?action=query&nodeId=${nodeId}'/>";
} }
document.form3.action = action; document.form3.action = action;
document.form3.submit(); document.form3.submit();
} }
function checkDate(){ function checkDate(){
var startTime = $("#startTime").val(); var startTime = $("#startTime").val();
var endTime = $("#endTime").val(); var endTime = $("#endTime").val();
if(startTime != "" && endTime!=""){ if(startTime != "" && endTime!=""){
if(startTime > endTime){ if(startTime > endTime){
alert("i18n_dil.message.checkDate_n81i"); alert("i18n_dil.message.checkDate_n81i");
$("#endTime").val(""); $("#endTime").val("");
$("#endTime").focus(); $("#endTime").focus();
} }
} }
} }
$(function(){ $(function(){
$('.pop-content').each(function(){ $('.pop-content').each(function(){
var ps = new PerfectScrollbar(this); var ps = new PerfectScrollbar(this);
}) })
var dh = document.body.clientHeight; var dh = document.body.clientHeight;
var dhh = dh-60+"px;"; var dhh = dh-60+"px;";
var tableHeight = $("#info").height(); var tableHeight = $("#info").height();
if(tableHeight > dh-60){ 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); $("#maindiv").attr("style","clear:both;margin-left:6px;overflow-y:auto;overflow-x:auto;width:99%;font-size:12px;height: "+dhh);
if(ieBrowser()){ if(ieBrowser()){
$("#info").attr("style","width:100%;clear:both;"); $("#info").attr("style","width:100%;clear:both;");
}else{ }else{
$("#info").attr("style","width:98.5%;clear:both;"); $("#info").attr("style","width:98.5%;clear:both;");
} }
}else{ }else{
$("#maindiv").attr("style","clear:both;margin-left:6px;overflow-y:auto;overflow-x:auto;width:98%;font-size:12px;height: "+dhh); $("#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%;clear:both;"); $("#info").attr("style","width:100%;clear:both;");
} }
$("#info").floatHeaderDiv(); $("#info").floatHeaderDiv();
// $("#info").attr("style","clear:left"); // $("#info").attr("style","clear:left");
}); });
function ieBrowser(){ function ieBrowser(){
/* if($.browser.msie){ /* if($.browser.msie){
if($.browser.version.split('.')[0]<=7){ if($.browser.version.split('.')[0]<=7){
return false; return false;
}else{ }else{
return true;//ie8+ return true;//ie8+
} }
} */ } */
} }
window.onresize = function(){ window.onresize = function(){
$("#info").floatHeader();//用于浏览器调整大小后 列表表头自动适应 $("#info").floatHeader();//用于浏览器调整大小后 列表表头自动适应
} }
/*------ 滚动条滚动 延迟加载页面操作--------------*/ /*------ 滚动条滚动 延迟加载页面操作--------------*/
var hght=0;//初始化滚动条总长 var hght=0;//初始化滚动条总长
var topH=0;//初始化滚动条的当前位置 var topH=0;//初始化滚动条的当前位置
var pagePoint = ${pageNo}; var pagePoint = ${pageNo};
var memoryData ; var memoryData ;
var intervalID ; var intervalID ;
var currentPage = 0; //当前页数 var currentPage = 0; //当前页数
var currenttotalPage = 0; //总页数 var currenttotalPage = 0; //总页数
var dsiId="${dsiId }"; var dsiId="${dsiId }";
var seqId="${sqId }"; var seqId="${sqId }";
$(document).ready(function(){//DOM的onload事件 $(document).ready(function(){//DOM的onload事件
$("#maindiv").scroll( function() {//定义滚动条位置改变时触发的事件。 $("#maindiv").scroll( function() {//定义滚动条位置改变时触发的事件。
hght=this.scrollHeight;//得到滚动条总长赋给hght变量 hght=this.scrollHeight;//得到滚动条总长赋给hght变量
topH=this.scrollTop+this.clientHeight;//得到滚动条当前值赋给top变量 topH=this.scrollTop+this.clientHeight;//得到滚动条当前值赋给top变量
}); });
intervalID = setInterval(function(){cando();},1000);//每隔2秒钟调用一次cando函数来判断当前滚动条位置。 intervalID = setInterval(function(){cando();},1000);//每隔2秒钟调用一次cando函数来判断当前滚动条位置。
function cando(){ function cando(){
currentPage = $("#currentPage").html(); currentPage = $("#currentPage").html();
currenttotalPage = $("#currenttotalPage").html(); currenttotalPage = $("#currenttotalPage").html();
if(Number(currentPage) < Number(currenttotalPage)){ if(Number(currentPage) < Number(currenttotalPage)){
if(topH!=0 && hght!=0 && topH == hght ){//判断滚动条当前位置是否超过总长的3/2parseInt为取整函数 if(topH!=0 && hght!=0 && topH == hght ){//判断滚动条当前位置是否超过总长的3/2parseInt为取整函数
show();//如果是调用show函数加载内容。 show();//如果是调用show函数加载内容。
} }
}else if(Number(currentPage) == Number(currenttotalPage)){ }else if(Number(currentPage) == Number(currenttotalPage)){
clearInterval(intervalID); clearInterval(intervalID);
} }
} }
function show(){ function show(){
hght=0;//恢复滚动条总长,因为$(”#mypage”).scroll事件一触发又会得到新值不恢复的话可能会造成判断错误而再次加载…… hght=0;//恢复滚动条总长,因为$(”#mypage”).scroll事件一触发又会得到新值不恢复的话可能会造成判断错误而再次加载……
topH=0;//原因同上。 topH=0;//原因同上。
var urlTmp = encodeURI("<c:url value='monitorData!executeAction.do?action=showDetectionInfoChild'/>&dsiId="+dsiId+ "&sqId="+seqId+"&pageSize="+'${pageSize }'+"&pageNo="+(++pagePoint)+"&sTime="+$("#startTime").val()+"&eTime="+$("#endTime").val()+"&status="+$("#status").val()+"&date=<%=new SimpleDateFormat("yyyy-MM-dd hh:mm:ss").format( var urlTmp = encodeURI("<c:url value='monitorData!executeAction.do?action=showDetectionInfoChild'/>&dsiId="+dsiId+ "&sqId="+seqId+"&pageSize="+'${pageSize }'+"&pageNo="+(++pagePoint)+"&sTime="+$("#startTime").val()+"&eTime="+$("#endTime").val()+"&status="+$("#status").val()+"&date=<%=new SimpleDateFormat("yyyy-MM-dd hh:mm:ss").format(
new Date()).toString()%>"); new Date()).toString()%>");
$.ajax({ $.ajax({
url:urlTmp, url:urlTmp,
type : "get", type : "get",
async:false, async:false,
success : function(data) { success : function(data) {
$("#info").append($(data));//用append方法追加内容到mypage元素。 $("#info").append($(data));//用append方法追加内容到mypage元素。
$("#currentPage").html(pagePoint);//修改页码 $("#currentPage").html(pagePoint);//修改页码
$("#pageNo").val(pagePoint); $("#pageNo").val(pagePoint);
$('.pop-content').each(function(){ $('.pop-content').each(function(){
var ps = new PerfectScrollbar(this); var ps = new PerfectScrollbar(this);
}) })
} }
}); });
loadButton(); loadButton();
} }
//初始化级别的显示和隐藏 //初始化级别的显示和隐藏
var emergentVal = jQuery('#police_emergent').val(); var emergentVal = jQuery('#police_emergent').val();
if(emergentVal!=undefined && emergentVal!=null) {//需要选择紧急 or 非紧急,就需要初始化级别的显示隐藏 if(emergentVal!=undefined && emergentVal!=null) {//需要选择紧急 or 非紧急,就需要初始化级别的显示隐藏
changeEmergent(); changeEmergent();
} }
}); });
/*------ 滚动条滚动 延迟加载页面操作--------------*/ /*------ 滚动条滚动 延迟加载页面操作--------------*/
function changeEmergent() { function changeEmergent() {
var selEmergVal = jQuery('#police_emergent').val(); var selEmergVal = jQuery('#police_emergent').val();
if(selEmergVal=='1') { if(selEmergVal=='1') {
jQuery('#levelSpan').show(); jQuery('#levelSpan').show();
}else { }else {
jQuery('#levelSpan').hide(); jQuery('#levelSpan').hide();
} }
} }
</script> </script>
</head> </head>
<body> <body>
<form name=form3 id="frmArticleType" <form name=form3 id="frmArticleType"
action="<c:url value='monitorData.do?action=showDetectionInfo'/>&date=<%=new SimpleDateFormat("yyyy-MM-dd hh:mm:ss").format( action="<c:url value='monitorData.do?action=showDetectionInfo'/>&date=<%=new SimpleDateFormat("yyyy-MM-dd hh:mm:ss").format(
new Date()).toString()%>" new Date()).toString()%>"
method="post" enctype="multipart/form-data"> method="post" enctype="multipart/form-data">
<input type="hidden" name="pageNoforexp" id="pageNo" <input type="hidden" name="pageNoforexp" id="pageNo"
value="${pageNo }" /> value="${pageNo }" />
<!-- 查看检测设置历史记录 begin --> <!-- 查看检测设置历史记录 begin -->
<input type="hidden" name="dsiId" value="${dsiId }" /> <input type="hidden" name="dsiId" value="${dsiId }" />
<input type="hidden" name="sqId" value="${sqId }" /> <input type="hidden" name="sqId" value="${sqId }" />
<input type="hidden" name="flag" id="flag" value="${flag }" /> <input type="hidden" name="flag" id="flag" value="${flag }" />
<input type="hidden" name="showHistory" value="${showHistory }" /> <input type="hidden" name="showHistory" value="${showHistory }" />
<input type="hidden" name="entry" value="${entry }" /> <input type="hidden" name="entry" value="${entry }" />
<input type="hidden" name="cip" value="${cip }" /> <input type="hidden" name="cip" value="${cip }" />
<!-- nodeType=1异常网元 nodeType=0:异常服务器 --> <!-- nodeType=1异常网元 nodeType=0:异常服务器 -->
<input type="hidden" value="${nodeType }" name="nodeType" <input type="hidden" value="${nodeType }" name="nodeType"
id="nodeType" /> id="nodeType" />
<!-- 查看检测设置历史记录 end --> <!-- 查看检测设置历史记录 end -->
<!-- type为空服务器检测type=1网元检测 type=2:异常网元 --> <!-- type为空服务器检测type=1网元检测 type=2:异常网元 -->
<input type="hidden" value="${type }" name="type" id="type" /> <input type="hidden" value="${type }" name="type" id="type" />
<!-- 来源于拓扑图 begin --> <!-- 来源于拓扑图 begin -->
<input type="hidden" name="requestType" value="${requestType }" id="requestType" /> <input type="hidden" name="requestType" value="${requestType }" id="requestType" />
<input type="hidden" name="nodeGroupId" value="${nodeGroupId }" /> <input type="hidden" name="nodeGroupId" value="${nodeGroupId }" />
<!-- 来源于拓扑图 end --> <!-- 来源于拓扑图 end -->
<input type="hidden" name="detectId" id="detectId" <input type="hidden" name="detectId" id="detectId"
value="${detectId }" /> value="${detectId }" />
<input type="hidden" name="ip" id="ip" value="${ip }" /> <input type="hidden" name="ip" id="ip" value="${ip }" />
<input type="hidden" name="pid" id="pid" value="${pid }" /> <input type="hidden" name="pid" id="pid" value="${pid }" />
<input type="hidden" name="ctn" id="ctn" value="${ctn }" /> <input type="hidden" name="ctn" id="ctn" value="${ctn }" />
<input type="hidden" name="stateInfo" id="stateInfo" value="${stateInfo }" /> <input type="hidden" name="stateInfo" id="stateInfo" value="${stateInfo }" />
<input type="hidden" name="pIden" id="pIden" value="${pIden }" /> <input type="hidden" name="pIden" id="pIden" value="${pIden }" />
<input type="hidden" name="dct" id="dct" value="${dct }" /> <input type="hidden" name="dct" id="dct" value="${dct }" />
<input type="hidden" name="police_emergent" id="police_emergent" <input type="hidden" name="police_emergent" id="police_emergent"
value="${police_emergent }" /> value="${police_emergent }" />
<input type="hidden" name="nodeIpRange" value="${nodeIpRange}" <input type="hidden" name="nodeIpRange" value="${nodeIpRange}"
id="nodeIpRange" /> id="nodeIpRange" />
<input type="hidden" name="nodeGroupStr" id="nodeGroupStr" <input type="hidden" name="nodeGroupStr" id="nodeGroupStr"
value="${nodeGroupStr }" /> value="${nodeGroupStr }" />
<input type="hidden" name="police_level" id="police_level" <input type="hidden" name="police_level" id="police_level"
value="${police_level }" /> value="${police_level }" />
<input type="hidden" name="mypageNo" value="${mypageNo }" /> <input type="hidden" name="mypageNo" value="${mypageNo }" />
<input type="hidden" name="mypageSize" value="${mypageSize }" /> <input type="hidden" name="mypageSize" value="${mypageSize }" />
<div id="divTop"> <div id="divTop">
<div class="box_1"> <div class="box_1">
<label class="divTopText"><font class="selectText">i18n_dil.text.startTime_n81i</font>: <label class="divTopText"><font class="selectText">i18n_dil.text.startTime_n81i</font>:
<input type="text" id="startTime" name="sTime" <input type="text" id="startTime" name="sTime"
onclick="SelectDate(this,'yyyy-MM-dd',${session.i18n_lang == 'zh_CN'?0:1})" value="${sTime}" onclick="SelectDate(this,'yyyy-MM-dd',${session.i18n_lang == 'zh_CN'?0:1})" value="${sTime}"
onchange="checkDate();" /> onchange="checkDate();" />
-- --
<input type="text" id="endTime" name="eTime" <input type="text" id="endTime" name="eTime"
onclick="SelectDate(this,'yyyy-MM-dd',${session.i18n_lang == 'zh_CN'?0:1})" value="${eTime}" onclick="SelectDate(this,'yyyy-MM-dd',${session.i18n_lang == 'zh_CN'?0:1})" value="${eTime}"
onchange="checkDate();" /></label> onchange="checkDate();" /></label>
&nbsp;&nbsp;&nbsp; <label class="divTopText"><font class="selectText">i18n_dil.text.status_n81i</font>: &nbsp;&nbsp;&nbsp; <label class="divTopText"><font class="selectText">i18n_dil.text.status_n81i</font>:
<select id="status" name="status" style="width: 80px;"> <select id="status" name="status" style="width: 80px;">
<option value=""> <option value="">
i18n_dil.message.statusDefault_n81i i18n_dil.message.statusDefault_n81i
</option> </option>
<option value="1" <option value="1"
<c:if test="${status =='1'}">selected="selected"</c:if>> <c:if test="${status =='1'}">selected="selected"</c:if>>
i18n_dil.message.normal_n81i i18n_dil.message.normal_n81i
</option> </option>
<option value="-1,0" <option value="-1,0"
<c:if test="${status == '-1,0'}">selected="selected"</c:if>> <c:if test="${status == '-1,0'}">selected="selected"</c:if>>
i18n_dil.message.abnormal_n81i i18n_dil.message.abnormal_n81i
</option> </option>
</select></label> </select></label>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
<img src="<c:url value='/images/button_chaxun.png'/>" <img src="<c:url value='/images/button_chaxun.png'/>"
class="img_middle" onclick="javascript:qry();" /> class="img_middle" onclick="javascript:qry();" />
</div> </div>
<div class="box_2"> <div class="box_2">
<jsp:include page="/include/include.jsp" /> <jsp:include page="/include/include.jsp" />
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onclick="goBack()" onmouseup="this.className='btn3_mouseup'" onclick="goBack()"
value="i18n_dil.button.back_n81i" /> value="i18n_dil.button.back_n81i" />
</div> </div>
</div> </div>
<div id="maindiv"> <div id="maindiv">
<table cellpadding="0" cellspacing="0" class="table" id="info"> <table cellpadding="0" cellspacing="0" class="table" id="info">
<tr> <tr>
<td width="8%" class="color_top_1" nowrap> <td width="8%" class="color_top_1" nowrap>
i18n_dil.text.nodeIp_n81i i18n_dil.text.nodeIp_n81i
</td> </td>
<td width="8%" class="color_top_1" nowrap> <td width="8%" class="color_top_1" nowrap>
i18n_dil.text.checkType_n81i i18n_dil.text.checkType_n81i
</td> </td>
<td width="8%" class="color_top_1" nowrap> <td width="8%" class="color_top_1" nowrap>
i18n_dil.text.checkTypeName_n81i i18n_dil.text.checkTypeName_n81i
</td> </td>
<td width="8%" class="color_top_1" nowrap> <td width="8%" class="color_top_1" nowrap>
i18n_dil.text.state_n81i i18n_dil.text.state_n81i
</td> </td>
<td width="8%" class="color_top_1"> <td width="8%" class="color_top_1">
i18n_dil.text.dataCheckTime_n81i i18n_dil.text.dataCheckTime_n81i
</td> </td>
<td width="8%" class="color_top_1" nowrap> <td width="8%" class="color_top_1" nowrap>
i18n_dil.text.tryTimes_n81i i18n_dil.text.tryTimes_n81i
</td> </td>
<td width="32%" class="color_8"> <td width="32%" class="color_8">
<c:choose> <c:choose>
<c:when test="${flag=='queryAllConfigLevel'||flag=='warning'}">i18n_dil.text.performaceData_n81i</c:when> <c:when test="${flag=='queryAllConfigLevel'||flag=='warning'}">i18n_dil.text.performaceData_n81i</c:when>
<c:otherwise>i18n_dil.text.stateInfo_n81i</c:otherwise> <c:otherwise>i18n_dil.text.stateInfo_n81i</c:otherwise>
</c:choose> </c:choose>
</td> </td>
</tr> </tr>
<c:choose> <c:choose>
<c:when test="${fn:length(detectionInfoWarningList) > 0}"> <c:when test="${fn:length(detectionInfoWarningList) > 0}">
<c:forEach items="${detectionInfoWarningList}" <c:forEach items="${detectionInfoWarningList}"
var="detectionInfo" varStatus="index"> var="detectionInfo" varStatus="index">
<c:set var="color" value="color_1" /> <c:set var="color" value="color_1" />
<c:set var="color_end" value="color_7" /> <c:set var="color_end" value="color_7" />
<c:if test="${vs.count%2!=0 }"> <c:if test="${vs.count%2!=0 }">
<c:set var="color" value="color_3" /> <c:set var="color" value="color_3" />
<c:set var="color_end" value="color_6" /> <c:set var="color_end" value="color_6" />
</c:if> </c:if>
<tr> <tr>
<td class="${color }"> <td class="${color }">
<c:out value="${detectionInfo[0]}" /> <c:out value="${detectionInfo[0]}" />
</td> </td>
<td class="${color }"> <td class="${color }">
<!-- <a <!-- <a
href="javascript:showRecord('${detectionInfo[7] }','${detectionInfo[10] }')" href="javascript:showRecord('${detectionInfo[7] }','${detectionInfo[10] }')"
title="查看详情"> --> title="查看详情"> -->
<c:out value="${detectionInfo[1]}" /> <c:out value="${detectionInfo[1]}" />
<!-- </a> --> <!-- </a> -->
</td> </td>
<td class="${color }"> <td class="${color }">
<c:out value="${detectionInfo[2]}" /> <c:out value="${detectionInfo[2]}" />
</td> </td>
<td class="${color }"> <td class="${color }">
<c:if test="${fn:trim(detectionInfo[3])=='1'}"> <c:if test="${fn:trim(detectionInfo[3])=='1'}">
<img src="<c:url value='/images/yes.gif'/>" border="0" <img src="<c:url value='/images/yes.gif'/>" border="0"
align="middle" /> align="middle" />
</c:if> </c:if>
<c:if <c:if
test="${fn:trim(detectionInfo[3]) == '0' ||fn:trim(detectionInfo[3]) == '-1'}" test="${fn:trim(detectionInfo[3]) == '0' ||fn:trim(detectionInfo[3]) == '-1'}"
var="handshakeEr"> var="handshakeEr">
<img src="<c:url value='/images/no.gif'/>" border="0" <img src="<c:url value='/images/no.gif'/>" border="0"
align="middle" /> align="middle" />
</c:if> </c:if>
</td> </td>
<td class="${color }"> <td class="${color }">
<c:out value="${detectionInfo[4]}" /> <c:out value="${detectionInfo[4]}" />
</td> </td>
<td class="${color }"> <td class="${color }">
<c:out value="${detectionInfo[5]}" /> <c:out value="${detectionInfo[5]}" />
</td> </td>
<td class="${color_end }"> <td class="${color_end }">
<div class="pop-content"> <div class="pop-content">
${fn:replace(fn:replace(detectionInfo[6],vEnter,'$@$'),'$@$','<br/>')} ${fn:replace(fn:replace(detectionInfo[6],vEnter,'$@$'),'$@$','<br/>')}
</div> </div>
</td> </td>
</tr> </tr>
</c:forEach> </c:forEach>
</c:when> </c:when>
<c:otherwise> <c:otherwise>
<tr> <tr>
<td colspan="7" class="color_6" align="center"> <td colspan="7" class="color_6" align="center">
i18n_dil.text.noRecord_n81i i18n_dil.text.noRecord_n81i
</td> </td>
</tr> </tr>
</c:otherwise> </c:otherwise>
</c:choose> </c:choose>
</table> </table>
</div> </div>
<c:if test="${!empty detectionInfoWarningList}"> <c:if test="${!empty detectionInfoWarningList}">
<div id="divBoot"> <div id="divBoot">
<jsp:include page="/common/page.jsp" /> <jsp:include page="/common/page.jsp" />
</div> </div>
</c:if> </c:if>
</form> </form>
</body> </body>
</html> </html>

View File

@@ -1,57 +1,57 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@include file="/common/taglib.jsp"%> <%@include file="/common/taglib.jsp"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
request.setAttribute("vEnter", "\n"); request.setAttribute("vEnter", "\n");
%> %>
<c:set var="index" value="${1}" /> <c:set var="index" value="${1}" />
<c:choose> <c:choose>
<c:when test="${fn:length(detectionInfoWarningList) > 0}"> <c:when test="${fn:length(detectionInfoWarningList) > 0}">
<c:forEach items="${detectionInfoWarningList}" var="detectionInfo" <c:forEach items="${detectionInfoWarningList}" var="detectionInfo"
varStatus="index"> varStatus="index">
<c:set var="color" value="color_1" /> <c:set var="color" value="color_1" />
<c:set var="color_end" value="color_7" /> <c:set var="color_end" value="color_7" />
<c:if test="${vs.count%2!=0 }"> <c:if test="${vs.count%2!=0 }">
<c:set var="color" value="color_3" /> <c:set var="color" value="color_3" />
<c:set var="color_end" value="color_6" /> <c:set var="color_end" value="color_6" />
</c:if> </c:if>
<tr> <tr>
<td class="${color }"> <td class="${color }">
<c:out value="${detectionInfo[0]}" /> <c:out value="${detectionInfo[0]}" />
</td> </td>
<td class="${color }"> <td class="${color }">
<c:out value="${detectionInfo[1]}" /> <c:out value="${detectionInfo[1]}" />
</td> </td>
<td class="${color }"> <td class="${color }">
<c:out value="${detectionInfo[2]}" /> <c:out value="${detectionInfo[2]}" />
</td> </td>
<td class="${color }"> <td class="${color }">
<c:if test="${fn:trim(detectionInfo[3])=='1'}"> <c:if test="${fn:trim(detectionInfo[3])=='1'}">
<img src="<c:url value='/images/yes.gif'/>" border="0" <img src="<c:url value='/images/yes.gif'/>" border="0"
align="middle" /> align="middle" />
</c:if> </c:if>
<c:if <c:if
test="${fn:trim(detectionInfo[3]) == '0' ||fn:trim(detectionInfo[3]) == '-1'}" test="${fn:trim(detectionInfo[3]) == '0' ||fn:trim(detectionInfo[3]) == '-1'}"
var="handshakeEr"> var="handshakeEr">
<img src="<c:url value='/images/no.gif'/>" border="0" <img src="<c:url value='/images/no.gif'/>" border="0"
align="middle" /> align="middle" />
</c:if> </c:if>
</td> </td>
<td class="${color }"> <td class="${color }">
<c:out value="${detectionInfo[4]}" /> <c:out value="${detectionInfo[4]}" />
</td> </td>
<td class="${color }"> <td class="${color }">
<c:out value="${detectionInfo[5]}" /> <c:out value="${detectionInfo[5]}" />
</td> </td>
<td class="${color_end }"> <td class="${color_end }">
<div class="pop-content"> <div class="pop-content">
${fn:replace(fn:replace(detectionInfo[6],vEnter,'$@$'),'$@$','<br/>')} ${fn:replace(fn:replace(detectionInfo[6],vEnter,'$@$'),'$@$','<br/>')}
</div> </div>
</td> </td>
</tr> </tr>
</c:forEach> </c:forEach>
</c:when> </c:when>
</c:choose> </c:choose>

View File

@@ -1,432 +1,432 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%> <%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib uri="/jstl/fn" prefix="fn"%> <%@ taglib uri="/jstl/fn" prefix="fn"%>
<%@ taglib uri="/jstl/fmt" prefix="fmt"%> <%@ taglib uri="/jstl/fmt" prefix="fmt"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
%> %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_dmi.message.title_n81i</title> <title>i18n_dmi.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" <link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<link href="<c:url value='/js/dtree/css/dtree.css'/>" <link href="<c:url value='/js/dtree/css/dtree.css'/>"
rel="stylesheet" type="text/css" /> rel="stylesheet" type="text/css" />
<link href="<%=path%>/css/themes/base/jquery.ui.all.css" rel="stylesheet" type="text/css"></link> <link href="<%=path%>/css/themes/base/jquery.ui.all.css" rel="stylesheet" type="text/css"></link>
<link href="<%=path%>/css/themes/base/jquery.ui.css" rel="stylesheet" type="text/css"></link> <link href="<%=path%>/css/themes/base/jquery.ui.css" rel="stylesheet" type="text/css"></link>
<script type="text/javascript" <script type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script> src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script type="text/javascript" <script type="text/javascript"
src="<c:url value='/js/ui/jquery-ui.min.js'/>"></script> src="<c:url value='/js/ui/jquery-ui.min.js'/>"></script>
<script type="text/javascript" <script type="text/javascript"
src="<c:url value='/js/highstock/highstock.js'/>"></script> src="<c:url value='/js/highstock/highstock.js'/>"></script>
<script type="text/javascript" src="<c:url value='/js/WebCalendar.js' />"></script> <script type="text/javascript" src="<c:url value='/js/WebCalendar.js' />"></script>
<script> <script>
$(function() { $(function() {
$( "#tabs" ).tabs(); $( "#tabs" ).tabs();
$( "#tabs" ).removeClass("ui-widget");//删除ui样式(此样式会使折线图下方navigator失灵) $( "#tabs" ).removeClass("ui-widget");//删除ui样式(此样式会使折线图下方navigator失灵)
if(document.getElementById("tabs-1")){ if(document.getElementById("tabs-1")){
$("a[dtype='cli']:eq(0)").trigger('click'); $("a[dtype='cli']:eq(0)").trigger('click');
$("a[dtype='cli']:eq(0)").trigger('click'); $("a[dtype='cli']:eq(0)").trigger('click');
} }
}); });
//type为空是服务器检测菜单 //type为空是服务器检测菜单
//type=1:网元监测 //type=1:网元监测
//type=1异常网元 //type=1异常网元
//showHistory不为空是查询监测历史记录 //showHistory不为空是查询监测历史记录
function goBack(){ function goBack(){
var action ="<c:url value='/detection/monitorData.do?action=query'/>"; var action ="<c:url value='/detection/monitorData.do?action=query'/>";
if($("#type").val()== "1"){ if($("#type").val()== "1"){
action ="<c:url value='/detection/monitorData.do?action=queryNE'/>"; action ="<c:url value='/detection/monitorData.do?action=queryNE'/>";
}else if($("#type").val()== "2"){ }else if($("#type").val()== "2"){
action ="<c:url value='/detection/monitorData.do?action=queryAbnormalSet'/>"; action ="<c:url value='/detection/monitorData.do?action=queryAbnormalSet'/>";
} }
if($("#showHistory").val()== "history"){ if($("#showHistory").val()== "history"){
action ="<c:url value='/detection/monitorData.do?action=showDetectionInfo'/>"; action ="<c:url value='/detection/monitorData.do?action=showDetectionInfo'/>";
} }
if($("#flag").val()== "queryEmergent"){ if($("#flag").val()== "queryEmergent"){
action ="<c:url value='/detection/monitorData.do?action=queryEmergent'/>"; action ="<c:url value='/detection/monitorData.do?action=queryEmergent'/>";
} }
if($("#flag").val()== "queryEmergentDetail"){ if($("#flag").val()== "queryEmergentDetail"){
action ="<c:url value='/detection/monitorData.do?action=queryEmergentDetail&requestType=topo&nodeGroupId=${nodeGroupId}&nodeId=${nodeId}'/>"; action ="<c:url value='/detection/monitorData.do?action=queryEmergentDetail&requestType=topo&nodeGroupId=${nodeGroupId}&nodeId=${nodeId}'/>";
} }
if($("#requestType").val()== "newTopo"){ if($("#requestType").val()== "newTopo"){
action ="<c:url value='/detection/monitorData.do?action=query&nodeId=${nodeId}'/>"; action ="<c:url value='/detection/monitorData.do?action=query&nodeId=${nodeId}'/>";
} }
document.Mkform.action=action; document.Mkform.action=action;
document.Mkform.submit(); document.Mkform.submit();
} }
//查询记录 //查询记录
function qry(){ function qry(){
var startTime = $("#startTime").val(); var startTime = $("#startTime").val();
if(startTime==""){ if(startTime==""){
alert("i18n_dmi.message.startTime_n81i"); alert("i18n_dmi.message.startTime_n81i");
return; return;
} }
var endTime = $("#endTime").val(); var endTime = $("#endTime").val();
if(endTime==""){ if(endTime==""){
alert("i18n_dmi.message.endTime_n81i"); alert("i18n_dmi.message.endTime_n81i");
return; return;
} }
var start=new Date(startTime.replace(/-/g,"/"));//起始时间操作值 var start=new Date(startTime.replace(/-/g,"/"));//起始时间操作值
var start1=new Date(startTime.replace(/-/g,"/"));//起始时间备份 var start1=new Date(startTime.replace(/-/g,"/"));//起始时间备份
start.setDate(start.getDate()+7);//起始时间日期加一周 用来与结束时间比较 start.setDate(start.getDate()+7);//起始时间日期加一周 用来与结束时间比较
var end=new Date(endTime.replace(/-/g,"/"));//结束时间 var end=new Date(endTime.replace(/-/g,"/"));//结束时间
if(end<=start1){ if(end<=start1){
alert("i18n_dmi.message.startGtEnd_n81i"); alert("i18n_dmi.message.startGtEnd_n81i");
return; return;
} }
if(end>start){ if(end>start){
alert("i18n_dmi.message.intervalErr_n81i"); alert("i18n_dmi.message.intervalErr_n81i");
return; return;
} }
var metaId= $("#mid").val(); var metaId= $("#mid").val();
var drwTo= $("#tabIndex").val(); var drwTo= $("#tabIndex").val();
getPicScorce(metaId,drwTo); getPicScorce(metaId,drwTo);
} }
var chartObj; var chartObj;
var seriesOptions = []; var seriesOptions = [];
var policeValue; var policeValue;
var xtilte=""; var xtilte="";
var ytitle=""; var ytitle="";
function getPicScorce(metaid,drwTo){ function getPicScorce(metaid,drwTo){
$("#tabIndex").val(drwTo); $("#tabIndex").val(drwTo);
$("#mid").val(metaid); $("#mid").val(metaid);
if($('#tabsHidd-'+drwTo).val()=="0"){ if($('#tabsHidd-'+drwTo).val()=="0"){
$.ajax( { $.ajax( {
url : "<%=path%>/detection/monitorData!getSource.do?metaId="+metaid+"&dId="+$('#did').val()+"&cId="+$('#ctid').val()+"&seqId="+$('#seqId').val()+"&startTime="+$('#startTime').val()+"&endTime="+$('#endTime').val()+"&type="+$('#type').val()+"&requestType="+$('#requestType').val()+"&nodeGroupId="+$('#nodeGroupId').val(), url : "<%=path%>/detection/monitorData!getSource.do?metaId="+metaid+"&dId="+$('#did').val()+"&cId="+$('#ctid').val()+"&seqId="+$('#seqId').val()+"&startTime="+$('#startTime').val()+"&endTime="+$('#endTime').val()+"&type="+$('#type').val()+"&requestType="+$('#requestType').val()+"&nodeGroupId="+$('#nodeGroupId').val(),
type : "POST", type : "POST",
dataType : "json", dataType : "json",
success : function(datas) { success : function(datas) {
if(datas!=null && datas.length>0){ if(datas!=null && datas.length>0){
//$('#tabsHidd-'+drwTo).val('1'); //$('#tabsHidd-'+drwTo).val('1');
xtitle = datas[0].xtitle;//折线图标题 xtitle = datas[0].xtitle;//折线图标题
ytitle = datas[0].ytitle; ytitle = datas[0].ytitle;
policeValue = datas[0].policeVal; policeValue = datas[0].policeVal;
var lines = datas[0].lines; var lines = datas[0].lines;
seriesOptions[0] = { seriesOptions[0] = {
name: lines[0].name, name: lines[0].name,
data: lines[0].data data: lines[0].data
//color : '#0896E9' //color : '#0896E9'
}; };
createChart(policeValue,drwTo); createChart(policeValue,drwTo);
}else{ }else{
$("#tabs-"+drwTo).empty(); $("#tabs-"+drwTo).empty();
$("#tabs-"+drwTo).append('i18n_dmi.message.noData_n81i'); $("#tabs-"+drwTo).append('i18n_dmi.message.noData_n81i');
} }
} }
}) })
} }
} }
function createChart(policeNum,dto) { function createChart(policeNum,dto) {
chartObj = new Highcharts.StockChart( chartObj = new Highcharts.StockChart(
{ {
chart : { chart : {
renderTo : 'tabs-'+dto,//显示折线图的div的id renderTo : 'tabs-'+dto,//显示折线图的div的id
zoomType : 'x', zoomType : 'x',
showAxes : true, showAxes : true,
spacingRight : 20, spacingRight : 20,
defaultSeriesType : 'area',//显示折线图的样式:区域显示 defaultSeriesType : 'area',//显示折线图的样式:区域显示
borderWidth: 1 borderWidth: 1
}, },
navigator: { navigator: {
height: 50, height: 50,
margin: 50, margin: 50,
outlineColor: '#E0E0E0', outlineColor: '#E0E0E0',
outlineWidth: 2, outlineWidth: 2,
xAxis: { xAxis: {
type : 'datetime', type : 'datetime',
labels: { labels: {
align: 'left', align: 'left',
x: 3, x: 3,
y: -4 y: -4
}, },
dateTimeLabelFormats: { dateTimeLabelFormats: {
second: '%Y-%m-%d %H:%M:%S', second: '%Y-%m-%d %H:%M:%S',
minute: '%Y-%m-%d %H:%M', minute: '%Y-%m-%d %H:%M',
hour: '%Y-%m-%d %H:%M', hour: '%Y-%m-%d %H:%M',
day: '%Y-%m-%d', day: '%Y-%m-%d',
week: '%Y-%m-%d', week: '%Y-%m-%d',
month: '%Y-%m', month: '%Y-%m',
year: '%Y' year: '%Y'
} }
} }
}, },
rangeSelector: { rangeSelector: {
buttons: [], buttons: [],
inputEnabled:false, inputEnabled:false,
inputDateFormat:'%Y-%m-%d' inputDateFormat:'%Y-%m-%d'
}, },
title : { title : {
text : xtitle//折线图标题 text : xtitle//折线图标题
}, },
subtitle : { subtitle : {
text : ''//这是副标题内容 text : ''//这是副标题内容
}, },
xAxis : { xAxis : {
type : 'datetime', type : 'datetime',
//maxZoom : 1000 * 60 * 60 * 24 *14, //maxZoom : 1000 * 60 * 60 * 24 *14,
//startOfWeek: 50, //startOfWeek: 50,
labels : { labels : {
rotation : 20, rotation : 20,
y : 20, y : 20,
x : 20 x : 20
}, },
dateTimeLabelFormats: { dateTimeLabelFormats: {
second: '%Y-%m-%d %H:%M:%S', second: '%Y-%m-%d %H:%M:%S',
minute: '%Y-%m-%d %H:%M', minute: '%Y-%m-%d %H:%M',
hour: '%Y-%m-%d %H:%M', hour: '%Y-%m-%d %H:%M',
day: '%Y-%m-%d', day: '%Y-%m-%d',
week: '%Y-%m-%d', week: '%Y-%m-%d',
month: '%Y-%m', month: '%Y-%m',
year: '%Y' year: '%Y'
} }
}, },
yAxis : { yAxis : {
title : { title : {
text : ytitle//左侧标题 text : ytitle//左侧标题
}, },
minorTickInterval: 'auto', minorTickInterval: 'auto',
plotLines: [{ plotLines: [{
value: policeValue, value: policeValue,
width: 2, width: 2,
color: '#F24C52', color: '#F24C52',
dashStyle: 'dash', dashStyle: 'dash',
label: { label: {
text: 'i18n_dmi.message.policeLine_n81i:('+policeNum+')', text: 'i18n_dmi.message.policeLine_n81i:('+policeNum+')',
align: 'right', align: 'right',
y: 8, y: 8,
x: 0 x: 0
} }
}]/*, }]/*,
plotBands: [{ plotBands: [{
from: 80, from: 80,
to: 100, to: 100,
color: '#F24C52' color: '#F24C52'
}]*/ }]*/
}, },
tooltip : { tooltip : {
borderColor : "#374E94", borderColor : "#374E94",
backgroundColor : { backgroundColor : {
linearGradient : [ 0, 0, 0, 60 ], linearGradient : [ 0, 0, 0, 60 ],
stops : [ [ 0, '#FFFFFF' ], [ 1, '#E0E0E0' ] ] stops : [ [ 0, '#FFFFFF' ], [ 1, '#E0E0E0' ] ]
}, },
borderWidth : 1, borderWidth : 1,
shared : true, shared : true,
crosshairs : { crosshairs : {
width : 1, width : 1,
color : 'red' color : 'red'
}, },
formatter : function() { formatter : function() {
var s = Highcharts.dateFormat("%Y-%m-%d %H:%M", var s = Highcharts.dateFormat("%Y-%m-%d %H:%M",
this.x) + ' ['; this.x) + ' [';
$.each(this.points, function(i, point) { $.each(this.points, function(i, point) {
s += '<span style="color:#374E94">' s += '<span style="color:#374E94">'
+ point.series.name + point.series.name
+ ':</span><span style="font-weight: bold;color:#F24C52">' + ':</span><span style="font-weight: bold;color:#F24C52">'
+ Highcharts.numberFormat(point.y,2) + '</span> ';//当鼠标放到一个点上时显示的y值 + Highcharts.numberFormat(point.y,2) + '</span> ';//当鼠标放到一个点上时显示的y值
}); });
s = $.trim(s) + "]"; s = $.trim(s) + "]";
return s; return s;
} }
}, },
plotOptions:{ plotOptions:{
line:{ line:{
lineWidth : 1, lineWidth : 1,
marker: { marker: {
radius: 2, radius: 2,
states: { states: {
hover: { hover: {
radius: 3 radius: 3
} }
} }
} }
}, },
area : { area : {
fillColor : { fillColor : {
//linearGradient : [ 0, 0, 0, 200 ], //linearGradient : [ 0, 0, 0, 200 ],
//stops : [ [ 0, "#F24C52" ], [ 1, 'rgba(255,0,0,0)' ] ] //stops : [ [ 0, "#F24C52" ], [ 1, 'rgba(255,0,0,0)' ] ]
linearGradient : [ 0, 0, 30, 250 ], linearGradient : [ 0, 0, 30, 250 ],
stops : [ [ 0, "#0896E9" ], [ 1, 'rgba(0,157,145,0)' ] ] stops : [ [ 0, "#0896E9" ], [ 1, 'rgba(0,157,145,0)' ] ]
}, },
fillOpacity: 0.08, fillOpacity: 0.08,
lineWidth : 1, lineWidth : 1,
shadow : true, shadow : true,
marker: { marker: {
radius: 3, radius: 3,
states: { states: {
hover: { hover: {
radius: 5 radius: 5
} }
} }
} }
} }
}, },
exporting : { exporting : {
buttons : { buttons : {
exportButton : { exportButton : {
enabled : false enabled : false
} }
} }
}, },
series : seriesOptions,//显示的数据 series : seriesOptions,//显示的数据
credits: { credits: {
enabled: false, enabled: false,
text: 'i18n_dmi.message.updateTheMark_n81i' text: 'i18n_dmi.message.updateTheMark_n81i'
} }
}); });
Highcharts.setOptions( { Highcharts.setOptions( {
global : { global : {
useUTC : false useUTC : false
} }
}); });
} }
</script> </script>
</head> </head>
<body> <body>
<form action="" name="Mkform" method="post"> <form action="" name="Mkform" method="post">
<input type="hidden" name="cip" value="${cip }" /> <input type="hidden" name="cip" value="${cip }" />
<input type="hidden" name="ctn" value="${ctn }" /> <input type="hidden" name="ctn" value="${ctn }" />
<input type="hidden" name="stateInfo" id="stateInfo" value="${stateInfo }" /> <input type="hidden" name="stateInfo" id="stateInfo" value="${stateInfo }" />
<input type="hidden" id="seqId" name="seqId" value="${sqId}"/> <input type="hidden" id="seqId" name="seqId" value="${sqId}"/>
<input type="hidden" id="nodeIpRange" name="nodeIpRange" value="${nodeIpRange}"/> <input type="hidden" id="nodeIpRange" name="nodeIpRange" value="${nodeIpRange}"/>
<input type="hidden" id="nodeGroupStr" name="nodeGroupStr" value="${nodeGroupStr}"/> <input type="hidden" id="nodeGroupStr" name="nodeGroupStr" value="${nodeGroupStr}"/>
<input type="hidden" id="did" name ="dsiId" value="${dsiId }"/> <input type="hidden" id="did" name ="dsiId" value="${dsiId }"/>
<input type="hidden" id = "ctid" name="ctid" value = "${ctId}"/> <input type="hidden" id = "ctid" name="ctid" value = "${ctId}"/>
<input type="hidden" id = "isClick" name="isClick" value ="0"/> <input type="hidden" id = "isClick" name="isClick" value ="0"/>
<input type="hidden" id="" name="isSnmp" value="${isSnmp}"/> <input type="hidden" id="" name="isSnmp" value="${isSnmp}"/>
<jsp:include page="/common/transferHiddenParameter.jsp" /> <jsp:include page="/common/transferHiddenParameter.jsp" />
<input type="hidden" id = "mid" name="mid" value = "${metaId}"/> <input type="hidden" id = "mid" name="mid" value = "${metaId}"/>
<input type="hidden" id="tabIndex" value=""/> <input type="hidden" id="tabIndex" value=""/>
<!-- type为空服务器检测type=1网元检测 type=2:异常网元 --> <!-- type为空服务器检测type=1网元检测 type=2:异常网元 -->
<input type="hidden" value="${type }" name="type" id="type"/> <input type="hidden" value="${type }" name="type" id="type"/>
<input type="hidden" value="${flag }" name="flag" id="flag"/> <input type="hidden" value="${flag }" name="flag" id="flag"/>
<input type="hidden" value="${nodeType }" name="nodeType" id="nodeType"/> <input type="hidden" value="${nodeType }" name="nodeType" id="nodeType"/>
<!-- 来源于拓扑图 begin --> <!-- 来源于拓扑图 begin -->
<input type="hidden" id="requestType" name="requestType" value="${requestType }" /> <input type="hidden" id="requestType" name="requestType" value="${requestType }" />
<input type="hidden" id="nodeGroupId" name="nodeGroupId" value="${nodeGroupId }" /> <input type="hidden" id="nodeGroupId" name="nodeGroupId" value="${nodeGroupId }" />
<!-- 来源于拓扑图 end --> <!-- 来源于拓扑图 end -->
<!-- 是否为特种设备进入此页面 --> <!-- 是否为特种设备进入此页面 -->
<input type="hidden" name="entry" id="entry" value="${entry }"/> <input type="hidden" name="entry" id="entry" value="${entry }"/>
<input type="hidden" name="detectId" id="detectId" value="${detectId }"/> <input type="hidden" name="detectId" id="detectId" value="${detectId }"/>
<input type="hidden" name="ip" id="ip" value="${ip }"/> <input type="hidden" name="ip" id="ip" value="${ip }"/>
<input type="hidden" name="pid" id="pid" value="${pid }"/> <input type="hidden" name="pid" id="pid" value="${pid }"/>
<!-- 查看监测设置历史记录 begin --> <!-- 查看监测设置历史记录 begin -->
<input type="hidden" name="sqId" value="${sqId }" /> <input type="hidden" name="sqId" value="${sqId }" />
<input type="hidden" name="sTime" value="${sTime }" /> <input type="hidden" name="sTime" value="${sTime }" />
<input type="hidden" name="eTime" value="${eTime }" /> <input type="hidden" name="eTime" value="${eTime }" />
<input type="hidden" name="status" value="${status }" /> <input type="hidden" name="status" value="${status }" />
<input type="hidden" name="showHistory" value="${showHistory }" id="showHistory"/> <input type="hidden" name="showHistory" value="${showHistory }" id="showHistory"/>
<!-- 查看监测设置历史记录 end --> <!-- 查看监测设置历史记录 end -->
<table width="80%" align="center" border="0" cellpadding="0" <table width="80%" align="center" border="0" cellpadding="0"
cellspacing="1" class="table"> cellspacing="1" class="table">
<tr> <tr>
<td class="color_8" colspan="2"> <td class="color_8" colspan="2">
<strong>i18n_dmi.text.LineChart_n81i</strong> <strong>i18n_dmi.text.LineChart_n81i</strong>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="box_1"> <td class="box_1">
<div class="box_1"> <div class="box_1">
<label class="divTopText"><font class="selectText">i18n_dmi.text.startTime_n81i</font> <label class="divTopText"><font class="selectText">i18n_dmi.text.startTime_n81i</font>
<%--<% <%--<%
Date d = new Date(); Date d = new Date();
d.setDate(d.getDate()-7); d.setDate(d.getDate()-7);
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
String st = sdf.format(d); String st = sdf.format(d);
String et = sdf.format(new Date()); String et = sdf.format(new Date());
%> %>
--%><input type="text" id="startTime" --%><input type="text" id="startTime"
name="startTime" value="" readonly name="startTime" value="" readonly
onclick="SelectDate(this,'yyyy-MM-dd',${session.i18n_lang == 'zh_CN'?0:1})"/></label> onclick="SelectDate(this,'yyyy-MM-dd',${session.i18n_lang == 'zh_CN'?0:1})"/></label>
<label class="divTopText"><font class="selectText">i18n_dmi.text.endTime_n81i</font> <label class="divTopText"><font class="selectText">i18n_dmi.text.endTime_n81i</font>
<input type="text" id="endTime" <input type="text" id="endTime"
name="endTime" value="" readonly name="endTime" value="" readonly
onclick="SelectDate(this,'yyyy-MM-dd',${session.i18n_lang == 'zh_CN'?0:1})"/></label> onclick="SelectDate(this,'yyyy-MM-dd',${session.i18n_lang == 'zh_CN'?0:1})"/></label>
<img src="<c:url value='/images/button_chaxun.png'/>" <img src="<c:url value='/images/button_chaxun.png'/>"
class="img_middle2" onclick="javascript:qry();" /> class="img_middle2" onclick="javascript:qry();" />
</div> </div>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<span style="color: red;">i18n_dmi.message.defaultMsg_n81i</span> <span style="color: red;">i18n_dmi.message.defaultMsg_n81i</span>
</td> </td>
<td class="box_2"> <td class="box_2">
<div class="box_2"> <div class="box_2">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="goBack()" value="i18n_dmi.button.back_n81i"/> onclick="goBack()" value="i18n_dmi.button.back_n81i"/>
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td align="center" colspan="2"> <td align="center" colspan="2">
<div id="tabs"> <div id="tabs">
<c:set var="index" value="${1}" /> <c:set var="index" value="${1}" />
<c:set var="index1" value="${1}" /> <c:set var="index1" value="${1}" />
<c:choose> <c:choose>
<c:when test="${fn:length(metadataList) > 0}"> <c:when test="${fn:length(metadataList) > 0}">
<ul> <ul>
<c:forEach items="${metadataList}" var="meta"> <c:forEach items="${metadataList}" var="meta">
<c:if test="${meta.filedComments==''}"> <c:if test="${meta.filedComments==''}">
<li> <li>
<a dtype='cli' href="#tabs-${index }" onclick="getPicScorce(${meta.id },'${index }')">${meta.filedName}</a> <a dtype='cli' href="#tabs-${index }" onclick="getPicScorce(${meta.id },'${index }')">${meta.filedName}</a>
<input id="tabsHidd-${index }" type="hidden" value="0"/> <input id="tabsHidd-${index }" type="hidden" value="0"/>
</li> </li>
</c:if> </c:if>
<c:if test="${meta.filedComments!=''}"> <c:if test="${meta.filedComments!=''}">
<li> <li>
<a dtype='cli' href="#tabs-${index }" onclick="getPicScorce(${meta.id },'${index }')">${meta.filedComments}</a> <a dtype='cli' href="#tabs-${index }" onclick="getPicScorce(${meta.id },'${index }')">${meta.filedComments}</a>
<input id="tabsHidd-${index }" type="hidden" value="0"/> <input id="tabsHidd-${index }" type="hidden" value="0"/>
</li> </li>
</c:if> </c:if>
<c:set var="index" value="${index + 1}" /> <c:set var="index" value="${index + 1}" />
</c:forEach> </c:forEach>
</ul> </ul>
<c:forEach items="${metadataList}" var="meta1"> <c:forEach items="${metadataList}" var="meta1">
<div id="tabs-${index1 }" style='padding: 0;margin: 0;width: 95%; height: 450px;'> <div id="tabs-${index1 }" style='padding: 0;margin: 0;width: 95%; height: 450px;'>
</div> </div>
<c:set var="index1" value="${index1 + 1}" /> <c:set var="index1" value="${index1 + 1}" />
</c:forEach> </c:forEach>
</c:when> </c:when>
<c:otherwise> <c:otherwise>
<span>i18n_dmi.text.noRecord_n81i</span> <span>i18n_dmi.text.noRecord_n81i</span>
</c:otherwise> </c:otherwise>
</c:choose> </c:choose>
</div> </div>
</td> </td>
</tr> </tr>
</table> </table>
</form> </form>
<br /> <br />
</body> </body>
</html> </html>

View File

@@ -1,498 +1,498 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%> <%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib uri="/jstl/fn" prefix="fn"%> <%@ taglib uri="/jstl/fn" prefix="fn"%>
<%@ taglib uri="/jstl/fmt" prefix="fmt"%> <%@ taglib uri="/jstl/fmt" prefix="fmt"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
%> %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_dsmi.message.title_n81i</title> <title>i18n_dsmi.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" <link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<link href="<c:url value='/js/dtree/css/dtree.css'/>" <link href="<c:url value='/js/dtree/css/dtree.css'/>"
rel="stylesheet" type="text/css" /> rel="stylesheet" type="text/css" />
<link href="<%=path%>/css/themes/base/jquery.ui.all.css" rel="stylesheet" type="text/css"></link> <link href="<%=path%>/css/themes/base/jquery.ui.all.css" rel="stylesheet" type="text/css"></link>
<link href="<%=path%>/css/themes/base/jquery.ui.css" rel="stylesheet" type="text/css"></link> <link href="<%=path%>/css/themes/base/jquery.ui.css" rel="stylesheet" type="text/css"></link>
<script type="text/javascript"src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script> <script type="text/javascript"src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script type="text/javascript" <script type="text/javascript"
src="<c:url value='/js/ui/jquery-ui.min.js'/>"></script> src="<c:url value='/js/ui/jquery-ui.min.js'/>"></script>
<script type="text/javascript" <script type="text/javascript"
src="<c:url value='/js/highcharts.js'/>"></script> src="<c:url value='/js/highcharts.js'/>"></script>
<script type="text/javascript" src="<c:url value='/js/WebCalendar.js' />"></script> <script type="text/javascript" src="<c:url value='/js/WebCalendar.js' />"></script>
<script> <script>
$(function() { $(function() {
$( "#tabs" ).tabs(); $( "#tabs" ).tabs();
$( "#tabs" ).removeClass("ui-widget");//删除ui样式(此样式会使折线图下方navigator失灵) $( "#tabs" ).removeClass("ui-widget");//删除ui样式(此样式会使折线图下方navigator失灵)
if(document.getElementById("tabs-1")){ if(document.getElementById("tabs-1")){
$("a[dtype='cli']:eq(0)").trigger('click'); $("a[dtype='cli']:eq(0)").trigger('click');
$("a[dtype='cli']:eq(0)").trigger('click');//只调用一次时曲线x轴的时间和实际时间差8个小时调用2次就没问题了 $("a[dtype='cli']:eq(0)").trigger('click');//只调用一次时曲线x轴的时间和实际时间差8个小时调用2次就没问题了
} }
$("#ok").click(function() { $("#ok").click(function() {
var result = ""; var result = "";
var num = $(".checks:checked").size(); var num = $(".checks:checked").size();
if(num>5){ if(num>5){
alert("i18n_dsmi.message.selectToDraw1_n81i"); alert("i18n_dsmi.message.selectToDraw1_n81i");
return; return;
}else{ }else{
$(".checks:checked").each(function() { $(".checks:checked").each(function() {
var lable = $(this).closest("label"); var lable = $(this).closest("label");
result += lable.attr("ids")+','; result += lable.attr("ids")+',';
}); });
if (result == "") { if (result == "") {
alert("i18n_dsmi.message.selectTodraw2_n81i"); alert("i18n_dsmi.message.selectTodraw2_n81i");
return; return;
} else { } else {
var metaId= $("#mid").val(); var metaId= $("#mid").val();
var drwTo= $("#tabIndex").val(); var drwTo= $("#tabIndex").val();
getPicScorce(metaId,drwTo,result); getPicScorce(metaId,drwTo,result);
//清空选择 //清空选择
//$(".checks").removeAttr("checked"); //$(".checks").removeAttr("checked");
//resetBg(); //resetBg();
} }
} }
}) })
$("#clear").click(function() { $("#clear").click(function() {
$(".checks").removeAttr("checked"); $(".checks").removeAttr("checked");
resetBg(); resetBg();
}) })
$(".checks").click(function() { $(".checks").click(function() {
resetBg(); resetBg();
}) })
}); });
function resetBg() { function resetBg() {
$(".checks").each(function() { $(".checks").each(function() {
var label = $(this).closest("label"); var label = $(this).closest("label");
if ($(this).is(":checked")) { if ($(this).is(":checked")) {
label.css("background-Color", "#B5C19B"); label.css("background-Color", "#B5C19B");
} else { } else {
label.css("background-Color", ""); label.css("background-Color", "");
} }
}) })
} }
//type为空是服务器检测菜单 //type为空是服务器检测菜单
//type=1:网元监测 //type=1:网元监测
//type=1异常网元 //type=1异常网元
//showHistory不为空是查询监测历史记录 //showHistory不为空是查询监测历史记录
function goBack(){ function goBack(){
var action ="<c:url value='/detection/monitorData.do?action=query'/>"; var action ="<c:url value='/detection/monitorData.do?action=query'/>";
if($("#type").val()== "1"){ if($("#type").val()== "1"){
action ="<c:url value='/detection/monitorData.do?action=queryNE'/>"; action ="<c:url value='/detection/monitorData.do?action=queryNE'/>";
}else if($("#type").val()== "2"){ }else if($("#type").val()== "2"){
action ="<c:url value='/detection/monitorData.do?action=queryAbnormalSet'/>"; action ="<c:url value='/detection/monitorData.do?action=queryAbnormalSet'/>";
} }
if($("#showHistory").val()== "history"){ if($("#showHistory").val()== "history"){
action ="<c:url value='/detection/monitorData.do?action=showDetectionInfo'/>"; action ="<c:url value='/detection/monitorData.do?action=showDetectionInfo'/>";
} }
if($("#flag").val()== "queryEmergent"){ if($("#flag").val()== "queryEmergent"){
action ="<c:url value='/detection/monitorData.do?action=queryEmergent'/>"; action ="<c:url value='/detection/monitorData.do?action=queryEmergent'/>";
} }
if($("#flag").val()== "queryEmergentDetail"){ if($("#flag").val()== "queryEmergentDetail"){
action ="<c:url value='/detection/monitorData.do?action=queryEmergentDetail&requestType=topo&nodeGroupId=${nodeGroupId}&nodeId=${nodeId}'/>"; action ="<c:url value='/detection/monitorData.do?action=queryEmergentDetail&requestType=topo&nodeGroupId=${nodeGroupId}&nodeId=${nodeId}'/>";
} }
if($("#requestType").val()== "newTopo"){ if($("#requestType").val()== "newTopo"){
action ="<c:url value='/detection/monitorData.do?action=query&nodeId=${nodeId}'/>"; action ="<c:url value='/detection/monitorData.do?action=query&nodeId=${nodeId}'/>";
} }
document.Mkform.action=action; document.Mkform.action=action;
document.Mkform.submit(); document.Mkform.submit();
} }
//查询记录 //查询记录
function qry(){ function qry(){
var startTime = $("#startTime").val(); var startTime = $("#startTime").val();
if(startTime==""){ if(startTime==""){
alert("i18n_dsmi.message.startTime_n81i"); alert("i18n_dsmi.message.startTime_n81i");
return; return;
} }
var endTime = $("#endTime").val(); var endTime = $("#endTime").val();
if(endTime==""){ if(endTime==""){
alert("i18n_dsmi.message.endTime_n81i"); alert("i18n_dsmi.message.endTime_n81i");
return; return;
} }
var start=new Date(startTime.replace(/-/g,"/"));//起始时间操作值 var start=new Date(startTime.replace(/-/g,"/"));//起始时间操作值
var start1=new Date(startTime.replace(/-/g,"/"));//起始时间备份 var start1=new Date(startTime.replace(/-/g,"/"));//起始时间备份
start.setDate(start.getDate()+7);//起始时间日期加一周 用来与结束时间比较 start.setDate(start.getDate()+7);//起始时间日期加一周 用来与结束时间比较
var end=new Date(endTime.replace(/-/g,"/"));//结束时间 var end=new Date(endTime.replace(/-/g,"/"));//结束时间
if(end<=start1){ if(end<=start1){
alert("i18n_dsmi.message.startGtEnd_n81i"); alert("i18n_dsmi.message.startGtEnd_n81i");
return; return;
} }
if(end>start){ if(end>start){
alert("i18n_dsmi.message.intervalErr_n81i"); alert("i18n_dsmi.message.intervalErr_n81i");
return; return;
} }
$("#ok").click(); $("#ok").click();
} }
var seriesOptions = []; var seriesOptions = [];
var policeValue; var policeValue;
var xtilte=""; var xtilte="";
var ytitle=""; var ytitle="";
function getPicScorce(metaid,drwTo,lns){ function getPicScorce(metaid,drwTo,lns){
$("#tabIndex").val(drwTo); $("#tabIndex").val(drwTo);
$("#mid").val(metaid); $("#mid").val(metaid);
seriesOptions = [];//清空数据源 seriesOptions = [];//清空数据源
$.ajax( { $.ajax( {
url : "<%=path%>/detection/monitorData!getSnmpSource.do?metaId="+metaid+"&dId="+$('#did').val()+"&cId="+$('#ctid').val()+"&seqId="+$('#seqId').val()+"&lns="+lns+"&startTime="+$('#startTime').val()+"&endTime="+$('#endTime').val()+"&type="+$('#type').val()+"&requestType="+$('#requestType').val()+"&nodeGroupId="+$('#nodeGroupId').val(), url : "<%=path%>/detection/monitorData!getSnmpSource.do?metaId="+metaid+"&dId="+$('#did').val()+"&cId="+$('#ctid').val()+"&seqId="+$('#seqId').val()+"&lns="+lns+"&startTime="+$('#startTime').val()+"&endTime="+$('#endTime').val()+"&type="+$('#type').val()+"&requestType="+$('#requestType').val()+"&nodeGroupId="+$('#nodeGroupId').val(),
type : "POST", type : "POST",
dataType : "json", dataType : "json",
success : function(datas) { success : function(datas) {
if(datas!=null){ if(datas!=null){
$('#tabsHidd-'+drwTo).val('1'); $('#tabsHidd-'+drwTo).val('1');
xtitle = datas[0].xtitle; xtitle = datas[0].xtitle;
ytitle = datas[0].ytitle; ytitle = datas[0].ytitle;
policeValue = datas[0].policeVal; policeValue = datas[0].policeVal;
var lines = datas[1].lines; var lines = datas[1].lines;
if(lines[0].data == null || lines[0].data == ""){ if(lines[0].data == null || lines[0].data == ""){
$("#tabs-"+drwTo).empty(); $("#tabs-"+drwTo).empty();
$("#tabs-"+drwTo).append('i18n_dsmi.message.noData_n81i'); $("#tabs-"+drwTo).append('i18n_dsmi.message.noData_n81i');
}else{ }else{
$.each(lines, function(k, da) { $.each(lines, function(k, da) {
seriesOptions[k] = { seriesOptions[k] = {
name: da.name, name: da.name,
data: da.data data: da.data
}; };
createChart(policeValue,drwTo); createChart(policeValue,drwTo);
}); });
} }
}else{ }else{
$("#tabs-"+drwTo).empty(); $("#tabs-"+drwTo).empty();
$("#tabs-"+drwTo).append('i18n_dsmi.message.noData_n81i'); $("#tabs-"+drwTo).append('i18n_dsmi.message.noData_n81i');
} }
} }
}) })
} }
function createChart(policeNum,dto) { function createChart(policeNum,dto) {
var chartObj = new Highcharts.Chart( var chartObj = new Highcharts.Chart(
{ {
chart : { chart : {
renderTo : 'tabs-'+dto, renderTo : 'tabs-'+dto,
zoomType : 'x', zoomType : 'x',
showAxes : true, showAxes : true,
spacingRight : 20, spacingRight : 20,
defaultSeriesType : 'line', defaultSeriesType : 'line',
borderWidth: 1 borderWidth: 1
}, },
title : { title : {
text : xtitle text : xtitle
}, },
subtitle : { subtitle : {
text : ''//这是副标题内容 text : ''//这是副标题内容
}, },
xAxis : { xAxis : {
type : 'datetime', type : 'datetime',
//maxZoom : 1000 * 60 * 60 * 24 *14, //maxZoom : 1000 * 60 * 60 * 24 *14,
//startOfWeek: 50, //startOfWeek: 50,
labels : { labels : {
rotation : 20, rotation : 20,
y : 20, y : 20,
x : 20 x : 20
}, },
dateTimeLabelFormats: { dateTimeLabelFormats: {
second: '%Y-%m-%d %H:%M:%S', second: '%Y-%m-%d %H:%M:%S',
minute: '%Y-%m-%d %H:%M', minute: '%Y-%m-%d %H:%M',
hour: '%Y-%m-%d %H:%M', hour: '%Y-%m-%d %H:%M',
day: '%Y-%m-%d', day: '%Y-%m-%d',
week: '%Y-%m-%d', week: '%Y-%m-%d',
month: '%Y-%m', month: '%Y-%m',
year: '%Y' year: '%Y'
} }
}, },
yAxis : { yAxis : {
title : { title : {
text : ytitle text : ytitle
}, },
minorTickInterval: 'auto', minorTickInterval: 'auto',
min:0, min:0,
plotLines: [{ plotLines: [{
value: policeValue, value: policeValue,
width: 2, width: 2,
color: '#F24C52', color: '#F24C52',
dashStyle: 'dash', dashStyle: 'dash',
label: { label: {
text: 'i18n_dsmi.message.policyLine_n81i:('+policeNum+')', text: 'i18n_dsmi.message.policyLine_n81i:('+policeNum+')',
align: 'right', align: 'right',
y: 8, y: 8,
x: 0 x: 0
} }
}]/*, }]/*,
plotBands: [{ plotBands: [{
from: 80, from: 80,
to: 100, to: 100,
color: '#F24C52' color: '#F24C52'
}]*/ }]*/
}, },
tooltip : { tooltip : {
borderColor : "#374E94", borderColor : "#374E94",
backgroundColor : { backgroundColor : {
linearGradient : [ 0, 0, 0, 60 ], linearGradient : [ 0, 0, 0, 60 ],
stops : [ [ 0, '#FFFFFF' ], [ 1, '#E0E0E0' ] ] stops : [ [ 0, '#FFFFFF' ], [ 1, '#E0E0E0' ] ]
}, },
borderWidth : 1, borderWidth : 1,
shared : true, shared : true,
crosshairs : { crosshairs : {
width : 1, width : 1,
color : 'red' color : 'red'
}, },
formatter : function() { formatter : function() {
var s = Highcharts.dateFormat("%Y-%m-%d %H:%M", var s = Highcharts.dateFormat("%Y-%m-%d %H:%M",
this.x) + ' ['; this.x) + ' [';
$.each(this.points, function(i, point) { $.each(this.points, function(i, point) {
s += '<span style="color:#374E94">' s += '<span style="color:#374E94">'
+ point.series.name + point.series.name
+ ':</span><span style="font-weight: bold;color:#F24C52">' + ':</span><span style="font-weight: bold;color:#F24C52">'
+ point.y + '</span> '; + point.y + '</span> ';
}); });
s = $.trim(s) + "]"; s = $.trim(s) + "]";
return s; return s;
} }
}, },
plotOptions:{ plotOptions:{
line:{ line:{
lineWidth : 1, lineWidth : 1,
marker: { marker: {
radius: 2, radius: 2,
states: { states: {
hover: { hover: {
radius: 3 radius: 3
} }
} }
} }
}, },
area : { area : {
fillColor : { fillColor : {
//linearGradient : [ 0, 0, 0, 200 ], //linearGradient : [ 0, 0, 0, 200 ],
//stops : [ [ 0, "#F24C52" ], [ 1, 'rgba(255,0,0,0)' ] ] //stops : [ [ 0, "#F24C52" ], [ 1, 'rgba(255,0,0,0)' ] ]
linearGradient : [ 0, 0, 30, 250 ], linearGradient : [ 0, 0, 30, 250 ],
stops : [ [ 0, "#0896E9" ], [ 1, 'rgba(0,157,145,0)' ] ] stops : [ [ 0, "#0896E9" ], [ 1, 'rgba(0,157,145,0)' ] ]
}, },
fillOpacity: 0.08, fillOpacity: 0.08,
lineWidth : 1, lineWidth : 1,
shadow : true, shadow : true,
marker: { marker: {
radius: 3, radius: 3,
states: { states: {
hover: { hover: {
radius: 5 radius: 5
} }
} }
} }
} }
}, },
exporting : { exporting : {
buttons : { buttons : {
exportButton : { exportButton : {
enabled : false enabled : false
} }
} }
}, },
series : seriesOptions, series : seriesOptions,
credits: { credits: {
enabled: false, enabled: false,
text: 'i18n_dsmi.message.updateTheMark_n81i' text: 'i18n_dsmi.message.updateTheMark_n81i'
} }
}); });
Highcharts.setOptions( { Highcharts.setOptions( {
global : { global : {
useUTC : false useUTC : false
} }
}); });
} }
</script> </script>
</head> </head>
<body> <body>
<form action="" name="Mkform" method="post"> <form action="" name="Mkform" method="post">
<input type="hidden" name="cip" value="${cip }" /> <input type="hidden" name="cip" value="${cip }" />
<input type="hidden" name="ctn" value="${ctn }" /> <input type="hidden" name="ctn" value="${ctn }" />
<input type="hidden" name="stateInfo" id="stateInfo" value="${stateInfo }" /> <input type="hidden" name="stateInfo" id="stateInfo" value="${stateInfo }" />
<input type="hidden" name="detectionSetInfoId" id="detectionSetInfoId" value="${detectionSetInfoId }"> <input type="hidden" name="detectionSetInfoId" id="detectionSetInfoId" value="${detectionSetInfoId }">
<input type="hidden" id="seqId" name="seqId" value="${sqId}"/> <input type="hidden" id="seqId" name="seqId" value="${sqId}"/>
<input type="hidden" id="nodeGroupStr" name="nodeGroupStr" value="${nodeGroupStr}"/> <input type="hidden" id="nodeGroupStr" name="nodeGroupStr" value="${nodeGroupStr}"/>
<input type="hidden" id="nodeIpRange" name="nodeIpRange" value="${nodeIpRange}"/> <input type="hidden" id="nodeIpRange" name="nodeIpRange" value="${nodeIpRange}"/>
<input type="hidden" id="did" name ="dsiId" value="${dsiId }"/> <input type="hidden" id="did" name ="dsiId" value="${dsiId }"/>
<input type="hidden" id = "ctid" name="ctid" value = "${ctId}"/> <input type="hidden" id = "ctid" name="ctid" value = "${ctId}"/>
<input type="hidden" id = "isClick" name="isClick" value ="0"/> <input type="hidden" id = "isClick" name="isClick" value ="0"/>
<input type="hidden" id = "mid" name="mid" value = "${metaId}"/> <input type="hidden" id = "mid" name="mid" value = "${metaId}"/>
<input type="hidden" id="tabIndex" value=""/> <input type="hidden" id="tabIndex" value=""/>
<!-- type为空服务器检测type=1网元检测 type=2:异常网元 --> <!-- type为空服务器检测type=1网元检测 type=2:异常网元 -->
<input type="hidden" value="${type }" name="type" id="type"/> <input type="hidden" value="${type }" name="type" id="type"/>
<input type="hidden" value="${flag }" name="flag" id="flag"/> <input type="hidden" value="${flag }" name="flag" id="flag"/>
<input type="hidden" value="${nodeType }" name="nodeType" id="nodeType"/> <input type="hidden" value="${nodeType }" name="nodeType" id="nodeType"/>
<!-- 来源于拓扑图 begin --> <!-- 来源于拓扑图 begin -->
<input type="hidden" id="requestType" name="requestType" value="${requestType }" /> <input type="hidden" id="requestType" name="requestType" value="${requestType }" />
<input type="hidden" id="nodeGroupId" name="nodeGroupId" value="${nodeGroupId }" /> <input type="hidden" id="nodeGroupId" name="nodeGroupId" value="${nodeGroupId }" />
<!-- 来源于拓扑图 end --> <!-- 来源于拓扑图 end -->
<!-- 是否为特种设备进入此页面 --> <!-- 是否为特种设备进入此页面 -->
<input type="hidden" name="entry" id="entry" value="${entry }"/> <input type="hidden" name="entry" id="entry" value="${entry }"/>
<input type="hidden" name="detectId" id="detectId" value="${detectId }"/> <input type="hidden" name="detectId" id="detectId" value="${detectId }"/>
<input type="hidden" name="ip" id="ip" value="${ip }"/> <input type="hidden" name="ip" id="ip" value="${ip }"/>
<input type="hidden" name="pid" id="pid" value="${pid }"/> <input type="hidden" name="pid" id="pid" value="${pid }"/>
<!-- 查看监测设置历史记录 begin --> <!-- 查看监测设置历史记录 begin -->
<input type="hidden" name="sqId" value="${sqId }" /> <input type="hidden" name="sqId" value="${sqId }" />
<input type="hidden" name="sTime" value="${sTime }" /> <input type="hidden" name="sTime" value="${sTime }" />
<input type="hidden" name="eTime" value="${eTime }" /> <input type="hidden" name="eTime" value="${eTime }" />
<input type="hidden" name="status" value="${status }" /> <input type="hidden" name="status" value="${status }" />
<input type="hidden" name="showHistory" value="${showHistory }" id="showHistory" /> <input type="hidden" name="showHistory" value="${showHistory }" id="showHistory" />
<!-- 查看监测设置历史记录 end --> <!-- 查看监测设置历史记录 end -->
<jsp:include page="/common/transferHiddenParameter.jsp" /> <jsp:include page="/common/transferHiddenParameter.jsp" />
<table width="80%" align="center" border="0" cellpadding="0" <table width="80%" align="center" border="0" cellpadding="0"
cellspacing="1" class="table"> cellspacing="1" class="table">
<tr> <tr>
<td class="color_8"> <td class="color_8">
<strong>i18n_dsmi.message.title_n81i</strong> <strong>i18n_dsmi.message.title_n81i</strong>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="box_1"> <td class="box_1">
<div class="box_1"> <div class="box_1">
<label class="divTopText"><font class="selectText">i18n_dsmi.text.startTime_n81i</font> <label class="divTopText"><font class="selectText">i18n_dsmi.text.startTime_n81i</font>
<%--<% <%--<%
Date d = new Date(); Date d = new Date();
d.setDate(d.getDate()-7); d.setDate(d.getDate()-7);
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
String st = sdf.format(d); String st = sdf.format(d);
String et = sdf.format(new Date()); String et = sdf.format(new Date());
%> %>
--%><input type="text" id="startTime" --%><input type="text" id="startTime"
name="startTime" value="" readonly name="startTime" value="" readonly
onclick="SelectDate(this,'yyyy-MM-dd',${session.i18n_lang == 'zh_CN'?0:1})"/></label> onclick="SelectDate(this,'yyyy-MM-dd',${session.i18n_lang == 'zh_CN'?0:1})"/></label>
<label class="divTopText"><font class="selectText">i18n_dsmi.text.endTime_n81i</font> <label class="divTopText"><font class="selectText">i18n_dsmi.text.endTime_n81i</font>
<input type="text" id="endTime" <input type="text" id="endTime"
name="endTime" value="" readonly name="endTime" value="" readonly
onclick="SelectDate(this,'yyyy-MM-dd',${session.i18n_lang == 'zh_CN'?0:1})"/></label> onclick="SelectDate(this,'yyyy-MM-dd',${session.i18n_lang == 'zh_CN'?0:1})"/></label>
<img src="<c:url value='/images/button_chaxun.png'/>" <img src="<c:url value='/images/button_chaxun.png'/>"
class="img_middle2" onclick="javascript:qry();" /> class="img_middle2" onclick="javascript:qry();" />
</div> </div>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<span style="color: red;">i18n_dsmi.message.defaultMsg_n81i</span> <span style="color: red;">i18n_dsmi.message.defaultMsg_n81i</span>
</td> </td>
<td class="box_2"> <td class="box_2">
<div class="box_2"> <div class="box_2">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="goBack()" value="i18n_dsmi.button.back_n81i"/> onclick="goBack()" value="i18n_dsmi.button.back_n81i"/>
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td align="center" colspan="2"> <td align="center" colspan="2">
<div id="tabs"> <div id="tabs">
<c:set var="index" value="${1}" /> <c:set var="index" value="${1}" />
<c:set var="index1" value="${1}" /> <c:set var="index1" value="${1}" />
<c:choose> <c:choose>
<c:when test="${fn:length(metadataList) > 0}"> <c:when test="${fn:length(metadataList) > 0}">
<ul> <ul>
<c:forEach items="${metadataList}" var="meta"> <c:forEach items="${metadataList}" var="meta">
<c:if test="${meta.filedComments==''}"> <c:if test="${meta.filedComments==''}">
<li> <li>
<a dtype='cli' href="#tabs-${index }" onclick="getPicScorce(${meta.id },'${index }','')">${meta.filedName}</a> <a dtype='cli' href="#tabs-${index }" onclick="getPicScorce(${meta.id },'${index }','')">${meta.filedName}</a>
<input id="tabsHidd-${index }" type="hidden" value="0"/> <input id="tabsHidd-${index }" type="hidden" value="0"/>
</li> </li>
</c:if> </c:if>
<c:if test="${meta.filedComments!=''}"> <c:if test="${meta.filedComments!=''}">
<li> <li>
<a dtype='cli' href="#tabs-${index }" onclick="getPicScorce(${meta.id },'${index }','')">${meta.filedComments}</a> <a dtype='cli' href="#tabs-${index }" onclick="getPicScorce(${meta.id },'${index }','')">${meta.filedComments}</a>
<input id="tabsHidd-${index }" type="hidden" value="0"/> <input id="tabsHidd-${index }" type="hidden" value="0"/>
</li> </li>
</c:if> </c:if>
<c:set var="index" value="${index + 1}" /> <c:set var="index" value="${index + 1}" />
</c:forEach> </c:forEach>
</ul> </ul>
<!-- 画图用的div --> <!-- 画图用的div -->
<c:forEach items="${metadataList}" var="meta1"> <c:forEach items="${metadataList}" var="meta1">
<div id="tabs-${index1 }" style='padding: 0;margin: 0;width: 95%; height: 450px;'> <div id="tabs-${index1 }" style='padding: 0;margin: 0;width: 95%; height: 450px;'>
</div> </div>
<c:set var="index1" value="${index1 + 1}" /> <c:set var="index1" value="${index1 + 1}" />
</c:forEach> </c:forEach>
</c:when> </c:when>
<c:otherwise> <c:otherwise>
<span>i18n_dsmi.text.noRecord_n81i</span> <span>i18n_dsmi.text.noRecord_n81i</span>
</c:otherwise> </c:otherwise>
</c:choose> </c:choose>
</div> </div>
<div id="listDiv" <div id="listDiv"
style="margin:5px 0px;background-color: #d3eaef; text-align:left;overflow: auto;border:1px solid gray;"> style="margin:5px 0px;background-color: #d3eaef; text-align:left;overflow: auto;border:1px solid gray;">
<c:choose> <c:choose>
<c:when test="${fn:length(dataList) > 0}"> <c:when test="${fn:length(dataList) > 0}">
<table width="100%" align="left" border="0" cellpadding="0" cellspacing="0" style="margin-top: 5px;"> <table width="100%" align="left" border="0" cellpadding="0" cellspacing="0" style="margin-top: 5px;">
<c:set var="numPerRow" value="${6}" /> <c:set var="numPerRow" value="${6}" />
<c:forEach items="${dataList}" var="item" varStatus="num"> <c:forEach items="${dataList}" var="item" varStatus="num">
<c:if test="${num.count%numPerRow==1}"> <c:if test="${num.count%numPerRow==1}">
<tr> <tr>
</c:if> </c:if>
<td align="left" width="10%" style=""> <td align="left" width="10%" style="">
<label class="item" title="${item}" ids="${item}"style="text-overflow: ellipsis; overflow: hidden;padding-left: 5px;"> <label class="item" title="${item}" ids="${item}"style="text-overflow: ellipsis; overflow: hidden;padding-left: 5px;">
<input class="checks" type="checkbox" value="${item}"/> <input class="checks" type="checkbox" value="${item}"/>
${item} ${item}
</label> </label>
</td> </td>
<c:if test="${num.count%numPerRow==0}"> <c:if test="${num.count%numPerRow==0}">
</tr> </tr>
</c:if> </c:if>
</c:forEach> </c:forEach>
<c:if test="${fn:length(dataList)%numPerRow!=0}"> <c:if test="${fn:length(dataList)%numPerRow!=0}">
</tr> </tr>
</c:if> </c:if>
</table> </table>
</c:when> </c:when>
<c:otherwise> <c:otherwise>
<span>i18n_dsmi.textnoClassify_n81i</span> <span>i18n_dsmi.textnoClassify_n81i</span>
</c:otherwise> </c:otherwise>
</c:choose> </c:choose>
<span style=" text-align: left;"> <span style=" text-align: left;">
<br/> <br/>
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
id="clear" value="i18n_dsmi.button.clearSelected_n81i"/> id="clear" value="i18n_dsmi.button.clearSelected_n81i"/>
&nbsp; &nbsp;
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
id="ok" value="i18n_dsmi.button.sure_n81i"/> id="ok" value="i18n_dsmi.button.sure_n81i"/>
</span> </span>
</div> </div>
</td> </td>
</tr> </tr>
</table> </table>
</form> </form>
<br /> <br />
</body> </body>
</html> </html>

File diff suppressed because it is too large Load Diff

View File

@@ -1,348 +1,348 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="/jstl/c"%> <%@ taglib prefix="c" uri="/jstl/c"%>
<%@ taglib prefix="fn" uri="/jstl/fn"%> <%@ taglib prefix="fn" uri="/jstl/fn"%>
<%@ taglib prefix="fmt" uri="/jstl/fmt"%> <%@ taglib prefix="fmt" uri="/jstl/fmt"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
%> %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_mil.message.title_n81i</title> <title>i18n_mil.message.title_n81i</title>
<link href="<c:url value='/desktop/css/index${userBgColor }.css'/>" <link href="<c:url value='/desktop/css/index${userBgColor }.css'/>"
rel="stylesheet" type="text/css" /> rel="stylesheet" type="text/css" />
<script src="<c:url value='/js/onmouse${userBgColor }.js'/>" <script src="<c:url value='/js/onmouse${userBgColor }.js'/>"
type="text/javascript"></script> type="text/javascript"></script>
<link href="<c:url value='/css/styles.css'/>" rel="stylesheet" <link href="<c:url value='/css/styles.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<link href="<c:url value='/css/suggest.css'/>" rel="stylesheet" <link href="<c:url value='/css/suggest.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/datepicker/WdatePicker.js'/>"></script> src="<c:url value='/js/datepicker/WdatePicker.js'/>"></script>
<script type="text/javascript" src="<%=path%>/templates/js/object.js"></script> <script type="text/javascript" src="<%=path%>/templates/js/object.js"></script>
<script type="text/javascript" src="<%=path%>/templates/js/common.js"></script> <script type="text/javascript" src="<%=path%>/templates/js/common.js"></script>
<script src="<c:url value='/js/jquery.js'/>" type="text/javascript"></script> <script src="<c:url value='/js/jquery.js'/>" type="text/javascript"></script>
<script type="text/javascript" <script type="text/javascript"
src="<c:url value='/js/jquery.suggest.js' />"></script> src="<c:url value='/js/jquery.suggest.js' />"></script>
</head> </head>
<script language="javascript" type="text/javascript"> <script language="javascript" type="text/javascript">
//查询记录 //查询记录
function qry(){ function qry(){
document.form3.action = "<%=path%>/detection/monitorData.do?action=query"; document.form3.action = "<%=path%>/detection/monitorData.do?action=query";
document.form3.submit(); document.form3.submit();
} }
//查看详情 //查看详情
function showRecord(monid){ function showRecord(monid){
document.form3.action = "<%=path%>/detection/monitorData!executeAction.do?action=detail&ids="+monid; document.form3.action = "<%=path%>/detection/monitorData!executeAction.do?action=detail&ids="+monid;
document.form3.submit(); document.form3.submit();
} }
//绘制折线图 //绘制折线图
function drawPic(ctid,dsiId,ip){ function drawPic(ctid,dsiId,ip){
document.form3.action = "<%=path%>/detection/monitorData!executeAction.do?action=drawPic&checkTypeId="+ctid+"&dsiId="+dsiId+"&ip="+ip; document.form3.action = "<%=path%>/detection/monitorData!executeAction.do?action=drawPic&checkTypeId="+ctid+"&dsiId="+dsiId+"&ip="+ip;
document.form3.submit(); document.form3.submit();
} }
//parent.document.all("listFrame").style.height = document.body.scrollHeight + 16; //parent.document.all("listFrame").style.height = document.body.scrollHeight + 16;
var set_Id; var set_Id;
var ajaxProperties = ""; var ajaxProperties = "";
var ajaxTableName = ""; var ajaxTableName = "";
var ajaxType = ""; var ajaxType = "";
var id = ""; var id = "";
var returnDiv = ""; var returnDiv = "";
var ajaxValue = ""; var ajaxValue = "";
function lianxiangkeydown() { function lianxiangkeydown() {
clearTimeout(set_Id); clearTimeout(set_Id);
} }
function lianxiangkeyup(ajaxProperties1,ajaxTableName1,ajaxType1,id1,returnDiv1,ajaxValue1) { function lianxiangkeyup(ajaxProperties1,ajaxTableName1,ajaxType1,id1,returnDiv1,ajaxValue1) {
if(parent.document.getElementById("lianxiangStatus").value=="2") if(parent.document.getElementById("lianxiangStatus").value=="2")
{ {
if(jQuery.trim(ajaxValue1)=="") return false; if(jQuery.trim(ajaxValue1)=="") return false;
ajaxProperties = ajaxProperties1; ajaxProperties = ajaxProperties1;
ajaxTableName = ajaxTableName1; ajaxTableName = ajaxTableName1;
ajaxType = ajaxType1; ajaxType = ajaxType1;
id = id1; id = id1;
returnDiv = returnDiv1; returnDiv = returnDiv1;
ajaxValue = ajaxValue1; ajaxValue = ajaxValue1;
clearTimeout(set_Id); clearTimeout(set_Id);
set_Id = setTimeout(ajaxForLianxiang,500); set_Id = setTimeout(ajaxForLianxiang,500);
} }
} }
function ajaxForLianxiang() function ajaxForLianxiang()
{ {
jQuery.post("<%=path%>/sysManage/sysPopedomManage!queryInfoForAjax.do", jQuery.post("<%=path%>/sysManage/sysPopedomManage!queryInfoForAjax.do",
{"ajaxProperties":ajaxProperties,"ajaxTableName":ajaxTableName,"ajaxType":ajaxType,"ajaxValue":ajaxValue},function(data) {"ajaxProperties":ajaxProperties,"ajaxTableName":ajaxTableName,"ajaxType":ajaxType,"ajaxValue":ajaxValue},function(data)
{ {
var lianxiangList = data.split(","); var lianxiangList = data.split(",");
jQuery("#"+id).suggest(lianxiangList,{hot_list:lianxiangList,attachObject:"#"+returnDiv}); jQuery("#"+id).suggest(lianxiangList,{hot_list:lianxiangList,attachObject:"#"+returnDiv});
}); });
} }
jQuery(function(){ jQuery(function(){
$("#info").floatHeaderDiv(); $("#info").floatHeaderDiv();
}) })
</script> </script>
<body> <body>
<form name=form3 id="frmArticleType" <form name=form3 id="frmArticleType"
action="<c:url value='/detection/monitorData.do'/>" method="post"> action="<c:url value='/detection/monitorData.do'/>" method="post">
<table width="99%" align="center" align="center" cellpadding="0" <table width="99%" align="center" align="center" cellpadding="0"
cellspacing="1" class="ta_color"> cellspacing="1" class="ta_color">
<div style="height: 3px; width: 100%; margin: 0px auto; padding: 0px;"></div> <div style="height: 3px; width: 100%; margin: 0px auto; padding: 0px;"></div>
<tr> <tr>
<td colspan="10"> <td colspan="10">
<table width="100%" border="0" cellpadding="0" cellspacing="1" <table width="100%" border="0" cellpadding="0" cellspacing="1"
class="ta_color"> class="ta_color">
<tr class="td_color"> <tr class="td_color">
<jsp:include page="/include/include.jsp"></jsp:include> <jsp:include page="/include/include.jsp"></jsp:include>
</tr> </tr>
<tr align="left"> <tr align="left">
<td height="20" class="td_color" nowrap> <td height="20" class="td_color" nowrap>
<div align="left"> <div align="left">
<span class="STYLE1">&nbsp;&nbsp;i18n_mil.text.hostName_n81i : </span> <span class="STYLE1">&nbsp;&nbsp;i18n_mil.text.hostName_n81i : </span>
</div> </div>
</td> </td>
<td height="20" bgcolor="#FFFFFF" nowrap> <td height="20" bgcolor="#FFFFFF" nowrap>
<div align="left"> <div align="left">
<span class="STYLE1"> &nbsp;&nbsp;<input type="text" <span class="STYLE1"> &nbsp;&nbsp;<input type="text"
id="nodeIp" id="nodeIp"
onkeyup="lianxiangkeyup('nodeIp','NodeTable','String','nodeIp','suggest1',this.value);" onkeyup="lianxiangkeyup('nodeIp','NodeTable','String','nodeIp','suggest1',this.value);"
name="nodeIp" title="i18n_mil.message.hostName_n81i" value="${nodeIp}" size="20" /> name="nodeIp" title="i18n_mil.message.hostName_n81i" value="${nodeIp}" size="20" />
</span> </span>
<div id='suggest1' class="ac_results"></div> <div id='suggest1' class="ac_results"></div>
</div> </div>
</td> </td>
<td height="20" class="td_color" nowrap> <td height="20" class="td_color" nowrap>
<div align="left"> <div align="left">
<span class="STYLE1">&nbsp;&nbsp;i18n_mil.text.checkType_n81i : </span> <span class="STYLE1">&nbsp;&nbsp;i18n_mil.text.checkType_n81i : </span>
</div> </div>
</td> </td>
<td height="20" bgcolor="#FFFFFF" nowrap> <td height="20" bgcolor="#FFFFFF" nowrap>
<div align="left"> <div align="left">
<span class="STYLE1"> <span class="STYLE1">
&nbsp;&nbsp; &nbsp;&nbsp;
<input type="text" id="checkTypeName" <input type="text" id="checkTypeName"
onkeyup="lianxiangkeyup('checkTypeName', 'CheckTypeInfo', 'String', 'checkTypeName','suggest2', this.value);" onkeyup="lianxiangkeyup('checkTypeName', 'CheckTypeInfo', 'String', 'checkTypeName','suggest2', this.value);"
name="checkTypeName" name="checkTypeName"
title="i18n_mil.message.checkType_n81i" title="i18n_mil.message.checkType_n81i"
value="${checkTypeName}" size="20" /> value="${checkTypeName}" size="20" />
</span> </span>
<div id='suggest2' class="ac_results"></div> <div id='suggest2' class="ac_results"></div>
</div> </div>
</td> </td>
<td height="20" class="td_color"> <td height="20" class="td_color">
<div align="center"> <div align="center">
<img src="<c:url value='/desktop/images/anniu/anniu_3${userBgColor }.png'/>" <img src="<c:url value='/desktop/images/anniu/anniu_3${userBgColor }.png'/>"
align="center" onclick="javascript:qry()" align="center" onclick="javascript:qry()"
border="0" /> border="0" />
</div> </div>
</td> </td>
</tr> </tr>
</table> </table>
</td> </td>
</tr> </tr>
<tr> <tr>
<td width="10%" class="td_color" nowrap> <td width="10%" class="td_color" nowrap>
<div align="center"> <div align="center">
<span class="STYLE1">i18n_mil.text.hostName_n81i</span> <span class="STYLE1">i18n_mil.text.hostName_n81i</span>
</div> </div>
</td> </td>
<td width="8%" class="td_color" nowrap> <td width="8%" class="td_color" nowrap>
<div align="center"> <div align="center">
<span class="STYLE1">i18n_mil.text.checkType_n81i</span> <span class="STYLE1">i18n_mil.text.checkType_n81i</span>
</div> </div>
</td> </td>
<td width="8%" class="td_color" nowrap> <td width="8%" class="td_color" nowrap>
<div align="center"> <div align="center">
<span class="STYLE1">i18n_mil.text.processIdenName_n81i</span> <span class="STYLE1">i18n_mil.text.processIdenName_n81i</span>
</div> </div>
</td> </td>
<td width="5%" class="td_color"> <td width="5%" class="td_color">
<div align="center"> <div align="center">
<span class="STYLE1">i18n_mil.text.status_n81i</span> <span class="STYLE1">i18n_mil.text.status_n81i</span>
</div> </div>
</td> </td>
<td width="10%" class="td_color"> <td width="10%" class="td_color">
<div align="center"> <div align="center">
<span class="STYLE1">i18n_mil.text.dataCheckTime_n81i</span> <span class="STYLE1">i18n_mil.text.dataCheckTime_n81i</span>
</div> </div>
</td> </td>
<td width="10%" class="td_color"> <td width="10%" class="td_color">
<div align="center"> <div align="center">
<span class="STYLE1">i18n_mil.text.persistTime_n81i</span> <span class="STYLE1">i18n_mil.text.persistTime_n81i</span>
</div> </div>
</td> </td>
<td width="5%" class="td_color"> <td width="5%" class="td_color">
<div align="center"> <div align="center">
<span class="STYLE1">i18n_mil.text.tryTimes_n81i</span> <span class="STYLE1">i18n_mil.text.tryTimes_n81i</span>
</div> </div>
</td> </td>
<td width="22%" class="td_color"> <td width="22%" class="td_color">
<div align="center"> <div align="center">
<span class="STYLE1">i18n_mil.text.stateInfo_n81i</span> <span class="STYLE1">i18n_mil.text.stateInfo_n81i</span>
</div> </div>
</td> </td>
</tr> </tr>
<c:set var="index" value="${1}" /> <c:set var="index" value="${1}" />
<c:choose> <c:choose>
<c:when test="${fn:length(nodeIpGroupList) > 0}"> <c:when test="${fn:length(nodeIpGroupList) > 0}">
<c:forEach items="${nodeIpGroupList}" var="detecInfoList"> <c:forEach items="${nodeIpGroupList}" var="detecInfoList">
<c:forEach items="${detecInfoList}" var="detecNewInfo" <c:forEach items="${detecInfoList}" var="detecNewInfo"
varStatus="vs"> varStatus="vs">
<c:if test="${vs.index==0}" var="flag"> <c:if test="${vs.index==0}" var="flag">
<tr> <tr>
<td bgcolor="#FFFFFF" rowspan="${fn:length(detecInfoList)}" valign="top"> <td bgcolor="#FFFFFF" rowspan="${fn:length(detecInfoList)}" valign="top">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1"> <span class="STYLE1">
<c:if test="${detecNewInfo.nodeIp != null }">${detecNewInfo.nodeIp}</c:if> <c:if test="${detecNewInfo.nodeIp != null }">${detecNewInfo.nodeIp}</c:if>
<c:if test="${detecNewInfo.nodeIp == null }">&nbsp;</c:if> <c:if test="${detecNewInfo.nodeIp == null }">&nbsp;</c:if>
</span> </span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF"> <td bgcolor="#FFFFFF">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1"> <a <span class="STYLE1"> <a
href="javascript:showRecord('${detecNewInfo.id }')">${detecNewInfo.detectionSetInfo.checkTypeInfo.checkTypeName}</a>&nbsp;&nbsp; href="javascript:showRecord('${detecNewInfo.id }')">${detecNewInfo.detectionSetInfo.checkTypeInfo.checkTypeName}</a>&nbsp;&nbsp;
<a <a
href="javascript:drawPic('${detecNewInfo.detectionSetInfo.checkTypeInfo.id }','${detecNewInfo.detectionSetInfo.id }','${detecNewInfo.nodeIp}')"><img href="javascript:drawPic('${detecNewInfo.detectionSetInfo.checkTypeInfo.id }','${detecNewInfo.detectionSetInfo.id }','${detecNewInfo.nodeIp}')"><img
src="${pageContext.request.contextPath }/img/action.gif" src="${pageContext.request.contextPath }/img/action.gif"
border=0 height="15" width="15" alt=""> </a> </span> border=0 height="15" width="15" alt=""> </a> </span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF"> <td bgcolor="#FFFFFF">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1">${detecNewInfo.detectionSetInfo.processIden}</span> <span class="STYLE1">${detecNewInfo.detectionSetInfo.processIden}</span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF"> <td bgcolor="#FFFFFF">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1"> <span class="STYLE1">
<c:if test="${fn:trim(detecNewInfo.detectionedState)=='1'}"><img src="<c:url value='/desktop/images/desktop/yes.gif'/>" <c:if test="${fn:trim(detecNewInfo.detectionedState)=='1'}"><img src="<c:url value='/desktop/images/desktop/yes.gif'/>"
border="0" align="middle" /></c:if> border="0" align="middle" /></c:if>
<c:if test="${fn:trim(detecNewInfo.detectionedState) ne '1'}"><img src="<c:url value='/desktop/images/desktop/no.gif'/>" <c:if test="${fn:trim(detecNewInfo.detectionedState) ne '1'}"><img src="<c:url value='/desktop/images/desktop/no.gif'/>"
border="0" align="middle" /></c:if> border="0" align="middle" /></c:if>
</span> </span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF"> <td bgcolor="#FFFFFF">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1"><fmt:formatDate value="${detecNewInfo.datacheckTime}" pattern="yyyy-MM-dd HH:mm:ss"/> <span class="STYLE1"><fmt:formatDate value="${detecNewInfo.datacheckTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
</span> </span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF"> <td bgcolor="#FFFFFF">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1">${detecNewInfo.persistTime}</span> <span class="STYLE1">${detecNewInfo.persistTime}</span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF"> <td bgcolor="#FFFFFF">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1">${detecNewInfo.currentTimes}</span> <span class="STYLE1">${detecNewInfo.currentTimes}</span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF"> <td bgcolor="#FFFFFF">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1">${detecNewInfo.detectionStateInfo}</span> <span class="STYLE1">${detecNewInfo.detectionStateInfo}</span>
</div> </div>
</td> </td>
</tr> </tr>
</c:if> </c:if>
<c:if test="${!flag}"> <c:if test="${!flag}">
<tr> <tr>
<!-- <!--
<td bgcolor="#FFFFFF"> <td bgcolor="#FFFFFF">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<input type="checkbox" name="ids" id="ids" <input type="checkbox" name="ids" id="ids"
value="${detecNewInfo.id}" /> value="${detecNewInfo.id}" />
<span class="STYLE1">${index+(pageNo-1)*pageSize}</span> <span class="STYLE1">${index+(pageNo-1)*pageSize}</span>
</div> </div>
</td> </td>
--> -->
<td bgcolor="#FFFFFF"> <td bgcolor="#FFFFFF">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1"> <a <span class="STYLE1"> <a
href="javascript:showRecord('${detecNewInfo.id }')">${detecNewInfo.detectionSetInfo.checkTypeInfo.checkTypeName}</a>&nbsp;&nbsp; href="javascript:showRecord('${detecNewInfo.id }')">${detecNewInfo.detectionSetInfo.checkTypeInfo.checkTypeName}</a>&nbsp;&nbsp;
<a href="javascript:drawPic('${detecNewInfo.detectionSetInfo.checkTypeInfo.id }','${detecNewInfo.detectionSetInfo.id }','${detecNewInfo.nodeIp}')"> <a href="javascript:drawPic('${detecNewInfo.detectionSetInfo.checkTypeInfo.id }','${detecNewInfo.detectionSetInfo.id }','${detecNewInfo.nodeIp}')">
<img src="${pageContext.request.contextPath }/img/action.gif" border=0 height="15" width="15" alt=""> </a> </span> <img src="${pageContext.request.contextPath }/img/action.gif" border=0 height="15" width="15" alt=""> </a> </span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF"> <td bgcolor="#FFFFFF">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1">${detecNewInfo.detectionSetInfo.processIden}</span> <span class="STYLE1">${detecNewInfo.detectionSetInfo.processIden}</span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF"> <td bgcolor="#FFFFFF">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1"> <span class="STYLE1">
<c:if test="${fn:trim(detecNewInfo.detectionedState)=='1'}"><img src="<c:url value='/desktop/images/desktop/yes.gif'/>" <c:if test="${fn:trim(detecNewInfo.detectionedState)=='1'}"><img src="<c:url value='/desktop/images/desktop/yes.gif'/>"
border="0" align="middle" /></c:if> border="0" align="middle" /></c:if>
<c:if test="${fn:trim(detecNewInfo.detectionedState) ne '1'}"><img src="<c:url value='/desktop/images/desktop/no.gif'/>" <c:if test="${fn:trim(detecNewInfo.detectionedState) ne '1'}"><img src="<c:url value='/desktop/images/desktop/no.gif'/>"
border="0" align="middle" /></c:if> border="0" align="middle" /></c:if>
</span> </span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF"> <td bgcolor="#FFFFFF">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1"><fmt:formatDate value="${detecNewInfo.datacheckTime}" pattern="yyyy-MM-dd HH:mm:ss"/></span> <span class="STYLE1"><fmt:formatDate value="${detecNewInfo.datacheckTime}" pattern="yyyy-MM-dd HH:mm:ss"/></span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF"> <td bgcolor="#FFFFFF">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1">${detecNewInfo.persistTime}</span> <span class="STYLE1">${detecNewInfo.persistTime}</span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF"> <td bgcolor="#FFFFFF">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1">${detecNewInfo.currentTimes}</span> <span class="STYLE1">${detecNewInfo.currentTimes}</span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF"> <td bgcolor="#FFFFFF">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1">${detecNewInfo.detectionStateInfo}</span> <span class="STYLE1">${detecNewInfo.detectionStateInfo}</span>
</div> </div>
</td> </td>
</tr> </tr>
</c:if> </c:if>
<c:set var="index" value="${index + 1}" /> <c:set var="index" value="${index + 1}" />
</c:forEach> </c:forEach>
</c:forEach> </c:forEach>
</c:when> </c:when>
<c:otherwise> <c:otherwise>
<tr> <tr>
<td colspan="10" height="20" align="center" class="color_6"> <td colspan="10" height="20" align="center" class="color_6">
i18n_mil.text.noRecord_n81i i18n_mil.text.noRecord_n81i
</td> </td>
</tr> </tr>
</c:otherwise> </c:otherwise>
</c:choose> </c:choose>
<tr> <tr>
<td height="20" colspan="10" class="td_color"> <td height="20" colspan="10" class="td_color">
<jsp:include page="/common/page.jsp" /></td> <jsp:include page="/common/page.jsp" /></td>
</tr> </tr>
</table> </table>
</form> </form>
<br /> <br />
</body> </body>
</html> </html>

File diff suppressed because it is too large Load Diff

View File

@@ -1,286 +1,286 @@
<%@ page language="java" pageEncoding="utf-8"%> <%@ page language="java" pageEncoding="utf-8"%>
<%@include file="/common/taglib.jsp"%> <%@include file="/common/taglib.jsp"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":" String basePath = request.getScheme() + "://" + request.getServerName() + ":"
+ request.getServerPort() + path + "/"; + request.getServerPort() + path + "/";
request.setAttribute("vEnter","\n"); request.setAttribute("vEnter","\n");
%> %>
<c:set var="index" value="${1}" /> <c:set var="index" value="${1}" />
<c:choose> <c:choose>
<c:when test="${fn:length(nodeIpGroupListNew) > 0}"> <c:when test="${fn:length(nodeIpGroupListNew) > 0}">
<c:forEach items="${nodeIpGroupListNew}" var="detecInfoList"> <c:forEach items="${nodeIpGroupListNew}" var="detecInfoList">
<c:forEach items="${detecInfoList}" var="rowData" varStatus="vs"> <c:forEach items="${detecInfoList}" var="rowData" varStatus="vs">
<c:if test="${vs.index==0}" var="flag"> <c:if test="${vs.index==0}" var="flag">
<tr> <tr>
<c:forEach items="${rowData}" var="cellData" varStatus="ind" <c:forEach items="${rowData}" var="cellData" varStatus="ind"
begin="1" end="8"> begin="1" end="8">
<c:set var="dniId" value="${rowData[0] }" /> <c:set var="dniId" value="${rowData[0] }" />
<c:set var="ctiId" value="${rowData[11] }" /> <c:set var="ctiId" value="${rowData[11] }" />
<c:set var="dsiId" value="${rowData[10] }" /> <c:set var="dsiId" value="${rowData[10] }" />
<c:set var="nodeIp" value="${rowData[1] }" /> <c:set var="nodeIp" value="${rowData[1] }" />
<c:set var="sqId" value="${rowData[12] }" /> <c:set var="sqId" value="${rowData[12] }" />
<c:set var="nodeSysType" value="${rowData[13] }" /> <c:set var="nodeSysType" value="${rowData[13] }" />
<c:set var="charStateNum" value="${rowData[14] }" /> <c:set var="charStateNum" value="${rowData[14] }" />
<c:set var="nodeType" value="${rowData[15] }" /> <c:set var="nodeType" value="${rowData[15] }" />
<c:set var="status" value="${rowData[4] }" /> <c:set var="status" value="${rowData[4] }" />
<c:choose> <c:choose>
<c:when test="${ind.index eq 1}"> <c:when test="${ind.index eq 1}">
<td class="color_1_1" rowspan="${fn:length(detecInfoList)}" <td class="color_1_1" rowspan="${fn:length(detecInfoList)}"
valign="top"> valign="top">
<!-- 2、 调用JS此处远程连接调用JS在/common/remoteConn.jsp中 --> <!-- 2、 调用JS此处远程连接调用JS在/common/remoteConn.jsp中 -->
<a <a
href="javascript:void(0);" href="javascript:void(0);"
onclick="remoteConn('${nodeSysType }','${cellData}','${nodeType }', this)"><c:out onclick="remoteConn('${nodeSysType }','${cellData}','${nodeType }', this)"><c:out
value="${cellData}" default="" /> </a> value="${cellData}" default="" /> </a>
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 2}"> <c:when test="${ind.index eq 2}">
<td class="color_1_1"> <td class="color_1_1">
<c:if test="${cellData == 'i18n_milnc.message.handshake_n81i'}"> <c:if test="${cellData == 'i18n_milnc.message.handshake_n81i'}">
<c:set var="handshake" value="true" /> <c:set var="handshake" value="true" />
</c:if> </c:if>
<a href="javascript:showRecord('${dniId }','${ctiId }')" <a href="javascript:showRecord('${dniId }','${ctiId }')"
title="i18n_milnc.message.showRecord_n81i"> <c:out value="${cellData}" default="" /> </a>&nbsp; title="i18n_milnc.message.showRecord_n81i"> <c:out value="${cellData}" default="" /> </a>&nbsp;
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 3}"> <c:when test="${ind.index eq 3}">
<td class="color_1_1"> <td class="color_1_1">
<a href="javascript:showDetectionInfo('${dsiId }','${sqId }')" <a href="javascript:showDetectionInfo('${dsiId }','${sqId }')"
title="i18n_milnc.message.showDetectionInfo_n81i"> <c:out value="${cellData}" default="" /> </a>&nbsp; title="i18n_milnc.message.showDetectionInfo_n81i"> <c:out value="${cellData}" default="" /> </a>&nbsp;
<c:if test="${charStateNum>0}"> <c:if test="${charStateNum>0}">
<a <a
href="javascript:drawPic('${ctiId }','${dsiId }','${sqId }')"> href="javascript:drawPic('${ctiId }','${dsiId }','${sqId }')">
<img <img
src="${pageContext.request.contextPath }/images/action.png" src="${pageContext.request.contextPath }/images/action.png"
border=0 height="15" width="15" alt="" title="i18n_milnc.message.drawPic_n81i" /> </a> border=0 height="15" width="15" alt="" title="i18n_milnc.message.drawPic_n81i" /> </a>
</c:if> </c:if>
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 4}"> <c:when test="${ind.index eq 4}">
<td class="color_1_1"> <td class="color_1_1">
<c:if test="${fn:trim(cellData)=='1'}"> <c:if test="${fn:trim(cellData)=='1'}">
<img src="<c:url value='/images/yes.gif'/>" border="0" <img src="<c:url value='/images/yes.gif'/>" border="0"
align="middle" /> align="middle" />
</c:if> </c:if>
<c:if <c:if
test="${fn:trim(cellData) == '0' ||fn:trim(cellData) == '-1'}" test="${fn:trim(cellData) == '0' ||fn:trim(cellData) == '-1'}"
var="handshakeEr"> var="handshakeEr">
<img src="<c:url value='/images/no.gif'/>" border="0" <img src="<c:url value='/images/no.gif'/>" border="0"
align="middle" /> align="middle" />
</c:if> </c:if>
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 5}"> <c:when test="${ind.index eq 5}">
<td class="color_1_1"> <td class="color_1_1">
<c:out value="${cellData}" default="" /> <c:out value="${cellData}" default="" />
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 6}"> <c:when test="${ind.index eq 6}">
<td class="color_1_1" nowrap="nowrap"> <td class="color_1_1" nowrap="nowrap">
<c:if test="${status !='3'}"> <c:if test="${status !='3'}">
<c:out value="${cellData}" default="" /> <c:out value="${cellData}" default="" />
</c:if> </c:if>
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 8}"> <c:when test="${ind.index eq 8}">
<c:set value="${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set> <c:set value="${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set>
<td class="color_7_1" > <td class="color_7_1" >
<c:set value="${fn:replace(fn:replace(cellData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set> <c:set value="${fn:replace(fn:replace(cellData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set>
<span class="prop" data-temp="${stateInfoParam}"<%-- onmouseover="showTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}',this,event);" onmouseout="hideTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}');" --%> > <span class="prop" data-temp="${stateInfoParam}"<%-- onmouseover="showTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}',this,event);" onmouseout="hideTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}');" --%> >
<%-- <c:if test="${fn:length(stateInfo) >= 50}"> <%-- <c:if test="${fn:length(stateInfo) >= 50}">
${fn:substring(stateInfo,0,50)}... ${fn:substring(stateInfo,0,50)}...
</c:if> </c:if>
<c:if test="${fn:length(stateInfo) < 50}"> <c:if test="${fn:length(stateInfo) < 50}">
${stateInfo} ${stateInfo}
</c:if> --%> </c:if> --%>
<span class="stateInfoVal">${stateInfo}</span> <span class="stateInfoVal">${stateInfo}</span>
<%-- <span id="infoTipSpan_${sqId}_${ctiId}_${dsiId}" class="infoTip" style="display:none;">${stateInfoParam}</span> --%> <%-- <span id="infoTipSpan_${sqId}_${ctiId}_${dsiId}" class="infoTip" style="display:none;">${stateInfoParam}</span> --%>
</span> </span>
</td> </td>
</c:when> </c:when>
<c:otherwise> <c:otherwise>
<td class="color_1_1"> <td class="color_1_1">
<span class="STYLE1" style="word-break: break-all"> <span class="STYLE1" style="word-break: break-all">
${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')} </span> ${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')} </span>
</td> </td>
</c:otherwise> </c:otherwise>
</c:choose> </c:choose>
</c:forEach> </c:forEach>
</tr> </tr>
</c:if> </c:if>
<c:if test="${!flag}"> <c:if test="${!flag}">
<tr> <tr>
<c:forEach items="${rowData}" var="cellData" varStatus="ind" <c:forEach items="${rowData}" var="cellData" varStatus="ind"
begin="1" end="8"> begin="1" end="8">
<c:set var="dniId" value="${rowData[0] }" /> <c:set var="dniId" value="${rowData[0] }" />
<c:set var="ctiId" value="${rowData[11] }" /> <c:set var="ctiId" value="${rowData[11] }" />
<c:set var="dsiId" value="${rowData[10] }" /> <c:set var="dsiId" value="${rowData[10] }" />
<c:set var="nodeIp" value="${rowData[1] }" /> <c:set var="nodeIp" value="${rowData[1] }" />
<c:set var="sqId" value="${rowData[12] }" /> <c:set var="sqId" value="${rowData[12] }" />
<c:set var="charStateNum" value="${rowData[14] }" /> <c:set var="charStateNum" value="${rowData[14] }" />
<c:set var="status" value="${rowData[4] }" /> <c:set var="status" value="${rowData[4] }" />
<c:choose> <c:choose>
<c:when test="${ind.index eq 1}"> <c:when test="${ind.index eq 1}">
</c:when> </c:when>
<c:when test="${ind.index eq 2}"> <c:when test="${ind.index eq 2}">
<td class="color_1_1"> <td class="color_1_1">
<a href="javascript:showRecord('${dniId }','${ctiId }')" <a href="javascript:showRecord('${dniId }','${ctiId }')"
title="i18n_milnc.message.showRecord_n81i"> <c:out value="${cellData}" default="" /> </a>&nbsp; title="i18n_milnc.message.showRecord_n81i"> <c:out value="${cellData}" default="" /> </a>&nbsp;
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 3}"> <c:when test="${ind.index eq 3}">
<td class="color_1_1"> <td class="color_1_1">
<a href="javascript:showDetectionInfo('${dsiId }','${sqId }')" <a href="javascript:showDetectionInfo('${dsiId }','${sqId }')"
title="i18n_milnc.message.showDetectionInfo_n81i"> <c:out value="${cellData}" default="" /> </a>&nbsp; title="i18n_milnc.message.showDetectionInfo_n81i"> <c:out value="${cellData}" default="" /> </a>&nbsp;
<c:if test="${charStateNum>0}"> <c:if test="${charStateNum>0}">
<a <a
href="javascript:drawPic('${ctiId }','${dsiId }','${sqId }')"> href="javascript:drawPic('${ctiId }','${dsiId }','${sqId }')">
<img <img
src="${pageContext.request.contextPath }/images/action.png" src="${pageContext.request.contextPath }/images/action.png"
border=0 height="15" width="15" alt="" title="i18n_milnc.message.drawPic_n81i" /> </a> border=0 height="15" width="15" alt="" title="i18n_milnc.message.drawPic_n81i" /> </a>
</c:if> </c:if>
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 4}"> <c:when test="${ind.index eq 4}">
<td class="color_1_1"> <td class="color_1_1">
<c:if test="${!handshakeEr}"> <c:if test="${!handshakeEr}">
<c:if test="${fn:trim(cellData)=='1'}"> <c:if test="${fn:trim(cellData)=='1'}">
<img src="<c:url value='/images/yes.gif'/>" border="0" <img src="<c:url value='/images/yes.gif'/>" border="0"
align="middle" /> align="middle" />
</c:if> </c:if>
<c:if <c:if
test="${fn:trim(cellData) == '0' || fn:trim(cellData) == '-1'}"> test="${fn:trim(cellData) == '0' || fn:trim(cellData) == '-1'}">
<img src="<c:url value='/images/no.gif'/>" border="0" <img src="<c:url value='/images/no.gif'/>" border="0"
align="middle" /> align="middle" />
</c:if> </c:if>
</c:if> </c:if>
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 5}"> <c:when test="${ind.index eq 5}">
<td class="color_1_1" nowrap="nowrap"> <td class="color_1_1" nowrap="nowrap">
<c:out value="${cellData}" default="" /> <c:out value="${cellData}" default="" />
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 6}"> <c:when test="${ind.index eq 6}">
<td class="color_1_1" nowrap="nowrap"> <td class="color_1_1" nowrap="nowrap">
<c:if test="${!handshakeEr && status !='3'}"> <c:if test="${!handshakeEr && status !='3'}">
<c:out value="${cellData}" default="" /> <c:out value="${cellData}" default="" />
</c:if> </c:if>
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 8}"> <c:when test="${ind.index eq 8}">
<c:set value="${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set> <c:set value="${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set>
<td class="color_7_1" > <td class="color_7_1" >
<c:set value="${fn:replace(fn:replace(cellData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set> <c:set value="${fn:replace(fn:replace(cellData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set>
<span onmouseover="showTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}',this,event);" onmouseout="hideTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}');" > <span onmouseover="showTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}',this,event);" onmouseout="hideTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}');" >
<%-- <c:if test="${fn:length(stateInfo) >= 50}"> <%-- <c:if test="${fn:length(stateInfo) >= 50}">
${fn:substring(stateInfo,0,50)}... ${fn:substring(stateInfo,0,50)}...
</c:if> </c:if>
<c:if test="${fn:length(stateInfo) < 50}"> <c:if test="${fn:length(stateInfo) < 50}">
${stateInfo} ${stateInfo}
</c:if> --%> </c:if> --%>
<span class="stateInfoVal">${stateInfo}</span> <span class="stateInfoVal">${stateInfo}</span>
<span id="infoTipSpan_${sqId}_${ctiId}_${dsiId}" class="infoTip" style="display:none;">${stateInfoParam}</span> <span id="infoTipSpan_${sqId}_${ctiId}_${dsiId}" class="infoTip" style="display:none;">${stateInfoParam}</span>
</span> </span>
</td> </td>
</c:when> </c:when>
<c:otherwise> <c:otherwise>
<td class="color_1_1"> <td class="color_1_1">
${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')} ${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}
</td> </td>
</c:otherwise> </c:otherwise>
</c:choose> </c:choose>
</c:forEach> </c:forEach>
</tr> </tr>
</c:if> </c:if>
</c:forEach> </c:forEach>
</c:forEach> </c:forEach>
</c:when> </c:when>
</c:choose> </c:choose>
<script type="text/javascript" > <script type="text/javascript" >
/*--------------控制表格输出长度--------------------*/ /*--------------控制表格输出长度--------------------*/
$(function(){ $(function(){
$(".prop").each(function(){ $(".prop").each(function(){
var obj = $(this); var obj = $(this);
var tx = document.body.clientWidth; //文档的可见长宽 var tx = document.body.clientWidth; //文档的可见长宽
var ty = document.body.clientHeight; var ty = document.body.clientHeight;
$(obj).on("mouseenter",function(event){ $(obj).on("mouseenter",function(event){
event = event ? event : window.event; event = event ? event : window.event;
$(".popover").remove(); $(".popover").remove();
var x = event.clientX;//鼠标位置 var x = event.clientX;//鼠标位置
var y = event.clientY; var y = event.clientY;
//alert(tx + "," + ty + "," + x + "," + y); //alert(tx + "," + ty + "," + x + "," + y);
if (y < ty/2) { if (y < ty/2) {
var placement = "bottom"; var placement = "bottom";
} else { } else {
var placement = "top"; var placement = "top";
} }
$(obj).popover({ $(obj).popover({
html:true, html:true,
content:"<div class='pop-content'><div style='margin-right:15px'>" + $(this).attr("data-temp") + "</div></div>", content:"<div class='pop-content'><div style='margin-right:15px'>" + $(this).attr("data-temp") + "</div></div>",
placement:placement placement:placement
}); });
$(obj).popover("show"); $(obj).popover("show");
const ps = new PerfectScrollbar('.pop-content'); const ps = new PerfectScrollbar('.pop-content');
//修复因浏览器兼容性导致的弹出框位置不对的问题 //修复因浏览器兼容性导致的弹出框位置不对的问题
var pop = document.getElementsByClassName("popover")[0]; //弹出层的信息 var pop = document.getElementsByClassName("popover")[0]; //弹出层的信息
var popx1 = pop.offsetLeft; var popx1 = pop.offsetLeft;
var popy1 = pop.offsetTop; var popy1 = pop.offsetTop;
var popx2 = pop.offsetLeft + pop.offsetWidth; var popx2 = pop.offsetLeft + pop.offsetWidth;
var popy2 = pop.offsetTop + pop.offsetHeight; var popy2 = pop.offsetTop + pop.offsetHeight;
var propy1 = $(obj).offset().top; var propy1 = $(obj).offset().top;
var propy2 = $(obj).offset().top + $(obj).height(); var propy2 = $(obj).offset().top + $(obj).height();
if (placement == "top") { if (placement == "top") {
if (propy1 < popy2) { if (propy1 < popy2) {
$(pop).css("top", propy1 - 3); $(pop).css("top", propy1 - 3);
} }
} else if (placement == "bottom") { } else if (placement == "bottom") {
if (propy2 > popy1) { if (propy2 > popy1) {
$(pop).css("top", propy2 + 3); $(pop).css("top", propy2 + 3);
} }
} }
}).on("mouseleave",function(event){ }).on("mouseleave",function(event){
event = event ? event : window.event; event = event ? event : window.event;
var pop = document.getElementsByClassName("popover")[0]; //弹出层的信息 var pop = document.getElementsByClassName("popover")[0]; //弹出层的信息
var popx1 = pop.offsetLeft; var popx1 = pop.offsetLeft;
var popy1 = pop.offsetTop; var popy1 = pop.offsetTop;
var popx2 = pop.offsetLeft + pop.offsetWidth; var popx2 = pop.offsetLeft + pop.offsetWidth;
var popy2 = pop.offsetTop + pop.offsetHeight; var popy2 = pop.offsetTop + pop.offsetHeight;
//var popChild = $(obj).find(".stateInfoVal")[0]; //td中的span //var popChild = $(obj).find(".stateInfoVal")[0]; //td中的span
//var popChildyHeight = popChild.offsetHeight; //var popChildyHeight = popChild.offsetHeight;
var x = event.clientX; //鼠标位置 var x = event.clientX; //鼠标位置
var y = event.clientY; var y = event.clientY;
if (y < ty/2) { if (y < ty/2) {
var extraTop = 3; var extraTop = 3;
var extraBottom = 0; var extraBottom = 0;
} else { } else {
var extraTop = 0; var extraTop = 0;
var extraBottom = 3; var extraBottom = 3;
} }
if (x < popx1 || x > popx2 || y < (popy1 - extraTop) || y > (popy2 + extraBottom)) { if (x < popx1 || x > popx2 || y < (popy1 - extraTop) || y > (popy2 + extraBottom)) {
$(obj).popover("hide"); $(obj).popover("hide");
} else { } else {
$(pop).on("mouseleave",function(event){ $(pop).on("mouseleave",function(event){
$(obj).popover("hide"); $(obj).popover("hide");
}); });
} }
}); });
}); });
var stateInfos=$(".stateInfoVal"); var stateInfos=$(".stateInfoVal");
for(var i=0;i<stateInfos.length;i++){ for(var i=0;i<stateInfos.length;i++){
var infoVal=$(stateInfos[i]).text().trim(); var infoVal=$(stateInfos[i]).text().trim();
if(infoVal.length>50){ if(infoVal.length>50){
$(stateInfos[i]).text(infoVal.substring(0,50)).append("..."); $(stateInfos[i]).text(infoVal.substring(0,50)).append("...");
}else{ }else{
$(stateInfos[i]).text(infoVal); $(stateInfos[i]).text(infoVal);
} }
} }
}); });
</script> </script>

File diff suppressed because it is too large Load Diff

View File

@@ -1,193 +1,193 @@
<%@ page language="java" pageEncoding="utf-8"%> <%@ page language="java" pageEncoding="utf-8"%>
<%@include file="/common/taglib.jsp"%> <%@include file="/common/taglib.jsp"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
request.setAttribute("vEnter","\n"); request.setAttribute("vEnter","\n");
%> %>
<c:set var="index" value="${1}" /> <c:set var="index" value="${1}" />
<c:choose> <c:choose>
<c:when test="${fn:length(nodeIpGroupListNew) > 0}"> <c:when test="${fn:length(nodeIpGroupListNew) > 0}">
<c:forEach items="${nodeIpGroupListNew}" var="detecInfoList"> <c:forEach items="${nodeIpGroupListNew}" var="detecInfoList">
<c:forEach items="${detecInfoList}" var="rowData" varStatus="vs"> <c:forEach items="${detecInfoList}" var="rowData" varStatus="vs">
<c:if test="${vs.index==0}" var="flag"> <c:if test="${vs.index==0}" var="flag">
<tr> <tr>
<c:forEach items="${rowData}" var="cellData" varStatus="ind" <c:forEach items="${rowData}" var="cellData" varStatus="ind"
begin="2" end="9"> begin="2" end="9">
<c:set var="dniId" value="${rowData[1] }" /> <c:set var="dniId" value="${rowData[1] }" />
<c:set var="ctiId" value="${rowData[12] }" /> <c:set var="ctiId" value="${rowData[12] }" />
<c:set var="dsiId" value="${rowData[11] }" /> <c:set var="dsiId" value="${rowData[11] }" />
<c:set var="nodeIp" value="${rowData[2] }" /> <c:set var="nodeIp" value="${rowData[2] }" />
<c:set var="sqId" value="${rowData[13] }" /> <c:set var="sqId" value="${rowData[13] }" />
<c:set var="nodeSysType" value="${rowData[14] }" /> <c:set var="nodeSysType" value="${rowData[14] }" />
<c:set var="charStateNum" value="${rowData[15] }" /> <c:set var="charStateNum" value="${rowData[15] }" />
<c:set var="nodeType" value="${rowData[16] }" /> <c:set var="nodeType" value="${rowData[16] }" />
<c:choose> <c:choose>
<c:when test="${ind.index eq 2}"> <c:when test="${ind.index eq 2}">
<td class="color_1_1" rowspan="${fn:length(detecInfoList)}" <td class="color_1_1" rowspan="${fn:length(detecInfoList)}"
valign="top"> valign="top">
<!-- 2、 调用JS此处远程连接调用JS在/common/remoteConn.jsp中 --> <!-- 2、 调用JS此处远程连接调用JS在/common/remoteConn.jsp中 -->
<a <a
href="javascript:void(0);" href="javascript:void(0);"
onclick="remoteConn('${nodeSysType }','${cellData}','${nodeType }', this)"><c:out onclick="remoteConn('${nodeSysType }','${cellData}','${nodeType }', this)"><c:out
value="${cellData}" default="" /> </a> value="${cellData}" default="" /> </a>
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 3}"> <c:when test="${ind.index eq 3}">
<td class="color_1_1"> <td class="color_1_1">
<a href="javascript:showRecord('${dniId }','${ctiId }')"> <a href="javascript:showRecord('${dniId }','${ctiId }')">
<c:out value="${cellData}" default="" /> </a>&nbsp; <c:out value="${cellData}" default="" /> </a>&nbsp;
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 4}"> <c:when test="${ind.index eq 4}">
<td class="color_1_1"> <td class="color_1_1">
<c:out value="${cellData}" default="" /> <c:out value="${cellData}" default="" />
<c:if test="${charStateNum>0}"> <c:if test="${charStateNum>0}">
<a <a
href="javascript:drawPic('${ctiId }','${dsiId }','${sqId }')"> href="javascript:drawPic('${ctiId }','${dsiId }','${sqId }')">
<img <img
src="${pageContext.request.contextPath }/images/action.png" src="${pageContext.request.contextPath }/images/action.png"
border=0 height="15" width="15" alt="" /> </a> border=0 height="15" width="15" alt="" /> </a>
</c:if> </c:if>
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 5}"> <c:when test="${ind.index eq 5}">
<td class="color_1_1"> <td class="color_1_1">
<c:if test="${fn:trim(cellData)=='1'}"> <c:if test="${fn:trim(cellData)=='1'}">
<img src="<c:url value='/images/yes.gif'/>" border="0" <img src="<c:url value='/images/yes.gif'/>" border="0"
align="middle" /> align="middle" />
</c:if> </c:if>
<c:if test="${fn:trim(cellData) ne '1'}"> <c:if test="${fn:trim(cellData) ne '1'}">
<img src="<c:url value='/images/no.gif'/>" border="0" <img src="<c:url value='/images/no.gif'/>" border="0"
align="middle" /> align="middle" />
</c:if> </c:if>
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 6}"> <c:when test="${ind.index eq 6}">
<td class="color_1_1"> <td class="color_1_1">
<c:out value="${cellData}" default="" /> <c:out value="${cellData}" default="" />
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 9}"> <c:when test="${ind.index eq 9}">
<c:set value="${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set> <c:set value="${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set>
<td class="color_7_1" > <td class="color_7_1" >
<c:set value="${fn:replace(fn:replace(cellData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set> <c:set value="${fn:replace(fn:replace(cellData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set>
<span onmouseover="showTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}',this);" onmouseout="hideTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}');" > <span onmouseover="showTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}',this);" onmouseout="hideTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}');" >
<%-- <c:if test="${fn:length(stateInfo) >= 50}"> <%-- <c:if test="${fn:length(stateInfo) >= 50}">
${fn:substring(stateInfo,0,50)}... ${fn:substring(stateInfo,0,50)}...
</c:if> </c:if>
<c:if test="${fn:length(stateInfo) < 50}"> <c:if test="${fn:length(stateInfo) < 50}">
${stateInfo} ${stateInfo}
</c:if> --%> </c:if> --%>
<span class="stateInfoVal">${stateInfo}</span> <span class="stateInfoVal">${stateInfo}</span>
<span id="infoTipSpan_${sqId}_${ctiId}_${dsiId}" class="infoTip" style="display:none;">${stateInfoParam}</span> <span id="infoTipSpan_${sqId}_${ctiId}_${dsiId}" class="infoTip" style="display:none;">${stateInfoParam}</span>
</span> </span>
</td> </td>
</c:when> </c:when>
<c:otherwise> <c:otherwise>
<td class="color_1_1"> <td class="color_1_1">
<span class="STYLE1" style="word-break: break-all"> <span class="STYLE1" style="word-break: break-all">
${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')} </span> ${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')} </span>
</td> </td>
</c:otherwise> </c:otherwise>
</c:choose> </c:choose>
</c:forEach> </c:forEach>
</tr> </tr>
</c:if> </c:if>
<c:if test="${!flag}"> <c:if test="${!flag}">
<tr> <tr>
<c:forEach items="${rowData}" var="cellData" varStatus="ind" <c:forEach items="${rowData}" var="cellData" varStatus="ind"
begin="2" end="9"> begin="2" end="9">
<c:set var="dniId" value="${rowData[1] }" /> <c:set var="dniId" value="${rowData[1] }" />
<c:set var="ctiId" value="${rowData[12] }" /> <c:set var="ctiId" value="${rowData[12] }" />
<c:set var="dsiId" value="${rowData[11] }" /> <c:set var="dsiId" value="${rowData[11] }" />
<c:set var="nodeIp" value="${rowData[2] }" /> <c:set var="nodeIp" value="${rowData[2] }" />
<c:set var="sqId" value="${rowData[13] }" /> <c:set var="sqId" value="${rowData[13] }" />
<c:set var="charStateNum" value="${rowData[15] }" /> <c:set var="charStateNum" value="${rowData[15] }" />
<c:choose> <c:choose>
<c:when test="${ind.index eq 2}"> <c:when test="${ind.index eq 2}">
</c:when> </c:when>
<c:when test="${ind.index eq 3}"> <c:when test="${ind.index eq 3}">
<td class="color_1_1"> <td class="color_1_1">
<a href="javascript:showRecord('${dniId }','${ctiId }')"> <a href="javascript:showRecord('${dniId }','${ctiId }')">
<c:out value="${cellData}" default="" /> </a>&nbsp; <c:out value="${cellData}" default="" /> </a>&nbsp;
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 4}"> <c:when test="${ind.index eq 4}">
<td class="color_1_1"> <td class="color_1_1">
<c:out value="${cellData}" default="" /> <c:out value="${cellData}" default="" />
<c:if test="${charStateNum>0}"> <c:if test="${charStateNum>0}">
<a <a
href="javascript:drawPic('${ctiId }','${dsiId }','${sqId }')"> href="javascript:drawPic('${ctiId }','${dsiId }','${sqId }')">
<img <img
src="${pageContext.request.contextPath }/images/action.png" src="${pageContext.request.contextPath }/images/action.png"
border=0 height="15" width="15" alt="" /> </a> border=0 height="15" width="15" alt="" /> </a>
</c:if> </c:if>
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 5}"> <c:when test="${ind.index eq 5}">
<td class="color_1_1"> <td class="color_1_1">
<c:if test="${fn:trim(cellData)=='1'}"> <c:if test="${fn:trim(cellData)=='1'}">
<img src="<c:url value='/images/yes.gif'/>" border="0" <img src="<c:url value='/images/yes.gif'/>" border="0"
align="middle" /> align="middle" />
</c:if> </c:if>
<c:if test="${fn:trim(cellData) ne '1'}"> <c:if test="${fn:trim(cellData) ne '1'}">
<img src="<c:url value='/images/no.gif'/>" border="0" <img src="<c:url value='/images/no.gif'/>" border="0"
align="middle" /> align="middle" />
</c:if> </c:if>
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 6}"> <c:when test="${ind.index eq 6}">
<td class="color_1_1" nowrap="nowrap"> <td class="color_1_1" nowrap="nowrap">
<c:out value="${cellData}" default="" /> <c:out value="${cellData}" default="" />
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 9}"> <c:when test="${ind.index eq 9}">
<c:set value="${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set> <c:set value="${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set>
<td class="color_7_1" > <td class="color_7_1" >
<c:set value="${fn:replace(fn:replace(cellData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set> <c:set value="${fn:replace(fn:replace(cellData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set>
<span onmouseover="showTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}',this);" onmouseout="hideTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}');" > <span onmouseover="showTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}',this);" onmouseout="hideTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}');" >
<%-- <c:if test="${fn:length(stateInfo) >= 50}"> <%-- <c:if test="${fn:length(stateInfo) >= 50}">
${fn:substring(stateInfo,0,50)}... ${fn:substring(stateInfo,0,50)}...
</c:if> </c:if>
<c:if test="${fn:length(stateInfo) < 50}"> <c:if test="${fn:length(stateInfo) < 50}">
${stateInfo} ${stateInfo}
</c:if> --%> </c:if> --%>
<span class="stateInfoVal">${stateInfo}</span> <span class="stateInfoVal">${stateInfo}</span>
<span id="infoTipSpan_${sqId}_${ctiId}_${dsiId}" class="infoTip" style="display:none;">${stateInfoParam}</span> <span id="infoTipSpan_${sqId}_${ctiId}_${dsiId}" class="infoTip" style="display:none;">${stateInfoParam}</span>
</span> </span>
</td> </td>
</c:when> </c:when>
<c:otherwise> <c:otherwise>
<td class="color_1_1"> <td class="color_1_1">
${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')} ${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}
</td> </td>
</c:otherwise> </c:otherwise>
</c:choose> </c:choose>
</c:forEach> </c:forEach>
</tr> </tr>
</c:if> </c:if>
</c:forEach> </c:forEach>
</c:forEach> </c:forEach>
</c:when> </c:when>
</c:choose> </c:choose>
<script type="text/javascript" > <script type="text/javascript" >
/*--------------控制表格输出长度--------------------*/ /*--------------控制表格输出长度--------------------*/
$(function(){ $(function(){
var stateInfos=$(".stateInfoVal"); var stateInfos=$(".stateInfoVal");
for(var i=0;i<stateInfos.length;i++){ for(var i=0;i<stateInfos.length;i++){
var infoVal=$(stateInfos[i]).text().trim(); var infoVal=$(stateInfos[i]).text().trim();
if(infoVal.length>50){ if(infoVal.length>50){
$(stateInfos[i]).text(infoVal.substring(0,50)).append("..."); $(stateInfos[i]).text(infoVal.substring(0,50)).append("...");
}else{ }else{
$(stateInfos[i]).text(infoVal); $(stateInfos[i]).text(infoVal);
} }
} }
}); });
</script> </script>

File diff suppressed because it is too large Load Diff

View File

@@ -1,286 +1,286 @@
<%@ page language="java" pageEncoding="utf-8"%> <%@ page language="java" pageEncoding="utf-8"%>
<%@include file="/common/taglib.jsp"%> <%@include file="/common/taglib.jsp"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":" String basePath = request.getScheme() + "://" + request.getServerName() + ":"
+ request.getServerPort() + path + "/"; + request.getServerPort() + path + "/";
request.setAttribute("vEnter","\n"); request.setAttribute("vEnter","\n");
%> %>
<c:set var="index" value="${1}" /> <c:set var="index" value="${1}" />
<c:choose> <c:choose>
<c:when test="${fn:length(nodeIpGroupListNew) > 0}"> <c:when test="${fn:length(nodeIpGroupListNew) > 0}">
<c:forEach items="${nodeIpGroupListNew}" var="detecInfoList"> <c:forEach items="${nodeIpGroupListNew}" var="detecInfoList">
<c:forEach items="${detecInfoList}" var="rowData" varStatus="vs"> <c:forEach items="${detecInfoList}" var="rowData" varStatus="vs">
<c:if test="${vs.index==0}" var="flag"> <c:if test="${vs.index==0}" var="flag">
<tr> <tr>
<c:forEach items="${rowData}" var="cellData" varStatus="ind" <c:forEach items="${rowData}" var="cellData" varStatus="ind"
begin="1" end="8"> begin="1" end="8">
<c:set var="dniId" value="${rowData[0] }" /> <c:set var="dniId" value="${rowData[0] }" />
<c:set var="ctiId" value="${rowData[11] }" /> <c:set var="ctiId" value="${rowData[11] }" />
<c:set var="dsiId" value="${rowData[10] }" /> <c:set var="dsiId" value="${rowData[10] }" />
<c:set var="nodeIp" value="${rowData[1] }" /> <c:set var="nodeIp" value="${rowData[1] }" />
<c:set var="sqId" value="${rowData[12] }" /> <c:set var="sqId" value="${rowData[12] }" />
<c:set var="nodeSysType" value="${rowData[13] }" /> <c:set var="nodeSysType" value="${rowData[13] }" />
<c:set var="charStateNum" value="${rowData[14] }" /> <c:set var="charStateNum" value="${rowData[14] }" />
<c:set var="nodeType" value="${rowData[15] }" /> <c:set var="nodeType" value="${rowData[15] }" />
<c:set var="status" value="${rowData[4] }" /> <c:set var="status" value="${rowData[4] }" />
<c:choose> <c:choose>
<c:when test="${ind.index eq 1}"> <c:when test="${ind.index eq 1}">
<td class="color_1_1" rowspan="${fn:length(detecInfoList)}" <td class="color_1_1" rowspan="${fn:length(detecInfoList)}"
valign="top"> valign="top">
<!-- 2、 调用JS此处远程连接调用JS在/common/remoteConn.jsp中 --> <!-- 2、 调用JS此处远程连接调用JS在/common/remoteConn.jsp中 -->
<a <a
href="javascript:void(0);" href="javascript:void(0);"
onclick="remoteConn('${nodeSysType }','${cellData}','${nodeType }', this)"><c:out onclick="remoteConn('${nodeSysType }','${cellData}','${nodeType }', this)"><c:out
value="${cellData}" default="" /> </a> value="${cellData}" default="" /> </a>
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 2}"> <c:when test="${ind.index eq 2}">
<td class="color_1_1"> <td class="color_1_1">
<c:if test="${cellData == 'i18n_mnelc.message.handshake_n81i'}"> <c:if test="${cellData == 'i18n_mnelc.message.handshake_n81i'}">
<c:set var="handshake" value="true" /> <c:set var="handshake" value="true" />
</c:if> </c:if>
<a href="javascript:showRecord('${dniId }','${ctiId }')"> <a href="javascript:showRecord('${dniId }','${ctiId }')">
<c:out value="${cellData}" default="" /> </a>&nbsp; <c:out value="${cellData}" default="" /> </a>&nbsp;
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 3}"> <c:when test="${ind.index eq 3}">
<td class="color_1_1"> <td class="color_1_1">
<a href="javascript:showDetectionInfo('${dsiId }','${sqId }')"> <a href="javascript:showDetectionInfo('${dsiId }','${sqId }')">
<c:out value="${cellData}" default="" /> </a>&nbsp; <c:out value="${cellData}" default="" /> </a>&nbsp;
<c:if test="${charStateNum>0}"> <c:if test="${charStateNum>0}">
<a <a
href="javascript:drawPic('${ctiId }','${dsiId }','${sqId }')"> href="javascript:drawPic('${ctiId }','${dsiId }','${sqId }')">
<img <img
src="${pageContext.request.contextPath }/images/action.png" src="${pageContext.request.contextPath }/images/action.png"
border=0 height="15" width="15" alt="" /> </a> border=0 height="15" width="15" alt="" /> </a>
</c:if> </c:if>
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 4}"> <c:when test="${ind.index eq 4}">
<td class="color_1_1"> <td class="color_1_1">
<c:if test="${fn:trim(cellData)=='1'}"> <c:if test="${fn:trim(cellData)=='1'}">
<img src="<c:url value='/images/yes.gif'/>" border="0" <img src="<c:url value='/images/yes.gif'/>" border="0"
align="middle" /> align="middle" />
</c:if> </c:if>
<c:if <c:if
test="${fn:trim(cellData) == '0' ||fn:trim(cellData) == '-1'}" test="${fn:trim(cellData) == '0' ||fn:trim(cellData) == '-1'}"
var="handshakeEr"> var="handshakeEr">
<img src="<c:url value='/images/no.gif'/>" border="0" <img src="<c:url value='/images/no.gif'/>" border="0"
align="middle" /> align="middle" />
</c:if> </c:if>
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 5}"> <c:when test="${ind.index eq 5}">
<td class="color_1_1"> <td class="color_1_1">
<c:out value="${cellData}" default="" /> <c:out value="${cellData}" default="" />
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 6}"> <c:when test="${ind.index eq 6}">
<td class="color_1_1" nowrap="nowrap"> <td class="color_1_1" nowrap="nowrap">
<c:if test="${status !='3'}"> <c:if test="${status !='3'}">
<c:out value="${cellData}" default="" /> <c:out value="${cellData}" default="" />
</c:if> </c:if>
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 8}"> <c:when test="${ind.index eq 8}">
<c:set value="${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set> <c:set value="${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set>
<td class="color_7_1" > <td class="color_7_1" >
<c:set value="${fn:replace(fn:replace(cellData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set> <c:set value="${fn:replace(fn:replace(cellData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set>
<span class="prop" data-temp="${stateInfoParam}"<%-- onmouseover="showTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}',this,event);" onmouseout="hideTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}');" --%> > <span class="prop" data-temp="${stateInfoParam}"<%-- onmouseover="showTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}',this,event);" onmouseout="hideTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}');" --%> >
<%-- <c:if test="${fn:length(stateInfo) >= 50}"> <%-- <c:if test="${fn:length(stateInfo) >= 50}">
${fn:substring(stateInfo,0,50)}... ${fn:substring(stateInfo,0,50)}...
</c:if> </c:if>
<c:if test="${fn:length(stateInfo) < 50}"> <c:if test="${fn:length(stateInfo) < 50}">
${stateInfo} ${stateInfo}
</c:if> --%> </c:if> --%>
<span class="stateInfoVal">${stateInfoParam}</span> <span class="stateInfoVal">${stateInfoParam}</span>
<%-- <span id="infoTipSpan_${sqId}_${ctiId}_${dsiId}" class="infoTip" style="display:none;">${stateInfoParam}</span> --%> <%-- <span id="infoTipSpan_${sqId}_${ctiId}_${dsiId}" class="infoTip" style="display:none;">${stateInfoParam}</span> --%>
</span> </span>
</td> </td>
</c:when> </c:when>
<c:otherwise> <c:otherwise>
<td class="color_1_1"> <td class="color_1_1">
<span class="STYLE1" style="word-break: break-all"> <span class="STYLE1" style="word-break: break-all">
${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')} </span> ${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')} </span>
</td> </td>
</c:otherwise> </c:otherwise>
</c:choose> </c:choose>
</c:forEach> </c:forEach>
</tr> </tr>
</c:if> </c:if>
<c:if test="${!flag}"> <c:if test="${!flag}">
<tr> <tr>
<c:forEach items="${rowData}" var="cellData" varStatus="ind" <c:forEach items="${rowData}" var="cellData" varStatus="ind"
begin="1" end="8"> begin="1" end="8">
<c:set var="dniId" value="${rowData[0] }" /> <c:set var="dniId" value="${rowData[0] }" />
<c:set var="ctiId" value="${rowData[11] }" /> <c:set var="ctiId" value="${rowData[11] }" />
<c:set var="dsiId" value="${rowData[10] }" /> <c:set var="dsiId" value="${rowData[10] }" />
<c:set var="nodeIp" value="${rowData[1] }" /> <c:set var="nodeIp" value="${rowData[1] }" />
<c:set var="sqId" value="${rowData[12] }" /> <c:set var="sqId" value="${rowData[12] }" />
<c:set var="charStateNum" value="${rowData[14] }" /> <c:set var="charStateNum" value="${rowData[14] }" />
<c:set var="status" value="${rowData[4] }" /> <c:set var="status" value="${rowData[4] }" />
<c:choose> <c:choose>
<c:when test="${ind.index eq 1}"> <c:when test="${ind.index eq 1}">
</c:when> </c:when>
<c:when test="${ind.index eq 2}"> <c:when test="${ind.index eq 2}">
<td class="color_1_1"> <td class="color_1_1">
<a href="javascript:showRecord('${dniId }','${ctiId }')"> <a href="javascript:showRecord('${dniId }','${ctiId }')">
<c:out value="${cellData}" default="" /> </a>&nbsp; <c:out value="${cellData}" default="" /> </a>&nbsp;
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 3}"> <c:when test="${ind.index eq 3}">
<td class="color_1_1"> <td class="color_1_1">
<a href="javascript:showDetectionInfo('${dsiId }','${sqId }')"> <a href="javascript:showDetectionInfo('${dsiId }','${sqId }')">
<c:out value="${cellData}" default="" /> </a>&nbsp; <c:out value="${cellData}" default="" /> </a>&nbsp;
<c:if test="${charStateNum>0}"> <c:if test="${charStateNum>0}">
<a <a
href="javascript:drawPic('${ctiId }','${dsiId }','${sqId }')"> href="javascript:drawPic('${ctiId }','${dsiId }','${sqId }')">
<img <img
src="${pageContext.request.contextPath }/images/action.png" src="${pageContext.request.contextPath }/images/action.png"
border=0 height="15" width="15" alt="" /> </a> border=0 height="15" width="15" alt="" /> </a>
</c:if> </c:if>
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 4}"> <c:when test="${ind.index eq 4}">
<td class="color_1_1"> <td class="color_1_1">
<c:if test="${!handshakeEr}"> <c:if test="${!handshakeEr}">
<c:if test="${fn:trim(cellData)=='1'}"> <c:if test="${fn:trim(cellData)=='1'}">
<img src="<c:url value='/images/yes.gif'/>" border="0" <img src="<c:url value='/images/yes.gif'/>" border="0"
align="middle" /> align="middle" />
</c:if> </c:if>
<c:if <c:if
test="${fn:trim(cellData) == '0' || fn:trim(cellData) == '-1'}"> test="${fn:trim(cellData) == '0' || fn:trim(cellData) == '-1'}">
<img src="<c:url value='/images/no.gif'/>" border="0" <img src="<c:url value='/images/no.gif'/>" border="0"
align="middle" /> align="middle" />
</c:if> </c:if>
</c:if> </c:if>
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 5}"> <c:when test="${ind.index eq 5}">
<td class="color_1_1" nowrap="nowrap"> <td class="color_1_1" nowrap="nowrap">
<c:out value="${cellData}" default="" /> <c:out value="${cellData}" default="" />
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 6}"> <c:when test="${ind.index eq 6}">
<td class="color_1_1" nowrap="nowrap"> <td class="color_1_1" nowrap="nowrap">
<c:if test="${!handshakeEr && status !='3'}"> <c:if test="${!handshakeEr && status !='3'}">
<c:out value="${cellData}" default="" /> <c:out value="${cellData}" default="" />
</c:if> </c:if>
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 8}"> <c:when test="${ind.index eq 8}">
<c:set value="${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set> <c:set value="${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set>
<td class="color_7_1" > <td class="color_7_1" >
<c:set value="${fn:replace(fn:replace(cellData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set> <c:set value="${fn:replace(fn:replace(cellData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set>
<span class="prop" data-temp="${stateInfoParam}"<%-- onmouseover="showTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}',this,event);" onmouseout="hideTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}');" --%> > <span class="prop" data-temp="${stateInfoParam}"<%-- onmouseover="showTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}',this,event);" onmouseout="hideTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}');" --%> >
<%-- <c:if test="${fn:length(stateInfo) >= 50}"> <%-- <c:if test="${fn:length(stateInfo) >= 50}">
${fn:substring(stateInfo,0,50)}... ${fn:substring(stateInfo,0,50)}...
</c:if> </c:if>
<c:if test="${fn:length(stateInfo) < 50}"> <c:if test="${fn:length(stateInfo) < 50}">
${stateInfo} ${stateInfo}
</c:if> --%> </c:if> --%>
<span class="stateInfoVal">${stateInfoParam}</span> <span class="stateInfoVal">${stateInfoParam}</span>
<%-- <span id="infoTipSpan_${sqId}_${ctiId}_${dsiId}" class="infoTip" style="display:none;">${stateInfoParam}</span> --%> <%-- <span id="infoTipSpan_${sqId}_${ctiId}_${dsiId}" class="infoTip" style="display:none;">${stateInfoParam}</span> --%>
</span> </span>
</td> </td>
</c:when> </c:when>
<c:otherwise> <c:otherwise>
<td class="color_1_1"> <td class="color_1_1">
${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')} ${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}
</td> </td>
</c:otherwise> </c:otherwise>
</c:choose> </c:choose>
</c:forEach> </c:forEach>
</tr> </tr>
</c:if> </c:if>
</c:forEach> </c:forEach>
</c:forEach> </c:forEach>
</c:when> </c:when>
</c:choose> </c:choose>
<script type="text/javascript" > <script type="text/javascript" >
/*--------------控制表格输出长度--------------------*/ /*--------------控制表格输出长度--------------------*/
$(function(){ $(function(){
$(".prop").each(function(){ $(".prop").each(function(){
var obj = $(this); var obj = $(this);
var tx = document.body.clientWidth; //文档的可见长宽 var tx = document.body.clientWidth; //文档的可见长宽
var ty = document.body.clientHeight; var ty = document.body.clientHeight;
$(obj).on("mouseenter",function(event){ $(obj).on("mouseenter",function(event){
event = event ? event : window.event; event = event ? event : window.event;
$(".popover").remove(); $(".popover").remove();
var x = event.clientX;//鼠标位置 var x = event.clientX;//鼠标位置
var y = event.clientY; var y = event.clientY;
//alert(tx + "," + ty + "," + x + "," + y); //alert(tx + "," + ty + "," + x + "," + y);
if (y < ty/2) { if (y < ty/2) {
var placement = "bottom"; var placement = "bottom";
} else { } else {
var placement = "top"; var placement = "top";
} }
$(obj).popover({ $(obj).popover({
html:true, html:true,
content:"<div class='pop-content'><div style='margin-right:15px'>" + $(this).attr("data-temp") + "</div></div>", content:"<div class='pop-content'><div style='margin-right:15px'>" + $(this).attr("data-temp") + "</div></div>",
placement:placement placement:placement
}); });
$(obj).popover("show"); $(obj).popover("show");
const ps = new PerfectScrollbar('.pop-content'); const ps = new PerfectScrollbar('.pop-content');
//修复因浏览器兼容性导致的弹出框位置不对的问题 //修复因浏览器兼容性导致的弹出框位置不对的问题
var pop = document.getElementsByClassName("popover")[0]; //弹出层的信息 var pop = document.getElementsByClassName("popover")[0]; //弹出层的信息
var popx1 = pop.offsetLeft; var popx1 = pop.offsetLeft;
var popy1 = pop.offsetTop; var popy1 = pop.offsetTop;
var popx2 = pop.offsetLeft + pop.offsetWidth; var popx2 = pop.offsetLeft + pop.offsetWidth;
var popy2 = pop.offsetTop + pop.offsetHeight; var popy2 = pop.offsetTop + pop.offsetHeight;
var propy1 = $(obj).offset().top; var propy1 = $(obj).offset().top;
var propy2 = $(obj).offset().top + $(obj).height(); var propy2 = $(obj).offset().top + $(obj).height();
if (placement == "top") { if (placement == "top") {
if (propy1 < popy2) { if (propy1 < popy2) {
$(pop).css("top", propy1 - 3); $(pop).css("top", propy1 - 3);
} }
} else if (placement == "bottom") { } else if (placement == "bottom") {
if (propy2 > popy1) { if (propy2 > popy1) {
$(pop).css("top", propy2 + 3); $(pop).css("top", propy2 + 3);
} }
} }
}).on("mouseleave",function(event){ }).on("mouseleave",function(event){
event = event ? event : window.event; event = event ? event : window.event;
var pop = document.getElementsByClassName("popover")[0]; //弹出层的信息 var pop = document.getElementsByClassName("popover")[0]; //弹出层的信息
var popx1 = pop.offsetLeft; var popx1 = pop.offsetLeft;
var popy1 = pop.offsetTop; var popy1 = pop.offsetTop;
var popx2 = pop.offsetLeft + pop.offsetWidth; var popx2 = pop.offsetLeft + pop.offsetWidth;
var popy2 = pop.offsetTop + pop.offsetHeight; var popy2 = pop.offsetTop + pop.offsetHeight;
//var popChild = $(obj).find(".stateInfoVal")[0]; //td中的span //var popChild = $(obj).find(".stateInfoVal")[0]; //td中的span
//var popChildyHeight = popChild.offsetHeight; //var popChildyHeight = popChild.offsetHeight;
var x = event.clientX; //鼠标位置 var x = event.clientX; //鼠标位置
var y = event.clientY; var y = event.clientY;
if (y < ty/2) { if (y < ty/2) {
var extraTop = 3; var extraTop = 3;
var extraBottom = 0; var extraBottom = 0;
} else { } else {
var extraTop = 0; var extraTop = 0;
var extraBottom = 3; var extraBottom = 3;
} }
if (x < popx1 || x > popx2 || y < (popy1 - extraTop) || y > (popy2 + extraBottom)) { if (x < popx1 || x > popx2 || y < (popy1 - extraTop) || y > (popy2 + extraBottom)) {
$(obj).popover("hide"); $(obj).popover("hide");
} else { } else {
$(pop).on("mouseleave",function(event){ $(pop).on("mouseleave",function(event){
$(obj).popover("hide"); $(obj).popover("hide");
}); });
} }
}); });
}); });
var stateInfos=$(".stateInfoVal"); var stateInfos=$(".stateInfoVal");
for(var i=0;i<stateInfos.length;i++){ for(var i=0;i<stateInfos.length;i++){
var infoVal=$(stateInfos[i]).text().trim(); var infoVal=$(stateInfos[i]).text().trim();
if(infoVal.length>50){ if(infoVal.length>50){
$(stateInfos[i]).text(infoVal.substring(0,50)).append("..."); $(stateInfos[i]).text(infoVal.substring(0,50)).append("...");
}else{ }else{
$(stateInfos[i]).text(infoVal); $(stateInfos[i]).text(infoVal);
} }
} }
}); });
</script> </script>

View File

@@ -1,415 +1,415 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="java.text.SimpleDateFormat"%> <%@page import="java.text.SimpleDateFormat"%>
<%@ taglib prefix="c" uri="/jstl/c"%> <%@ taglib prefix="c" uri="/jstl/c"%>
<%@ taglib prefix="fn" uri="/jstl/fn"%> <%@ taglib prefix="fn" uri="/jstl/fn"%>
<%@ taglib prefix="fmt" uri="/jstl/fmt"%> <%@ taglib prefix="fmt" uri="/jstl/fmt"%>
<% <%
response.setHeader("Cache-Control", "no-store"); response.setHeader("Cache-Control", "no-store");
response.setHeader("Pragma", "no-cache"); response.setHeader("Pragma", "no-cache");
response.setDateHeader("Expires", 0); response.setDateHeader("Expires", 0);
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":" String basePath = request.getScheme() + "://" + request.getServerName() + ":"
+ request.getServerPort() + path + "/"; + request.getServerPort() + path + "/";
request.setAttribute("vEnter","\n"); request.setAttribute("vEnter","\n");
%> %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!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"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_qe.message.title_n81i</title> <title>i18n_qe.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" <link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<link href="<c:url value='/css/suggest.css'/>" rel="stylesheet" <link href="<c:url value='/css/suggest.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script> src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script> src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.tools.js'/>"></script> src="<c:url value='/js/jquery.tools.js'/>"></script>
<script type="text/javascript" <script type="text/javascript"
src="<c:url value='/js/WebCalendar.js' />"></script> src="<c:url value='/js/WebCalendar.js' />"></script>
</head> </head>
<script type="text/javascript"> <script type="text/javascript">
//绘制折线图 //绘制折线图
//页面5分钟刷新一次 //页面5分钟刷新一次
var interval; var interval;
$(function(){ $(function(){
interval = setInterval('qry()',5*60*1000); interval = setInterval('qry()',5*60*1000);
}) })
function clear(){ function clear(){
clearInterval(interval); clearInterval(interval);
} }
function drawPic(ctid,dsiId,id){ function drawPic(ctid,dsiId,id){
clear(); clear();
var mypageNo = $("#currentPage").html(); var mypageNo = $("#currentPage").html();
var mypageSize = $("#newPageSize").val(); var mypageSize = $("#newPageSize").val();
document.form3.action = "<%=path%>/detection/monitorData!executeAction.do?action=drawPic&checkTypeId="+ctid+"&dsiId="+dsiId+"&flag=queryEmergent"+"&sqId="+id+"&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }'; document.form3.action = "<%=path%>/detection/monitorData!executeAction.do?action=drawPic&checkTypeId="+ctid+"&dsiId="+dsiId+"&flag=queryEmergent"+"&sqId="+id+"&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }';
document.form3.submit(); document.form3.submit();
} }
function showDetectionInfo(dsiId,seqId){ function showDetectionInfo(dsiId,seqId){
clear(); clear();
var mypageNo = $("#currentPage").html(); var mypageNo = $("#currentPage").html();
var mypageSize = $("#newPageSize").val(); var mypageSize = $("#newPageSize").val();
$("#newPageSize").attr("disabled","true"); $("#newPageSize").attr("disabled","true");
document.form3.action = "<%=path%>/detection/monitorData!executeAction.do?action=showDetectionInfo&dsiId="+dsiId+"&sqId="+seqId+"&flag=queryEmergent"+"&mypageNo="+mypageNo+"&mypageSize="+mypageSize; document.form3.action = "<%=path%>/detection/monitorData!executeAction.do?action=showDetectionInfo&dsiId="+dsiId+"&sqId="+seqId+"&flag=queryEmergent"+"&mypageNo="+mypageNo+"&mypageSize="+mypageSize;
document.form3.submit(); document.form3.submit();
} }
function ieBrowser(){ function ieBrowser(){
if($.browser.msie){ if($.browser.msie){
if($.browser.version.split('.')[0]<=7){ if($.browser.version.split('.')[0]<=7){
return false; return false;
}else{ }else{
return true;//ie8+ return true;//ie8+
} }
} }
} }
$(function(){ $(function(){
var dh = document.body.clientHeight; var dh = document.body.clientHeight;
if(dh==0){ if(dh==0){
location.reload(); location.reload();
} }
var dhh = dh-30+"px;"; var dhh = dh-30+"px;";
var tableHeight = $("#info").height(); var tableHeight = $("#info").height();
if(tableHeight > dh-60){ 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); $("#maindiv").attr("style","clear:both;margin-left:6px;overflow-y:auto;overflow-x:auto;width:99%;font-size:12px;height: "+dhh);
if(ieBrowser()){ if(ieBrowser()){
$("#info").attr("style","width:100%;"); $("#info").attr("style","width:100%;");
}else{ }else{
$("#info").attr("style","width:98%;"); $("#info").attr("style","width:98%;");
} }
}else{ }else{
$("#maindiv").attr("style","clear:both;margin-left:6px;overflow-y:auto;overflow-x:auto;width:98%;font-size:12px;height: "+dhh); $("#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%;"); $("#info").attr("style","width:100%;");
} }
$("#info").floatHeaderDiv(); $("#info").floatHeaderDiv();
}); });
window.onresize = function(){ window.onresize = function(){
$("#info").floatHeader();//用于浏览器调整大小后 列表表头自动适应 $("#info").floatHeader();//用于浏览器调整大小后 列表表头自动适应
} }
/*------ 滚动条滚动 延迟加载页面操作--------------*/ /*------ 滚动条滚动 延迟加载页面操作--------------*/
var hght=0;//初始化滚动条总长 var hght=0;//初始化滚动条总长
var topH=0;//初始化滚动条的当前位置 var topH=0;//初始化滚动条的当前位置
var pagePoint = ${pageNo}; var pagePoint = ${pageNo};
var memoryData ; var memoryData ;
var intervalID ; var intervalID ;
var currentPage = 0; //当前页数 var currentPage = 0; //当前页数
var currenttotalPage = 0; //总页数 var currenttotalPage = 0; //总页数
$(function(){//DOM的onload事件 $(function(){//DOM的onload事件
$("#maindiv").scroll( function() {//定义滚动条位置改变时触发的事件。 $("#maindiv").scroll( function() {//定义滚动条位置改变时触发的事件。
hght=this.scrollHeight;//得到滚动条总长赋给hght变量 hght=this.scrollHeight;//得到滚动条总长赋给hght变量
topH=this.scrollTop+this.clientHeight;//得到滚动条当前值赋给top变量 topH=this.scrollTop+this.clientHeight;//得到滚动条当前值赋给top变量
}); });
intervalID = setInterval(function(){cando();},800);//每隔2秒钟调用一次cando函数来判断当前滚动条位置。 intervalID = setInterval(function(){cando();},800);//每隔2秒钟调用一次cando函数来判断当前滚动条位置。
function cando(){ function cando(){
currentPage = $("#currentPage").html(); currentPage = $("#currentPage").html();
currenttotalPage = $("#currenttotalPage").html(); currenttotalPage = $("#currenttotalPage").html();
if(Number(currentPage) < Number(currenttotalPage)){ if(Number(currentPage) < Number(currenttotalPage)){
if(topH!=0 && hght!=0 && topH == hght ){//判断滚动条当前位置是否超过总长的3/2parseInt为取整函数 if(topH!=0 && hght!=0 && topH == hght ){//判断滚动条当前位置是否超过总长的3/2parseInt为取整函数
show();//如果是调用show函数加载内容。 show();//如果是调用show函数加载内容。
} }
}else if(Number(currentPage) == Number(currenttotalPage)){ }else if(Number(currentPage) == Number(currenttotalPage)){
clearInterval(intervalID); clearInterval(intervalID);
} }
} }
function show(){ function show(){
hght=0;//恢复滚动条总长,因为$(”#mypage”).scroll事件一触发又会得到新值不恢复的话可能会造成判断错误而再次加载…… hght=0;//恢复滚动条总长,因为$(”#mypage”).scroll事件一触发又会得到新值不恢复的话可能会造成判断错误而再次加载……
topH=0;//原因同上。 topH=0;//原因同上。
var url2="<c:url value='/detection/monitorData.do?action=queryEmergentChild'/>&pageNo="+(++pagePoint)+"&pageSize="+'${pageSize }'+"&requestType=topo&nodeGroupId="+'${nodeGroupId }'; var url2="<c:url value='/detection/monitorData.do?action=queryEmergentChild'/>&pageNo="+(++pagePoint)+"&pageSize="+'${pageSize }'+"&requestType=topo&nodeGroupId="+'${nodeGroupId }';
var urlTmp = encodeURI(url2); var urlTmp = encodeURI(url2);
$.ajax({ $.ajax({
url:urlTmp, url:urlTmp,
type : "get", type : "get",
async:false, async:false,
success : function(data) { success : function(data) {
var resultHtml = $(data); var resultHtml = $(data);
var parentLastIpTd = $("td[rowspan]:last"); var parentLastIpTd = $("td[rowspan]:last");
var childFirstIpTd = $(resultHtml).find("td[rowspan]:first"); var childFirstIpTd = $(resultHtml).find("td[rowspan]:first");
var pLastIp = $(parentLastIpTd).text().trim(); var pLastIp = $(parentLastIpTd).text().trim();
var cFirstIp = $(childFirstIpTd).text().trim(); var cFirstIp = $(childFirstIpTd).text().trim();
if (pLastIp == cFirstIp) { if (pLastIp == cFirstIp) {
$(parentLastIpTd).attr("rowspan", $(parentLastIpTd).attr("rowspan")+$(childFirstIpTd).attr("rowspan")); $(parentLastIpTd).attr("rowspan", $(parentLastIpTd).attr("rowspan")+$(childFirstIpTd).attr("rowspan"));
$(resultHtml).children("td[rowspan]:first").remove(); $(resultHtml).children("td[rowspan]:first").remove();
} }
$("#info").append($(resultHtml));//用append方法追加内容到mypage元素。 $("#info").append($(resultHtml));//用append方法追加内容到mypage元素。
//$("#info").append($(data));//用append方法追加内容到mypage元素。 //$("#info").append($(data));//用append方法追加内容到mypage元素。
$("#currentPage").html(pagePoint);//修改页码 $("#currentPage").html(pagePoint);//修改页码
$("#pageNo").val(pagePoint); $("#pageNo").val(pagePoint);
} }
}); });
loadButton(); loadButton();
} }
}); });
/*------ 滚动条滚动 延迟加载页面操作--------------*/ /*------ 滚动条滚动 延迟加载页面操作--------------*/
/*--------------控制表格输出长度--------------------*/ /*--------------控制表格输出长度--------------------*/
$(function(){ $(function(){
var stateInfos=$(".stateInfoVal"); var stateInfos=$(".stateInfoVal");
for(var i=0;i<stateInfos.length;i++){ for(var i=0;i<stateInfos.length;i++){
var infoVal=$(stateInfos[i]).text().trim(); var infoVal=$(stateInfos[i]).text().trim();
if(infoVal.length>50){ if(infoVal.length>50){
$(stateInfos[i]).text(infoVal.substring(0,50)).append("..."); $(stateInfos[i]).text(infoVal.substring(0,50)).append("...");
}else{ }else{
$(stateInfos[i]).text(infoVal); $(stateInfos[i]).text(infoVal);
} }
} }
}); });
</script> </script>
<body> <body>
<form name=form3 id="frmArticleType" <form name=form3 id="frmArticleType"
action="<c:url value='monitorData.do?action=queryEmergent'/>&date=<%=new SimpleDateFormat("yyyy-MM-dd hh:mm:ss").format(new Date()).toString()%>" action="<c:url value='monitorData.do?action=queryEmergent'/>&date=<%=new SimpleDateFormat("yyyy-MM-dd hh:mm:ss").format(new Date()).toString()%>"
method="post" enctype="multipart/form-data"> method="post" enctype="multipart/form-data">
<input type="hidden" name="pageNoforexp" id="pageNo" <input type="hidden" name="pageNoforexp" id="pageNo"
value="${pageNo }" /> value="${pageNo }" />
<!-- type为空服务器检测type=1网元检测 type=2:异常网元 --> <!-- type为空服务器检测type=1网元检测 type=2:异常网元 -->
<input type="hidden" value="${type }" name="type" id="type" /> <input type="hidden" value="${type }" name="type" id="type" />
<!-- 来源于拓扑图 begin --> <!-- 来源于拓扑图 begin -->
<input type="hidden" name="requestType" value="${requestType }" /> <input type="hidden" name="requestType" value="${requestType }" />
<input type="hidden" name="nodeGroupId" value="${nodeGroupId }" /> <input type="hidden" name="nodeGroupId" value="${nodeGroupId }" />
<!-- 来源于拓扑图 end --> <!-- 来源于拓扑图 end -->
<div id="maindiv"> <div id="maindiv">
<table cellpadding="0" cellspacing="0" class="table" id="info"> <table cellpadding="0" cellspacing="0" class="table" id="info">
<tr> <tr>
<td width="8%" class="color_top_1" nowrap> <td width="8%" class="color_top_1" nowrap>
i18n_qe.text.nodeIp_n81i i18n_qe.text.nodeIp_n81i
</td> </td>
<td width="8%" class="color_top_1" nowrap> <td width="8%" class="color_top_1" nowrap>
i18n_qe.text.checkType_n81i i18n_qe.text.checkType_n81i
</td> </td>
<td width="8%" class="color_top_1" nowrap> <td width="8%" class="color_top_1" nowrap>
i18n_qe.text.processIdenName_n81i i18n_qe.text.processIdenName_n81i
</td> </td>
<td width="6%" class="color_top_1" nowrap> <td width="6%" class="color_top_1" nowrap>
i18n_qe.text.state_n81i i18n_qe.text.state_n81i
</td> </td>
<td width="8%" class="color_top_1"> <td width="8%" class="color_top_1">
i18n_qe.text.dataCheckTime_n81i i18n_qe.text.dataCheckTime_n81i
</td> </td>
<td width="8%" class="color_top_1"> <td width="8%" class="color_top_1">
i18n_qe.text.persistTime_n81i i18n_qe.text.persistTime_n81i
</td> </td>
<td width="5%" class="color_top_1" nowrap> <td width="5%" class="color_top_1" nowrap>
i18n_qe.text.tryTimes_n81i i18n_qe.text.tryTimes_n81i
</td> </td>
<td width="25%" class="color_8"> <td width="25%" class="color_8">
i18n_qe.text.stateInfo_n81i i18n_qe.text.stateInfo_n81i
</td> </td>
</tr> </tr>
<c:set var="index" value="${1}" /> <c:set var="index" value="${1}" />
<c:choose> <c:choose>
<c:when test="${fn:length(nodeIpGroupListNew) > 0}"> <c:when test="${fn:length(nodeIpGroupListNew) > 0}">
<c:forEach items="${nodeIpGroupListNew}" var="detecInfoList"> <c:forEach items="${nodeIpGroupListNew}" var="detecInfoList">
<c:forEach items="${detecInfoList}" var="rowData" varStatus="vs"> <c:forEach items="${detecInfoList}" var="rowData" varStatus="vs">
<c:if test="${vs.index==0}" var="flag"> <c:if test="${vs.index==0}" var="flag">
<tr> <tr>
<c:forEach items="${rowData}" var="cellData" varStatus="ind" <c:forEach items="${rowData}" var="cellData" varStatus="ind"
begin="1" end="8"> begin="1" end="8">
<c:set var="dniId" value="${rowData[0] }" /> <c:set var="dniId" value="${rowData[0] }" />
<c:set var="ctiId" value="${rowData[11] }" /> <c:set var="ctiId" value="${rowData[11] }" />
<c:set var="dsiId" value="${rowData[10] }" /> <c:set var="dsiId" value="${rowData[10] }" />
<c:set var="nodeIp" value="${rowData[1] }" /> <c:set var="nodeIp" value="${rowData[1] }" />
<c:set var="sqId" value="${rowData[12] }" /> <c:set var="sqId" value="${rowData[12] }" />
<c:set var="nodeSysType" value="${rowData[13] }" /> <c:set var="nodeSysType" value="${rowData[13] }" />
<c:set var="charStateNum" value="${rowData[14] }" /> <c:set var="charStateNum" value="${rowData[14] }" />
<c:set var="nodeType" value="${rowData[15] }" /> <c:set var="nodeType" value="${rowData[15] }" />
<c:set var="status" value="${rowData[4] }" /> <c:set var="status" value="${rowData[4] }" />
<c:choose> <c:choose>
<c:when test="${ind.index eq 1}"> <c:when test="${ind.index eq 1}">
<td class="color_1_1" rowspan="${fn:length(detecInfoList)}" <td class="color_1_1" rowspan="${fn:length(detecInfoList)}"
valign="top"> valign="top">
<c:out <c:out
value="${cellData}" default="" /> value="${cellData}" default="" />
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 2}"> <c:when test="${ind.index eq 2}">
<td class="color_1_1"> <td class="color_1_1">
<c:if test="${cellData == 'i18n_qe.message.handshake_n81i'}" var="handshake"></c:if> <c:if test="${cellData == 'i18n_qe.message.handshake_n81i'}" var="handshake"></c:if>
<c:out value="${cellData}" default="" /> &nbsp; <c:out value="${cellData}" default="" /> &nbsp;
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 3}"> <c:when test="${ind.index eq 3}">
<td class="color_1_1"> <td class="color_1_1">
<a <a
href="javascript:showDetectionInfo('${dsiId }','${sqId }')" href="javascript:showDetectionInfo('${dsiId }','${sqId }')"
title="i18n_qe.button.showDetectionInfo_n81i"> <c:out value="${cellData}" default="" /> title="i18n_qe.button.showDetectionInfo_n81i"> <c:out value="${cellData}" default="" />
</a>&nbsp; </a>&nbsp;
<c:if test="${charStateNum>0}"> <c:if test="${charStateNum>0}">
<a <a
href="javascript:drawPic('${ctiId }','${dsiId }','${sqId }')" href="javascript:drawPic('${ctiId }','${dsiId }','${sqId }')"
title="i18n_qe.button.drawPic_n81i"> <img title="i18n_qe.button.drawPic_n81i"> <img
src="${pageContext.request.contextPath }/images/action.png" src="${pageContext.request.contextPath }/images/action.png"
border=0 height="15" width="15" alt="" /> </a> border=0 height="15" width="15" alt="" /> </a>
</c:if> </c:if>
<!--<c:out value="${cellData}" default="" /> <!--<c:out value="${cellData}" default="" />
<c:if test="${charStateNum>0}"> <c:if test="${charStateNum>0}">
<img <img
src="${pageContext.request.contextPath }/images/action.png" src="${pageContext.request.contextPath }/images/action.png"
height="15" width="15" alt="" /> height="15" width="15" alt="" />
</c:if> </c:if>
--> -->
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 4}"> <c:when test="${ind.index eq 4}">
<td class="color_1_1"> <td class="color_1_1">
<c:if test="${fn:trim(cellData)=='1'}"> <c:if test="${fn:trim(cellData)=='1'}">
<img src="<c:url value='/images/yes.gif'/>" border="0" <img src="<c:url value='/images/yes.gif'/>" border="0"
align="middle" /> align="middle" />
</c:if> </c:if>
<c:if <c:if
test="${fn:trim(cellData) == '0' ||fn:trim(cellData) == '-1'}" test="${fn:trim(cellData) == '0' ||fn:trim(cellData) == '-1'}"
var="handshakeEr"> var="handshakeEr">
<img src="<c:url value='/images/no.gif'/>" border="0" <img src="<c:url value='/images/no.gif'/>" border="0"
align="middle" /> align="middle" />
</c:if> </c:if>
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 5}"> <c:when test="${ind.index eq 5}">
<td class="color_1_1"> <td class="color_1_1">
<c:out value="${cellData}" default="" /> <c:out value="${cellData}" default="" />
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 6}"> <c:when test="${ind.index eq 6}">
<td class="color_1_1" nowrap="nowrap"> <td class="color_1_1" nowrap="nowrap">
<c:if test="${status !='3'}"> <c:if test="${status !='3'}">
<c:out value="${cellData}" default="" /> <c:out value="${cellData}" default="" />
</c:if> </c:if>
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 8}"> <c:when test="${ind.index eq 8}">
<c:set value="${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set> <c:set value="${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set>
<td class="color_7_1" > <td class="color_7_1" >
<c:set value="${fn:replace(fn:replace(cellData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set> <c:set value="${fn:replace(fn:replace(cellData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set>
<span onmouseover="showTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}',this,event);" onmouseout="hideTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}');" > <span onmouseover="showTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}',this,event);" onmouseout="hideTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}');" >
<%-- <c:if test="${fn:length(stateInfo) >= 50}"> <%-- <c:if test="${fn:length(stateInfo) >= 50}">
${fn:substring(stateInfo,0,50)}... ${fn:substring(stateInfo,0,50)}...
</c:if> </c:if>
<c:if test="${fn:length(stateInfo) < 50}"> <c:if test="${fn:length(stateInfo) < 50}">
${stateInfo} ${stateInfo}
</c:if> --%> </c:if> --%>
<span class="stateInfoVal">${stateInfo}</span> <span class="stateInfoVal">${stateInfo}</span>
<span id="infoTipSpan_${sqId}_${ctiId}_${dsiId}" class="infoTip" style="display:none;">${stateInfoParam}</span> <span id="infoTipSpan_${sqId}_${ctiId}_${dsiId}" class="infoTip" style="display:none;">${stateInfoParam}</span>
</span> </span>
</td> </td>
</c:when> </c:when>
<c:otherwise> <c:otherwise>
<td class="color_1_1"> <td class="color_1_1">
<span class="STYLE1" style="word-break: break-all"> <span class="STYLE1" style="word-break: break-all">
${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')} </span> ${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')} </span>
</td> </td>
</c:otherwise> </c:otherwise>
</c:choose> </c:choose>
</c:forEach> </c:forEach>
</tr> </tr>
</c:if> </c:if>
<c:if test="${!flag}"> <c:if test="${!flag}">
<tr> <tr>
<c:forEach items="${rowData}" var="cellData" varStatus="ind" <c:forEach items="${rowData}" var="cellData" varStatus="ind"
begin="1" end="8"> begin="1" end="8">
<c:set var="dniId" value="${rowData[0] }" /> <c:set var="dniId" value="${rowData[0] }" />
<c:set var="ctiId" value="${rowData[11] }" /> <c:set var="ctiId" value="${rowData[11] }" />
<c:set var="dsiId" value="${rowData[10] }" /> <c:set var="dsiId" value="${rowData[10] }" />
<c:set var="nodeIp" value="${rowData[1] }" /> <c:set var="nodeIp" value="${rowData[1] }" />
<c:set var="sqId" value="${rowData[12] }" /> <c:set var="sqId" value="${rowData[12] }" />
<c:set var="charStateNum" value="${rowData[14] }" /> <c:set var="charStateNum" value="${rowData[14] }" />
<c:set var="status" value="${rowData[4] }" /> <c:set var="status" value="${rowData[4] }" />
<c:choose> <c:choose>
<c:when test="${ind.index eq 1}"> <c:when test="${ind.index eq 1}">
</c:when> </c:when>
<c:when test="${ind.index eq 2}"> <c:when test="${ind.index eq 2}">
<td class="color_1_1"> <td class="color_1_1">
<c:out value="${cellData}" default="" /> <c:out value="${cellData}" default="" />
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 3}"> <c:when test="${ind.index eq 3}">
<td class="color_1_1"> <td class="color_1_1">
<c:out value="${cellData}" default="" /> <c:out value="${cellData}" default="" />
<c:if test="${charStateNum>0}"> <c:if test="${charStateNum>0}">
<img border="0" <img border="0"
src="${pageContext.request.contextPath }/images/action.png" src="${pageContext.request.contextPath }/images/action.png"
height="15" width="15" alt="" /> height="15" width="15" alt="" />
</c:if> </c:if>
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 4}"> <c:when test="${ind.index eq 4}">
<td class="color_1_1"> <td class="color_1_1">
<c:if test="${!handshakeEr}"> <c:if test="${!handshakeEr}">
<c:if test="${fn:trim(cellData)=='1'}"> <c:if test="${fn:trim(cellData)=='1'}">
<img src="<c:url value='/images/yes.gif'/>" border="0" <img src="<c:url value='/images/yes.gif'/>" border="0"
align="middle" /> align="middle" />
</c:if> </c:if>
<c:if <c:if
test="${fn:trim(cellData) == '0' || fn:trim(cellData) == '-1'}"> test="${fn:trim(cellData) == '0' || fn:trim(cellData) == '-1'}">
<img src="<c:url value='/images/no.gif'/>" border="0" <img src="<c:url value='/images/no.gif'/>" border="0"
align="middle" /> align="middle" />
</c:if> </c:if>
</c:if> </c:if>
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 5}"> <c:when test="${ind.index eq 5}">
<td class="color_1_1" nowrap="nowrap"> <td class="color_1_1" nowrap="nowrap">
<c:out value="${cellData}" default="" /> <c:out value="${cellData}" default="" />
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 6}"> <c:when test="${ind.index eq 6}">
<td class="color_1_1" nowrap="nowrap"> <td class="color_1_1" nowrap="nowrap">
<c:if test="${!handshakeEr && status !='3'}"> <c:if test="${!handshakeEr && status !='3'}">
<c:out value="${cellData}" default="" /> <c:out value="${cellData}" default="" />
</c:if> </c:if>
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 8}"> <c:when test="${ind.index eq 8}">
<c:set value="${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set> <c:set value="${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set>
<td class="color_7_1" > <td class="color_7_1" >
<c:set value="${fn:replace(fn:replace(cellData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set> <c:set value="${fn:replace(fn:replace(cellData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set>
<span onmouseover="showTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}',this,event);" onmouseout="hideTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}');" > <span onmouseover="showTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}',this,event);" onmouseout="hideTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}');" >
<%-- <c:if test="${fn:length(stateInfo) >= 50}"> <%-- <c:if test="${fn:length(stateInfo) >= 50}">
${fn:substring(stateInfo,0,50)}... ${fn:substring(stateInfo,0,50)}...
</c:if> </c:if>
<c:if test="${fn:length(stateInfo) < 50}"> <c:if test="${fn:length(stateInfo) < 50}">
${stateInfo} ${stateInfo}
</c:if> --%> </c:if> --%>
<span class="stateInfoVal">${stateInfo}</span> <span class="stateInfoVal">${stateInfo}</span>
<span id="infoTipSpan_${sqId}_${ctiId}_${dsiId}" class="infoTip" style="display:none;">${stateInfoParam}</span> <span id="infoTipSpan_${sqId}_${ctiId}_${dsiId}" class="infoTip" style="display:none;">${stateInfoParam}</span>
</span> </span>
</td> </td>
</c:when> </c:when>
<c:otherwise> <c:otherwise>
<td class="color_1_1"> <td class="color_1_1">
${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')} ${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}
</td> </td>
</c:otherwise> </c:otherwise>
</c:choose> </c:choose>
</c:forEach> </c:forEach>
</tr> </tr>
</c:if> </c:if>
</c:forEach> </c:forEach>
</c:forEach> </c:forEach>
</c:when> </c:when>
<c:otherwise> <c:otherwise>
<tr> <tr>
<td colspan="8" class="color_6" align="center"> <td colspan="8" class="color_6" align="center">
i18n_qe.text.noRecord_n81i i18n_qe.text.noRecord_n81i
</td> </td>
</tr> </tr>
</c:otherwise> </c:otherwise>
</c:choose> </c:choose>
</table> </table>
</div> </div>
<c:if test="${!empty nodeIpGroupListNew}"> <c:if test="${!empty nodeIpGroupListNew}">
<div id="divBoot"> <div id="divBoot">
<jsp:include page="/common/page.jsp" /> <jsp:include page="/common/page.jsp" />
</div> </div>
</c:if> </c:if>
</form> </form>
<span id="infoTipSpan" class="infoTip" style="display:none;"></span> <span id="infoTipSpan" class="infoTip" style="display:none;"></span>
</body> </body>
</html> </html>

View File

@@ -1,296 +1,296 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="java.text.SimpleDateFormat"%> <%@page import="java.text.SimpleDateFormat"%>
<%@ taglib prefix="c" uri="/jstl/c"%> <%@ taglib prefix="c" uri="/jstl/c"%>
<%@ taglib prefix="fn" uri="/jstl/fn"%> <%@ taglib prefix="fn" uri="/jstl/fn"%>
<%@ taglib prefix="fmt" uri="/jstl/fmt"%> <%@ taglib prefix="fmt" uri="/jstl/fmt"%>
<% <%
response.setHeader("Cache-Control", "no-store"); response.setHeader("Cache-Control", "no-store");
response.setHeader("Pragma", "no-cache"); response.setHeader("Pragma", "no-cache");
response.setDateHeader("Expires", 0); response.setDateHeader("Expires", 0);
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":" String basePath = request.getScheme() + "://" + request.getServerName() + ":"
+ request.getServerPort() + path + "/"; + request.getServerPort() + path + "/";
request.setAttribute("vEnter","\n"); request.setAttribute("vEnter","\n");
%> %>
<c:set var="index" value="${1}" /> <c:set var="index" value="${1}" />
<c:choose> <c:choose>
<c:when test="${fn:length(nodeIpGroupListNew) > 0}"> <c:when test="${fn:length(nodeIpGroupListNew) > 0}">
<c:forEach items="${nodeIpGroupListNew}" var="detecInfoList"> <c:forEach items="${nodeIpGroupListNew}" var="detecInfoList">
<c:forEach items="${detecInfoList}" var="rowData" varStatus="vs"> <c:forEach items="${detecInfoList}" var="rowData" varStatus="vs">
<c:if test="${vs.index==0}" var="flag"> <c:if test="${vs.index==0}" var="flag">
<tr> <tr>
<c:forEach items="${rowData}" var="cellData" varStatus="ind" <c:forEach items="${rowData}" var="cellData" varStatus="ind"
begin="1" end="8"> begin="1" end="8">
<c:set var="dniId" value="${rowData[0] }" /> <c:set var="dniId" value="${rowData[0] }" />
<c:set var="ctiId" value="${rowData[11] }" /> <c:set var="ctiId" value="${rowData[11] }" />
<c:set var="dsiId" value="${rowData[10] }" /> <c:set var="dsiId" value="${rowData[10] }" />
<c:set var="nodeIp" value="${rowData[1] }" /> <c:set var="nodeIp" value="${rowData[1] }" />
<c:set var="sqId" value="${rowData[12] }" /> <c:set var="sqId" value="${rowData[12] }" />
<c:set var="nodeSysType" value="${rowData[13] }" /> <c:set var="nodeSysType" value="${rowData[13] }" />
<c:set var="charStateNum" value="${rowData[14] }" /> <c:set var="charStateNum" value="${rowData[14] }" />
<c:set var="nodeType" value="${rowData[15] }" /> <c:set var="nodeType" value="${rowData[15] }" />
<c:set var="status" value="${rowData[4] }" /> <c:set var="status" value="${rowData[4] }" />
<c:choose> <c:choose>
<c:when test="${ind.index eq 1}"> <c:when test="${ind.index eq 1}">
<td class="color_1_1" rowspan="${fn:length(detecInfoList)}" <td class="color_1_1" rowspan="${fn:length(detecInfoList)}"
valign="top"> valign="top">
<c:out <c:out
value="${cellData}" default="" /> value="${cellData}" default="" />
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 2}"> <c:when test="${ind.index eq 2}">
<td class="color_1_1"> <td class="color_1_1">
<c:if test="${cellData == 'i18n_qec.message.handshake_n81i'}" var="handshake"></c:if> <c:if test="${cellData == 'i18n_qec.message.handshake_n81i'}" var="handshake"></c:if>
<c:out value="${cellData}" default="" /> &nbsp; <c:out value="${cellData}" default="" /> &nbsp;
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 3}"> <c:when test="${ind.index eq 3}">
<td class="color_1_1"> <td class="color_1_1">
<a <a
href="javascript:showDetectionInfo('${dsiId }','${sqId }')" href="javascript:showDetectionInfo('${dsiId }','${sqId }')"
title="i18n_qec.button.showDetectionInfo_n81i"> <c:out value="${cellData}" default="" /> title="i18n_qec.button.showDetectionInfo_n81i"> <c:out value="${cellData}" default="" />
</a>&nbsp; </a>&nbsp;
<c:if test="${charStateNum>0}"> <c:if test="${charStateNum>0}">
<a <a
href="javascript:drawPic('${ctiId }','${dsiId }','${sqId }')" href="javascript:drawPic('${ctiId }','${dsiId }','${sqId }')"
title="i18n_qec.button.drawPic_n81i"> <img title="i18n_qec.button.drawPic_n81i"> <img
src="${pageContext.request.contextPath }/images/action.png" src="${pageContext.request.contextPath }/images/action.png"
border=0 height="15" width="15" alt="" /> </a> border=0 height="15" width="15" alt="" /> </a>
</c:if> </c:if>
<!--<c:out value="${cellData}" default="" /> <!--<c:out value="${cellData}" default="" />
<c:if test="${charStateNum>0}"> <c:if test="${charStateNum>0}">
<img <img
src="${pageContext.request.contextPath }/images/action.png" src="${pageContext.request.contextPath }/images/action.png"
height="15" width="15" alt="" /> height="15" width="15" alt="" />
</c:if> </c:if>
--> -->
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 4}"> <c:when test="${ind.index eq 4}">
<td class="color_1_1"> <td class="color_1_1">
<c:if test="${fn:trim(cellData)=='1'}"> <c:if test="${fn:trim(cellData)=='1'}">
<img src="<c:url value='/images/yes.gif'/>" border="0" <img src="<c:url value='/images/yes.gif'/>" border="0"
align="middle" /> align="middle" />
</c:if> </c:if>
<c:if <c:if
test="${fn:trim(cellData) == '0' ||fn:trim(cellData) == '-1'}" test="${fn:trim(cellData) == '0' ||fn:trim(cellData) == '-1'}"
var="handshakeEr"> var="handshakeEr">
<img src="<c:url value='/images/no.gif'/>" border="0" <img src="<c:url value='/images/no.gif'/>" border="0"
align="middle" /> align="middle" />
</c:if> </c:if>
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 5}"> <c:when test="${ind.index eq 5}">
<td class="color_1_1"> <td class="color_1_1">
<c:out value="${cellData}" default="" /> <c:out value="${cellData}" default="" />
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 6}"> <c:when test="${ind.index eq 6}">
<td class="color_1_1" nowrap="nowrap"> <td class="color_1_1" nowrap="nowrap">
<c:if test="${status !='3'}"> <c:if test="${status !='3'}">
<c:out value="${cellData}" default="" /> <c:out value="${cellData}" default="" />
</c:if> </c:if>
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 8}"> <c:when test="${ind.index eq 8}">
<c:set value="${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set> <c:set value="${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set>
<td class="color_7_1" > <td class="color_7_1" >
<c:set value="${fn:replace(fn:replace(cellData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set> <c:set value="${fn:replace(fn:replace(cellData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set>
<span class="prop" data-temp="${stateInfoParam}"<%-- onmouseover="showTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}',this,event);" onmouseout="hideTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}');" --%> > <span class="prop" data-temp="${stateInfoParam}"<%-- onmouseover="showTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}',this,event);" onmouseout="hideTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}');" --%> >
<%-- <c:if test="${fn:length(stateInfo) >= 50}"> <%-- <c:if test="${fn:length(stateInfo) >= 50}">
${fn:substring(stateInfo,0,50)}... ${fn:substring(stateInfo,0,50)}...
</c:if> </c:if>
<c:if test="${fn:length(stateInfo) < 50}"> <c:if test="${fn:length(stateInfo) < 50}">
${stateInfo} ${stateInfo}
</c:if> --%> </c:if> --%>
<span class="stateInfoVal">${stateInfo}</span> <span class="stateInfoVal">${stateInfo}</span>
<span id="infoTipSpan_${sqId}_${ctiId}_${dsiId}" class="infoTip" style="display:none;">${stateInfoParam}</span> <span id="infoTipSpan_${sqId}_${ctiId}_${dsiId}" class="infoTip" style="display:none;">${stateInfoParam}</span>
</span> </span>
</td> </td>
</c:when> </c:when>
<c:otherwise> <c:otherwise>
<td class="color_1_1"> <td class="color_1_1">
<span class="STYLE1" style="word-break: break-all"> <span class="STYLE1" style="word-break: break-all">
${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')} </span> ${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')} </span>
</td> </td>
</c:otherwise> </c:otherwise>
</c:choose> </c:choose>
</c:forEach> </c:forEach>
</tr> </tr>
</c:if> </c:if>
<c:if test="${!flag}"> <c:if test="${!flag}">
<tr> <tr>
<c:forEach items="${rowData}" var="cellData" varStatus="ind" <c:forEach items="${rowData}" var="cellData" varStatus="ind"
begin="1" end="8"> begin="1" end="8">
<c:set var="dniId" value="${rowData[0] }" /> <c:set var="dniId" value="${rowData[0] }" />
<c:set var="ctiId" value="${rowData[11] }" /> <c:set var="ctiId" value="${rowData[11] }" />
<c:set var="dsiId" value="${rowData[10] }" /> <c:set var="dsiId" value="${rowData[10] }" />
<c:set var="nodeIp" value="${rowData[1] }" /> <c:set var="nodeIp" value="${rowData[1] }" />
<c:set var="sqId" value="${rowData[12] }" /> <c:set var="sqId" value="${rowData[12] }" />
<c:set var="charStateNum" value="${rowData[14] }" /> <c:set var="charStateNum" value="${rowData[14] }" />
<c:set var="status" value="${rowData[4] }" /> <c:set var="status" value="${rowData[4] }" />
<c:choose> <c:choose>
<c:when test="${ind.index eq 1}"> <c:when test="${ind.index eq 1}">
</c:when> </c:when>
<c:when test="${ind.index eq 2}"> <c:when test="${ind.index eq 2}">
<td class="color_1_1"> <td class="color_1_1">
<c:out value="${cellData}" default="" /> <c:out value="${cellData}" default="" />
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 3}"> <c:when test="${ind.index eq 3}">
<td class="color_1_1"> <td class="color_1_1">
<c:out value="${cellData}" default="" /> <c:out value="${cellData}" default="" />
<c:if test="${charStateNum>0}"> <c:if test="${charStateNum>0}">
<img border="0" <img border="0"
src="${pageContext.request.contextPath }/images/action.png" src="${pageContext.request.contextPath }/images/action.png"
height="15" width="15" alt="" /> height="15" width="15" alt="" />
</c:if> </c:if>
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 4}"> <c:when test="${ind.index eq 4}">
<td class="color_1_1"> <td class="color_1_1">
<c:if test="${!handshakeEr}"> <c:if test="${!handshakeEr}">
<c:if test="${fn:trim(cellData)=='1'}"> <c:if test="${fn:trim(cellData)=='1'}">
<img src="<c:url value='/images/yes.gif'/>" border="0" <img src="<c:url value='/images/yes.gif'/>" border="0"
align="middle" /> align="middle" />
</c:if> </c:if>
<c:if <c:if
test="${fn:trim(cellData) == '0' || fn:trim(cellData) == '-1'}"> test="${fn:trim(cellData) == '0' || fn:trim(cellData) == '-1'}">
<img src="<c:url value='/images/no.gif'/>" border="0" <img src="<c:url value='/images/no.gif'/>" border="0"
align="middle" /> align="middle" />
</c:if> </c:if>
</c:if> </c:if>
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 5}"> <c:when test="${ind.index eq 5}">
<td class="color_1_1" nowrap="nowrap"> <td class="color_1_1" nowrap="nowrap">
<c:out value="${cellData}" default="" /> <c:out value="${cellData}" default="" />
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 6}"> <c:when test="${ind.index eq 6}">
<td class="color_1_1" nowrap="nowrap"> <td class="color_1_1" nowrap="nowrap">
<c:if test="${!handshakeEr && status !='3'}"> <c:if test="${!handshakeEr && status !='3'}">
<c:out value="${cellData}" default="" /> <c:out value="${cellData}" default="" />
</c:if> </c:if>
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 8}"> <c:when test="${ind.index eq 8}">
<c:set value="${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set> <c:set value="${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set>
<td class="color_7_1" > <td class="color_7_1" >
<c:set value="${fn:replace(fn:replace(cellData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set> <c:set value="${fn:replace(fn:replace(cellData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set>
<span onmouseover="showTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}',this,event);" onmouseout="hideTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}');" > <span onmouseover="showTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}',this,event);" onmouseout="hideTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}');" >
<%-- <c:if test="${fn:length(stateInfo) >= 50}"> <%-- <c:if test="${fn:length(stateInfo) >= 50}">
${fn:substring(stateInfo,0,50)}... ${fn:substring(stateInfo,0,50)}...
</c:if> </c:if>
<c:if test="${fn:length(stateInfo) < 50}"> <c:if test="${fn:length(stateInfo) < 50}">
${stateInfo} ${stateInfo}
</c:if> --%> </c:if> --%>
<span class="stateInfoVal">${stateInfo}</span> <span class="stateInfoVal">${stateInfo}</span>
<span id="infoTipSpan_${sqId}_${ctiId}_${dsiId}" class="infoTip" style="display:none;">${stateInfoParam}</span> <span id="infoTipSpan_${sqId}_${ctiId}_${dsiId}" class="infoTip" style="display:none;">${stateInfoParam}</span>
</span> </span>
</td> </td>
</c:when> </c:when>
<c:otherwise> <c:otherwise>
<td class="color_1_1"> <td class="color_1_1">
${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')} ${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}
</td> </td>
</c:otherwise> </c:otherwise>
</c:choose> </c:choose>
</c:forEach> </c:forEach>
</tr> </tr>
</c:if> </c:if>
</c:forEach> </c:forEach>
</c:forEach> </c:forEach>
</c:when> </c:when>
</c:choose> </c:choose>
<script type="text/javascript" > <script type="text/javascript" >
/*--------------控制表格输出长度--------------------*/ /*--------------控制表格输出长度--------------------*/
$(function(){ $(function(){
$(".prop").each(function(){ $(".prop").each(function(){
var obj = $(this); var obj = $(this);
var tx = document.body.clientWidth; //文档的可见长宽 var tx = document.body.clientWidth; //文档的可见长宽
var ty = document.body.clientHeight; var ty = document.body.clientHeight;
$(obj).on("mouseenter",function(event){ $(obj).on("mouseenter",function(event){
event = event ? event : window.event; event = event ? event : window.event;
$(".popover").remove(); $(".popover").remove();
var x = event.clientX;//鼠标位置 var x = event.clientX;//鼠标位置
var y = event.clientY; var y = event.clientY;
//alert(tx + "," + ty + "," + x + "," + y); //alert(tx + "," + ty + "," + x + "," + y);
if (y < ty/2) { if (y < ty/2) {
var placement = "bottom"; var placement = "bottom";
} else { } else {
var placement = "top"; var placement = "top";
} }
$(obj).popover({ $(obj).popover({
html:true, html:true,
content:"<div class='pop-content'><div style='margin-right:15px'>" + $(this).attr("data-temp") + "</div></div>", content:"<div class='pop-content'><div style='margin-right:15px'>" + $(this).attr("data-temp") + "</div></div>",
placement:placement placement:placement
}); });
$(obj).popover("show"); $(obj).popover("show");
const ps = new PerfectScrollbar('.pop-content'); const ps = new PerfectScrollbar('.pop-content');
//修复因浏览器兼容性导致的弹出框位置不对的问题 //修复因浏览器兼容性导致的弹出框位置不对的问题
var pop = document.getElementsByClassName("popover")[0]; //弹出层的信息 var pop = document.getElementsByClassName("popover")[0]; //弹出层的信息
var popx1 = pop.offsetLeft; var popx1 = pop.offsetLeft;
var popy1 = pop.offsetTop; var popy1 = pop.offsetTop;
var popx2 = pop.offsetLeft + pop.offsetWidth; var popx2 = pop.offsetLeft + pop.offsetWidth;
var popy2 = pop.offsetTop + pop.offsetHeight; var popy2 = pop.offsetTop + pop.offsetHeight;
var propy1 = $(obj).offset().top; var propy1 = $(obj).offset().top;
var propy2 = $(obj).offset().top + $(obj).height(); var propy2 = $(obj).offset().top + $(obj).height();
if (placement == "top") { if (placement == "top") {
if (propy1 < popy2) { if (propy1 < popy2) {
$(pop).css("top", propy1 - 3); $(pop).css("top", propy1 - 3);
} }
} else if (placement == "bottom") { } else if (placement == "bottom") {
if (propy2 > popy1) { if (propy2 > popy1) {
$(pop).css("top", propy2 + 3); $(pop).css("top", propy2 + 3);
} }
} }
}).on("mouseleave",function(event){ }).on("mouseleave",function(event){
event = event ? event : window.event; event = event ? event : window.event;
var pop = document.getElementsByClassName("popover")[0]; //弹出层的信息 var pop = document.getElementsByClassName("popover")[0]; //弹出层的信息
var popx1 = pop.offsetLeft; var popx1 = pop.offsetLeft;
var popy1 = pop.offsetTop; var popy1 = pop.offsetTop;
var popx2 = pop.offsetLeft + pop.offsetWidth; var popx2 = pop.offsetLeft + pop.offsetWidth;
var popy2 = pop.offsetTop + pop.offsetHeight; var popy2 = pop.offsetTop + pop.offsetHeight;
//var popChild = $(obj).find(".stateInfoVal")[0]; //td中的span //var popChild = $(obj).find(".stateInfoVal")[0]; //td中的span
//var popChildyHeight = popChild.offsetHeight; //var popChildyHeight = popChild.offsetHeight;
var x = event.clientX; //鼠标位置 var x = event.clientX; //鼠标位置
var y = event.clientY; var y = event.clientY;
if (y < ty/2) { if (y < ty/2) {
var extraTop = 3; var extraTop = 3;
var extraBottom = 0; var extraBottom = 0;
} else { } else {
var extraTop = 0; var extraTop = 0;
var extraBottom = 3; var extraBottom = 3;
} }
if (x < popx1 || x > popx2 || y < (popy1 - extraTop) || y > (popy2 + extraBottom)) { if (x < popx1 || x > popx2 || y < (popy1 - extraTop) || y > (popy2 + extraBottom)) {
$(obj).popover("hide"); $(obj).popover("hide");
} else { } else {
$(pop).on("mouseleave",function(event){ $(pop).on("mouseleave",function(event){
$(obj).popover("hide"); $(obj).popover("hide");
}); });
} }
}); });
}); });
var stateInfos=$(".stateInfoVal"); var stateInfos=$(".stateInfoVal");
for(var i=0;i<stateInfos.length;i++){ for(var i=0;i<stateInfos.length;i++){
var infoVal=$(stateInfos[i]).text().trim(); var infoVal=$(stateInfos[i]).text().trim();
if(infoVal.length>50){ if(infoVal.length>50){
$(stateInfos[i]).text(infoVal.substring(0,50)).append("..."); $(stateInfos[i]).text(infoVal.substring(0,50)).append("...");
}else{ }else{
$(stateInfos[i]).text(infoVal); $(stateInfos[i]).text(infoVal);
} }
} }
}); });
</script> </script>

File diff suppressed because it is too large Load Diff

View File

@@ -1,161 +1,161 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%> <%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib prefix="fn" uri="/jstl/fn"%> <%@ taglib prefix="fn" uri="/jstl/fn"%>
<%@ taglib prefix="fmt" uri="/jstl/fmt"%> <%@ taglib prefix="fmt" uri="/jstl/fmt"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
%> %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!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"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_sp.message.title_n81i</title> <title>i18n_sp.message.title_n81i</title>
<script type='text/javascript' src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script> <script type='text/javascript' src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<style type="text/css"> <style type="text/css">
body{ body{
font-size:12px; font-size:12px;
} }
.item { .item {
display: block; display: block;
float: left; float: left;
margin: 1px; margin: 1px;
} }
</style> </style>
<script type="text/javascript"> <script type="text/javascript">
$(function() { $(function() {
$("#clearQuery").click(function() { $("#clearQuery").click(function() {
$("#query").val(""); $("#query").val("");
$(".item").show(); $(".item").show();
}) })
//multi //multi
$("#query").keyup(function(key) { $("#query").keyup(function(key) {
var str = $(this).val(); var str = $(this).val();
query(str); query(str);
}) })
$("#ok").click(function() { $("#ok").click(function() {
var result = ""; var result = "";
var num = $(".checks:checked").size(); var num = $(".checks:checked").size();
if(num>5){ if(num>5){
alert("i18n_sp.message.selectToDraw_n81i"); alert("i18n_sp.message.selectToDraw_n81i");
return; return;
}else{ }else{
$(".checks:checked").each(function() { $(".checks:checked").each(function() {
var lable = $(this).closest("label"); var lable = $(this).closest("label");
result += lable.attr("ids")+','; result += lable.attr("ids")+',';
}); });
if (result == "") { if (result == "") {
alert("i18n_sp.message.selectTodrawID_n81i"); alert("i18n_sp.message.selectTodrawID_n81i");
return; return;
} else { } else {
//parent.window.returnValue = result; //parent.window.returnValue = result;
var ctId= $("#ctid").val(); var ctId= $("#ctid").val();
var disId= $("#did").val(); var disId= $("#did").val();
var metaId= $("#mid").val(); var metaId= $("#mid").val();
var seqId= $("#seqId").val(); var seqId= $("#seqId").val();
var drwTo= $("#drIndex").val(); var drwTo= $("#drIndex").val();
//var resu = window.opener.dialogArguments; //var resu = window.opener.dialogArguments;
var resu = $(window.parent.document).find("#I3")[0].contentWindow; var resu = $(window.parent.document).find("#I3")[0].contentWindow;
//alert("父窗体引用:"+resu); //alert("父窗体引用:"+resu);
resu.getPicScorce(metaId,disId,ctId,seqId,result,drwTo) resu.getPicScorce(metaId,disId,ctId,seqId,result,drwTo)
} }
layclose(); layclose();
} }
}) })
$("#clear").click(function() { $("#clear").click(function() {
$(".checks").removeAttr("checked"); $(".checks").removeAttr("checked");
resetBg(); resetBg();
}) })
$("#cancel").click(function() { $("#cancel").click(function() {
layclose(); layclose();
}) })
$(".checks").click(function() { $(".checks").click(function() {
resetBg(); resetBg();
}) })
}) })
$(function() { $(function() {
$("#query").focus(); $("#query").focus();
}) })
function layclose() { function layclose() {
var index = parent.layer.getFrameIndex(window.name); var index = parent.layer.getFrameIndex(window.name);
parent.layer.close(index); parent.layer.close(index);
} }
function resetBg() { function resetBg() {
$(".checks").each(function() { $(".checks").each(function() {
var label = $(this).closest("label"); var label = $(this).closest("label");
if ($(this).is(":checked")) { if ($(this).is(":checked")) {
label.css("background-Color", "#B5C19B"); label.css("background-Color", "#B5C19B");
} else { } else {
label.css("background-Color", ""); label.css("background-Color", "");
} }
}) })
} }
function query(str) { function query(str) {
if ($.trim(str) == "") { if ($.trim(str) == "") {
$(".item").show(); $(".item").show();
} else { } else {
$(".item").hide(); $(".item").hide();
$(".item[title^='" + str + "']").show(); $(".item[title^='" + str + "']").show();
} }
} }
</script> </script>
</head> </head>
<body> <body>
<form action="" name="Mkform" method="post"> <form action="" name="Mkform" method="post">
<input type="hidden" id="seqId" name="seqId" value="${sqId}"/> <input type="hidden" id="seqId" name="seqId" value="${sqId}"/>
<input type="hidden" id="did" name ="dsiId" value="${dsiId }"/> <input type="hidden" id="did" name ="dsiId" value="${dsiId }"/>
<input type="hidden" id = "ctid" name="ctid" value = "${ctId}"/> <input type="hidden" id = "ctid" name="ctid" value = "${ctId}"/>
<input type="hidden" id = "mid" name="mid" value = "${metaId}"/> <input type="hidden" id = "mid" name="mid" value = "${metaId}"/>
<input type="hidden" id="drIndex" name="drIndex" value="${drIndex}"/> <input type="hidden" id="drIndex" name="drIndex" value="${drIndex}"/>
<table class="STYLE1" width="100%" border="0" cellspacing="0" <table class="STYLE1" width="100%" border="0" cellspacing="0"
cellpadding="0"> cellpadding="0">
<tr style=""> <tr style="">
<td style="padding: 5px 0px 0px 5px"> <td style="padding: 5px 0px 0px 5px">
i18n_sp.text.query_n81i i18n_sp.text.query_n81i
<input type="text" id="query" <input type="text" id="query"
style="height: 15px; border: solid 1px; border-right-width: 0px;" /> style="height: 15px; border: solid 1px; border-right-width: 0px;" />
<span title="清空" id="clearQuery" <span title="清空" id="clearQuery"
style="cursor: pointer; margin-left: -3px; border: solid 1px; border-left-width: 0px; padding: 2px 5px 0px 5px">×</span> style="cursor: pointer; margin-left: -3px; border: solid 1px; border-left-width: 0px; padding: 2px 5px 0px 5px">×</span>
&nbsp;&nbsp;i18n_sp.message.query_n81i &nbsp;&nbsp;i18n_sp.message.query_n81i
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <td>
<div id="listDiv" <div id="listDiv"
style="margin:5px 0px;background-color: #d3eaef; height: 260px; overflow: auto;border:1px solid gray;"> style="margin:5px 0px;background-color: #d3eaef; height: 260px; overflow: auto;border:1px solid gray;">
<c:forEach items="${dataList}" var="item"> <c:forEach items="${dataList}" var="item">
<label class="item" title="${item}" ids="${item}"style="white-space: nowrap; text-overflow: ellipsis; overflow: hidden; width: 120px;"> <label class="item" title="${item}" ids="${item}"style="white-space: nowrap; text-overflow: ellipsis; overflow: hidden; width: 120px;">
<input class="checks" type="checkbox" value="${item}"/> <input class="checks" type="checkbox" value="${item}"/>
${item} ${item}
</label> </label>
</c:forEach> </c:forEach>
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td style="padding: 0px 5px"> <td style="padding: 0px 5px">
<input class="btn" style="width: 80px;float:left" id="clear" <input class="btn" style="width: 80px;float:left" id="clear"
type="button" value="i18n_sp.button.clear_n81i" /> type="button" value="i18n_sp.button.clear_n81i" />
<input class="btn" style="width: 80px;margin-left: 5px;float:right;" id="ok" type="button" <input class="btn" style="width: 80px;margin-left: 5px;float:right;" id="ok" type="button"
value="i18n_sp.button.ok_n81i" /> value="i18n_sp.button.ok_n81i" />
<input class="btn" style="width: 80px;margin-left: 5px;float:right;" id="cancel" type="button" <input class="btn" style="width: 80px;margin-left: 5px;float:right;" id="cancel" type="button"
value="i18n_sp.button.cancel_n81i" /> value="i18n_sp.button.cancel_n81i" />
</td> </td>
</tr> </tr>
</table> </table>
</form> </form>
</body> </body>
</html> </html>

View File

@@ -1,293 +1,293 @@
<%@ page language="java" pageEncoding="utf-8"%> <%@ page language="java" pageEncoding="utf-8"%>
<%@include file="/common/taglib.jsp"%> <%@include file="/common/taglib.jsp"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":" String basePath = request.getScheme() + "://" + request.getServerName() + ":"
+ request.getServerPort() + path + "/"; + request.getServerPort() + path + "/";
request.setAttribute("vEnter","\n"); request.setAttribute("vEnter","\n");
%> %>
<c:set var="index" value="${1}" /> <c:set var="index" value="${1}" />
<c:choose> <c:choose>
<c:when test="${fn:length(nodeIpGroupListNew) > 0}"> <c:when test="${fn:length(nodeIpGroupListNew) > 0}">
<c:forEach items="${nodeIpGroupListNew}" var="detecInfoList"> <c:forEach items="${nodeIpGroupListNew}" var="detecInfoList">
<c:forEach items="${detecInfoList}" var="rowData" varStatus="vs"> <c:forEach items="${detecInfoList}" var="rowData" varStatus="vs">
<c:set var="type" value="${rowData[2]}" /> <c:set var="type" value="${rowData[2]}" />
<c:if test="${vs.index==0}" var="flag"> <c:if test="${vs.index==0}" var="flag">
<tr> <tr>
<c:forEach items="${rowData}" var="cellData" varStatus="ind" <c:forEach items="${rowData}" var="cellData" varStatus="ind"
begin="1" end="8"> begin="1" end="8">
<c:set var="dniId" value="${rowData[0] }" /> <c:set var="dniId" value="${rowData[0] }" />
<c:set var="ctiId" value="${rowData[11] }" /> <c:set var="ctiId" value="${rowData[11] }" />
<c:set var="dsiId" value="${rowData[10] }" /> <c:set var="dsiId" value="${rowData[10] }" />
<c:set var="nodeIp" value="${rowData[1] }" /> <c:set var="nodeIp" value="${rowData[1] }" />
<c:set var="sqId" value="${rowData[12] }" /> <c:set var="sqId" value="${rowData[12] }" />
<c:set var="nodeSysType" value="${rowData[13] }" /> <c:set var="nodeSysType" value="${rowData[13] }" />
<c:set var="charStateNum" value="${rowData[14] }" /> <c:set var="charStateNum" value="${rowData[14] }" />
<c:set var="nodeType" value="${rowData[15] }" /> <c:set var="nodeType" value="${rowData[15] }" />
<c:set var="status" value="${rowData[4] }" /> <c:set var="status" value="${rowData[4] }" />
<c:choose> <c:choose>
<c:when test="${ind.index eq 1}"> <c:when test="${ind.index eq 1}">
<td class="color_1_1" rowspan="${fn:length(detecInfoList)}" <td class="color_1_1" rowspan="${fn:length(detecInfoList)}"
valign="top"> valign="top">
<!-- 2、 调用JS此处远程连接调用JS在/common/remoteConn.jsp中 --> <!-- 2、 调用JS此处远程连接调用JS在/common/remoteConn.jsp中 -->
<a href="javascript:void(0);" name="${cellData}" <a href="javascript:void(0);" name="${cellData}"
onclick="remoteConn('${nodeSysType }','${cellData}','${nodeType }', this)"> onclick="remoteConn('${nodeSysType }','${cellData}','${nodeType }', this)">
<c:out value="${cellData}" default="" /> <c:out value="${cellData}" default="" />
</a> </a>
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 2}"> <c:when test="${ind.index eq 2}">
<td class="color_1_1"> <td class="color_1_1">
<c:if test="${cellData == 'i18n_smilc.message.handshake_n81i'}"> <c:if test="${cellData == 'i18n_smilc.message.handshake_n81i'}">
<c:set var="handshake" value="true" /> <c:set var="handshake" value="true" />
</c:if> </c:if>
<a href="javascript:showRecord('${dniId }','${ctiId }')" <a href="javascript:showRecord('${dniId }','${ctiId }')"
title="i18n_smilc.message.showRecord_n81i"> <c:out value="${cellData}" default="" /> </a>&nbsp; title="i18n_smilc.message.showRecord_n81i"> <c:out value="${cellData}" default="" /> </a>&nbsp;
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 3}"> <c:when test="${ind.index eq 3}">
<td class="color_1_1"> <td class="color_1_1">
<a href="javascript:showDetectionInfo('${dsiId }','${sqId }')" <a href="javascript:showDetectionInfo('${dsiId }','${sqId }')"
title="i18n_smilc.message.showDetectionInfo_n81i"> <c:out value="${cellData}" default="" /> </a>&nbsp; title="i18n_smilc.message.showDetectionInfo_n81i"> <c:out value="${cellData}" default="" /> </a>&nbsp;
<c:if test="${charStateNum>0}"> <c:if test="${charStateNum>0}">
<a <a
href="javascript:drawPic('${ctiId }','${dsiId }','${sqId }')"> href="javascript:drawPic('${ctiId }','${dsiId }','${sqId }')">
<img <img
src="${pageContext.request.contextPath }/images/action.png" src="${pageContext.request.contextPath }/images/action.png"
border=0 height="15" width="15" alt="" title="i18n_smilc.message.drawPic_n81i" /> </a> border=0 height="15" width="15" alt="" title="i18n_smilc.message.drawPic_n81i" /> </a>
</c:if> </c:if>
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 4}"> <c:when test="${ind.index eq 4}">
<td class="color_1_1"> <td class="color_1_1">
<c:if test="${fn:trim(cellData)=='1'}"> <c:if test="${fn:trim(cellData)=='1'}">
<img src="<c:url value='/images/yes.gif'/>" border="0" <img src="<c:url value='/images/yes.gif'/>" border="0"
align="middle" /> align="middle" />
</c:if> </c:if>
<c:if <c:if
test="${(fn:trim(cellData) == '0' ||fn:trim(cellData) == '-1')&&type=='i18n_smilc.message.handshake_n81i' }" test="${(fn:trim(cellData) == '0' ||fn:trim(cellData) == '-1')&&type=='i18n_smilc.message.handshake_n81i' }"
var="handshakeEr"> var="handshakeEr">
<img src="<c:url value='/images/no.gif'/>" border="0" <img src="<c:url value='/images/no.gif'/>" border="0"
align="middle" /> align="middle" />
</c:if> </c:if>
<c:if <c:if
test="${(fn:trim(cellData) == '0' ||fn:trim(cellData) == '-1')&&type!='i18n_smilc.message.handshake_n81i' }"> test="${(fn:trim(cellData) == '0' ||fn:trim(cellData) == '-1')&&type!='i18n_smilc.message.handshake_n81i' }">
<img src="<c:url value='/images/no.gif'/>" border="0" <img src="<c:url value='/images/no.gif'/>" border="0"
align="middle" /> align="middle" />
</c:if> </c:if>
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 5}"> <c:when test="${ind.index eq 5}">
<td class="color_1_1"> <td class="color_1_1">
<c:out value="${cellData}" default="" /> <c:out value="${cellData}" default="" />
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 6}"> <c:when test="${ind.index eq 6}">
<td class="color_1_1" nowrap="nowrap"> <td class="color_1_1" nowrap="nowrap">
<c:if test="${status !='3'}"> <c:if test="${status !='3'}">
<c:out value="${cellData}" default="" /> <c:out value="${cellData}" default="" />
</c:if> </c:if>
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 8}"> <c:when test="${ind.index eq 8}">
<c:set value="${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set> <c:set value="${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set>
<td class="color_7_1" > <td class="color_7_1" >
<c:set value="${fn:replace(fn:replace(cellData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set> <c:set value="${fn:replace(fn:replace(cellData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set>
<span class="prop" data-temp="${stateInfoParam}" <%-- onmouseover="showTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}',this,event);" onmouseout="hideTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}');" --%> > <span class="prop" data-temp="${stateInfoParam}" <%-- onmouseover="showTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}',this,event);" onmouseout="hideTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}');" --%> >
<%-- <c:if test="${fn:length(stateInfo) >= 50}"> <%-- <c:if test="${fn:length(stateInfo) >= 50}">
${fn:substring(stateInfo,0,50)}... ${fn:substring(stateInfo,0,50)}...
</c:if> </c:if>
<c:if test="${fn:length(stateInfo) < 50}"> <c:if test="${fn:length(stateInfo) < 50}">
${stateInfo} ${stateInfo}
</c:if> --%> </c:if> --%>
<span class="stateInfoVal">${stateInfoParam}</span> <span class="stateInfoVal">${stateInfoParam}</span>
<%-- <span id="infoTipSpan_${sqId}_${ctiId}_${dsiId}" class="infoTip" style="display:none;">${stateInfoParam}</span> --%> <%-- <span id="infoTipSpan_${sqId}_${ctiId}_${dsiId}" class="infoTip" style="display:none;">${stateInfoParam}</span> --%>
</span> </span>
</td> </td>
</c:when> </c:when>
<c:otherwise> <c:otherwise>
<td class="color_1_1"> <td class="color_1_1">
<span class="STYLE1" style="word-break: break-all"> <span class="STYLE1" style="word-break: break-all">
${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')} </span> ${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')} </span>
</td> </td>
</c:otherwise> </c:otherwise>
</c:choose> </c:choose>
</c:forEach> </c:forEach>
</tr> </tr>
</c:if> </c:if>
<c:if test="${!flag}"> <c:if test="${!flag}">
<tr> <tr>
<c:forEach items="${rowData}" var="cellData" varStatus="ind" <c:forEach items="${rowData}" var="cellData" varStatus="ind"
begin="1" end="8"> begin="1" end="8">
<c:set var="dniId" value="${rowData[0] }" /> <c:set var="dniId" value="${rowData[0] }" />
<c:set var="ctiId" value="${rowData[11] }" /> <c:set var="ctiId" value="${rowData[11] }" />
<c:set var="dsiId" value="${rowData[10] }" /> <c:set var="dsiId" value="${rowData[10] }" />
<c:set var="nodeIp" value="${rowData[1] }" /> <c:set var="nodeIp" value="${rowData[1] }" />
<c:set var="sqId" value="${rowData[12] }" /> <c:set var="sqId" value="${rowData[12] }" />
<c:set var="charStateNum" value="${rowData[14] }" /> <c:set var="charStateNum" value="${rowData[14] }" />
<c:set var="status" value="${rowData[4] }" /> <c:set var="status" value="${rowData[4] }" />
<c:choose> <c:choose>
<c:when test="${ind.index eq 1}"> <c:when test="${ind.index eq 1}">
</c:when> </c:when>
<c:when test="${ind.index eq 2}"> <c:when test="${ind.index eq 2}">
<td class="color_1_1"> <td class="color_1_1">
<a href="javascript:showRecord('${dniId }','${ctiId }')" <a href="javascript:showRecord('${dniId }','${ctiId }')"
title="i18n_smilc.message.showRecord_n81i"> <c:out value="${cellData}" default="" /> </a>&nbsp; title="i18n_smilc.message.showRecord_n81i"> <c:out value="${cellData}" default="" /> </a>&nbsp;
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 3}"> <c:when test="${ind.index eq 3}">
<td class="color_1_1"> <td class="color_1_1">
<a href="javascript:showDetectionInfo('${dsiId }','${sqId }')" <a href="javascript:showDetectionInfo('${dsiId }','${sqId }')"
title="i18n_smilc.message.showDetectionInfo_n81i"> <c:out value="${cellData}" default="" /> </a>&nbsp; title="i18n_smilc.message.showDetectionInfo_n81i"> <c:out value="${cellData}" default="" /> </a>&nbsp;
<c:if test="${charStateNum>0}"> <c:if test="${charStateNum>0}">
<a <a
href="javascript:drawPic('${ctiId }','${dsiId }','${sqId }')"> href="javascript:drawPic('${ctiId }','${dsiId }','${sqId }')">
<img <img
src="${pageContext.request.contextPath }/images/action.png" src="${pageContext.request.contextPath }/images/action.png"
border=0 height="15" width="15" alt="" title="i18n_smilc.message.drawPic_n81i" /> </a> border=0 height="15" width="15" alt="" title="i18n_smilc.message.drawPic_n81i" /> </a>
</c:if> </c:if>
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 4}"> <c:when test="${ind.index eq 4}">
<td class="color_1_1"> <td class="color_1_1">
<c:if test="${!handshakeEr}"> <c:if test="${!handshakeEr}">
<c:if test="${fn:trim(cellData)=='1'}"> <c:if test="${fn:trim(cellData)=='1'}">
<img src="<c:url value='/images/yes.gif'/>" border="0" <img src="<c:url value='/images/yes.gif'/>" border="0"
align="middle" /> align="middle" />
</c:if> </c:if>
<c:if <c:if
test="${fn:trim(cellData) == '0' || fn:trim(cellData) == '-1'}"> test="${fn:trim(cellData) == '0' || fn:trim(cellData) == '-1'}">
<img src="<c:url value='/images/no.gif'/>" border="0" <img src="<c:url value='/images/no.gif'/>" border="0"
align="middle" /> align="middle" />
</c:if> </c:if>
</c:if> </c:if>
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 5}"> <c:when test="${ind.index eq 5}">
<td class="color_1_1" nowrap="nowrap"> <td class="color_1_1" nowrap="nowrap">
<c:out value="${cellData}" default="" /> <c:out value="${cellData}" default="" />
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 6}"> <c:when test="${ind.index eq 6}">
<td class="color_1_1" nowrap="nowrap"> <td class="color_1_1" nowrap="nowrap">
<c:if test="${!handshakeEr && status !='3'}"> <c:if test="${!handshakeEr && status !='3'}">
<c:out value="${cellData}" default="" /> <c:out value="${cellData}" default="" />
</c:if> </c:if>
</td> </td>
</c:when> </c:when>
<c:when test="${ind.index eq 8}"> <c:when test="${ind.index eq 8}">
<c:set value="${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set> <c:set value="${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}" var="stateInfo"></c:set>
<td class="color_7_1" > <td class="color_7_1" >
<c:set value="${fn:replace(fn:replace(cellData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set> <c:set value="${fn:replace(fn:replace(cellData,vEnter,'$@$'),'$@$','<br/>')}" var="stateInfoParam"></c:set>
<span class="prop" data-temp="${stateInfoParam}" <%-- onmouseover="showTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}',this,event);" onmouseout="hideTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}');" --%> > <span class="prop" data-temp="${stateInfoParam}" <%-- onmouseover="showTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}',this,event);" onmouseout="hideTitle('infoTipSpan_${sqId}_${ctiId}_${dsiId}');" --%> >
<%-- <c:if test="${fn:length(stateInfo) >= 50}"> <%-- <c:if test="${fn:length(stateInfo) >= 50}">
${fn:substring(stateInfo,0,50)}... ${fn:substring(stateInfo,0,50)}...
</c:if> </c:if>
<c:if test="${fn:length(stateInfo) < 50}"> <c:if test="${fn:length(stateInfo) < 50}">
${stateInfo} ${stateInfo}
</c:if> --%> </c:if> --%>
<span class="stateInfoVal">${stateInfoParam}</span> <span class="stateInfoVal">${stateInfoParam}</span>
<%-- <span id="infoTipSpan_${sqId}_${ctiId}_${dsiId}" class="infoTip" style="display:none;">${stateInfoParam}</span> --%> <%-- <span id="infoTipSpan_${sqId}_${ctiId}_${dsiId}" class="infoTip" style="display:none;">${stateInfoParam}</span> --%>
</span> </span>
</td> </td>
</c:when> </c:when>
<c:otherwise> <c:otherwise>
<td class="color_1_1"> <td class="color_1_1">
${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')} ${fn:replace(fn:replace(cellData,'$@$',''),'<br/>','')}
</td> </td>
</c:otherwise> </c:otherwise>
</c:choose> </c:choose>
</c:forEach> </c:forEach>
</tr> </tr>
</c:if> </c:if>
</c:forEach> </c:forEach>
</c:forEach> </c:forEach>
</c:when> </c:when>
</c:choose> </c:choose>
<script type="text/javascript" > <script type="text/javascript" >
/*--------------控制表格输出长度--------------------*/ /*--------------控制表格输出长度--------------------*/
$(function(){ $(function(){
$(".prop").each(function(){ $(".prop").each(function(){
var obj = $(this); var obj = $(this);
var tx = document.body.clientWidth; //文档的可见长宽 var tx = document.body.clientWidth; //文档的可见长宽
var ty = document.body.clientHeight; var ty = document.body.clientHeight;
$(obj).on("mouseenter",function(event){ $(obj).on("mouseenter",function(event){
event = event ? event : window.event; event = event ? event : window.event;
$(".popover").remove(); $(".popover").remove();
var x = event.clientX;//鼠标位置 var x = event.clientX;//鼠标位置
var y = event.clientY; var y = event.clientY;
//alert(tx + "," + ty + "," + x + "," + y); //alert(tx + "," + ty + "," + x + "," + y);
if (y < ty/2) { if (y < ty/2) {
var placement = "bottom"; var placement = "bottom";
} else { } else {
var placement = "top"; var placement = "top";
} }
$(obj).popover({ $(obj).popover({
html:true, html:true,
content:"<div class='pop-content'><div style='margin-right:15px'>" + $(this).attr("data-temp") + "</div></div>", content:"<div class='pop-content'><div style='margin-right:15px'>" + $(this).attr("data-temp") + "</div></div>",
placement:placement placement:placement
}); });
$(obj).popover("show"); $(obj).popover("show");
const ps = new PerfectScrollbar('.pop-content'); const ps = new PerfectScrollbar('.pop-content');
//修复因浏览器兼容性导致的弹出框位置不对的问题 //修复因浏览器兼容性导致的弹出框位置不对的问题
var pop = document.getElementsByClassName("popover")[0]; //弹出层的信息 var pop = document.getElementsByClassName("popover")[0]; //弹出层的信息
var popx1 = pop.offsetLeft; var popx1 = pop.offsetLeft;
var popy1 = pop.offsetTop; var popy1 = pop.offsetTop;
var popx2 = pop.offsetLeft + pop.offsetWidth; var popx2 = pop.offsetLeft + pop.offsetWidth;
var popy2 = pop.offsetTop + pop.offsetHeight; var popy2 = pop.offsetTop + pop.offsetHeight;
var propy1 = $(obj).offset().top; var propy1 = $(obj).offset().top;
var propy2 = $(obj).offset().top + $(obj).height(); var propy2 = $(obj).offset().top + $(obj).height();
if (placement == "top") { if (placement == "top") {
if (propy1 < popy2) { if (propy1 < popy2) {
$(pop).css("top", propy1 - 3); $(pop).css("top", propy1 - 3);
} }
} else if (placement == "bottom") { } else if (placement == "bottom") {
if (propy2 > popy1) { if (propy2 > popy1) {
$(pop).css("top", propy2 + 3); $(pop).css("top", propy2 + 3);
} }
} }
}).on("mouseleave",function(event){ }).on("mouseleave",function(event){
event = event ? event : window.event; event = event ? event : window.event;
var pop = document.getElementsByClassName("popover")[0]; //弹出层的信息 var pop = document.getElementsByClassName("popover")[0]; //弹出层的信息
var popx1 = pop.offsetLeft; var popx1 = pop.offsetLeft;
var popy1 = pop.offsetTop; var popy1 = pop.offsetTop;
var popx2 = pop.offsetLeft + pop.offsetWidth; var popx2 = pop.offsetLeft + pop.offsetWidth;
var popy2 = pop.offsetTop + pop.offsetHeight; var popy2 = pop.offsetTop + pop.offsetHeight;
//var popChild = $(obj).find(".stateInfoVal")[0]; //td中的span //var popChild = $(obj).find(".stateInfoVal")[0]; //td中的span
//var popChildyHeight = popChild.offsetHeight; //var popChildyHeight = popChild.offsetHeight;
var x = event.clientX; //鼠标位置 var x = event.clientX; //鼠标位置
var y = event.clientY; var y = event.clientY;
if (y < ty/2) { if (y < ty/2) {
var extraTop = 3; var extraTop = 3;
var extraBottom = 0; var extraBottom = 0;
} else { } else {
var extraTop = 0; var extraTop = 0;
var extraBottom = 3; var extraBottom = 3;
} }
if (x < popx1 || x > popx2 || y < (popy1 - extraTop) || y > (popy2 + extraBottom)) { if (x < popx1 || x > popx2 || y < (popy1 - extraTop) || y > (popy2 + extraBottom)) {
$(obj).popover("hide"); $(obj).popover("hide");
} else { } else {
$(pop).on("mouseleave",function(event){ $(pop).on("mouseleave",function(event){
$(obj).popover("hide"); $(obj).popover("hide");
}); });
} }
}); });
}); });
var stateInfos=$(".stateInfoVal"); var stateInfos=$(".stateInfoVal");
for(var i=0;i<stateInfos.length;i++){ for(var i=0;i<stateInfos.length;i++){
var infoVal=$(stateInfos[i]).text().replace("<br>","").replace("<br/>","").trim(); var infoVal=$(stateInfos[i]).text().replace("<br>","").replace("<br/>","").trim();
if(infoVal.length>50){ if(infoVal.length>50){
$(stateInfos[i]).html(infoVal.substring(0,50)).append("..."); $(stateInfos[i]).html(infoVal.substring(0,50)).append("...");
}else{ }else{
$(stateInfos[i]).html(infoVal); $(stateInfos[i]).html(infoVal);
} }
} }
}); });
</script> </script>

File diff suppressed because it is too large Load Diff

View File

@@ -1,349 +1,349 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="/jstl/c"%> <%@ taglib prefix="c" uri="/jstl/c"%>
<%@ taglib prefix="fn" uri="/jstl/fn"%> <%@ taglib prefix="fn" uri="/jstl/fn"%>
<%@ taglib prefix="fmt" uri="/jstl/fmt"%> <%@ taglib prefix="fmt" uri="/jstl/fmt"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
%> %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_vil.message.title_n81i</title> <title>i18n_vil.message.title_n81i</title>
<link href="<c:url value='/desktop/css/index${userBgColor }.css'/>" <link href="<c:url value='/desktop/css/index${userBgColor }.css'/>"
rel="stylesheet" type="text/css" /> rel="stylesheet" type="text/css" />
<script src="<c:url value='/js/onmouse${userBgColor }.js'/>" <script src="<c:url value='/js/onmouse${userBgColor }.js'/>"
type="text/javascript"></script> type="text/javascript"></script>
<link href="<c:url value='/css/styles.css'/>" rel="stylesheet" <link href="<c:url value='/css/styles.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<link href="<c:url value='/css/suggest.css'/>" rel="stylesheet" <link href="<c:url value='/css/suggest.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/datepicker/WdatePicker.js'/>"></script> src="<c:url value='/js/datepicker/WdatePicker.js'/>"></script>
<script type="text/javascript" src="<%=path%>/templates/js/object.js"></script> <script type="text/javascript" src="<%=path%>/templates/js/object.js"></script>
<script type="text/javascript" src="<%=path%>/templates/js/common.js"></script> <script type="text/javascript" src="<%=path%>/templates/js/common.js"></script>
<script src="<c:url value='/js/jquery.js'/>" type="text/javascript"></script> <script src="<c:url value='/js/jquery.js'/>" type="text/javascript"></script>
<script type="text/javascript" <script type="text/javascript"
src="<c:url value='/js/jquery.suggest.js' />"></script> src="<c:url value='/js/jquery.suggest.js' />"></script>
</head> </head>
<script language="javascript" type="text/javascript"> <script language="javascript" type="text/javascript">
//查询记录 //查询记录
function qry(){ function qry(){
document.form3.action = "<%=path%>/detection/monitorData.do?action=query"; document.form3.action = "<%=path%>/detection/monitorData.do?action=query";
document.form3.submit(); document.form3.submit();
} }
//查看详情 //查看详情
function showRecord(monid){ function showRecord(monid){
document.form3.action = "<%=path%>/detection/monitorData!executeAction.do?action=detail&ids="+monid; document.form3.action = "<%=path%>/detection/monitorData!executeAction.do?action=detail&ids="+monid;
document.form3.submit(); document.form3.submit();
} }
//绘制折线图 //绘制折线图
function drawPic(ctid,dsiId,ip){ function drawPic(ctid,dsiId,ip){
document.form3.action = "<%=path%>/detection/monitorData!executeAction.do?action=drawPic&checkTypeId="+ctid+"&dsiId="+dsiId+"&ip="+ip; document.form3.action = "<%=path%>/detection/monitorData!executeAction.do?action=drawPic&checkTypeId="+ctid+"&dsiId="+dsiId+"&ip="+ip;
document.form3.submit(); document.form3.submit();
} }
//parent.document.all("listFrame").style.height = document.body.scrollHeight + 16; //parent.document.all("listFrame").style.height = document.body.scrollHeight + 16;
var set_Id; var set_Id;
var ajaxProperties = ""; var ajaxProperties = "";
var ajaxTableName = ""; var ajaxTableName = "";
var ajaxType = ""; var ajaxType = "";
var id = ""; var id = "";
var returnDiv = ""; var returnDiv = "";
var ajaxValue = ""; var ajaxValue = "";
function lianxiangkeydown() { function lianxiangkeydown() {
clearTimeout(set_Id); clearTimeout(set_Id);
} }
function lianxiangkeyup(ajaxProperties1,ajaxTableName1,ajaxType1,id1,returnDiv1,ajaxValue1) { function lianxiangkeyup(ajaxProperties1,ajaxTableName1,ajaxType1,id1,returnDiv1,ajaxValue1) {
if(parent.document.getElementById("lianxiangStatus").value=="2") if(parent.document.getElementById("lianxiangStatus").value=="2")
{ {
if(jQuery.trim(ajaxValue1)=="") return false; if(jQuery.trim(ajaxValue1)=="") return false;
ajaxProperties = ajaxProperties1; ajaxProperties = ajaxProperties1;
ajaxTableName = ajaxTableName1; ajaxTableName = ajaxTableName1;
ajaxType = ajaxType1; ajaxType = ajaxType1;
id = id1; id = id1;
returnDiv = returnDiv1; returnDiv = returnDiv1;
ajaxValue = ajaxValue1; ajaxValue = ajaxValue1;
clearTimeout(set_Id); clearTimeout(set_Id);
set_Id = setTimeout(ajaxForLianxiang,500); set_Id = setTimeout(ajaxForLianxiang,500);
} }
} }
function ajaxForLianxiang() function ajaxForLianxiang()
{ {
jQuery.post("<%=path%>/sysManage/sysPopedomManage!queryInfoForAjax.do", jQuery.post("<%=path%>/sysManage/sysPopedomManage!queryInfoForAjax.do",
{"ajaxProperties":ajaxProperties,"ajaxTableName":ajaxTableName,"ajaxType":ajaxType,"ajaxValue":ajaxValue},function(data) {"ajaxProperties":ajaxProperties,"ajaxTableName":ajaxTableName,"ajaxType":ajaxType,"ajaxValue":ajaxValue},function(data)
{ {
var lianxiangList = data.split(","); var lianxiangList = data.split(",");
jQuery("#"+id).suggest(lianxiangList,{hot_list:lianxiangList,attachObject:"#"+returnDiv}); jQuery("#"+id).suggest(lianxiangList,{hot_list:lianxiangList,attachObject:"#"+returnDiv});
}); });
} }
</script> </script>
<body> <body>
<form name=form3 id="frmArticleType" <form name=form3 id="frmArticleType"
action="<c:url value='/detection/monitorData.do'/>" method="post"> action="<c:url value='/detection/monitorData.do'/>" method="post">
<table width="99%" align="center" align="center" cellpadding="0" <table width="99%" align="center" align="center" cellpadding="0"
cellspacing="1" class="ta_color"> cellspacing="1" class="ta_color">
<div style="height: 3px; width: 100%; margin: 0px auto; padding: 0px;"></div> <div style="height: 3px; width: 100%; margin: 0px auto; padding: 0px;"></div>
<tr> <tr>
<td colspan="10"> <td colspan="10">
<table width="100%" border="0" cellpadding="0" cellspacing="1" <table width="100%" border="0" cellpadding="0" cellspacing="1"
class="ta_color"> class="ta_color">
<tr class="td_color"> <tr class="td_color">
<jsp:include page="/include/include.jsp"></jsp:include> <jsp:include page="/include/include.jsp"></jsp:include>
</tr> </tr>
<tr align="left"> <tr align="left">
<td height="20" class="td_color" nowrap> <td height="20" class="td_color" nowrap>
<div align="left"> <div align="left">
<span class="STYLE1">&nbsp;&nbsp;i18n_vil.text.hostName_n81i : </span> <span class="STYLE1">&nbsp;&nbsp;i18n_vil.text.hostName_n81i : </span>
</div> </div>
</td> </td>
<td height="20" bgcolor="#FFFFFF" nowrap> <td height="20" bgcolor="#FFFFFF" nowrap>
<div align="left"> <div align="left">
<span class="STYLE1"> &nbsp;&nbsp;<input type="text" <span class="STYLE1"> &nbsp;&nbsp;<input type="text"
id="nodeIp" id="nodeIp"
onkeyup="lianxiangkeyup('nodeIp','NodeTable','String','nodeIp','suggest1',this.value);" onkeyup="lianxiangkeyup('nodeIp','NodeTable','String','nodeIp','suggest1',this.value);"
name="nodeIp" title="i18n_vil.message.hostName_n81i" value="${nodeIp}" size="20" /> name="nodeIp" title="i18n_vil.message.hostName_n81i" value="${nodeIp}" size="20" />
</span> </span>
<div id='suggest1' class="ac_results"></div> <div id='suggest1' class="ac_results"></div>
</div> </div>
</td> </td>
<td height="20" class="td_color" nowrap> <td height="20" class="td_color" nowrap>
<div align="left"> <div align="left">
<span class="STYLE1">&nbsp;&nbsp;i18n_vil.text.checkType_n81i : </span> <span class="STYLE1">&nbsp;&nbsp;i18n_vil.text.checkType_n81i : </span>
</div> </div>
</td> </td>
<td height="20" bgcolor="#FFFFFF" nowrap> <td height="20" bgcolor="#FFFFFF" nowrap>
<div align="left"> <div align="left">
<span class="STYLE1"> <span class="STYLE1">
&nbsp;&nbsp; &nbsp;&nbsp;
<input type="text" id="checkTypeName" <input type="text" id="checkTypeName"
onkeyup="lianxiangkeyup('checkTypeName', 'CheckTypeInfo', 'String', 'checkTypeName','suggest2', this.value);" onkeyup="lianxiangkeyup('checkTypeName', 'CheckTypeInfo', 'String', 'checkTypeName','suggest2', this.value);"
name="checkTypeName" name="checkTypeName"
title="i18n_vil.message.checkType_n81i" title="i18n_vil.message.checkType_n81i"
value="${checkTypeName}" size="20" /> value="${checkTypeName}" size="20" />
</span> </span>
<div id='suggest2' class="ac_results"></div> <div id='suggest2' class="ac_results"></div>
</div> </div>
</td> </td>
<td height="20" class="td_color"> <td height="20" class="td_color">
<div align="center"> <div align="center">
<img src="<c:url value='/desktop/images/anniu/anniu_3${userBgColor }.png'/>" <img src="<c:url value='/desktop/images/anniu/anniu_3${userBgColor }.png'/>"
align="center" onclick="javascript:qry()" align="center" onclick="javascript:qry()"
border="0" /> border="0" />
</div> </div>
</td> </td>
</tr> </tr>
</table> </table>
</td> </td>
</tr> </tr>
<tr> <tr>
<td width="10%" class="td_color" nowrap> <td width="10%" class="td_color" nowrap>
<div align="center"> <div align="center">
<span class="STYLE1">i18n_vil.text.hostName_n81i</span> <span class="STYLE1">i18n_vil.text.hostName_n81i</span>
</div> </div>
</td> </td>
<td width="8%" class="td_color" nowrap> <td width="8%" class="td_color" nowrap>
<div align="center"> <div align="center">
<span class="STYLE1">i18n_vil.text.checkType_n81i</span> <span class="STYLE1">i18n_vil.text.checkType_n81i</span>
</div> </div>
</td> </td>
<td width="8%" class="td_color" nowrap> <td width="8%" class="td_color" nowrap>
<div align="center"> <div align="center">
<span class="STYLE1">i18n_vil.text.processIdenName_n81i</span> <span class="STYLE1">i18n_vil.text.processIdenName_n81i</span>
</div> </div>
</td> </td>
<td width="5%" class="td_color"> <td width="5%" class="td_color">
<div align="center"> <div align="center">
<span class="STYLE1">i18n_vil.text.state_n81i</span> <span class="STYLE1">i18n_vil.text.state_n81i</span>
</div> </div>
</td> </td>
<td width="10%" class="td_color"> <td width="10%" class="td_color">
<div align="center"> <div align="center">
<span class="STYLE1">i18n_vil.text.dataCheckTime_n81i</span> <span class="STYLE1">i18n_vil.text.dataCheckTime_n81i</span>
</div> </div>
</td> </td>
<td width="10%" class="td_color"> <td width="10%" class="td_color">
<div align="center"> <div align="center">
<span class="STYLE1">i18n_vil.text.persistTime_n81i</span> <span class="STYLE1">i18n_vil.text.persistTime_n81i</span>
</div> </div>
</td> </td>
<td width="5%" class="td_color"> <td width="5%" class="td_color">
<div align="center"> <div align="center">
<span class="STYLE1">i18n_vil.text.tryTimes_n81i</span> <span class="STYLE1">i18n_vil.text.tryTimes_n81i</span>
</div> </div>
</td> </td>
<td width="22%" class="td_color"> <td width="22%" class="td_color">
<div align="center"> <div align="center">
<span class="STYLE1">i18n_vil.text.stateInfo_n81i</span> <span class="STYLE1">i18n_vil.text.stateInfo_n81i</span>
</div> </div>
</td> </td>
</tr> </tr>
<c:set var="index" value="${1}" /> <c:set var="index" value="${1}" />
<c:choose> <c:choose>
<c:when test="${fn:length(vnodeIpGroupList) > 0}"> <c:when test="${fn:length(vnodeIpGroupList) > 0}">
<c:forEach items="${vnodeIpGroupList}" var="detecInfoList"> <c:forEach items="${vnodeIpGroupList}" var="detecInfoList">
<c:forEach items="${detecInfoList}" var="detecNewInfo" <c:forEach items="${detecInfoList}" var="detecNewInfo"
varStatus="vs"> varStatus="vs">
<c:if test="${vs.index==0}" var="flag"> <c:if test="${vs.index==0}" var="flag">
<tr> <tr>
<td bgcolor="#FFFFFF" rowspan="${fn:length(detecInfoList)}" valign="top"> <td bgcolor="#FFFFFF" rowspan="${fn:length(detecInfoList)}" valign="top">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1"> <span class="STYLE1">
<c:if test="${detecNewInfo.nodeIp != null }">${detecNewInfo.nodeIp}</c:if> <c:if test="${detecNewInfo.nodeIp != null }">${detecNewInfo.nodeIp}</c:if>
<c:if test="${detecNewInfo.nodeIp == null }">&nbsp;</c:if> <c:if test="${detecNewInfo.nodeIp == null }">&nbsp;</c:if>
</span> </span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF"> <td bgcolor="#FFFFFF">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1"> <a <span class="STYLE1"> <a
href="javascript:showRecord('${detecNewInfo.id }')">${detecNewInfo.detectionSetInfo.checkTypeInfo.checkTypeName}</a>&nbsp;&nbsp; href="javascript:showRecord('${detecNewInfo.id }')">${detecNewInfo.detectionSetInfo.checkTypeInfo.checkTypeName}</a>&nbsp;&nbsp;
<a <a
href="javascript:drawPic('${detecNewInfo.detectionSetInfo.checkTypeInfo.id }','${detecNewInfo.detectionSetInfo.id }','${detecNewInfo.nodeIp}')"><img href="javascript:drawPic('${detecNewInfo.detectionSetInfo.checkTypeInfo.id }','${detecNewInfo.detectionSetInfo.id }','${detecNewInfo.nodeIp}')"><img
src="${pageContext.request.contextPath }/img/action.gif" src="${pageContext.request.contextPath }/img/action.gif"
border=0 height="15" width="15" alt=""> </a> </span> border=0 height="15" width="15" alt=""> </a> </span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF"> <td bgcolor="#FFFFFF">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1">${detecNewInfo.detectionSetInfo.processIden}</span> <span class="STYLE1">${detecNewInfo.detectionSetInfo.processIden}</span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF"> <td bgcolor="#FFFFFF">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1"> <span class="STYLE1">
<c:if test="${fn:trim(detecNewInfo.detectionedState)=='1'}"><img src="<c:url value='/desktop/images/desktop/yes.gif'/>" <c:if test="${fn:trim(detecNewInfo.detectionedState)=='1'}"><img src="<c:url value='/desktop/images/desktop/yes.gif'/>"
border="0" align="middle" /></c:if> border="0" align="middle" /></c:if>
<c:if test="${fn:trim(detecNewInfo.detectionedState) ne '1'}"><img src="<c:url value='/desktop/images/desktop/no.gif'/>" <c:if test="${fn:trim(detecNewInfo.detectionedState) ne '1'}"><img src="<c:url value='/desktop/images/desktop/no.gif'/>"
border="0" align="middle" /></c:if> border="0" align="middle" /></c:if>
</span> </span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF"> <td bgcolor="#FFFFFF">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1"><fmt:formatDate value="${detecNewInfo.datacheckTime}" pattern="yyyy-MM-dd HH:mm:ss"/> <span class="STYLE1"><fmt:formatDate value="${detecNewInfo.datacheckTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
</span> </span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF"> <td bgcolor="#FFFFFF">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1">${detecNewInfo.persistTime}</span> <span class="STYLE1">${detecNewInfo.persistTime}</span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF"> <td bgcolor="#FFFFFF">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1">${detecNewInfo.currentTimes}</span> <span class="STYLE1">${detecNewInfo.currentTimes}</span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF"> <td bgcolor="#FFFFFF">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1">${detecNewInfo.detectionStateInfo}</span> <span class="STYLE1">${detecNewInfo.detectionStateInfo}</span>
</div> </div>
</td> </td>
</tr> </tr>
</c:if> </c:if>
<c:if test="${!flag}"> <c:if test="${!flag}">
<tr> <tr>
<!-- <!--
<td bgcolor="#FFFFFF"> <td bgcolor="#FFFFFF">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<input type="checkbox" name="ids" id="ids" <input type="checkbox" name="ids" id="ids"
value="${detecNewInfo.id}" /> value="${detecNewInfo.id}" />
<span class="STYLE1">${index+(pageNo-1)*pageSize}</span> <span class="STYLE1">${index+(pageNo-1)*pageSize}</span>
</div> </div>
</td> </td>
--> -->
<td bgcolor="#FFFFFF"> <td bgcolor="#FFFFFF">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1"> <a <span class="STYLE1"> <a
href="javascript:showRecord('${detecNewInfo.id }')">${detecNewInfo.detectionSetInfo.checkTypeInfo.checkTypeName}</a>&nbsp;&nbsp; href="javascript:showRecord('${detecNewInfo.id }')">${detecNewInfo.detectionSetInfo.checkTypeInfo.checkTypeName}</a>&nbsp;&nbsp;
<a href="javascript:drawPic('${detecNewInfo.detectionSetInfo.checkTypeInfo.id }','${detecNewInfo.detectionSetInfo.id }','${detecNewInfo.nodeIp}')"> <a href="javascript:drawPic('${detecNewInfo.detectionSetInfo.checkTypeInfo.id }','${detecNewInfo.detectionSetInfo.id }','${detecNewInfo.nodeIp}')">
<img src="${pageContext.request.contextPath }/img/action.gif" border=0 height="15" width="15" alt=""> </a> </span> <img src="${pageContext.request.contextPath }/img/action.gif" border=0 height="15" width="15" alt=""> </a> </span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF"> <td bgcolor="#FFFFFF">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1">${detecNewInfo.detectionSetInfo.processIden}</span> <span class="STYLE1">${detecNewInfo.detectionSetInfo.processIden}</span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF"> <td bgcolor="#FFFFFF">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1"> <span class="STYLE1">
<c:if test="${fn:trim(detecNewInfo.detectionedState)=='0'}"><img src="<c:url value='/desktop/images/desktop/no.gif'/>" <c:if test="${fn:trim(detecNewInfo.detectionedState)=='0'}"><img src="<c:url value='/desktop/images/desktop/no.gif'/>"
border="0" align="middle" /></c:if> border="0" align="middle" /></c:if>
<c:if test="${fn:trim(detecNewInfo.detectionedState)=='1'}"><img src="<c:url value='/desktop/images/desktop/yes.gif'/>" <c:if test="${fn:trim(detecNewInfo.detectionedState)=='1'}"><img src="<c:url value='/desktop/images/desktop/yes.gif'/>"
border="0" align="middle" /></c:if> border="0" align="middle" /></c:if>
<c:if test="${fn:trim(detecNewInfo.detectionedState)=='-1'}"><img src="<c:url value='/desktop/images/desktop/no.gif'/>" <c:if test="${fn:trim(detecNewInfo.detectionedState)=='-1'}"><img src="<c:url value='/desktop/images/desktop/no.gif'/>"
border="0" align="middle" /></c:if> border="0" align="middle" /></c:if>
</span> </span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF"> <td bgcolor="#FFFFFF">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1"><fmt:formatDate value="${detecNewInfo.datacheckTime}" pattern="yyyy-MM-dd HH:mm:ss"/></span> <span class="STYLE1"><fmt:formatDate value="${detecNewInfo.datacheckTime}" pattern="yyyy-MM-dd HH:mm:ss"/></span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF"> <td bgcolor="#FFFFFF">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1">${detecNewInfo.persistTime}</span> <span class="STYLE1">${detecNewInfo.persistTime}</span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF"> <td bgcolor="#FFFFFF">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1">${detecNewInfo.currentTimes}</span> <span class="STYLE1">${detecNewInfo.currentTimes}</span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF"> <td bgcolor="#FFFFFF">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1">${detecNewInfo.detectionStateInfo}</span> <span class="STYLE1">${detecNewInfo.detectionStateInfo}</span>
</div> </div>
</td> </td>
</tr> </tr>
</c:if> </c:if>
<c:set var="index" value="${index + 1}" /> <c:set var="index" value="${index + 1}" />
</c:forEach> </c:forEach>
</c:forEach> </c:forEach>
</c:when> </c:when>
<c:otherwise> <c:otherwise>
<tr> <tr>
<td colspan="10" height="20" bgcolor="#FFFFFF"> <td colspan="10" height="20" bgcolor="#FFFFFF">
<div align="center"> <div align="center">
<span class="STYLE1">i18n_vil.text.noRecord_n81i${fn:length(vnodeIpGroupList)}</span> <span class="STYLE1">i18n_vil.text.noRecord_n81i${fn:length(vnodeIpGroupList)}</span>
</div> </div>
</td> </td>
</tr> </tr>
</c:otherwise> </c:otherwise>
</c:choose> </c:choose>
<tr> <tr>
<td height="20" colspan="10" class="td_color"> <td height="20" colspan="10" class="td_color">
<jsp:include page="/common/page.jsp" /></td> <jsp:include page="/common/page.jsp" /></td>
</tr> </tr>
</table> </table>
</form> </form>
<br /> <br />
</body> </body>
</html> </html>

View File

@@ -1,115 +1,115 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%> <%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib uri="/jstl/fn" prefix="fn"%> <%@ taglib uri="/jstl/fn" prefix="fn"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
%> %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!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"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_aod.message.title_n81i</title> <title>i18n_aod.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" <link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script> src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script> src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.tools.js'/>"></script> src="<c:url value='/js/jquery.tools.js'/>"></script>
</head> </head>
<script language="javascript" type="text/javascript"> <script language="javascript" type="text/javascript">
function add(){ function add(){
if($id("odid","","OID")&& $id("oddesc","","i18n_aod.message.oddesc_n81i")){ if($id("odid","","OID")&& $id("oddesc","","i18n_aod.message.oddesc_n81i")){
if(checkOID($("#odid").val())){//验证code是否为数字 if(checkOID($("#odid").val())){//验证code是否为数字
document.Mkform.action = "<%=path%>/detection/oidDictionary.do?action=doAdd"; document.Mkform.action = "<%=path%>/detection/oidDictionary.do?action=doAdd";
document.Mkform.submit() document.Mkform.submit()
}else{ }else{
$("#oidFont").text("i18n_aod.message.oidFont_n81i"); $("#oidFont").text("i18n_aod.message.oidFont_n81i");
$("#odid").val(""); $("#odid").val("");
$("#odid").focus(); $("#odid").focus();
return; return;
} }
} }
} }
function goBack(){ function goBack(){
document.Mkform.action="<%=path%>/detection/oidDictionary.do?action=query"; document.Mkform.action="<%=path%>/detection/oidDictionary.do?action=query";
document.Mkform.submit(); document.Mkform.submit();
} }
//验证oid //验证oid
function checkOID(oid){ function checkOID(oid){
var cs = /^[1-9]([\d\.]+\d)?$/; var cs = /^[1-9]([\d\.]+\d)?$/;
var resu = cs.test(oid); var resu = cs.test(oid);
return resu; return resu;
} }
</script> </script>
<body> <body>
<div class="middle_list" > <div class="middle_list" >
<form action="" name="Mkform" method="post"> <form action="" name="Mkform" method="post">
<input type="hidden" name="pageNo" value="${pageNo }" /> <input type="hidden" name="pageNo" value="${pageNo }" />
<input type="hidden" name="pageSize" value="${pageSize }" /> <input type="hidden" name="pageSize" value="${pageSize }" />
<div style="clear: both"></div> <div style="clear: both"></div>
<table border="0" cellpadding="0" cellspacing="0" class="table"> <table border="0" cellpadding="0" cellspacing="0" class="table">
<tr> <tr>
<td colspan="2" class="color_8"> <td colspan="2" class="color_8">
<strong>i18n_aod.text.title_n81i</strong> <strong>i18n_aod.text.title_n81i</strong>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" width="20%" align="right" nowrap="nowrap"> <td class="color_1" width="20%" align="right" nowrap="nowrap">
OID OID
</td> </td>
<td class="color_3" width="30%" align="left"> <td class="color_3" width="30%" align="left">
<input type="text" name="od.oid" id="odid"/> <input type="text" name="od.oid" id="odid"/>
<font id="oidFont" color="red">*</font> <font id="oidFont" color="red">*</font>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" width="20%" align="right" nowrap="nowrap"> <td class="color_1" width="20%" align="right" nowrap="nowrap">
i18n_aod.message.oddesc_n81i i18n_aod.message.oddesc_n81i
</td> </td>
<td class="color_3" width="30%" align="left"> <td class="color_3" width="30%" align="left">
<input type="text" name="od.oidDesc" <input type="text" name="od.oidDesc"
id="oddesc"/> id="oddesc"/>
<font color="red">*</font> <font color="red">*</font>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_7" colspan="2" align="right"> <td class="color_7" colspan="2" align="right">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onclick="add()" onmouseup="this.className='btn3_mouseup'" onclick="add()"
value="i18n_aod.button.submit_n81i"/> value="i18n_aod.button.submit_n81i"/>
&nbsp; &nbsp;
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="javascript:document.forms['Mkform'].reset()" onclick="javascript:document.forms['Mkform'].reset()"
value="i18n_aod.button.reset_n81i"/> value="i18n_aod.button.reset_n81i"/>
&nbsp; &nbsp;
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="goBack()" value="i18n_aod.button.back_n81i"/> onclick="goBack()" value="i18n_aod.button.back_n81i"/>
&nbsp; &nbsp;
</td> </td>
</tr> </tr>
</table> </table>
</form> </form>
</div> </div>
</body> </body>
</html> </html>

View File

@@ -1,138 +1,138 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="/common/taglib.jsp"%> <%@include file="/common/taglib.jsp"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
%> %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!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"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>i18n_odl.message.title_n81i</title> <title>i18n_odl.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" <link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script> src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script> src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.suggest.js'/>"></script> src="<c:url value='/js/jquery.suggest.js'/>"></script>
<script type="text/javascript" <script type="text/javascript"
src="<c:url value='/js/ui/jquery-ui.min.js'/>"></script> src="<c:url value='/js/ui/jquery-ui.min.js'/>"></script>
<script type="text/javascript"> <script type="text/javascript">
function addRecord(){ function addRecord(){
document.form1.action = "<%=path%>/detection/oidDictionary.do?action=openAdd&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }'; document.form1.action = "<%=path%>/detection/oidDictionary.do?action=openAdd&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }';
document.form1.submit(); document.form1.submit();
} }
function updateRecord(id){ function updateRecord(id){
document.form1.action = "<%=path%>/detection/oidDictionary.do?action=openUpdate&odid="+id+"&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }'; document.form1.action = "<%=path%>/detection/oidDictionary.do?action=openUpdate&odid="+id+"&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }';
document.form1.submit(); document.form1.submit();
} }
function ieBrowser(){ function ieBrowser(){
if($.browser.msie){ if($.browser.msie){
if($.browser.version.split('.')[0]<=7){ if($.browser.version.split('.')[0]<=7){
return false; return false;
}else{ }else{
return true;//ie8+ return true;//ie8+
} }
} }
} }
$(function(){ $(function(){
var dh = document.body.clientHeight; var dh = document.body.clientHeight;
var dhh = dh-60+"px;"; var dhh = dh-60+"px;";
var tableHeight = $("#info").height(); var tableHeight = $("#info").height();
if(tableHeight > dh-60){ 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); $("#maindiv").attr("style","clear:both;margin-left:6px;overflow-y:auto;overflow-x:auto;width:99%;font-size:12px;height: "+dhh);
if(ieBrowser()){ if(ieBrowser()){
$("#info").attr("style","width:100%;"); $("#info").attr("style","width:100%;");
}else{ }else{
$("#info").attr("style","width:98.5%;"); $("#info").attr("style","width:98.5%;");
} }
}else{ }else{
$("#maindiv").attr("style","clear:both;margin-left:6px;overflow-y:auto;overflow-x:auto;width:98%;font-size:12px;height: "+dhh); $("#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%;"); $("#info").attr("style","width:100%;");
} }
$("#info").floatHeaderDiv(); $("#info").floatHeaderDiv();
}); });
</script> </script>
</head> </head>
<body> <body>
<div class="middle_list" style="overflow: hidden;"> <div class="middle_list" style="overflow: hidden;">
<form name=form1 id="form1" action="<c:url value='/detection/oidDictionary.do'/>" method="post" > <form name=form1 id="form1" action="<c:url value='/detection/oidDictionary.do'/>" method="post" >
<!--中间部分右边开始--> <!--中间部分右边开始-->
<div id="divTop"> <div id="divTop">
<div class="box_1"> <div class="box_1">
&nbsp; &nbsp;
</div> </div>
<div class="box_2">&nbsp;<jsp:include page="/include/include.jsp" /></div> <div class="box_2">&nbsp;<jsp:include page="/include/include.jsp" /></div>
</div> </div>
<div id="maindiv"> <div id="maindiv">
<table border="0" cellpadding="0" cellspacing="0" class="table" id="info"> <table border="0" cellpadding="0" cellspacing="0" class="table" id="info">
<tr> <tr>
<td class="color_top" width="4%"> <td class="color_top" width="4%">
i18n_odl.text.index_n81i i18n_odl.text.index_n81i
</td> </td>
<td class="color_top" width="8%"> <td class="color_top" width="8%">
OID OID
</td> </td>
<td class="color_top" width="8%"> <td class="color_top" width="8%">
i18n_odl.text.oddesc_n81i i18n_odl.text.oddesc_n81i
</td> </td>
<td class="color_8" width="12%"> <td class="color_8" width="12%">
i18n_odl.text.option_n81i i18n_odl.text.option_n81i
</td> </td>
</tr> </tr>
<c:set var="index" value="${1}" /> <c:set var="index" value="${1}" />
<c:choose> <c:choose>
<c:when test="${fn:length(oidDictionaryList) > 0}"> <c:when test="${fn:length(oidDictionaryList) > 0}">
<c:forEach items="${oidDictionaryList}" var="aui" varStatus="vs"> <c:forEach items="${oidDictionaryList}" var="aui" varStatus="vs">
<input type="hidden" id="erbh${aui.id }" <input type="hidden" id="erbh${aui.id }"
name="erbh${aui.id }" value="${aui.id}" /> name="erbh${aui.id }" value="${aui.id}" />
<c:set var="color" value="color_1" /> <c:set var="color" value="color_1" />
<c:set var="color_end" value="color_7" /> <c:set var="color_end" value="color_7" />
<c:if test="${vs.count%2!=0 }"> <c:if test="${vs.count%2!=0 }">
<c:set var="color" value="color_3" /> <c:set var="color" value="color_3" />
<c:set var="color_end" value="color_6" /> <c:set var="color_end" value="color_6" />
</c:if> </c:if>
<tr> <tr>
<td class="${color }"> <td class="${color }">
${index+(pageNo-1)*pageSize} ${index+(pageNo-1)*pageSize}
</td> </td>
<td class="${color }"> <td class="${color }">
${aui.oid} ${aui.oid}
</td> </td>
<td class="${color }"> <td class="${color }">
${aui.oidDesc} ${aui.oidDesc}
</td> </td>
<td class="${color_end }"> <td class="${color_end }">
<img src="<c:url value='/images/logo_1.png'/>" class="img_middle" />&nbsp; <img src="<c:url value='/images/logo_1.png'/>" class="img_middle" />&nbsp;
<a href="javascript:updateRecord('${aui.id}')">i18n_odl.message.updateRecord_n81i</a> <a href="javascript:updateRecord('${aui.id}')">i18n_odl.message.updateRecord_n81i</a>
</td> </td>
</tr> </tr>
<c:set var="index" value="${index + 1}" /> <c:set var="index" value="${index + 1}" />
</c:forEach> </c:forEach>
</c:when> </c:when>
<c:otherwise> <c:otherwise>
<tr> <tr>
<td colspan="4" height="35" class="color_6" align="center"> <td colspan="4" height="35" class="color_6" align="center">
i18n_odl.message.noRecord_n81i i18n_odl.message.noRecord_n81i
</td> </td>
</tr> </tr>
</c:otherwise> </c:otherwise>
</c:choose> </c:choose>
</table> </table>
</div> </div>
<c:if test="${!empty oidDictionaryList}"> <c:if test="${!empty oidDictionaryList}">
<div id="divBoot"> <div id="divBoot">
<jsp:include page="/common/page.jsp" /> <jsp:include page="/common/page.jsp" />
</div> </div>
</c:if> </c:if>
<!--中间部分右边结束--> <!--中间部分右边结束-->
</form> </form>
</div> </div>
</body> </body>
</html> </html>

View File

@@ -1,116 +1,116 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%> <%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib uri="/jstl/fn" prefix="fn"%> <%@ taglib uri="/jstl/fn" prefix="fn"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
%> %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!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"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_uod.message.title_n81i</title> <title>i18n_uod.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" <link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script> src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script> src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.tools.js'/>"></script> src="<c:url value='/js/jquery.tools.js'/>"></script>
</head> </head>
<script language="javascript" type="text/javascript"> <script language="javascript" type="text/javascript">
function sub(){ function sub(){
if($id("oid","","OID")&& $id("desc","","i18n_uod.message.oiddesc_n81i")){ if($id("oid","","OID")&& $id("desc","","i18n_uod.message.oiddesc_n81i")){
if(checkOID($("#oid").val())){//验证code是否为数字 if(checkOID($("#oid").val())){//验证code是否为数字
document.Mkform.action = "<%=path%>/detection/oidDictionary.do?action=doUpdate"; document.Mkform.action = "<%=path%>/detection/oidDictionary.do?action=doUpdate";
document.Mkform.submit(); document.Mkform.submit();
}else{ }else{
$("#oidFont").text("i18n_uod.message.oidFont_n81i"); $("#oidFont").text("i18n_uod.message.oidFont_n81i");
$("#oid").val(""); $("#oid").val("");
$("#oid").focus(); $("#oid").focus();
return; return;
} }
} }
} }
function goBack(){ function goBack(){
document.Mkform.action="<%=path%>/detection/oidDictionary.do?action=query"; document.Mkform.action="<%=path%>/detection/oidDictionary.do?action=query";
document.Mkform.submit(); document.Mkform.submit();
} }
//验证oid //验证oid
function checkOID(oid){ function checkOID(oid){
var cs = /^[1-9]([\d\.]+\d)?$/; var cs = /^[1-9]([\d\.]+\d)?$/;
var resu = cs.test(oid); var resu = cs.test(oid);
return resu; return resu;
} }
</script> </script>
<body> <body>
<div class="middle_list" > <div class="middle_list" >
<form action="" name="Mkform" method="post"> <form action="" name="Mkform" method="post">
<input type="hidden" name="pageNo" value="${pageNo }" /> <input type="hidden" name="pageNo" value="${pageNo }" />
<input type="hidden" name="pageSize" value="${pageSize }" /> <input type="hidden" name="pageSize" value="${pageSize }" />
<input type="hidden" name="od.id" value="${od.id }" /> <input type="hidden" name="od.id" value="${od.id }" />
<div style="clear: both"></div> <div style="clear: both"></div>
<table border="0" cellpadding="0" cellspacing="0" class="table"> <table border="0" cellpadding="0" cellspacing="0" class="table">
<tr> <tr>
<td colspan="2" class="color_8"> <td colspan="2" class="color_8">
<strong>i18n_uod.text.title_n81i</strong> <strong>i18n_uod.text.title_n81i</strong>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" width="20%" align="right" nowrap="nowrap"> <td class="color_1" width="20%" align="right" nowrap="nowrap">
OID OID
</td> </td>
<td class="color_3" width="30%" align="left"> <td class="color_3" width="30%" align="left">
<input type="text" name="od.oid" id="oid" value="${od.oid }"/> <input type="text" name="od.oid" id="oid" value="${od.oid }"/>
<font id="oidFont" color="red">*</font> <font id="oidFont" color="red">*</font>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" width="20%" align="right" nowrap="nowrap"> <td class="color_1" width="20%" align="right" nowrap="nowrap">
i18n_uod.message.oiddesc_n81i i18n_uod.message.oiddesc_n81i
</td> </td>
<td class="color_3" width="30%" align="left"> <td class="color_3" width="30%" align="left">
<input type="text" name="od.oidDesc" <input type="text" name="od.oidDesc"
id="desc" value="${od.oidDesc}"/> id="desc" value="${od.oidDesc}"/>
<font id="troubleInfo" color="red">*</font> <font id="troubleInfo" color="red">*</font>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_7" colspan="2" align="right"> <td class="color_7" colspan="2" align="right">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onclick="sub()" onmouseup="this.className='btn3_mouseup'" onclick="sub()"
value="i18n_uod.button.submit_n81i"/> value="i18n_uod.button.submit_n81i"/>
&nbsp; &nbsp;
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="javascript:document.forms['Mkform'].reset()" onclick="javascript:document.forms['Mkform'].reset()"
value="i18n_uod.button.reset_n81i"/> value="i18n_uod.button.reset_n81i"/>
&nbsp; &nbsp;
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="goBack()" value="i18n_uod.button.back_n81i"/> onclick="goBack()" value="i18n_uod.button.back_n81i"/>
&nbsp; &nbsp;
</td> </td>
</tr> </tr>
</table> </table>
</form> </form>
</div> </div>
</body> </body>
</html> </html>

View File

@@ -1,290 +1,290 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%> <%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib uri="/jstl/fn" prefix="fn"%> <%@ taglib uri="/jstl/fn" prefix="fn"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
%> %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_apr.message.title_n81i</title> <title>i18n_apr.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" <link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script> src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script> src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.tools.js'/>"></script> src="<c:url value='/js/jquery.tools.js'/>"></script>
<script type="text/javascript" <script type="text/javascript"
src="<c:url value='/js/WebCalendar.js' />"></script> src="<c:url value='/js/WebCalendar.js' />"></script>
</head> </head>
<script language="javascript" type="text/javascript"> <script language="javascript" type="text/javascript">
function add(){ function add(){
if($id("metadataId","xz","i18n_apr.message.metadata_n81i")&&$id("policeValue","","i18n_apr.message.policeValue_n81i") if($id("metadataId","xz","i18n_apr.message.metadata_n81i")&&$id("policeValue","","i18n_apr.message.policeValue_n81i")
&&$id("policeUnit","","i18n_apr.message.policeUnit_n81i") &&$id("policeUnit","","i18n_apr.message.policeUnit_n81i")
&& $id("policeSymbols","xz","i18n_apr.message.policeSymbols_n81i") && $id("policeSymbols","xz","i18n_apr.message.policeSymbols_n81i")
&& $id("policeEmergent","xz","i18n_apr.message.policeEmergent_n81i") && $id("policeEmergent","xz","i18n_apr.message.policeEmergent_n81i")
&& $id("policeLevel","sz","i18n_apr.message.policeLevel_n81i")){ && $id("policeLevel","sz","i18n_apr.message.policeLevel_n81i")){
var poliMsg = $("#policeShowInfo").val(); var poliMsg = $("#policeShowInfo").val();
var pll = $("#policeLevel").val(); var pll = $("#policeLevel").val();
var selEmergVal = jQuery('#policeEmergent').val(); var selEmergVal = jQuery('#policeEmergent').val();
var boo = true; var boo = true;
if(selEmergVal==1) {//非紧急才需要判断级别是否为1-5 if(selEmergVal==1) {//非紧急才需要判断级别是否为1-5
if(pll >0 && pll<=5){ if(pll >0 && pll<=5){
boo = true; boo = true;
}else{ }else{
$("#pl").text("i18n_apr.message.policeLevelInfo_n81i"); $("#pl").text("i18n_apr.message.policeLevelInfo_n81i");
return; return;
} }
} }
if(boo){ if(boo){
if(poliMsg!=""){ if(poliMsg!=""){
if(poliMsg.length >200){ if(poliMsg.length >200){
$("#Msg").text("i18n_apr.message.inputInfo_n81i"); $("#Msg").text("i18n_apr.message.inputInfo_n81i");
return; return;
}else{ }else{
document.Mkform.action="<%=path%>/detection/policeSet.do?action=doAdd"; document.Mkform.action="<%=path%>/detection/policeSet.do?action=doAdd";
document.Mkform.submit(); document.Mkform.submit();
} }
}else{ }else{
document.Mkform.action="<%=path%>/detection/policeSet.do?action=doAdd"; document.Mkform.action="<%=path%>/detection/policeSet.do?action=doAdd";
document.Mkform.submit(); document.Mkform.submit();
} }
} }
} }
} }
function goBack(){ function goBack(){
document.Mkform.action="<%=path%>/detection/policeSet!executeAction.do?action=query"; document.Mkform.action="<%=path%>/detection/policeSet!executeAction.do?action=query";
document.Mkform.submit(); document.Mkform.submit();
} }
jQuery(function(){ jQuery(function(){
//-- 字段类型选择事件绑定 //-- 字段类型选择事件绑定
jQuery("#metadataId").change(function(){ jQuery("#metadataId").change(function(){
$("#policeSymbols").find("option").not($("#che")[0]).remove(); $("#policeSymbols").find("option").not($("#che")[0]).remove();
var filedType = $("#metadataId").find("option:selected").attr('id'); var filedType = $("#metadataId").find("option:selected").attr('id');
if(filedType.indexOf("VARCHAR2")>=0){ if(filedType.indexOf("VARCHAR2")>=0){
$("#policeSymbols").append("<option value='equals'>equals</option><option value='include' >include</option><option value='exclude' >exclude</option>"); $("#policeSymbols").append("<option value='equals'>equals</option><option value='include' >include</option><option value='exclude' >exclude</option>");
}else{ }else{
$("#policeSymbols").append("<option value='>' >&gt;</option><option value='<' >&lt;</option><option value='>=' >&gt;=</option><option value='<=' >&lt;=</option><option value='=' >=</option>"); $("#policeSymbols").append("<option value='>' >&gt;</option><option value='<' >&lt;</option><option value='>=' >&gt;=</option><option value='<=' >&lt;=</option><option value='=' >=</option>");
} }
}); });
}) })
function emergentChange() { function emergentChange() {
var selEmergVal = jQuery('#policeEmergent').val(); var selEmergVal = jQuery('#policeEmergent').val();
if(selEmergVal=='1') { if(selEmergVal=='1') {
jQuery('#levelTitleTd').show(); jQuery('#levelTitleTd').show();
jQuery('#levelValTd').show(); jQuery('#levelValTd').show();
jQuery('#styleChgTd').attr('colspan','1'); jQuery('#styleChgTd').attr('colspan','1');
jQuery('#policeLevel').val(''); jQuery('#policeLevel').val('');
}else { }else {
jQuery('#levelTitleTd').hide(); jQuery('#levelTitleTd').hide();
jQuery('#levelValTd').hide(); jQuery('#levelValTd').hide();
jQuery('#styleChgTd').attr('colspan','3'); jQuery('#styleChgTd').attr('colspan','3');
jQuery('#policeLevel').val('0'); jQuery('#policeLevel').val('0');
} }
} }
function markerFiledChange() { function markerFiledChange() {
var selMarkerVal = jQuery('#markerFiledId').val(); var selMarkerVal = jQuery('#markerFiledId').val();
if(selMarkerVal=='') {//未选择字段 if(selMarkerVal=='') {//未选择字段
jQuery('#markerTitleTd').hide(); jQuery('#markerTitleTd').hide();
jQuery('#markerValTd').hide(); jQuery('#markerValTd').hide();
jQuery('#markerStyleChgTd').attr('colspan','3'); jQuery('#markerStyleChgTd').attr('colspan','3');
}else {//选择了字段 }else {//选择了字段
jQuery('#markerTitleTd').show(); jQuery('#markerTitleTd').show();
jQuery('#markerValTd').show(); jQuery('#markerValTd').show();
jQuery('#markerStyleChgTd').attr('colspan','1'); jQuery('#markerStyleChgTd').attr('colspan','1');
} }
jQuery('#marker').val(''); jQuery('#marker').val('');
} }
</script> </script>
<body> <body>
<div class="middle_list" > <div class="middle_list" >
<form action="" name="Mkform" method="post"> <form action="" name="Mkform" method="post">
<input type="hidden" name="pageNo" value="${pageNo }" /> <input type="hidden" name="pageNo" value="${pageNo }" />
<input type="hidden" name="pageSize" value="${pageSize }" /> <input type="hidden" name="pageSize" value="${pageSize }" />
<input type="hidden" value="${setId}" name="setId"/> <input type="hidden" value="${setId}" name="setId"/>
<input type="hidden" value="${ctn}" name="ctn"/> <input type="hidden" value="${ctn}" name="ctn"/>
<input type="hidden" value="${pIden}" name="pIden"/> <input type="hidden" value="${pIden}" name="pIden"/>
<input type="hidden" value="${ip}" name="ip"/> <input type="hidden" value="${ip}" name="ip"/>
<div style="clear: both"></div> <div style="clear: both"></div>
<table border="0" cellpadding="0" cellspacing="0" class="table"> <table border="0" cellpadding="0" cellspacing="0" class="table">
<tr> <tr>
<td colspan="4" class="color_8"> <td colspan="4" class="color_8">
<strong>i18n_apr.text.title_n81i</strong> <strong>i18n_apr.text.title_n81i</strong>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" width="20%" align="right"> <td class="color_1" width="20%" align="right">
i18n_apr.message.metadata_n81i i18n_apr.message.metadata_n81i
</td> </td>
<td class="color_6" width="30%" align="left" > <td class="color_6" width="30%" align="left" >
<select name="dataPoliceRelation.metadata.id" id="metadataId" style="width: 153px;"> <select name="dataPoliceRelation.metadata.id" id="metadataId" style="width: 153px;">
<option value="" id="qxz"> <option value="" id="qxz">
i18n_apr.message.metadataDefault_n81i i18n_apr.message.metadataDefault_n81i
</option> </option>
<c:if test="${fn:length(allMetadata) > 0}"> <c:if test="${fn:length(allMetadata) > 0}">
<c:forEach items="${allMetadata}" var="metadata"> <c:forEach items="${allMetadata}" var="metadata">
<option value="${metadata.id}" id="${metadata.filedType}"> <option value="${metadata.id}" id="${metadata.filedType}">
${metadata.filedComments} ${metadata.filedComments}
</option> </option>
</c:forEach> </c:forEach>
</c:if> </c:if>
</select> </select>
<font color="red">*</font> <font color="red">*</font>
</td> </td>
<td class="color_1" width="15%" align="right"> <td class="color_1" width="15%" align="right">
i18n_apr.text.policeState_n81i i18n_apr.text.policeState_n81i
</td> </td>
<td class="color_6" align="left"> <td class="color_6" align="left">
<input type="radio" name="dataPoliceRelation.policeState" <input type="radio" name="dataPoliceRelation.policeState"
id="policeState1" value="0" checked="checked"/>i18n_apr.message.active_n81i id="policeState1" value="0" checked="checked"/>i18n_apr.message.active_n81i
<input type="radio" name="dataPoliceRelation.policeState" <input type="radio" name="dataPoliceRelation.policeState"
id="policeState" value="1" />i18n_apr.message.invalid_n81i id="policeState" value="1" />i18n_apr.message.invalid_n81i
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" width="20%" align="right"> <td class="color_1" width="20%" align="right">
i18n_apr.text.markerFiled_n81i i18n_apr.text.markerFiled_n81i
</td> </td>
<td class="color_6" width="30%" align="left" colspan="3" id="markerStyleChgTd"> <td class="color_6" width="30%" align="left" colspan="3" id="markerStyleChgTd">
<select name="dataPoliceRelation.markerFiledId" id="markerFiledId" onchange="markerFiledChange();" style="width: 153px;"> <select name="dataPoliceRelation.markerFiledId" id="markerFiledId" onchange="markerFiledChange();" style="width: 153px;">
<option value="" id="qxz"> <option value="" id="qxz">
i18n_apr.message.markerFiledDefault_n81i i18n_apr.message.markerFiledDefault_n81i
</option> </option>
<c:if test="${fn:length(allMetadata) > 0}"> <c:if test="${fn:length(allMetadata) > 0}">
<c:forEach items="${allMetadata}" var="metadata"> <c:forEach items="${allMetadata}" var="metadata">
<option value="${metadata.id}" id="${metadata.filedType}"> <option value="${metadata.id}" id="${metadata.filedType}">
${metadata.filedComments} ${metadata.filedComments}
</option> </option>
</c:forEach> </c:forEach>
</c:if> </c:if>
</select> </select>
</td> </td>
<td class="color_1" width="15%" align="right" style="display: none;" id="markerTitleTd"> <td class="color_1" width="15%" align="right" style="display: none;" id="markerTitleTd">
i18n_apr.text.marker_n81i i18n_apr.text.marker_n81i
</td> </td>
<td class="color_6" width="35%" align="left" colspan="1" style="display: none;" id="markerValTd"> <td class="color_6" width="35%" align="left" colspan="1" style="display: none;" id="markerValTd">
<input type="text" name="dataPoliceRelation.marker" <input type="text" name="dataPoliceRelation.marker"
id="marker" value=""/><font color="red" > i18n_apr.message.marker_n81i</font> id="marker" value=""/><font color="red" > i18n_apr.message.marker_n81i</font>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right"> <td class="color_1" align="right">
i18n_apr.message.policeEmergent_n81i i18n_apr.message.policeEmergent_n81i
</td> </td>
<td class="color_3" align="left" colspan="3" id="styleChgTd"> <td class="color_3" align="left" colspan="3" id="styleChgTd">
<select name="dataPoliceRelation.policeEmergent" id="policeEmergent" onchange="emergentChange();" style="width: 153px;"> <select name="dataPoliceRelation.policeEmergent" id="policeEmergent" onchange="emergentChange();" style="width: 153px;">
<option value=""> <option value="">
i18n_apr.message.metadataDefault_n81i i18n_apr.message.metadataDefault_n81i
</option> </option>
<c:if test="${fn:length(allpoliceEmergent) > 0}"> <c:if test="${fn:length(allpoliceEmergent) > 0}">
<c:forEach items="${allpoliceEmergent}" var="policeEmergent"> <c:forEach items="${allpoliceEmergent}" var="policeEmergent">
<option value="${policeEmergent.typeCode}" > <option value="${policeEmergent.typeCode}" >
${policeEmergent.typeValue} ${policeEmergent.typeValue}
</option> </option>
</c:forEach> </c:forEach>
</c:if> </c:if>
<%--<option value="0" >allpoliceEmergent <%--<option value="0" >allpoliceEmergent
紧急 紧急
</option> </option>
<option value="1" > <option value="1" >
非紧急 非紧急
</option> </option>
--%></select> --%></select>
<font color="red">*</font> <font color="red">*</font>
</td> </td>
<td class="color_1" align="right" id="levelTitleTd" style="display: none;"> <td class="color_1" align="right" id="levelTitleTd" style="display: none;">
i18n_apr.text.policeLevel_n81i i18n_apr.text.policeLevel_n81i
</td> </td>
<td class="color_3" align="left" id="levelValTd" style="display: none;"> <td class="color_3" align="left" id="levelValTd" style="display: none;">
<input type="text" name="dataPoliceRelation.policeLevel" <input type="text" name="dataPoliceRelation.policeLevel"
id="policeLevel" value=""/> id="policeLevel" value=""/>
<font id="pl" color="red">*i18n_apr.message.policeLevelInfo_n81i</font> <font id="pl" color="red">*i18n_apr.message.policeLevelInfo_n81i</font>
</td> </td>
</tr> </tr>
<tr id = "pv"> <tr id = "pv">
<td class="color_1" align="right"> <td class="color_1" align="right">
i18n_apr.message.policeValue_n81i i18n_apr.message.policeValue_n81i
</td> </td>
<td class="color_3" align="left"> <td class="color_3" align="left">
<input type="text" name="dataPoliceRelation.policeValue" <input type="text" name="dataPoliceRelation.policeValue"
id="policeValue" value=""/> id="policeValue" value=""/>
<font color="red">*</font> <font color="red">*</font>
</td> </td>
<td class="color_1" align="right"> <td class="color_1" align="right">
i18n_apr.message.policeUnit_n81i i18n_apr.message.policeUnit_n81i
</td> </td>
<td class="color_3" align="left"> <td class="color_3" align="left">
<input type="text" name="dataPoliceRelation.policeUnit" <input type="text" name="dataPoliceRelation.policeUnit"
id="policeUnit" value=""/> id="policeUnit" value=""/>
<font color="red">*</font> <font color="red">*</font>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right"> <td class="color_1" align="right">
i18n_apr.message.policeSymbols_n81i i18n_apr.message.policeSymbols_n81i
</td> </td>
<td class="color_3" align="left"> <td class="color_3" align="left">
<select name="dataPoliceRelation.policeSymbols" id="policeSymbols" style="width: 153px;"> <select name="dataPoliceRelation.policeSymbols" id="policeSymbols" style="width: 153px;">
<option value="" id="che"> <option value="" id="che">
i18n_apr.message.metadataDefault_n81i i18n_apr.message.metadataDefault_n81i
</option> </option>
</select> </select>
<font color="red">*</font> <font color="red">*</font>
</td> </td>
<td class="color_1" align="right" valign="top" nowrap="nowrap"> <td class="color_1" align="right" valign="top" nowrap="nowrap">
i18n_apr.text.policeShowInfo_n81i i18n_apr.text.policeShowInfo_n81i
</td> </td>
<td class="color_3" align="left" valign="top"> <td class="color_3" align="left" valign="top">
<textarea rows="3" cols="40" name="dataPoliceRelation.policeShowInfo" id="policeShowInfo"></textarea> <textarea rows="3" cols="40" name="dataPoliceRelation.policeShowInfo" id="policeShowInfo"></textarea>
<div><font color="red" id="Msg">i18n_apr.message.policeShowInfo_n81i</font></div> <div><font color="red" id="Msg">i18n_apr.message.policeShowInfo_n81i</font></div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_7" colspan="4" align="right"> <td class="color_7" colspan="4" align="right">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onclick="add()" value="i18n_apr.button.submit_n81i"/> onmouseup="this.className='btn3_mouseup'" onclick="add()" value="i18n_apr.button.submit_n81i"/>
&nbsp; &nbsp;
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="javascript:document.forms['Mkform'].reset()" value="i18n_apr.button.reset_n81i"/> onclick="javascript:document.forms['Mkform'].reset()" value="i18n_apr.button.reset_n81i"/>
&nbsp; &nbsp;
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="goBack(${detectionSetInfo.id})" value="i18n_apr.button.back_n81i"/> onclick="goBack(${detectionSetInfo.id})" value="i18n_apr.button.back_n81i"/>
&nbsp; &nbsp;
</td> </td>
</tr> </tr>
</table> </table>
</form> </form>
</div> </div>
</body> </body>
</html> </html>

View File

@@ -1,312 +1,312 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="/jstl/c"%> <%@ taglib prefix="c" uri="/jstl/c"%>
<%@ taglib prefix="fn" uri="/jstl/fn"%> <%@ taglib prefix="fn" uri="/jstl/fn"%>
<%@ taglib prefix="fmt" uri="/jstl/fmt"%> <%@ taglib prefix="fmt" uri="/jstl/fmt"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
%> %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_prl.message.title_n81i</title> <title>i18n_prl.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" type="text/css" /> <link href="<c:url value='/css/nms.css'/>" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script> src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script> src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.suggest.js'/>"></script> src="<c:url value='/js/jquery.suggest.js'/>"></script>
</head> </head>
<script language="javascript" type="text/javascript"> <script language="javascript" type="text/javascript">
var msg = '${MSG}'; var msg = '${MSG}';
if(msg=='1'){ if(msg=='1'){
alert("i18n_prl.message.success_n81i"); alert("i18n_prl.message.success_n81i");
}else if(msg=='2'){ }else if(msg=='2'){
alert("i18n_prl.message.faild_n81i"); alert("i18n_prl.message.faild_n81i");
} }
//查询记录 //查询记录
function qry(){ function qry(){
document.form3.action = "<%=path%>/detection/policeSet.do?action=query"; document.form3.action = "<%=path%>/detection/policeSet.do?action=query";
document.form3.submit(); document.form3.submit();
} }
function checkZF(id){ function checkZF(id){
if(containSpecial($("#"+id).val())){ if(containSpecial($("#"+id).val())){
alert('i18n_prl.message.hasSpecialChar_n81i'); alert('i18n_prl.message.hasSpecialChar_n81i');
$("#"+id).val(''); $("#"+id).val('');
return; return;
} }
} }
//添加记录 //添加记录
function add(){ function add(){
document.form3.action ="<%=path%>/detection/policeSet!executeAction.do?action=openAdd"; document.form3.action ="<%=path%>/detection/policeSet!executeAction.do?action=openAdd";
document.form3.submit(); document.form3.submit();
} }
//修改记录 //修改记录
function upd(){ function upd(){
if(!isRigthCheck("ids", "edit")){ if(!isRigthCheck("ids", "edit")){
alert("i18n_prl.message.select_n81i"); alert("i18n_prl.message.select_n81i");
}else{ }else{
var detectionSetInfoId = $("input:checked").next().val(); var detectionSetInfoId = $("input:checked").next().val();
var policeRelationId = $("input:checked").val(); var policeRelationId = $("input:checked").val();
document.form3.action ="<%=path%>/detection/policeSet!executeAction.do?action=openUpdate&detectionSetInfoId="+detectionSetInfoId+"&policeRelationId="+policeRelationId; document.form3.action ="<%=path%>/detection/policeSet!executeAction.do?action=openUpdate&detectionSetInfoId="+detectionSetInfoId+"&policeRelationId="+policeRelationId;
document.form3.submit(); document.form3.submit();
} }
} }
function goBack(){ function goBack(){
window.location="<%=path%>/detection/detectionSet.do?action=query&pageSize="+'${pageSize }'+"&pageNo="+'${pageNo }'+"&ip="+'${ip}'+"&ctn="+'${ctn}'+"&pIden="+'${pIden}'; window.location="<%=path%>/detection/detectionSet.do?action=query&pageSize="+'${pageSize }'+"&pageNo="+'${pageNo }'+"&ip="+'${ip}'+"&ctn="+'${ctn}'+"&pIden="+'${pIden}';
} }
function ieBrowser(){ function ieBrowser(){
if($.browser.msie){ if($.browser.msie){
if($.browser.version.split('.')[0]<=7){ if($.browser.version.split('.')[0]<=7){
return false; return false;
}else{ }else{
return true;//ie8+ return true;//ie8+
} }
} }
} }
$(function(){ $(function(){
if('${setId}'==null||'${setId}'==""){ if('${setId}'==null||'${setId}'==""){
$("input[type=hidden][name=pIden]").remove(); $("input[type=hidden][name=pIden]").remove();
$("input[type=hidden][name=ctn]").remove(); $("input[type=hidden][name=ctn]").remove();
$("input[type=hidden][name=ip]").remove(); $("input[type=hidden][name=ip]").remove();
} }
var dh = document.body.clientHeight; var dh = document.body.clientHeight;
var dhh = dh-60+"px;"; var dhh = dh-60+"px;";
var tableHeight = $("#info").height(); var tableHeight = $("#info").height();
if(tableHeight > dh-60){ 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); $("#maindiv").attr("style","clear:both;margin-left:6px;overflow-y:auto;overflow-x:auto;width:99%;font-size:12px;height: "+dhh);
if(ieBrowser()){ if(ieBrowser()){
$("#info").attr("style","width:100%;"); $("#info").attr("style","width:100%;");
}else{ }else{
$("#info").attr("style","width:98.5%;"); $("#info").attr("style","width:98.5%;");
} }
}else{ }else{
$("#maindiv").attr("style","clear:both;margin-left:6px;overflow-y:auto;overflow-x:auto;width:98%;font-size:12px;height: "+dhh); $("#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%;"); $("#info").attr("style","width:100%;");
} }
$("#info").floatHeaderDiv(); $("#info").floatHeaderDiv();
}); });
$(function(){ $(function(){
var spanObj=$("span[class='STYLE1']"); var spanObj=$("span[class='STYLE1']");
for(var i=0;i<spanObj.length;i++){ for(var i=0;i<spanObj.length;i++){
var spanVal=$(spanObj[i]).text().trim();; var spanVal=$(spanObj[i]).text().trim();;
console.log(spanVal); console.log(spanVal);
if(spanVal.length>=25){ if(spanVal.length>=25){
$(spanObj[i]).text(spanVal.substring(0,25)).append("..."); $(spanObj[i]).text(spanVal.substring(0,25)).append("...");
}else{ }else{
$(spanObj[i]).text(spanVal); $(spanObj[i]).text(spanVal);
} }
} }
}); });
</script> </script>
<body> <body>
<div class="middle_list" style="overflow: hidden;"> <div class="middle_list" style="overflow: hidden;">
<form name=form3 id="frmArticleType" <form name=form3 id="frmArticleType"
action="<c:url value='/detection/policeSet.do?action=query'/>" method="post"> action="<c:url value='/detection/policeSet.do?action=query'/>" method="post">
<input type="hidden" name="setId" value="${setId }"/> <input type="hidden" name="setId" value="${setId }"/>
<input type="hidden" name="pIden" value="${pIden }"/> <input type="hidden" name="pIden" value="${pIden }"/>
<input type="hidden" name="ctn" value="${ctn }"/> <input type="hidden" name="ctn" value="${ctn }"/>
<input type="hidden" name="ip" value="${ip }"/> <input type="hidden" name="ip" value="${ip }"/>
<div id="divTop"> <div id="divTop">
<c:if test="${operator eq 'all'}"> <c:if test="${operator eq 'all'}">
<div class="box_1"> <div class="box_1">
<label class="divTopText"><font class="selectText">i18n_prl.text.checkTypeName_n81i</font> <label class="divTopText"><font class="selectText">i18n_prl.text.checkTypeName_n81i</font>
<select style="width:140px;" name="ctn" id="checkTypeId"> <select style="width:140px;" name="ctn" id="checkTypeId">
<option value=""> <option value="">
--i18n_prl.message.checkTypeDefault_n81i-- --i18n_prl.message.checkTypeDefault_n81i--
</option> </option>
<c:if test="${fn:length(allCheckTypeInfo) > 0}"> <c:if test="${fn:length(allCheckTypeInfo) > 0}">
<c:set var="isSchedule0" value="0"/> <c:set var="isSchedule0" value="0"/>
<c:forEach items="${allCheckTypeInfo}" var="checkType"> <c:forEach items="${allCheckTypeInfo}" var="checkType">
<c:if test="${checkType.isSchedule != isSchedule0 }"> <c:if test="${checkType.isSchedule != isSchedule0 }">
<option style="height: 2px;" disabled="disabled">--------------------</option> <option style="height: 2px;" disabled="disabled">--------------------</option>
<c:set var="isSchedule0" value="${checkType.isSchedule}"/> <c:set var="isSchedule0" value="${checkType.isSchedule}"/>
</c:if> </c:if>
<option value="${checkType.id}" <option value="${checkType.id}"
<c:if test="${ctn == checkType.id }">selected="selected"</c:if>> <c:if test="${ctn == checkType.id }">selected="selected"</c:if>>
${checkType.checkTypeName1} ${checkType.checkTypeName1}
</option> </option>
</c:forEach> </c:forEach>
</c:if> </c:if>
</select></label> </select></label>
<label class="divTopText"><font class="selectText">i18n_prl.text.processIdenName_n81i </font> <label class="divTopText"><font class="selectText">i18n_prl.text.processIdenName_n81i </font>
<input type="text" id="pIden" style="width: 160px" <input type="text" id="pIden" style="width: 160px"
name="pIden" name="pIden"
title="i18n_prl.message.processIdenName_n81i" title="i18n_prl.message.processIdenName_n81i"
value="${pIden}" size="49" onkeyup="checkZF('pIden');"/></label> value="${pIden}" size="49" onkeyup="checkZF('pIden');"/></label>
<img src="<c:url value='/images/button_chaxun.png'/>" <img src="<c:url value='/images/button_chaxun.png'/>"
class="img_middle3" onclick="javascript:qry();" /> class="img_middle3" onclick="javascript:qry();" />
&nbsp; &nbsp;
</div> </div>
</c:if> </c:if>
<div class="box_2"> <div class="box_2">
<c:if test="${operator ne 'all'}"> <c:if test="${operator ne 'all'}">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="add()" value="i18n_prl.button.add_n81i"/> onclick="add()" value="i18n_prl.button.add_n81i"/>
&nbsp; &nbsp;
</c:if> </c:if>
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="upd()" value="i18n_prl.button.update_n81i"/> onclick="upd()" value="i18n_prl.button.update_n81i"/>
&nbsp; &nbsp;
<c:if test="${operator ne 'all'}"> <c:if test="${operator ne 'all'}">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="goBack()" value="i18n_prl.button.back_n81i"/> onclick="goBack()" value="i18n_prl.button.back_n81i"/>
</c:if> </c:if>
</div> </div>
</div> </div>
<div id="maindiv"> <div id="maindiv">
<table border="0" cellpadding="0" cellspacing="0" class="table" id="info"> <table border="0" cellpadding="0" cellspacing="0" class="table" id="info">
<tr> <tr>
<td width="5%" class="color_top"> <td width="5%" class="color_top">
<input type="checkbox" name="checkbox62" value="checkbox" onClick="checkAll(this)" />i18n_prl.text.index_n81i <input type="checkbox" name="checkbox62" value="checkbox" onClick="checkAll(this)" />i18n_prl.text.index_n81i
</td> </td>
<td width="10%" class="color_top" nowrap> <td width="10%" class="color_top" nowrap>
i18n_prl.text.checkTypeName_n81i i18n_prl.text.checkTypeName_n81i
</td> </td>
<td width="10%" class="color_top" nowrap> <td width="10%" class="color_top" nowrap>
i18n_prl.text.processIdenName_n81i i18n_prl.text.processIdenName_n81i
</td> </td>
<td width="8%" class="color_top" nowrap> <td width="8%" class="color_top" nowrap>
i18n_prl.text.checkGap_n81i i18n_prl.text.checkGap_n81i
</td> </td>
<td width="12%" class="color_top" nowrap> <td width="12%" class="color_top" nowrap>
i18n_prl.text.filedName_n81i i18n_prl.text.filedName_n81i
</td> </td>
<td width="12%" class="color_top" nowrap> <td width="12%" class="color_top" nowrap>
i18n_prl.text.filedComments_n81i i18n_prl.text.filedComments_n81i
</td> </td>
<td width="8%" class="color_top" nowrap> <td width="8%" class="color_top" nowrap>
i18n_prl.text.policeValue_n81i i18n_prl.text.policeValue_n81i
</td> </td>
<td width="8%" class="color_top" nowrap> <td width="8%" class="color_top" nowrap>
i18n_prl.text.policeUnit_n81i i18n_prl.text.policeUnit_n81i
</td> </td>
<td width="8%" class="color_top" nowrap> <td width="8%" class="color_top" nowrap>
i18n_prl.text.policeSymbols_n81i i18n_prl.text.policeSymbols_n81i
</td> </td>
<td width="8%" class="color_top" nowrap> <td width="8%" class="color_top" nowrap>
i18n_prl.text.policeLevel_n81i i18n_prl.text.policeLevel_n81i
</td> </td>
<td width="8%" class="color_top"> <td width="8%" class="color_top">
i18n_prl.text.policeEmergent_n81i i18n_prl.text.policeEmergent_n81i
</td> </td>
<td width="8%" class="color_top" nowrap> <td width="8%" class="color_top" nowrap>
i18n_prl.text.state_n81i i18n_prl.text.state_n81i
</td> </td>
<td width="20%" class="color_top" nowrap> <td width="20%" class="color_top" nowrap>
i18n_prl.text.policeShowInfo_n81i i18n_prl.text.policeShowInfo_n81i
</td> </td>
</tr> </tr>
<c:set var="index" value="${1}" /> <c:set var="index" value="${1}" />
<c:choose> <c:choose>
<c:when test="${fn:length(dataPoliceRelationList) > 0}"> <c:when test="${fn:length(dataPoliceRelationList) > 0}">
<c:forEach items="${dataPoliceRelationList}" var="policeRelation" varStatus="vs"> <c:forEach items="${dataPoliceRelationList}" var="policeRelation" varStatus="vs">
<c:set var="color" value="color_1"/> <c:set var="color" value="color_1"/>
<c:set var="color_end" value="color_7"/> <c:set var="color_end" value="color_7"/>
<c:if test="${vs.count%2!=0 }"> <c:if test="${vs.count%2!=0 }">
<c:set var="color" value="color_3"/> <c:set var="color" value="color_3"/>
<c:set var="color_end" value="color_6"/> <c:set var="color_end" value="color_6"/>
</c:if> </c:if>
<tr> <tr>
<td class="${color }"> <td class="${color }">
<input type="checkbox" name="ids" id="ids" <input type="checkbox" name="ids" id="ids"
value="${policeRelation.id}" /> value="${policeRelation.id}" />
<input type="hidden" value="${policeRelation.detectionSetInfo.id}"> <input type="hidden" value="${policeRelation.detectionSetInfo.id}">
${index+(pageNo-1)*pageSize} ${index+(pageNo-1)*pageSize}
</td> </td>
<td class="${color }"> <td class="${color }">
${policeRelation.detectionSetInfo.checkTypeInfo.checkTypeName1} ${policeRelation.detectionSetInfo.checkTypeInfo.checkTypeName1}
</td> </td>
<td class="${color }"> <td class="${color }">
${policeRelation.detectionSetInfo.processIdenName} ${policeRelation.detectionSetInfo.processIdenName}
</td> </td>
<td class="${color }"> <td class="${color }">
${policeRelation.detectionSetInfo.checkGap} ${policeRelation.detectionSetInfo.checkGap}
</td> </td>
<td class="${color }"> <td class="${color }">
${policeRelation.metadata.filedName} ${policeRelation.metadata.filedName}
</td> </td>
<td class="${color }"> <td class="${color }">
${policeRelation.metadata.filedComments} ${policeRelation.metadata.filedComments}
</td> </td>
<td class="${color }"> <td class="${color }">
${policeRelation.policeValue} ${policeRelation.policeValue}
</td> </td>
<td class="${color }"> <td class="${color }">
${policeRelation.policeUnit} ${policeRelation.policeUnit}
</td> </td>
<td class="${color }"> <td class="${color }">
${policeRelation.policeSymbols} ${policeRelation.policeSymbols}
</td> </td>
<td class="${color }"> <td class="${color }">
${policeRelation.policeLevel} ${policeRelation.policeLevel}
</td> </td>
<td class="${color }"> <td class="${color }">
<c:if test="${policeRelation.policeEmergent=='0' }">i18n_prl.message.emergent_n81i</c:if> <c:if test="${policeRelation.policeEmergent=='0' }">i18n_prl.message.emergent_n81i</c:if>
<c:if test="${policeRelation.policeEmergent=='1' }">i18n_prl.message.nonEmergent_n81i</c:if> <c:if test="${policeRelation.policeEmergent=='1' }">i18n_prl.message.nonEmergent_n81i</c:if>
</td> </td>
<td class="${color }"> <td class="${color }">
<c:if test="${policeRelation.policeState=='0' }">i18n_prl.message.active_n81i</c:if> <c:if test="${policeRelation.policeState=='0' }">i18n_prl.message.active_n81i</c:if>
<c:if test="${policeRelation.policeState=='1' }"><font color="red">i18n_prl.message.invalid_n81i</font></c:if> <c:if test="${policeRelation.policeState=='1' }"><font color="red">i18n_prl.message.invalid_n81i</font></c:if>
</td> </td>
<td class="${color_end }" title="${policeRelation.policeShowInfo }"> <td class="${color_end }" title="${policeRelation.policeShowInfo }">
<span class="STYLE1" style="word-break:break-all; color: ${detecWarning.bgcolor}"> <span class="STYLE1" style="word-break:break-all; color: ${detecWarning.bgcolor}">
<%-- <c:if test="${fn:length(policeRelation.policeShowInfo) >= 25}"> <%-- <c:if test="${fn:length(policeRelation.policeShowInfo) >= 25}">
<c:out value="${fn:substring(policeRelation.policeShowInfo,0,25)}..." default=""/> <c:out value="${fn:substring(policeRelation.policeShowInfo,0,25)}..." default=""/>
</c:if> </c:if>
<c:if test="${fn:length(policeRelation.policeShowInfo) < 25}"> <c:if test="${fn:length(policeRelation.policeShowInfo) < 25}">
<c:out value="${policeRelation.policeShowInfo}" default=""/> <c:out value="${policeRelation.policeShowInfo}" default=""/>
</c:if> --%> </c:if> --%>
${policeRelation.policeShowInfo} ${policeRelation.policeShowInfo}
</span> </span>
</td> </td>
</tr> </tr>
<c:set var="index" value="${index + 1}" /> <c:set var="index" value="${index + 1}" />
</c:forEach> </c:forEach>
</c:when> </c:when>
<c:otherwise> <c:otherwise>
<tr> <tr>
<td colspan="13" height="20" class="color_6" align="center"> <td colspan="13" height="20" class="color_6" align="center">
i18n_prl.text.noRecord_n81i i18n_prl.text.noRecord_n81i
</td> </td>
</tr> </tr>
</c:otherwise> </c:otherwise>
</c:choose> </c:choose>
</table> </table>
</div> </div>
<c:if test="${!empty dataPoliceRelationList}"> <c:if test="${!empty dataPoliceRelationList}">
<div id="divBoot"> <div id="divBoot">
<jsp:include page="/common/page.jsp" /> <jsp:include page="/common/page.jsp" />
</div> </div>
</c:if> </c:if>
</form> </form>
</div> </div>
</body> </body>
</html> </html>

View File

@@ -1,332 +1,332 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%> <%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib uri="/jstl/fn" prefix="fn"%> <%@ taglib uri="/jstl/fn" prefix="fn"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
%> %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_upr.message.title_n81i</title> <title>i18n_upr.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" <link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script> src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script> src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.tools.js'/>"></script> src="<c:url value='/js/jquery.tools.js'/>"></script>
<script type="text/javascript" <script type="text/javascript"
src="<c:url value='/js/WebCalendar.js' />"></script> src="<c:url value='/js/WebCalendar.js' />"></script>
</head> </head>
<script language="javascript" type="text/javascript"> <script language="javascript" type="text/javascript">
function upd(){ function upd(){
if($id("policeValue","","i18n_upr.message.policeValue_n81i") if($id("policeValue","","i18n_upr.message.policeValue_n81i")
&&$id("policeUnit","","i18n_upr.message.policeUnit_n81i") &&$id("policeUnit","","i18n_upr.message.policeUnit_n81i")
&& $id("policeSymbols","xz","i18n_upr.message.policeSymbols_n81i") && $id("policeSymbols","xz","i18n_upr.message.policeSymbols_n81i")
&& $id("policeLevel","sz","i18n_upr.message.policeLevel_n81i")){ && $id("policeLevel","sz","i18n_upr.message.policeLevel_n81i")){
var poliMsg = $("#policeShowInfo").val(); var poliMsg = $("#policeShowInfo").val();
var pll = $("#policeLevel").val(); var pll = $("#policeLevel").val();
var selEmergVal = jQuery('#policeEmergent').val(); var selEmergVal = jQuery('#policeEmergent').val();
var boo = true; var boo = true;
if(selEmergVal==1) {//非紧急才需要判断级别是否为1-5 if(selEmergVal==1) {//非紧急才需要判断级别是否为1-5
if(pll >0 && pll<=5){ if(pll >0 && pll<=5){
boo = true; boo = true;
}else{ }else{
$("#pl").text("i18n_upr.message.policeLevelInfo_n81i"); $("#pl").text("i18n_upr.message.policeLevelInfo_n81i");
return; return;
} }
} }
if(boo){ if(boo){
if(poliMsg!=""){ if(poliMsg!=""){
if(poliMsg.length >200){ if(poliMsg.length >200){
$("#Msg").text("i18n_upr.message.inputInfo_n81i"); $("#Msg").text("i18n_upr.message.inputInfo_n81i");
return; return;
}else{ }else{
document.Mkform.action="<%=path%>/detection/policeSet.do?action=doUpdate"; document.Mkform.action="<%=path%>/detection/policeSet.do?action=doUpdate";
document.Mkform.submit(); document.Mkform.submit();
} }
}else{ }else{
document.Mkform.action="<%=path%>/detection/policeSet.do?action=doUpdate"; document.Mkform.action="<%=path%>/detection/policeSet.do?action=doUpdate";
document.Mkform.submit(); document.Mkform.submit();
} }
} }
} }
} }
function goBack(){ function goBack(){
document.Mkform.action="<%=path%>/detection/policeSet!executeAction.do?action=query"; document.Mkform.action="<%=path%>/detection/policeSet!executeAction.do?action=query";
document.Mkform.submit(); document.Mkform.submit();
} }
jQuery(function(){ jQuery(function(){
var filedType = $("#metadaFType").val(); var filedType = $("#metadaFType").val();
if(filedType.indexOf("VARCHAR2")>=0){ if(filedType.indexOf("VARCHAR2")>=0){
$("#policeSymbols").find("option[class='notTxt']").remove(); $("#policeSymbols").find("option[class='notTxt']").remove();
}else{ }else{
$("#policeSymbols").find("option[class='isTxt']").remove(); $("#policeSymbols").find("option[class='isTxt']").remove();
} }
initEmergent();//初始化级别的显示与隐藏 initEmergent();//初始化级别的显示与隐藏
initMarker();//初始化过滤标识及对应字段的显示与隐藏 initMarker();//初始化过滤标识及对应字段的显示与隐藏
}) })
function initEmergent() { function initEmergent() {
var selEmergVal = jQuery('#policeEmergent').val(); var selEmergVal = jQuery('#policeEmergent').val();
if(selEmergVal=='1') { if(selEmergVal=='1') {
jQuery('#levelTitleTd').show(); jQuery('#levelTitleTd').show();
jQuery('#levelValTd').show(); jQuery('#levelValTd').show();
jQuery('#styleChgTd').attr('colspan','1'); jQuery('#styleChgTd').attr('colspan','1');
}else { }else {
jQuery('#levelTitleTd').hide(); jQuery('#levelTitleTd').hide();
jQuery('#levelValTd').hide(); jQuery('#levelValTd').hide();
jQuery('#styleChgTd').attr('colspan','3'); jQuery('#styleChgTd').attr('colspan','3');
jQuery('#policeLevel').val('0'); jQuery('#policeLevel').val('0');
} }
} }
function emergentChange() { function emergentChange() {
var selEmergVal = jQuery('#policeEmergent').val(); var selEmergVal = jQuery('#policeEmergent').val();
if(selEmergVal=='1') { if(selEmergVal=='1') {
jQuery('#levelTitleTd').show(); jQuery('#levelTitleTd').show();
jQuery('#levelValTd').show(); jQuery('#levelValTd').show();
jQuery('#styleChgTd').attr('colspan','1'); jQuery('#styleChgTd').attr('colspan','1');
jQuery('#policeLevel').val(''); jQuery('#policeLevel').val('');
}else { }else {
jQuery('#levelTitleTd').hide(); jQuery('#levelTitleTd').hide();
jQuery('#levelValTd').hide(); jQuery('#levelValTd').hide();
jQuery('#styleChgTd').attr('colspan','3'); jQuery('#styleChgTd').attr('colspan','3');
jQuery('#policeLevel').val('0'); jQuery('#policeLevel').val('0');
} }
} }
function initMarker() { function initMarker() {
var selMarkerVal = jQuery('#markerFiledId').val(); var selMarkerVal = jQuery('#markerFiledId').val();
if(selMarkerVal=='') {//未选择字段 if(selMarkerVal=='') {//未选择字段
jQuery('#markerTitleTd').hide(); jQuery('#markerTitleTd').hide();
jQuery('#markerValTd').hide(); jQuery('#markerValTd').hide();
jQuery('#markerStyleChgTd').attr('colspan','3'); jQuery('#markerStyleChgTd').attr('colspan','3');
}else {//选择了字段 }else {//选择了字段
jQuery('#markerTitleTd').show(); jQuery('#markerTitleTd').show();
jQuery('#markerValTd').show(); jQuery('#markerValTd').show();
jQuery('#markerStyleChgTd').attr('colspan','1'); jQuery('#markerStyleChgTd').attr('colspan','1');
} }
} }
function markerFiledChange() { function markerFiledChange() {
var selMarkerVal = jQuery('#markerFiledId').val(); var selMarkerVal = jQuery('#markerFiledId').val();
if(selMarkerVal=='') {//未选择字段 if(selMarkerVal=='') {//未选择字段
jQuery('#markerTitleTd').hide(); jQuery('#markerTitleTd').hide();
jQuery('#markerValTd').hide(); jQuery('#markerValTd').hide();
jQuery('#markerStyleChgTd').attr('colspan','3'); jQuery('#markerStyleChgTd').attr('colspan','3');
}else {//选择了字段 }else {//选择了字段
jQuery('#markerTitleTd').show(); jQuery('#markerTitleTd').show();
jQuery('#markerValTd').show(); jQuery('#markerValTd').show();
jQuery('#markerStyleChgTd').attr('colspan','1'); jQuery('#markerStyleChgTd').attr('colspan','1');
} }
jQuery('#marker').val(''); jQuery('#marker').val('');
} }
</script> </script>
<body> <body>
<div class="middle_list" > <div class="middle_list" >
<form action="" name="Mkform" method="post"> <form action="" name="Mkform" method="post">
<input type="hidden" name="pageNo" value="${pageNo }" /> <input type="hidden" name="pageNo" value="${pageNo }" />
<input type="hidden" name="pageSize" value="${pageSize }" /> <input type="hidden" name="pageSize" value="${pageSize }" />
<input type="hidden" value="${policeRelationId}" name="policeRelationId"/> <input type="hidden" value="${policeRelationId}" name="policeRelationId"/>
<input type="hidden" value="${setId}" name="setId"/> <input type="hidden" value="${setId}" name="setId"/>
<input type="hidden" value="${detectionSetInfoId}" name="detectionSetInfoId"/> <input type="hidden" value="${detectionSetInfoId}" name="detectionSetInfoId"/>
<input type="hidden" value="${ip}" name="ip"/> <input type="hidden" value="${ip}" name="ip"/>
<input type="hidden" value="${ctn}" name="ctn"/> <input type="hidden" value="${ctn}" name="ctn"/>
<input type="hidden" value="${pIden}" name="pIden"/> <input type="hidden" value="${pIden}" name="pIden"/>
<input type="hidden" value="${dataPoliceRelation.id}" name="dataPoliceRelation.id"/> <input type="hidden" value="${dataPoliceRelation.id}" name="dataPoliceRelation.id"/>
<div style="clear: both"></div> <div style="clear: both"></div>
<table border="0" cellpadding="0" cellspacing="0" class="table"> <table border="0" cellpadding="0" cellspacing="0" class="table">
<tr> <tr>
<td colspan="4" class="color_8"> <td colspan="4" class="color_8">
<strong>i18n_upr.text.title_n81i</strong> <strong>i18n_upr.text.title_n81i</strong>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" width="20%" align="right"> <td class="color_1" width="20%" align="right">
i18n_upr.text.metadata_n81i i18n_upr.text.metadata_n81i
</td> </td>
<td class="color_6" width="30%" align="left" > <td class="color_6" width="30%" align="left" >
<c:if test="${fn:length(allMetadata) > 0}"> <c:if test="${fn:length(allMetadata) > 0}">
<c:forEach items="${allMetadata}" var="metadata"> <c:forEach items="${allMetadata}" var="metadata">
<c:if test="${metadata.id == dataPoliceRelation.metadata.id }"> <c:if test="${metadata.id == dataPoliceRelation.metadata.id }">
<input type="text" name="filedName" readonly="readonly" value="${metadata.filedComments}"/> <input type="text" name="filedName" readonly="readonly" value="${metadata.filedComments}"/>
<input type="hidden" id="metadaFType" value="${metadata.filedType }" /> <input type="hidden" id="metadaFType" value="${metadata.filedType }" />
</c:if> </c:if>
</c:forEach> </c:forEach>
</c:if> </c:if>
<input type="hidden" name="dataPoliceRelation.metadata.id" id="metadaId" value="${dataPoliceRelation.metadata.id }" /> <input type="hidden" name="dataPoliceRelation.metadata.id" id="metadaId" value="${dataPoliceRelation.metadata.id }" />
<font color="red">*</font> <font color="red">*</font>
</td> </td>
<td class="color_1" width="15%" align="right"> <td class="color_1" width="15%" align="right">
i18n_upr.text.policeState_n81i i18n_upr.text.policeState_n81i
</td> </td>
<td class="color_6" width="35%" align="left"> <td class="color_6" width="35%" align="left">
<input type="radio" name="dataPoliceRelation.policeState" <input type="radio" name="dataPoliceRelation.policeState"
id="policeState1" value="0" <c:if test="${dataPoliceRelation.policeState == '0' }">checked="checked"</c:if>/>i18n_upr.message.active_n81i id="policeState1" value="0" <c:if test="${dataPoliceRelation.policeState == '0' }">checked="checked"</c:if>/>i18n_upr.message.active_n81i
<input type="radio" name="dataPoliceRelation.policeState" <input type="radio" name="dataPoliceRelation.policeState"
id="policeState" value="1" <c:if test="${dataPoliceRelation.policeState == '1' }">checked="checked"</c:if>/>i18n_upr.message.invalid_n81i id="policeState" value="1" <c:if test="${dataPoliceRelation.policeState == '1' }">checked="checked"</c:if>/>i18n_upr.message.invalid_n81i
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" width="20%" align="right"> <td class="color_1" width="20%" align="right">
i18n_upr.text.markerFiled_n81i i18n_upr.text.markerFiled_n81i
</td> </td>
<td class="color_6" width="30%" align="left" colspan="3" id="markerStyleChgTd"> <td class="color_6" width="30%" align="left" colspan="3" id="markerStyleChgTd">
<select name="dataPoliceRelation.markerFiledId" id="markerFiledId" onchange="markerFiledChange();" style="width: 153px;"> <select name="dataPoliceRelation.markerFiledId" id="markerFiledId" onchange="markerFiledChange();" style="width: 153px;">
<option value="" id="qxz"> <option value="" id="qxz">
i18n_upr.message.markerFiledDefault_n81i i18n_upr.message.markerFiledDefault_n81i
</option> </option>
<c:if test="${fn:length(allMetadata) > 0}"> <c:if test="${fn:length(allMetadata) > 0}">
<c:forEach items="${allMetadata}" var="metadata"> <c:forEach items="${allMetadata}" var="metadata">
<option value="${metadata.id}" id="${metadata.filedType}" <option value="${metadata.id}" id="${metadata.filedType}"
<c:if test="${dataPoliceRelation.markerFiledId == metadata.id}">selected="selected"</c:if> > <c:if test="${dataPoliceRelation.markerFiledId == metadata.id}">selected="selected"</c:if> >
${metadata.filedComments} ${metadata.filedComments}
</option> </option>
</c:forEach> </c:forEach>
</c:if> </c:if>
</select> </select>
</td> </td>
<td class="color_1" width="15%" align="right" style="display: none;" id="markerTitleTd"> <td class="color_1" width="15%" align="right" style="display: none;" id="markerTitleTd">
i18n_upr.text.marker_n81i i18n_upr.text.marker_n81i
</td> </td>
<td class="color_6" width="35%" align="left" colspan="1" style="display: none;" id="markerValTd"> <td class="color_6" width="35%" align="left" colspan="1" style="display: none;" id="markerValTd">
<input type="text" name="dataPoliceRelation.marker" <input type="text" name="dataPoliceRelation.marker"
id="marker" value="${dataPoliceRelation.marker}"/><font color="red" >i18n_upr.message.marker_n81i</font> id="marker" value="${dataPoliceRelation.marker}"/><font color="red" >i18n_upr.message.marker_n81i</font>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right"> <td class="color_1" align="right">
i18n_upr.text.policeEmergent_n81i i18n_upr.text.policeEmergent_n81i
</td> </td>
<td class="color_3" align="left" id="styleChgTd"> <td class="color_3" align="left" id="styleChgTd">
<select name="dataPoliceRelation.policeEmergent" id="policeEmergent" onchange="emergentChange();" style="width: 153px;"> <select name="dataPoliceRelation.policeEmergent" id="policeEmergent" onchange="emergentChange();" style="width: 153px;">
<option value="0" <c:if test="${dataPoliceRelation.policeEmergent == 0}">selected="selected"</c:if> > <option value="0" <c:if test="${dataPoliceRelation.policeEmergent == 0}">selected="selected"</c:if> >
i18n_upr.message.emergent_n81i i18n_upr.message.emergent_n81i
</option> </option>
<option value="1" <c:if test="${dataPoliceRelation.policeEmergent == 1}">selected="selected"</c:if>> <option value="1" <c:if test="${dataPoliceRelation.policeEmergent == 1}">selected="selected"</c:if>>
i18n_upr.message.nonEmergent_n81i i18n_upr.message.nonEmergent_n81i
</option> </option>
</select> </select>
<font color="red">*</font> <font color="red">*</font>
</td> </td>
<td class="color_1" align="right" id="levelTitleTd" > <td class="color_1" align="right" id="levelTitleTd" >
i18n_upr.text.policeLevel_n81i i18n_upr.text.policeLevel_n81i
</td> </td>
<td class="color_3" align="left" id="levelValTd"> <td class="color_3" align="left" id="levelValTd">
<input type="text" name="dataPoliceRelation.policeLevel" <input type="text" name="dataPoliceRelation.policeLevel"
id="policeLevel" value="${dataPoliceRelation.policeLevel}"/> id="policeLevel" value="${dataPoliceRelation.policeLevel}"/>
<font id="pl" color="red">*i18n_upr.message.policeLevelInfo_n81i</font> <font id="pl" color="red">*i18n_upr.message.policeLevelInfo_n81i</font>
</td> </td>
</tr> </tr>
<tr id = "pv"> <tr id = "pv">
<td class="color_1" align="right"> <td class="color_1" align="right">
i18n_upr.text.policeValue_n81i i18n_upr.text.policeValue_n81i
</td> </td>
<td class="color_3" align="left"> <td class="color_3" align="left">
<input type="text" name="dataPoliceRelation.policeValue" <input type="text" name="dataPoliceRelation.policeValue"
id="policeValue" value="${dataPoliceRelation.policeValue}"/> id="policeValue" value="${dataPoliceRelation.policeValue}"/>
<font color="red">*</font> <font color="red">*</font>
</td> </td>
<td class="color_1" align="right"> <td class="color_1" align="right">
i18n_upr.text.policeUnit_n81i i18n_upr.text.policeUnit_n81i
</td> </td>
<td class="color_3" align="left"> <td class="color_3" align="left">
<input type="text" name="dataPoliceRelation.policeUnit" <input type="text" name="dataPoliceRelation.policeUnit"
id="policeUnit" value="${dataPoliceRelation.policeUnit}"/> id="policeUnit" value="${dataPoliceRelation.policeUnit}"/>
<font color="red">*</font> <font color="red">*</font>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right"> <td class="color_1" align="right">
i18n_upr.message.policeSymbols_n81i i18n_upr.message.policeSymbols_n81i
</td> </td>
<td class="color_3" align="left"> <td class="color_3" align="left">
<select name="dataPoliceRelation.policeSymbols" id="policeSymbols" style="width: 153px;"> <select name="dataPoliceRelation.policeSymbols" id="policeSymbols" style="width: 153px;">
<option value=""> <option value="">
i18n_upr.message.markerFiledDefault_n81i i18n_upr.message.markerFiledDefault_n81i
</option> </option>
<option value=">" <c:if test="${dataPoliceRelation.policeSymbols == '>' }">selected="selected"</c:if> class="notTxt"> <option value=">" <c:if test="${dataPoliceRelation.policeSymbols == '>' }">selected="selected"</c:if> class="notTxt">
&gt; &gt;
</option> </option>
<option value="<" <c:if test="${dataPoliceRelation.policeSymbols == '<' }"> selected="selected" </c:if> class="notTxt"> <option value="<" <c:if test="${dataPoliceRelation.policeSymbols == '<' }"> selected="selected" </c:if> class="notTxt">
&lt; &lt;
</option> </option>
<option value=">=" <c:if test="${dataPoliceRelation.policeSymbols == '>=' }">selected="selected"</c:if> class="notTxt"> <option value=">=" <c:if test="${dataPoliceRelation.policeSymbols == '>=' }">selected="selected"</c:if> class="notTxt">
&gt;= &gt;=
</option> </option>
<option value="<=" <c:if test="${dataPoliceRelation.policeSymbols == '<=' }">selected="selected"</c:if> class="notTxt"> <option value="<=" <c:if test="${dataPoliceRelation.policeSymbols == '<=' }">selected="selected"</c:if> class="notTxt">
&lt;= &lt;=
</option> </option>
<option value="=" <c:if test="${dataPoliceRelation.policeSymbols == '=' }">selected="selected"</c:if> class="notTxt"> <option value="=" <c:if test="${dataPoliceRelation.policeSymbols == '=' }">selected="selected"</c:if> class="notTxt">
= =
</option> </option>
<option value="equals" <c:if test="${dataPoliceRelation.policeSymbols == 'equals' }">selected="selected"</c:if> class="isTxt"> <option value="equals" <c:if test="${dataPoliceRelation.policeSymbols == 'equals' }">selected="selected"</c:if> class="isTxt">
equals equals
</option> </option>
<option value="include" <c:if test="${dataPoliceRelation.policeSymbols == 'include' }">selected="selected"</c:if>class="isTxt"> <option value="include" <c:if test="${dataPoliceRelation.policeSymbols == 'include' }">selected="selected"</c:if>class="isTxt">
include include
</option> </option>
<option value="exclude" <c:if test="${dataPoliceRelation.policeSymbols == 'exclude' }">selected="selected"</c:if>class="isTxt"> <option value="exclude" <c:if test="${dataPoliceRelation.policeSymbols == 'exclude' }">selected="selected"</c:if>class="isTxt">
exclude exclude
</option> </option>
</select> </select>
<font color="red">*</font> <font color="red">*</font>
</td> </td>
<td class="color_1" align="right" valign="top" nowrap="nowrap"> <td class="color_1" align="right" valign="top" nowrap="nowrap">
i18n_upr.text.policeShowInfo_n81i i18n_upr.text.policeShowInfo_n81i
</td> </td>
<td class="color_3" align="left" valign="top"> <td class="color_3" align="left" valign="top">
<textarea rows="3" cols="40" name="dataPoliceRelation.policeShowInfo" id="policeShowInfo">${dataPoliceRelation.policeShowInfo}</textarea> <textarea rows="3" cols="40" name="dataPoliceRelation.policeShowInfo" id="policeShowInfo">${dataPoliceRelation.policeShowInfo}</textarea>
<div><font color="red" id="Msg">i18n_upr.message.policeShowInfo_n81i</font></div> <div><font color="red" id="Msg">i18n_upr.message.policeShowInfo_n81i</font></div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_7" colspan="4" align="right"> <td class="color_7" colspan="4" align="right">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="upd()" value="i18n_upr.button.submit_n81i"/> onclick="upd()" value="i18n_upr.button.submit_n81i"/>
&nbsp; &nbsp;
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="javascript:document.forms['Mkform'].reset()" value="i18n_upr.button.reset_n81i"/> onclick="javascript:document.forms['Mkform'].reset()" value="i18n_upr.button.reset_n81i"/>
&nbsp; &nbsp;
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="goBack()" value="i18n_upr.button.back_n81i"/> onclick="goBack()" value="i18n_upr.button.back_n81i"/>
&nbsp; &nbsp;
</td> </td>
</tr> </tr>
</table> </table>
</form> </form>
</div> </div>
</body> </body>
</html> </html>

View File

@@ -1,176 +1,176 @@
<%@ page language="java" pageEncoding="utf-8"%> <%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="/jstl/c"%> <%@ taglib prefix="c" uri="/jstl/c"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
response.setHeader("Pragma","No-Cache"); response.setHeader("Pragma","No-Cache");
response.setHeader("Cache-Control","No-Cache"); response.setHeader("Cache-Control","No-Cache");
response.setDateHeader("Expires", 0); response.setDateHeader("Expires", 0);
%> %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!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"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title> <title></title>
<!-- 弹出对话框 --> <!-- 弹出对话框 -->
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" type="text/css" /> <link href="<c:url value='/css/nms.css'/>" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script> src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script> src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.suggest.js'/>"></script> src="<c:url value='/js/jquery.suggest.js'/>"></script>
<script src="<c:url value='/js/ui/jquery-ui.min.js'/>"></script> <script src="<c:url value='/js/ui/jquery-ui.min.js'/>"></script>
<link rel="stylesheet" href="<c:url value='/css/themes/base/jquery.ui.all.css'/>" /> <link rel="stylesheet" href="<c:url value='/css/themes/base/jquery.ui.all.css'/>" />
</head> </head>
<script language="javascript" type="text/javascript"> <script language="javascript" type="text/javascript">
$(function() { $(function() {
$( "#downloadDialog" ).dialog({ $( "#downloadDialog" ).dialog({
autoOpen: true, autoOpen: true,
minWidth: 240, minWidth: 240,
modal: true, modal: true,
//隐藏右上角的关闭按钮以下2行 //隐藏右上角的关闭按钮以下2行
closeOnEscape:false, closeOnEscape:false,
open:function(event,ui){$(".ui-dialog-titlebar-close").hide();}, open:function(event,ui){$(".ui-dialog-titlebar-close").hide();},
resizable:false//大小固定 resizable:false//大小固定
}); });
}); });
function toConfigDevice(){ function toConfigDevice(){
var seqId = jQuery("select[id=seqId] option:selected").val(); var seqId = jQuery("select[id=seqId] option:selected").val();
var deviceBrandCode = jQuery("select[id=deviceBrandCode] option:selected").val(); var deviceBrandCode = jQuery("select[id=deviceBrandCode] option:selected").val();
var deviceBrandTypeCode = jQuery("select[id=deviceBrandTypeCode] option:selected").val(); var deviceBrandTypeCode = jQuery("select[id=deviceBrandTypeCode] option:selected").val();
var maxDevNum = jQuery("select[id=maxDevNum] option:selected").val();//最大叠加数 var maxDevNum = jQuery("select[id=maxDevNum] option:selected").val();//最大叠加数
if(isBlank(maxDevNum)) { if(isBlank(maxDevNum)) {
maxDevNum = 1; maxDevNum = 1;
} }
if(isNotBlankAndTip(seqId,"i18n_snadt.message.seqId_n81i","seqId")&&isNotBlankAndTip(deviceBrandCode,"i18n_snadt.message.deviceBrandCode_n81i","deviceBrandCode")&&isNotBlankAndTip(deviceBrandTypeCode,"i18n_snadt.message.deviceBrandTypeCode_n81i","deviceBrandTypeCode")) { if(isNotBlankAndTip(seqId,"i18n_snadt.message.seqId_n81i","seqId")&&isNotBlankAndTip(deviceBrandCode,"i18n_snadt.message.deviceBrandCode_n81i","deviceBrandCode")&&isNotBlankAndTip(deviceBrandTypeCode,"i18n_snadt.message.deviceBrandTypeCode_n81i","deviceBrandTypeCode")) {
document.toConfigDevForm.action="<%=path%>/detection/switchDetection.do?action=configSpecialDevice&seqId="+seqId+"&deviceBrandCode="+deviceBrandCode+"&deviceBrandTypeCode="+deviceBrandTypeCode+"&maxDevNum="+maxDevNum; document.toConfigDevForm.action="<%=path%>/detection/switchDetection.do?action=configSpecialDevice&seqId="+seqId+"&deviceBrandCode="+deviceBrandCode+"&deviceBrandTypeCode="+deviceBrandTypeCode+"&maxDevNum="+maxDevNum;
document.toConfigDevForm.submit(); document.toConfigDevForm.submit();
} }
} }
function isNotBlankAndTip(obj,tip,id) { function isNotBlankAndTip(obj,tip,id) {
if(obj!="" && obj!=null && obj!='undefined') { if(obj!="" && obj!=null && obj!='undefined') {
jQuery("#"+id).next().html('*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'); jQuery("#"+id).next().html('*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
return true; return true;
}else { }else {
jQuery("#"+id).next().html(tip); jQuery("#"+id).next().html(tip);
return false; return false;
} }
} }
function isNotBlank(obj) { function isNotBlank(obj) {
if(obj!="" && obj!=null && obj!='undefined') { if(obj!="" && obj!=null && obj!='undefined') {
return true; return true;
}else { }else {
return false; return false;
} }
} }
function isBlank(obj) { function isBlank(obj) {
if(obj=="" || obj==null || obj=='undefined') { if(obj=="" || obj==null || obj=='undefined') {
return true; return true;
}else { }else {
return false; return false;
} }
} }
//选择品牌时,型号为当前品牌下的型号 //选择品牌时,型号为当前品牌下的型号
function changeDevBrand() { function changeDevBrand() {
jQuery("select[id='deviceBrandTypeCode']").empty(); jQuery("select[id='deviceBrandTypeCode']").empty();
var selecVal = jQuery("select[id='deviceBrandCode'] option:selected").val(); var selecVal = jQuery("select[id='deviceBrandCode'] option:selected").val();
if(isNotBlank(selecVal)) { if(isNotBlank(selecVal)) {
jQuery("select[id='deviceBrandTypeCode']").append('<option value="" >i18n_snadt.message.selectDefault_n81i</option>'); jQuery("select[id='deviceBrandTypeCode']").append('<option value="" >i18n_snadt.message.selectDefault_n81i</option>');
<c:forEach items="${deviceBrandTypeList}" var="brandType" > <c:forEach items="${deviceBrandTypeList}" var="brandType" >
if('${brandType.deviceRandCode}'==selecVal) { if('${brandType.deviceRandCode}'==selecVal) {
var htmlStr = '<option value="${brandType.deviceTypeCode}" >${brandType.deviceTypeCode}</option>'; var htmlStr = '<option value="${brandType.deviceTypeCode}" >${brandType.deviceTypeCode}</option>';
jQuery("select[id='deviceBrandTypeCode']").append(htmlStr); jQuery("select[id='deviceBrandTypeCode']").append(htmlStr);
} }
</c:forEach> </c:forEach>
jQuery("#devBradnType").show(); jQuery("#devBradnType").show();
}else { }else {
jQuery("#devBradnType").hide(); jQuery("#devBradnType").hide();
} }
jQuery("#maxDevNumDiv").hide(); jQuery("#maxDevNumDiv").hide();
} }
//选择设备型号时如果最大叠加数大于1则显示选择叠加数否则不显示 //选择设备型号时如果最大叠加数大于1则显示选择叠加数否则不显示
function changeMaxDevNum() { function changeMaxDevNum() {
jQuery("select[id='maxDevNum']").empty();//清空叠加数 jQuery("select[id='maxDevNum']").empty();//清空叠加数
var selecVal = jQuery("select[id='deviceBrandTypeCode'] option:selected").val();//选中的型号 var selecVal = jQuery("select[id='deviceBrandTypeCode'] option:selected").val();//选中的型号
if(isNotBlank(selecVal)) { if(isNotBlank(selecVal)) {
var seleTypeMaxDevNum = 1; var seleTypeMaxDevNum = 1;
<c:forEach items="${deviceBrandTypeList}" var="brandType" > <c:forEach items="${deviceBrandTypeList}" var="brandType" >
if('${brandType.deviceTypeCode}'==selecVal) { if('${brandType.deviceTypeCode}'==selecVal) {
seleTypeMaxDevNum = '${brandType.maxDeviceNum}'; seleTypeMaxDevNum = '${brandType.maxDeviceNum}';
} }
</c:forEach> </c:forEach>
jQuery("select[id='maxDevNum']").append('<option value="" >i18n_snadt.message.selectDefault_n81i</option>'); jQuery("select[id='maxDevNum']").append('<option value="" >i18n_snadt.message.selectDefault_n81i</option>');
if(seleTypeMaxDevNum>1) { if(seleTypeMaxDevNum>1) {
for(var i=1;i<=seleTypeMaxDevNum;i++) { for(var i=1;i<=seleTypeMaxDevNum;i++) {
var htmlStr = '<option value="'+i+'" >'+i+'</option>'; var htmlStr = '<option value="'+i+'" >'+i+'</option>';
jQuery("select[id='maxDevNum']").append(htmlStr); jQuery("select[id='maxDevNum']").append(htmlStr);
} }
jQuery("#maxDevNumDiv").show(); jQuery("#maxDevNumDiv").show();
}else { }else {
jQuery("#maxDevNumDiv").hide(); jQuery("#maxDevNumDiv").hide();
} }
}else { }else {
jQuery("#maxDevNumDiv").hide(); jQuery("#maxDevNumDiv").hide();
} }
} }
</script> </script>
<body> <body>
<form id="toConfigDevForm" action="<%=path%>/detection/switchDetection.do?action=toConfigSpecialDevice" name="toConfigDevForm" method="post"> <form id="toConfigDevForm" action="<%=path%>/detection/switchDetection.do?action=toConfigSpecialDevice" name="toConfigDevForm" method="post">
<div id="downloadDialog" style="display: none;font-size:14px;margin-top:10px;" title="i18n_snadt.message.selectDefault_n81i" align="center"> <div id="downloadDialog" style="display: none;font-size:14px;margin-top:10px;" title="i18n_snadt.message.selectDefault_n81i" align="center">
<div style="font-size: 12px;"> <div style="font-size: 12px;">
i18n_snadt.text.seqId_n81i<select id="seqId" name="" style="width: 100px;"> i18n_snadt.text.seqId_n81i<select id="seqId" name="" style="width: 100px;">
<option value="" >i18n_snadt.message.selectDefault_n81i</option> <option value="" >i18n_snadt.message.selectDefault_n81i</option>
<c:forEach items="${switcheNodeList}" var="switchNode" > <c:forEach items="${switcheNodeList}" var="switchNode" >
<option value="${switchNode[1]}" >${switchNode[0]}</option> <option value="${switchNode[1]}" >${switchNode[0]}</option>
</c:forEach> </c:forEach>
</select><font color="red">*</font> </select><font color="red">*</font>
<br/><br/> <br/><br/>
i18n_snadt.text.deviceBrandCode_n81i<select id="deviceBrandCode" name="" style="width: 100px;" onchange="changeDevBrand();"> i18n_snadt.text.deviceBrandCode_n81i<select id="deviceBrandCode" name="" style="width: 100px;" onchange="changeDevBrand();">
<option value="" >i18n_snadt.message.selectDefault_n81i</option> <option value="" >i18n_snadt.message.selectDefault_n81i</option>
<c:forEach items="${deviceBrandList}" var="brand" > <c:forEach items="${deviceBrandList}" var="brand" >
<option value="${brand[0]}" >${brand[1]}</option> <option value="${brand[0]}" >${brand[1]}</option>
</c:forEach> </c:forEach>
</select><font color="red">*</font> </select><font color="red">*</font>
<br/><br/> <br/><br/>
<div id="devBradnType" style="display: none;"> <div id="devBradnType" style="display: none;">
i18n_snadt.text.deviceBrandTypeCode_n81i<select id="deviceBrandTypeCode" name="" style="width: 100px;" onchange="changeMaxDevNum();"> i18n_snadt.text.deviceBrandTypeCode_n81i<select id="deviceBrandTypeCode" name="" style="width: 100px;" onchange="changeMaxDevNum();">
<option value="" >i18n_snadt.message.selectDefault_n81i</option> <option value="" >i18n_snadt.message.selectDefault_n81i</option>
</select><font color="red">*</font> </select><font color="red">*</font>
<div id="maxDevNumDiv" style="display: none;"> <div id="maxDevNumDiv" style="display: none;">
<br/> <br/>
i18n_snadt.text.maxDevNum_n81i<select id="maxDevNum" name="" style="width: 100px;"> i18n_snadt.text.maxDevNum_n81i<select id="maxDevNum" name="" style="width: 100px;">
<option value="" >i18n_snadt.message.selectDefault_n81i</option> <option value="" >i18n_snadt.message.selectDefault_n81i</option>
</select><font color="red"></font> </select><font color="red"></font>
</div> </div>
</div> </div>
</div> </div>
<div style="font-size: 12px;margin-top: 10px;" align="center"> <div style="font-size: 12px;margin-top: 10px;" align="center">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="toConfigDevice()" value="i18n_snadt.button.ok_n81i"/> onclick="toConfigDevice()" value="i18n_snadt.button.ok_n81i"/>
</div> </div>
</div> </div>
</form> </form>
</body> </body>
</html> </html>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1,466 +1,466 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="java.math.BigDecimal"%> <%@page import="java.math.BigDecimal"%>
<%@page import="nis.nms.util.MyNumberFormat"%> <%@page import="nis.nms.util.MyNumberFormat"%>
<%@page import="nis.nms.bean.SwitchPortInfo"%> <%@page import="nis.nms.bean.SwitchPortInfo"%>
<%@ taglib prefix="c" uri="/jstl/c"%> <%@ taglib prefix="c" uri="/jstl/c"%>
<%@ taglib prefix="fn" uri="/jstl/fn"%> <%@ taglib prefix="fn" uri="/jstl/fn"%>
<%@ taglib prefix="fmt" uri="/jstl/fmt"%> <%@ taglib prefix="fmt" uri="/jstl/fmt"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
%> %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_sil.message.title_n81i</title> <title>i18n_sil.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" type="text/css" /> <link href="<c:url value='/css/nms.css'/>" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script> src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script> src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.suggest.js'/>"></script> src="<c:url value='/js/jquery.suggest.js'/>"></script>
<script src="<c:url value='/js/lockTableHeader.js'/>" type="text/javascript"></script> <script src="<c:url value='/js/lockTableHeader.js'/>" type="text/javascript"></script>
<script language="javascript" type="text/javascript"> <script language="javascript" type="text/javascript">
var msg = '${MSG}'; var msg = '${MSG}';
if(msg=='1'){ if(msg=='1'){
alert("i18n_sil.message.success_n81i"); alert("i18n_sil.message.success_n81i");
}else if(msg=='2'){ }else if(msg=='2'){
alert("i18n_sil.message.faild_n81i"); alert("i18n_sil.message.faild_n81i");
} }
//添加记录 //添加记录
function add(id){ function add(id){
document.form3.action = "<%=path%>/detection/metaDataSet!executeAction.do?action=oppAdd&typeids="+id; document.form3.action = "<%=path%>/detection/metaDataSet!executeAction.do?action=oppAdd&typeids="+id;
document.form3.submit(); document.form3.submit();
} }
//批量修改记录: //批量修改记录:
function upd(){ function upd(){
if(!isRigthCheck("ids", "remove")){ if(!isRigthCheck("ids", "remove")){
alert("i18n_sil.message.selectInfo1_n81i"); alert("i18n_sil.message.selectInfo1_n81i");
}else{ }else{
document.form3.action ="<%=path%>/detection/metaDataSet!executeAction.do?action=oppUpdList"; document.form3.action ="<%=path%>/detection/metaDataSet!executeAction.do?action=oppUpdList";
document.form3.submit(); document.form3.submit();
} }
} }
//修改记录,暂时不用 //修改记录,暂时不用
function updOld(){ function updOld(){
//alert(1); //alert(1);
if(!isRigthCheck("ids", "edit")){ if(!isRigthCheck("ids", "edit")){
alert("i18n_sil.message.selectInfo2_n81i"); alert("i18n_sil.message.selectInfo2_n81i");
}else{ }else{
document.form3.action ="<%=path%>/detection/metaDataSet!executeAction.do?action=oppUpd"; document.form3.action ="<%=path%>/detection/metaDataSet!executeAction.do?action=oppUpd";
document.form3.submit(); document.form3.submit();
} }
} }
//生成数据表 //生成数据表
function createTable(){ function createTable(){
if(confirm("i18n_sil.message.sureToCreate_n81i")){ if(confirm("i18n_sil.message.sureToCreate_n81i")){
document.form3.action ="<%=path%>/detection/metaDataSet!executeAction.do?action=createTab"; document.form3.action ="<%=path%>/detection/metaDataSet!executeAction.do?action=createTab";
document.form3.submit(); document.form3.submit();
} }
} }
//向数据表添加字段 //向数据表添加字段
function addFiled(){ function addFiled(){
if(confirm("i18n_sil.message.sureToAdd_n81i")){ if(confirm("i18n_sil.message.sureToAdd_n81i")){
document.form3.action ="<%=path%>/detection/metaDataSet!executeAction.do?action=addFiled"; document.form3.action ="<%=path%>/detection/metaDataSet!executeAction.do?action=addFiled";
document.form3.submit(); document.form3.submit();
} }
} }
//停用:将METADATA表中的STATE字段置为1 //停用:将METADATA表中的STATE字段置为1
function startUpOrStop(type) { function startUpOrStop(type) {
if(!isRigthCheck("ids", "remove")){ if(!isRigthCheck("ids", "remove")){
alert("i18n_sil.message.selectInfo1_n81i"); alert("i18n_sil.message.selectInfo1_n81i");
}else { }else {
var num = jQuery("input[name='ids']:checked").size(); var num = jQuery("input[name='ids']:checked").size();
var mids = new Array(num); var mids = new Array(num);
jQuery("input[name='ids']:checked").each(function(i){ jQuery("input[name='ids']:checked").each(function(i){
mids[i]=$(this).val(); mids[i]=$(this).val();
}); });
jQuery.post("<c:url value='/'/>detection/metaDataSet!getState.do",{ids:mids.toString()},function(datas){checkIsState(datas,type);},"json"); jQuery.post("<c:url value='/'/>detection/metaDataSet!getState.do",{ids:mids.toString()},function(datas){checkIsState(datas,type);},"json");
} }
} }
function checkIsState(datas,type) { function checkIsState(datas,type) {
if(datas!=null && datas.length>0) { if(datas!=null && datas.length>0) {
if(type=='1'){//停用 if(type=='1'){//停用
document.form3.action="<%=path%>/detection/metaDataSet.do?action=stop"; document.form3.action="<%=path%>/detection/metaDataSet.do?action=stop";
document.form3.submit(); document.form3.submit();
}else{//启用 }else{//启用
document.form3.action="<%=path%>/detection/metaDataSet.do?action=start"; document.form3.action="<%=path%>/detection/metaDataSet.do?action=start";
document.form3.submit(); document.form3.submit();
} }
} }
} }
function goBack(){ function goBack(){
document.form3.action ="<%=path%>/detection/switchDetection.do?action=query"; document.form3.action ="<%=path%>/detection/switchDetection.do?action=query";
document.form3.submit(); document.form3.submit();
} }
function ieBrowser(){ function ieBrowser(){
if($.browser.msie){ if($.browser.msie){
if($.browser.version.split('.')[0]<=7){ if($.browser.version.split('.')[0]<=7){
return false; return false;
}else{ }else{
return true;//ie8+ return true;//ie8+
} }
} }
} }
//程辉 2013-5-8 新增 导出 //程辉 2013-5-8 新增 导出
function emportXls() { function emportXls() {
document.form3.action = "<c:url value='/'/>/detection/switchDetection.do?action=emportXls&detectId="+'${detectId}'+"&seqId="+'${seqId}'+"&checkDate="+'${checkDate}'; document.form3.action = "<c:url value='/'/>/detection/switchDetection.do?action=emportXls&detectId="+'${detectId}'+"&seqId="+'${seqId}'+"&checkDate="+'${checkDate}';
document.form3.submit(); document.form3.submit();
} }
$(function(){ $(function(){
var dh = document.body.clientHeight; var dh = document.body.clientHeight;
var dhh = dh-60+"px;"; var dhh = dh-60+"px;";
var tableHeight = $("#info").height(); var tableHeight = $("#info").height();
if(tableHeight > dh-60){ 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); $("#maindiv").attr("style","clear:both;margin-left:6px;overflow-y:auto;overflow-x:auto;width:99%;font-size:12px;height: "+dhh);
if(ieBrowser()){ if(ieBrowser()){
$("#info").attr("style","width:100%;"); $("#info").attr("style","width:100%;");
}else{ }else{
$("#info").attr("style","width:98.5%;"); $("#info").attr("style","width:98.5%;");
} }
}else{ }else{
$("#maindiv").attr("style","clear:both;margin-left:6px;overflow-y:auto;overflow-x:auto;width:98%;font-size:12px;height: "+dhh); $("#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%;"); $("#info").attr("style","width:100%;");
} }
$("#info").floatHeaderDiv(); $("#info").floatHeaderDiv();
//tableHeaderNavigator('I3','info'); //tableHeaderNavigator('I3','info');
}); });
</script> </script>
</head> </head>
<body> <body>
<div class="middle_list" style="overflow: hidden;"> <div class="middle_list" style="overflow: hidden;">
<form name=form3 id="frmArticleType" <form name=form3 id="frmArticleType"
action="<c:url value='/detection/switchDetection.do?action=singleSwitchInfo'/>" method="post" enctype="multipart/form-data"> action="<c:url value='/detection/switchDetection.do?action=singleSwitchInfo'/>" method="post" enctype="multipart/form-data">
<input type="hidden" name="typeids" value="${typeids[0]}"/> <input type="hidden" name="typeids" value="${typeids[0]}"/>
<input type="hidden" name="ctn" id="ctn" value="${ctn }" /> <input type="hidden" name="ctn" id="ctn" value="${ctn }" />
<input type="hidden" name="networElementType" id="networElementType" value="${networElementType }" /> <input type="hidden" name="networElementType" id="networElementType" value="${networElementType }" />
<!-- 来源于拓扑图 begin --> <!-- 来源于拓扑图 begin -->
<input type="hidden" name="requestType" value="${requestType }" /> <input type="hidden" name="requestType" value="${requestType }" />
<input type="hidden" name="nodeGroupId" value="${nodeGroupId }" /> <input type="hidden" name="nodeGroupId" value="${nodeGroupId }" />
<input type="hidden" name="nodeIp" value="${nodeIp }" /> <input type="hidden" name="nodeIp" value="${nodeIp }" />
<!-- 来源于拓扑图 end --> <!-- 来源于拓扑图 end -->
<div id="divTop"> <div id="divTop">
<div class="box_2"> <div class="box_2">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="emportXls()" value="i18n_sil.button.export_n81i"/> onclick="emportXls()" value="i18n_sil.button.export_n81i"/>
<c:if test="${isSch=='0'&& isHaveTable=='no'}"> <c:if test="${isSch=='0'&& isHaveTable=='no'}">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="add(${typeids[0]})" value="i18n_sil.button.add_n81i" disabled="disabled"/> <!-- 预置表的新增 --> onclick="add(${typeids[0]})" value="i18n_sil.button.add_n81i" disabled="disabled"/> <!-- 预置表的新增 -->
</c:if> </c:if>
<c:if test="${isSch=='1'}"> <c:if test="${isSch=='1'}">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="add(${typeids[0]})" value="i18n_sil.button.add_n81i" onclick="add(${typeids[0]})" value="i18n_sil.button.add_n81i"
${(ADMFlag && checkTypeInfo.viewLevel ne 4) || (!ADMFlag && checkTypeInfo.viewLevel eq 4) ? "disabled='disabled'":""}/> ${(ADMFlag && checkTypeInfo.viewLevel ne 4) || (!ADMFlag && checkTypeInfo.viewLevel eq 4) ? "disabled='disabled'":""}/>
</c:if> </c:if>
<c:if test="${isSch=='0' && isHaveTable=='no'}"> <c:if test="${isSch=='0' && isHaveTable=='no'}">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="upd()" value="i18n_sil.button.update_n81i" disabled="disabled"/> onclick="upd()" value="i18n_sil.button.update_n81i" disabled="disabled"/>
</c:if> </c:if>
<c:if test="${isSch=='1'}"> <c:if test="${isSch=='1'}">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="upd()" value="i18n_sil.button.update_n81i" onclick="upd()" value="i18n_sil.button.update_n81i"
${(ADMFlag && checkTypeInfo.viewLevel ne 4) || (!ADMFlag && checkTypeInfo.viewLevel eq 4) ? "disabled='disabled'":""}/> ${(ADMFlag && checkTypeInfo.viewLevel ne 4) || (!ADMFlag && checkTypeInfo.viewLevel eq 4) ? "disabled='disabled'":""}/>
</c:if> </c:if>
<c:if test="${isHaveTable=='no'}"> <c:if test="${isHaveTable=='no'}">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="createTable()" value="i18n_sil.button.createTable_n81i" onclick="createTable()" value="i18n_sil.button.createTable_n81i"
${(ADMFlag && checkTypeInfo.viewLevel ne 4) || (!ADMFlag && checkTypeInfo.viewLevel eq 4) ? "disabled='disabled'":""} ${(ADMFlag && checkTypeInfo.viewLevel ne 4) || (!ADMFlag && checkTypeInfo.viewLevel eq 4) ? "disabled='disabled'":""}
/> />
</c:if> </c:if>
<c:if test="${isSch=='1'}"> <c:if test="${isSch=='1'}">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="startUpOrStop(1)" value="i18n_sil.button.stop_n81i"/> <!-- 非预置的表才有停用 --> onclick="startUpOrStop(1)" value="i18n_sil.button.stop_n81i"/> <!-- 非预置的表才有停用 -->
</c:if> </c:if>
<c:if test="${isSch=='1'}"> <c:if test="${isSch=='1'}">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="startUpOrStop(0);" value="i18n_sil.button.start_n81i"/> <!-- 非预置的表才有启用 --> onclick="startUpOrStop(0);" value="i18n_sil.button.start_n81i"/> <!-- 非预置的表才有启用 -->
</c:if> </c:if>
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="goBack()" value="i18n_sil.button.back_n81i"/> onclick="goBack()" value="i18n_sil.button.back_n81i"/>
</div> </div>
</div> </div>
<div id="maindiv"> <div id="maindiv">
<c:if test="${si ne null}"> <c:if test="${si ne null}">
<table border="0" cellpadding="0" cellspacing="0" class="table" id="switchInfo"> <table border="0" cellpadding="0" cellspacing="0" class="table" id="switchInfo">
<tr > <tr >
<td colspan="4" class="color_8"> <td colspan="4" class="color_8">
<strong>i18n_sil.text.switchIp_n81i:${switchIp } i18n_sil.text.title_n81i</strong> <strong>i18n_sil.text.switchIp_n81i:${switchIp } i18n_sil.text.title_n81i</strong>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right" width="20%"> <td class="color_1" align="right" width="20%">
i18n_sil.text.sysDescr_n81i i18n_sil.text.sysDescr_n81i
</td> </td>
<td class="color_3" align="left" > <td class="color_3" align="left" >
${si.sysDescr} ${si.sysDescr}
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right" width="20%"> <td class="color_1" align="right" width="20%">
i18n_sil.text.sysObjectID_n81i i18n_sil.text.sysObjectID_n81i
</td> </td>
<td class="color_3" align="left" > <td class="color_3" align="left" >
${si.sysObjectID} ${si.sysObjectID}
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right" > <td class="color_1" align="right" >
i18n_sil.text.upTimeStr_n81i i18n_sil.text.upTimeStr_n81i
</td> </td>
<td class="color_3" align="left" > <td class="color_3" align="left" >
${si.upTimeStr} ${si.upTimeStr}
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right"> <td class="color_1" align="right">
i18n_sil.text.sysContact_n81i i18n_sil.text.sysContact_n81i
</td> </td>
<td class="color_3" align="left"> <td class="color_3" align="left">
${si.sysContact} ${si.sysContact}
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right"> <td class="color_1" align="right">
i18n_sil.text.sysName_n81i i18n_sil.text.sysName_n81i
</td> </td>
<td class="color_3" align="left"> <td class="color_3" align="left">
${si.sysName} ${si.sysName}
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right"> <td class="color_1" align="right">
i18n_sil.text.sysLocation_n81i i18n_sil.text.sysLocation_n81i
</td> </td>
<td class="color_3" align="left"> <td class="color_3" align="left">
${si.sysLocation} ${si.sysLocation}
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right"> <td class="color_1" align="right">
i18n_sil.text.sysServices_n81i i18n_sil.text.sysServices_n81i
</td> </td>
<td class="color_3"align="left"> <td class="color_3"align="left">
${si.sysServices} ${si.sysServices}
<fmt:formatDate value="${detectionInfoNew.detectionSetInfo.planCheckTime}" pattern="yyyy-MM-dd HH:mm:ss"/> <fmt:formatDate value="${detectionInfoNew.detectionSetInfo.planCheckTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right"> <td class="color_1" align="right">
i18n_sil.text.checkedTimeStr_n81i i18n_sil.text.checkedTimeStr_n81i
</td> </td>
<td class="color_3" align="left"> <td class="color_3" align="left">
${si.checkedTimeStr} ${si.checkedTimeStr}
<fmt:formatDate value="${detectionInfoNew.detectionSetInfo.planCheckTime}" pattern="yyyy-MM-dd HH:mm:ss"/> <fmt:formatDate value="${detectionInfoNew.detectionSetInfo.planCheckTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
</td> </td>
</tr> </tr>
</table> </table>
</c:if> </c:if>
<table border="0" cellpadding="0" cellspacing="0" class="table" id="info"> <table border="0" cellpadding="0" cellspacing="0" class="table" id="info">
<tr> <tr>
<td width="3%" class="color_top"> <td width="3%" class="color_top">
i18n_sil.text.index_n81i i18n_sil.text.index_n81i
</td> </td>
<td width="5%" class="color_top"> <td width="5%" class="color_top">
i18n_sil.text.ifDescr_n81i i18n_sil.text.ifDescr_n81i
</td> </td>
<td width="7%" class="color_top"> <td width="7%" class="color_top">
i18n_sil.text.ifHighSpeed_n81i i18n_sil.text.ifHighSpeed_n81i
</td> </td>
<td width="5%" class="color_top"> <td width="5%" class="color_top">
i18n_sil.text.ifOperStatus_n81i i18n_sil.text.ifOperStatus_n81i
</td> </td>
<td width="7%" class="color_top"> <td width="7%" class="color_top">
i18n_sil.text.ifInOctetsSpeed_n81i i18n_sil.text.ifInOctetsSpeed_n81i
</td> </td>
<td width="7%" class="color_top"> <td width="7%" class="color_top">
i18n_sil.text.inpktsspeed_n81i i18n_sil.text.inpktsspeed_n81i
</td> </td>
<!-- <!--
<td width="7%" class="color_top"> <td width="7%" class="color_top">
输入丢包率(%) 输入丢包率(%)
</td> </td>
<td width="7%" class="color_top"> <td width="7%" class="color_top">
输入差错率(pps) 输入差错率(pps)
</td> </td>
--> -->
<td width="7%" class="color_top"> <td width="7%" class="color_top">
i18n_sil.text.ifindiscardsVary_n81i i18n_sil.text.ifindiscardsVary_n81i
</td> </td>
<td width="7%" class="color_top"> <td width="7%" class="color_top">
i18n_sil.text.ifinerrorsVary_n81i i18n_sil.text.ifinerrorsVary_n81i
</td> </td>
<td width="7%" class="color_top"> <td width="7%" class="color_top">
i18n_sil.text.ifOutOctetsSpeed_n81i i18n_sil.text.ifOutOctetsSpeed_n81i
</td> </td>
<td width="8%" class="color_top"> <td width="8%" class="color_top">
i18n_sil.text.outpktsspeed_n81i i18n_sil.text.outpktsspeed_n81i
</td> </td>
<!-- <!--
<td width="7%" class="color_top"> <td width="7%" class="color_top">
输出丢包率(%) 输出丢包率(%)
</td> </td>
<td width="7%" class="color_top"> <td width="7%" class="color_top">
输出差错率(pps) 输出差错率(pps)
</td> </td>
--> -->
<td width="7%" class="color_top"> <td width="7%" class="color_top">
i18n_sil.text.ifoutdiscardsVary_n81i i18n_sil.text.ifoutdiscardsVary_n81i
</td> </td>
<td width="7%" class="color_top"> <td width="7%" class="color_top">
i18n_sil.text.ifouterrorsVary_n81i i18n_sil.text.ifouterrorsVary_n81i
</td> </td>
<td width="13%" class="color_top"> <td width="13%" class="color_top">
i18n_sil.text.lastStringTime_n81i i18n_sil.text.lastStringTime_n81i
</td> </td>
</tr> </tr>
<c:set var="index" value="${1}" /> <c:set var="index" value="${1}" />
<% <%
List<SwitchPortInfo> siList = (List<SwitchPortInfo>) request.getAttribute("totalSiList"); List<SwitchPortInfo> siList = (List<SwitchPortInfo>) request.getAttribute("totalSiList");
if(siList!=null && siList.size()>0){ if(siList!=null && siList.size()>0){
int vs = -1; int vs = -1;
for(SwitchPortInfo si : siList){ for(SwitchPortInfo si : siList){
vs++; vs++;
pageContext.setAttribute("vs",vs); pageContext.setAttribute("vs",vs);
pageContext.setAttribute("si",si); pageContext.setAttribute("si",si);
%> %>
<c:set var="color" value="color_1"/> <c:set var="color" value="color_1"/>
<c:set var="color_end" value="color_7"/> <c:set var="color_end" value="color_7"/>
<c:if test="${vs%2!=0 }"> <c:if test="${vs%2!=0 }">
<c:set var="color" value="color_3"/> <c:set var="color" value="color_3"/>
<c:set var="color_end" value="color_6"/> <c:set var="color_end" value="color_6"/>
</c:if> </c:if>
<tr> <tr>
<td class="${color }"> <td class="${color }">
${index+(pageNo-1)*pageSize} ${index+(pageNo-1)*pageSize}
</td> </td>
<td class="${color }"> <td class="${color }">
${si.ifDescr} ${si.ifDescr}
</td> </td>
<td class="${color }"> <td class="${color }">
<%=(si.getIfHighSpeed() ==null?MyNumberFormat.formatStr1(new BigDecimal(si.getIfSpeed()),0,1000):si.getIfHighSpeed()+"Mbps") %> <%=(si.getIfHighSpeed() ==null?MyNumberFormat.formatStr1(new BigDecimal(si.getIfSpeed()),0,1000):si.getIfHighSpeed()+"Mbps") %>
</td> </td>
<td class="${color }"> <td class="${color }">
${si.ifOperStatus} ${si.ifOperStatus}
</td> </td>
<td class="${color }"> <td class="${color }">
<%=MyNumberFormat.formatStr1(si.getIfInOctetsSpeed()==null?null:(new BigDecimal(si.getIfInOctetsSpeed()).multiply(new BigDecimal(8))),0,1024) %> <%=MyNumberFormat.formatStr1(si.getIfInOctetsSpeed()==null?null:(new BigDecimal(si.getIfInOctetsSpeed()).multiply(new BigDecimal(8))),0,1024) %>
</td> </td>
<td class="${color }"> <td class="${color }">
<c:if test="${si.inpktsspeed ne null }"> <c:if test="${si.inpktsspeed ne null }">
<%=new BigDecimal(si.getInpktsspeed()).setScale(0,BigDecimal.ROUND_UP) %>pps <%=new BigDecimal(si.getInpktsspeed()).setScale(0,BigDecimal.ROUND_UP) %>pps
</c:if> </c:if>
</td> </td>
<td class="${color }"> <td class="${color }">
${si.ifindiscardsVary} ${si.ifindiscardsVary}
</td> </td>
<td class="${color }"> <td class="${color }">
${si.ifinerrorsVary} ${si.ifinerrorsVary}
</td> </td>
<!-- <!--
<td class="${color }"> <td class="${color }">
${si.ifInErrorsScale} ${si.ifInErrorsScale}
</td> </td>
<td class="${color }"> <td class="${color }">
${si.ifInErrorsScale} ${si.ifInErrorsScale}
</td> </td>
--> -->
<td class="${color }"> <td class="${color }">
<%=MyNumberFormat.formatStr1(si.getIfOutOctetsSpeed()==null?null:(new BigDecimal(si.getIfOutOctetsSpeed()).multiply(new BigDecimal(8))),0,1024) %> <%=MyNumberFormat.formatStr1(si.getIfOutOctetsSpeed()==null?null:(new BigDecimal(si.getIfOutOctetsSpeed()).multiply(new BigDecimal(8))),0,1024) %>
</td> </td>
<td class="${color }"> <td class="${color }">
<c:if test="${si.outpktsspeed ne null }"> <c:if test="${si.outpktsspeed ne null }">
<%=new BigDecimal(si.getOutpktsspeed()).setScale(0,BigDecimal.ROUND_UP) %>pps <%=new BigDecimal(si.getOutpktsspeed()).setScale(0,BigDecimal.ROUND_UP) %>pps
</c:if> </c:if>
</td> </td>
<td class="${color }"> <td class="${color }">
${si.ifoutdiscardsVary} ${si.ifoutdiscardsVary}
</td> </td>
<td class="${color }"> <td class="${color }">
${si.ifouterrorsVary} ${si.ifouterrorsVary}
</td> </td>
<td class="${color }"> <td class="${color }">
${si.lastStringTime} ${si.lastStringTime}
</td> </td>
</tr> </tr>
<c:set var="index" value="${index + 1}" /> <c:set var="index" value="${index + 1}" />
<% <%
} }
}else{ }else{
%> %>
<tr> <tr>
<td colspan="13" class="color_6" align="center"> <td colspan="13" class="color_6" align="center">
i18n_sil.text.noRecord_n81i i18n_sil.text.noRecord_n81i
</td> </td>
</tr> </tr>
<% <%
} }
%> %>
</table> </table>
</div> </div>
<!-- <div id="divBoot"> <!-- <div id="divBoot">
<---jsp:include page="/common/page.jsp" /> <---jsp:include page="/common/page.jsp" />
</div> --> </div> -->
</form> </form>
</div> </div>
</body> </body>
</html> </html>

File diff suppressed because it is too large Load Diff

View File

@@ -1,83 +1,83 @@
<%@ page language="java" pageEncoding="utf-8"%> <%@ page language="java" pageEncoding="utf-8"%>
<%@include file="/common/taglib.jsp"%> <%@include file="/common/taglib.jsp"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
%> %>
<c:choose> <c:choose>
<c:when test="${fn:length(datasList) > 0}"> <c:when test="${fn:length(datasList) > 0}">
<c:forEach items="${datasList}" var="typeData"> <c:forEach items="${datasList}" var="typeData">
<c:forEach items="${typeData}" var="rowData" varStatus="vs"> <c:forEach items="${typeData}" var="rowData" varStatus="vs">
<c:if test="${vs.index==0}" var="flag"> <c:if test="${vs.index==0}" var="flag">
<tr> <tr>
<c:forEach items="${rowData}" var="cellData" varStatus="ind" <c:forEach items="${rowData}" var="cellData" varStatus="ind"
begin="3" end="8"> begin="3" end="8">
<c:set var="dsiId" value="${rowData[1] }" /> <c:set var="dsiId" value="${rowData[1] }" />
<c:set var="seqId" value="${rowData[2] }" /> <c:set var="seqId" value="${rowData[2] }" />
<c:set var="nodeIp" value="${rowData[4] }" /> <c:set var="nodeIp" value="${rowData[4] }" />
<c:set var="checkDate" value="${rowData[9] }" /> <c:set var="checkDate" value="${rowData[9] }" />
<c:choose> <c:choose>
<c:when test="${ind.index eq 3}"> <c:when test="${ind.index eq 3}">
<td class="color_1_1" rowspan="${fn:length(typeData)}" <td class="color_1_1" rowspan="${fn:length(typeData)}"
valign="top"> valign="top">
<c:out value="${cellData}" default="" /> <c:out value="${cellData}" default="" />
</td> </td>
</c:when> </c:when>
<c:otherwise> <c:otherwise>
<td class="color_1_1"> <td class="color_1_1">
<span class="STYLE1" style="word-break: break-all"> <span class="STYLE1" style="word-break: break-all">
<c:out value="${cellData}" default="" /> </span> <c:out value="${cellData}" default="" /> </span>
</td> </td>
</c:otherwise> </c:otherwise>
</c:choose> </c:choose>
</c:forEach> </c:forEach>
<td class="color_1_1"> <td class="color_1_1">
<a href='##showGrap' <a href='##showGrap'
onclick="javascript:showGrap('${dsiId}','${seqId}','${nodeIp}');"> onclick="javascript:showGrap('${dsiId}','${seqId}','${nodeIp}');">
i18n_sitlc.text.showGrap_n81i</a> i18n_sitlc.text.showGrap_n81i</a>
<a <a
href='<c:url value="/detection/switchDetection.do?action=singleSwitchInfo" />&detectId= ${dsiId}&seqId=${seqId}&checkDate=${checkDate}'> href='<c:url value="/detection/switchDetection.do?action=singleSwitchInfo" />&detectId= ${dsiId}&seqId=${seqId}&checkDate=${checkDate}'>
i18n_sitlc.text.showList_n81i </a> i18n_sitlc.text.showList_n81i </a>
</td> </td>
</tr> </tr>
</c:if> </c:if>
<c:if test="${!flag}"> <c:if test="${!flag}">
<tr> <tr>
<c:forEach items="${rowData}" var="cellData" varStatus="ind" <c:forEach items="${rowData}" var="cellData" varStatus="ind"
begin="3" end="8"> begin="3" end="8">
<c:set var="dsiId" value="${rowData[1] }" /> <c:set var="dsiId" value="${rowData[1] }" />
<c:set var="seqId" value="${rowData[2] }" /> <c:set var="seqId" value="${rowData[2] }" />
<c:set var="nodeIp" value="${rowData[4] }" /> <c:set var="nodeIp" value="${rowData[4] }" />
<c:set var="checkDate" value="${rowData[9] }" /> <c:set var="checkDate" value="${rowData[9] }" />
<c:choose> <c:choose>
<c:when test="${ind.index eq 3}"> <c:when test="${ind.index eq 3}">
</c:when> </c:when>
<c:otherwise> <c:otherwise>
<td class="color_1_1"> <td class="color_1_1">
<span class="STYLE1" style="word-break: break-all"> <span class="STYLE1" style="word-break: break-all">
<c:out value="${cellData}" default="" /> </span> <c:out value="${cellData}" default="" /> </span>
</td> </td>
</c:otherwise> </c:otherwise>
</c:choose> </c:choose>
</c:forEach> </c:forEach>
<td class="color_1_1"> <td class="color_1_1">
<a href='##showGrap' <a href='##showGrap'
onclick="javascript:showGrap('${dsiId}','${seqId}','${nodeIp}');"> onclick="javascript:showGrap('${dsiId}','${seqId}','${nodeIp}');">
i18n_sitlc.text.showGrap_n81i </a> i18n_sitlc.text.showGrap_n81i </a>
<a <a
href='<c:url value="/detection/switchDetection.do?action=singleSwitchInfo" />&detectId= ${dsiId}&seqId=${seqId}&checkDate=${checkDate}'> href='<c:url value="/detection/switchDetection.do?action=singleSwitchInfo" />&detectId= ${dsiId}&seqId=${seqId}&checkDate=${checkDate}'>
i18n_sitlc.text.showList_n81i</a> i18n_sitlc.text.showList_n81i</a>
</td> </td>
</tr> </tr>
</c:if> </c:if>
</c:forEach> </c:forEach>
</c:forEach> </c:forEach>
</c:when> </c:when>
</c:choose> </c:choose>

View File

@@ -1,326 +1,326 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%> <%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib uri="/jstl/fn" prefix="fn"%> <%@ taglib uri="/jstl/fn" prefix="fn"%>
<%@ taglib uri="/jstl/fmt" prefix="fmt"%> <%@ taglib uri="/jstl/fmt" prefix="fmt"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
response.setHeader("Pragma", "No-Cache"); response.setHeader("Pragma", "No-Cache");
response.setHeader("Cache-Control", "No-Cache"); response.setHeader("Cache-Control", "No-Cache");
response.setDateHeader("Expires", 0); response.setDateHeader("Expires", 0);
%> %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!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"> <html xmlns=" http://www.w3.org/1999/xhtml">
<head> <head>
<title>i18n_tcp.message.title_n81i</title> <title>i18n_tcp.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" <link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<link href="<c:url value='/css/suggest.css'/>" rel="stylesheet" <link href="<c:url value='/css/suggest.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script> src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script> src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.tools.js'/>"></script> src="<c:url value='/js/jquery.tools.js'/>"></script>
<script type="text/javascript" <script type="text/javascript"
src="<c:url value='/js/jquery.suggest.js' />"></script> src="<c:url value='/js/jquery.suggest.js' />"></script>
<script type="text/javascript"> <script type="text/javascript">
function qry(){ function qry(){
document.form3.action="<c:url value='/detection/switchDetection.do?action=toConfigPort'/>"; document.form3.action="<c:url value='/detection/switchDetection.do?action=toConfigPort'/>";
document.form3.submit(); document.form3.submit();
} }
function save(index){ function save(index){
document.form3.action="<c:url value='/detection/switchDetection.do?action=saveConfigPort&index="+index+"'/>"; document.form3.action="<c:url value='/detection/switchDetection.do?action=saveConfigPort&index="+index+"'/>";
document.form3.submit(); document.form3.submit();
} }
function batchSave(){ function batchSave(){
/*var length = $("input[name=selectOne]").filter(":checked").length; /*var length = $("input[name=selectOne]").filter(":checked").length;
if(length <= 0){ if(length <= 0){
alert("请至少选择一条记录"); alert("请至少选择一条记录");
return; return;
}*/ }*/
document.form3.action="<c:url value='/detection/switchDetection.do?action=saveConfigPort'/>"; document.form3.action="<c:url value='/detection/switchDetection.do?action=saveConfigPort'/>";
document.form3.submit(); document.form3.submit();
} }
function batchAllUpDown(num){ function batchAllUpDown(num){
var checks = document.getElementsByTagName("input"); var checks = document.getElementsByTagName("input");
if(num == 1){ if(num == 1){
for(i=0;i<checks.length;i++){ for(i=0;i<checks.length;i++){
if(checks[i].type=='radio' && checks[i].value=='1'){ if(checks[i].type=='radio' && checks[i].value=='1'){
checks[i].checked='checked'; checks[i].checked='checked';
}else if(checks[i].type=='radio' && checks[i].value=='2'){ }else if(checks[i].type=='radio' && checks[i].value=='2'){
checks[i].checked=''; checks[i].checked='';
}else if(checks[i].type=='checkbox' && checks[i].value=='DOWN'){ }else if(checks[i].type=='checkbox' && checks[i].value=='DOWN'){
checks[i].checked=''; checks[i].checked='';
} }
} }
}else if(num == 2){ }else if(num == 2){
for(i=0;i<checks.length;i++){//alert(checks[i].type);alert(checks[i].value); for(i=0;i<checks.length;i++){//alert(checks[i].type);alert(checks[i].value);
if(checks[i].type=='radio' && checks[i].value=='2'){ if(checks[i].type=='radio' && checks[i].value=='2'){
checks[i].checked='checked'; checks[i].checked='checked';
}else if(checks[i].type=='radio' && checks[i].value=='1'){ }else if(checks[i].type=='radio' && checks[i].value=='1'){
checks[i].checked=''; checks[i].checked='';
}else if(checks[i].type=='checkbox' && checks[i].value=='UP'){ }else if(checks[i].type=='checkbox' && checks[i].value=='UP'){
checks[i].checked=''; checks[i].checked='';
} }
} }
} }
} }
//全选 //全选
$("input[ name='selectAll']").click(function(){ $("input[ name='selectAll']").click(function(){
$("input[name=selectOne]").attr('checked',$(this).attr('checked')); $("input[name=selectOne]").attr('checked',$(this).attr('checked'));
}); });
// 单选 // 单选
$("input[name=selectOne]").click(function(){ $("input[name=selectOne]").click(function(){
$("input[ name='selectAll']").attr('checked',$("input[name=selectOne]").length ==$("input[name=selectOne]").filter(":checked").length); $("input[ name='selectAll']").attr('checked',$("input[name=selectOne]").length ==$("input[name=selectOne]").filter(":checked").length);
}); });
var set_Id; var set_Id;
var ajaxProperties = ""; var ajaxProperties = "";
var ajaxTableName = ""; var ajaxTableName = "";
var ajaxType = ""; var ajaxType = "";
var id = ""; var id = "";
var returnDiv = ""; var returnDiv = "";
var ajaxValue = ""; var ajaxValue = "";
function lianxiangkeydown() { function lianxiangkeydown() {
clearTimeout(set_Id); clearTimeout(set_Id);
} }
function lianxiangkeyup(ajaxProperties1,ajaxTableName1,ajaxType1,id1,returnDiv1,ajaxValue1) { function lianxiangkeyup(ajaxProperties1,ajaxTableName1,ajaxType1,id1,returnDiv1,ajaxValue1) {
if(parent.document.getElementById("lianxiangStatus").value=="2") if(parent.document.getElementById("lianxiangStatus").value=="2")
{ {
if(jQuery.trim(ajaxValue1)=="") return false; if(jQuery.trim(ajaxValue1)=="") return false;
ajaxProperties = ajaxProperties1; ajaxProperties = ajaxProperties1;
ajaxTableName = ajaxTableName1; ajaxTableName = ajaxTableName1;
ajaxType = ajaxType1; ajaxType = ajaxType1;
id = id1; id = id1;
returnDiv = returnDiv1; returnDiv = returnDiv1;
if(!checkStrNoDian(ajaxValue1)){ if(!checkStrNoDian(ajaxValue1)){
ajaxValue = ajaxValue1; ajaxValue = ajaxValue1;
}else{ }else{
clearTimeout(set_Id); clearTimeout(set_Id);
alert('i18n_tcp.message.inputInfo_n81i'); alert('i18n_tcp.message.inputInfo_n81i');
$("#"+id).val(''); $("#"+id).val('');
return; return;
} }
clearTimeout(set_Id); clearTimeout(set_Id);
set_Id = setTimeout(ajaxForLianxiang,500); set_Id = setTimeout(ajaxForLianxiang,500);
} }
} }
function ajaxForLianxiang() function ajaxForLianxiang()
{ {
jQuery.post("<%=path%>/detection/switchDetection!queryInfoForAjax.do", jQuery.post("<%=path%>/detection/switchDetection!queryInfoForAjax.do",
{"ajaxProperties":ajaxProperties,"ajaxTableName":ajaxTableName,"ajaxType":ajaxType,"ajaxValue":ajaxValue},function(data) {"ajaxProperties":ajaxProperties,"ajaxTableName":ajaxTableName,"ajaxType":ajaxType,"ajaxValue":ajaxValue},function(data)
{ {
var lianxiangList = data.split(","); var lianxiangList = data.split(",");
jQuery("#"+id).suggest(lianxiangList,{hot_list:lianxiangList,attachObject:"#"+returnDiv}); jQuery("#"+id).suggest(lianxiangList,{hot_list:lianxiangList,attachObject:"#"+returnDiv});
if(lianxiangList == ''){ if(lianxiangList == ''){
$("#"+id).css("color","#CBC0B6"); $("#"+id).css("color","#CBC0B6");
}else{ }else{
$("#"+id).css("color","#000000"); $("#"+id).css("color","#000000");
} }
}); });
} }
</script> </script>
<script type="text/javascript"> <script type="text/javascript">
function ieBrowser(){ function ieBrowser(){
if($.browser.msie){ if($.browser.msie){
if($.browser.version.split('.')[0]<=7){ if($.browser.version.split('.')[0]<=7){
return false; return false;
}else{ }else{
return true;//ie8+ return true;//ie8+
} }
} }
} }
$(function(){ $(function(){
var dh = document.body.clientHeight; var dh = document.body.clientHeight;
var dhh = dh-60+"px;"; var dhh = dh-60+"px;";
var tableHeight = $("#info").height(); var tableHeight = $("#info").height();
if(tableHeight > dh-60){ 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); $("#maindiv").attr("style","clear:both;margin-left:6px;overflow-y:auto;overflow-x:auto;width:99%;font-size:12px;height: "+dhh);
if(ieBrowser()){ if(ieBrowser()){
$("#info").attr("style","width:100%;"); $("#info").attr("style","width:100%;");
}else{ }else{
$("#info").attr("style","width:98.5%;"); $("#info").attr("style","width:98.5%;");
} }
}else{ }else{
$("#maindiv").attr("style","clear:both;margin-left:6px;overflow-y:auto;overflow-x:auto;width:98%;font-size:12px;height: "+dhh); $("#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%;"); $("#info").attr("style","width:100%;");
} }
$("#info").floatHeaderDiv(); $("#info").floatHeaderDiv();
}); });
window.onresize = function(){ window.onresize = function(){
$("#info").floatHeader();//用于浏览器调整大小后 列表表头自动适应 $("#info").floatHeader();//用于浏览器调整大小后 列表表头自动适应
} }
/*------ 滚动条滚动 延迟加载页面操作--------------*/ /*------ 滚动条滚动 延迟加载页面操作--------------*/
var hght=0;//初始化滚动条总长 var hght=0;//初始化滚动条总长
var topH=0;//初始化滚动条的当前位置 var topH=0;//初始化滚动条的当前位置
var pagePoint = ${pageNo}; var pagePoint = ${pageNo};
var memoryData ; var memoryData ;
var intervalID ; var intervalID ;
var currentPage = 0; //当前页数 var currentPage = 0; //当前页数
var currenttotalPage = 0; //总页数 var currenttotalPage = 0; //总页数
$(function(){//DOM的onload事件 $(function(){//DOM的onload事件
$("#maindiv").scroll( function() {//定义滚动条位置改变时触发的事件。 $("#maindiv").scroll( function() {//定义滚动条位置改变时触发的事件。
hght=this.scrollHeight;//得到滚动条总长赋给hght变量 hght=this.scrollHeight;//得到滚动条总长赋给hght变量
topH=this.scrollTop+this.clientHeight;//得到滚动条当前值赋给top变量 topH=this.scrollTop+this.clientHeight;//得到滚动条当前值赋给top变量
}); });
intervalID = setInterval(function(){cando();},1000);//每隔2秒钟调用一次cando函数来判断当前滚动条位置。 intervalID = setInterval(function(){cando();},1000);//每隔2秒钟调用一次cando函数来判断当前滚动条位置。
function cando(){ function cando(){
currentPage = $("#currentPage").html(); currentPage = $("#currentPage").html();
currenttotalPage = $("#currenttotalPage").html(); currenttotalPage = $("#currenttotalPage").html();
if(Number(currentPage) < Number(currenttotalPage)){ if(Number(currentPage) < Number(currenttotalPage)){
if(topH!=0 && hght!=0 && topH == hght ){//判断滚动条当前位置是否超过总长的3/2parseInt为取整函数 if(topH!=0 && hght!=0 && topH == hght ){//判断滚动条当前位置是否超过总长的3/2parseInt为取整函数
show();//如果是调用show函数加载内容。 show();//如果是调用show函数加载内容。
} }
}else if(Number(currentPage) == Number(currenttotalPage)){ }else if(Number(currentPage) == Number(currenttotalPage)){
clearInterval(intervalID); clearInterval(intervalID);
} }
} }
function show(){ function show(){
hght=0;//恢复滚动条总长,因为$(”#mypage”).scroll事件一触发又会得到新值不恢复的话可能会造成判断错误而再次加载…… hght=0;//恢复滚动条总长,因为$(”#mypage”).scroll事件一触发又会得到新值不恢复的话可能会造成判断错误而再次加载……
topH=0;//原因同上。 topH=0;//原因同上。
var nodeIp= $("#nodeIp").val(); var nodeIp= $("#nodeIp").val();
var url2 = encodeURI("<c:url value='/detection/switchDetection.do?action=toConfigPortChild'/>&pageSize="+'${pageSize }'+"&pageNo="+(++pagePoint)+"&nodeIp="+nodeIp); var url2 = encodeURI("<c:url value='/detection/switchDetection.do?action=toConfigPortChild'/>&pageSize="+'${pageSize }'+"&pageNo="+(++pagePoint)+"&nodeIp="+nodeIp);
$.ajax({ $.ajax({
url:url2, url:url2,
type : "get", type : "get",
async:false, async:false,
success : function(data) { success : function(data) {
$("#info").append($(data));//用append方法追加内容到mypage元素。 $("#info").append($(data));//用append方法追加内容到mypage元素。
$("#currentPage").html(pagePoint);//修改页码 $("#currentPage").html(pagePoint);//修改页码
$("#pageNo").val(pagePoint); $("#pageNo").val(pagePoint);
} }
}); });
loadButton(); loadButton();
} }
}); });
/*------ 滚动条滚动 延迟加载页面操作--------------*/ /*------ 滚动条滚动 延迟加载页面操作--------------*/
</script> </script>
</head> </head>
<body> <body>
<div class="middle_list" id="box"> <div class="middle_list" id="box">
<!--中间部分右边开始--> <!--中间部分右边开始-->
<form name="form3" id="form3" <form name="form3" id="form3"
action="<c:url value='/detection/switchDetection.do?action=toConfigPort'/>" action="<c:url value='/detection/switchDetection.do?action=toConfigPort'/>"
method="post" enctype="multipart/form-data"> method="post" enctype="multipart/form-data">
<div class="box_1"> <div class="box_1">
<label class="divTopText"><font class="selectText">i18n_tcp.text.nodeIp_n81i</font> <label class="divTopText"><font class="selectText">i18n_tcp.text.nodeIp_n81i</font>
<input type="text" id="nodeIp" <input type="text" id="nodeIp"
onkeyup="lianxiangkeyup('nodeIp','NodeTable','String','nodeIp','suggest1',this.value);" onkeyup="lianxiangkeyup('nodeIp','NodeTable','String','nodeIp','suggest1',this.value);"
name="nodeIp" title="i18n_tcp.message.nodeIp_n81i" value="${nodeIp}" size="20" /> name="nodeIp" title="i18n_tcp.message.nodeIp_n81i" value="${nodeIp}" size="20" />
<div id='suggest1' class="ac_results"></div></label> <div id='suggest1' class="ac_results"></div></label>
<img id="queryBut" src="<c:url value='/images/button_chaxun.png'/>" <img id="queryBut" src="<c:url value='/images/button_chaxun.png'/>"
class="img_middle2" onclick="javascript:qry();" /> class="img_middle2" onclick="javascript:qry();" />
</div> </div>
<div class="box_2"> <div class="box_2">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="javascript:batchSave();" value="i18n_tcp.button.batchSave_n81i" /> onclick="javascript:batchSave();" value="i18n_tcp.button.batchSave_n81i" />
</div> </div>
<div id="maindiv"> <div id="maindiv">
<table width="90%" border="0" cellpadding="0" cellspacing="0" <table width="90%" border="0" cellpadding="0" cellspacing="0"
class="table" align="center" style="clear: both" id="info"> class="table" align="center" style="clear: both" id="info">
<tr> <tr>
<td class="color_top" width="10%"> <td class="color_top" width="10%">
i18n_tcp.text.index_n81i i18n_tcp.text.index_n81i
</td> </td>
<td class="color_top" width="30%"> <td class="color_top" width="30%">
i18n_tcp.text.processIdenName_n81i i18n_tcp.text.processIdenName_n81i
</td> </td>
<td class="color_top" width="30%"> <td class="color_top" width="30%">
i18n_tcp.text.portState_n81i&nbsp; i18n_tcp.text.portState_n81i&nbsp;
<input type="checkbox" onclick="javascript:batchAllUpDown(1);" <input type="checkbox" onclick="javascript:batchAllUpDown(1);"
value="UP" id="UP"/> value="UP" id="UP"/>
UP&nbsp; UP&nbsp;
<input type="checkbox" onclick="javascript:batchAllUpDown(2);" <input type="checkbox" onclick="javascript:batchAllUpDown(2);"
value="DOWN" id="DOWN"/> value="DOWN" id="DOWN"/>
DOWN DOWN
</td> </td>
<td class="color_top" width="30%"> <td class="color_top" width="30%">
i18n_tcp.text.option_n81i i18n_tcp.text.option_n81i
</td> </td>
</tr> </tr>
<c:choose> <c:choose>
<c:when test="${fn:length(nodeFigureInfoList) > 0}"> <c:when test="${fn:length(nodeFigureInfoList) > 0}">
<c:set var="index" value="${1}" /> <c:set var="index" value="${1}" />
<c:forEach items="${nodeFigureInfoList}" var="nodeFigureInfo" <c:forEach items="${nodeFigureInfoList}" var="nodeFigureInfo"
varStatus="vs"> varStatus="vs">
<c:set var="color" value="color_1" /> <c:set var="color" value="color_1" />
<c:if test="${vs.count%2!=0 }"> <c:if test="${vs.count%2!=0 }">
<c:set var="color" value="color_3" /> <c:set var="color" value="color_3" />
</c:if> </c:if>
<tr> <tr>
<td class="${color }"> <td class="${color }">
${index+(pageNo-1)*pageSize} ${index+(pageNo-1)*pageSize}
</td> </td>
<td class="${color }"> <td class="${color }">
${nodeFigureInfo.nameFlag} ${nodeFigureInfo.nameFlag}
</td> </td>
<td class="${color }"> <td class="${color }">
<input type="hidden" <input type="hidden"
name="batchNodeFigureInfo[${index+(pageNo-1)*pageSize}].id" name="batchNodeFigureInfo[${index+(pageNo-1)*pageSize}].id"
value="${nodeFigureInfo.id }" /> value="${nodeFigureInfo.id }" />
<input type="radio" <input type="radio"
name="batchNodeFigureInfo[${index+(pageNo-1)*pageSize}].portsetState" name="batchNodeFigureInfo[${index+(pageNo-1)*pageSize}].portsetState"
value="1" value="1"
<c:if test="${nodeFigureInfo.portsetState !=2 }">checked</c:if> /> <c:if test="${nodeFigureInfo.portsetState !=2 }">checked</c:if> />
<font color="green">UP</font> <font color="green">UP</font>
<input type="radio" <input type="radio"
name="batchNodeFigureInfo[${index+(pageNo-1)*pageSize}].portsetState" name="batchNodeFigureInfo[${index+(pageNo-1)*pageSize}].portsetState"
value="2" value="2"
<c:if test="${nodeFigureInfo.portsetState ==2 }">checked</c:if> /> <c:if test="${nodeFigureInfo.portsetState ==2 }">checked</c:if> />
<font color="red">DOWN</font> <font color="red">DOWN</font>
</td> </td>
<td class="${color }"> <td class="${color }">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="javascript:save('${index+(pageNo-1)*pageSize}');" value="i18n_tcp.button.save_n81i" /> onclick="javascript:save('${index+(pageNo-1)*pageSize}');" value="i18n_tcp.button.save_n81i" />
</td> </td>
</tr> </tr>
<c:set var="index" value="${index + 1}" /> <c:set var="index" value="${index + 1}" />
</c:forEach> </c:forEach>
</c:when> </c:when>
<c:otherwise> <c:otherwise>
<tr> <tr>
<td colspan="4" height="20" class="color_6" align="center" <td colspan="4" height="20" class="color_6" align="center"
style="color: #000000;"> style="color: #000000;">
i18n_tcp.text.noRecord_n81i i18n_tcp.text.noRecord_n81i
</td> </td>
</tr> </tr>
</c:otherwise> </c:otherwise>
</c:choose> </c:choose>
</table> </table>
</div> </div>
<c:if test="${!empty nodeFigureInfoList}"> <c:if test="${!empty nodeFigureInfoList}">
<jsp:include page="/common/page.jsp" /> <jsp:include page="/common/page.jsp" />
</c:if> </c:if>
<!--中间部分右边结束--> <!--中间部分右边结束-->
</form> </form>
</div> </div>
</body> </body>
</html> </html>

View File

@@ -1,48 +1,48 @@
<%@ page language="java" pageEncoding="utf-8"%> <%@ page language="java" pageEncoding="utf-8"%>
<%@include file="/common/taglib.jsp"%> <%@include file="/common/taglib.jsp"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
%> %>
<c:set var="index" value="${1}" /> <c:set var="index" value="${1}" />
<c:choose> <c:choose>
<c:when test="${fn:length(nodeFigureInfoList) > 0}"> <c:when test="${fn:length(nodeFigureInfoList) > 0}">
<c:forEach items="${nodeFigureInfoList}" var="nodeFigureInfo" varStatus="vs"> <c:forEach items="${nodeFigureInfoList}" var="nodeFigureInfo" varStatus="vs">
<c:set var="color" value="color_1" /> <c:set var="color" value="color_1" />
<c:if test="${vs.count%2!=0 }"> <c:if test="${vs.count%2!=0 }">
<c:set var="color" value="color_3" /> <c:set var="color" value="color_3" />
</c:if> </c:if>
<tr> <tr>
<td class="${color }"> <td class="${color }">
${index+(pageNo-1)*pageSize} ${index+(pageNo-1)*pageSize}
</td> </td>
<td class="${color }"> <td class="${color }">
${nodeFigureInfo.nameFlag} ${nodeFigureInfo.nameFlag}
</td> </td>
<td class="${color }"> <td class="${color }">
<input type="hidden" name="batchNodeFigureInfo[${index+(pageNo-1)*pageSize}].id" <input type="hidden" name="batchNodeFigureInfo[${index+(pageNo-1)*pageSize}].id"
value="${nodeFigureInfo.id }" /> value="${nodeFigureInfo.id }" />
<input type="radio" <input type="radio"
name="batchNodeFigureInfo[${index+(pageNo-1)*pageSize}].portsetState" value="1" name="batchNodeFigureInfo[${index+(pageNo-1)*pageSize}].portsetState" value="1"
<c:if test="${nodeFigureInfo.portsetState !=2 }">checked</c:if> /> <c:if test="${nodeFigureInfo.portsetState !=2 }">checked</c:if> />
<font color="green">UP</font> <font color="green">UP</font>
<input type="radio" <input type="radio"
name="batchNodeFigureInfo[${index+(pageNo-1)*pageSize}].portsetState" value="2" name="batchNodeFigureInfo[${index+(pageNo-1)*pageSize}].portsetState" value="2"
<c:if test="${nodeFigureInfo.portsetState ==2 }">checked</c:if> /> <c:if test="${nodeFigureInfo.portsetState ==2 }">checked</c:if> />
<font color="red">DOWN</font> <font color="red">DOWN</font>
</td> </td>
<td class="${color }"> <td class="${color }">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="javascript:save('${index+(pageNo-1)*pageSize}');" value="i18n_tcpc.button.save_n81i" /> onclick="javascript:save('${index+(pageNo-1)*pageSize}');" value="i18n_tcpc.button.save_n81i" />
</td> </td>
</tr> </tr>
<c:set var="index" value="${index + 1}" /> <c:set var="index" value="${index + 1}" />
</c:forEach> </c:forEach>
</c:when> </c:when>
</c:choose> </c:choose>

File diff suppressed because it is too large Load Diff

View File

@@ -1,443 +1,443 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="/common/taglib.jsp"%> <%@include file="/common/taglib.jsp"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
%> %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!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"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>i18n_mkil.message.title_n81i</title> <title>i18n_mkil.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" type="text/css" rel="stylesheet" /> <link href="<c:url value='/css/nms.css'/>" type="text/css" rel="stylesheet" />
<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-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/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/MzTreeView10.js"/>"></script>
<script type="text/javascript"> <script type="text/javascript">
var tree = new MzTreeView("tree"); var tree = new MzTreeView("tree");
window.onload=function(){ window.onload=function(){
<c:if test="${allMkInfo ne null}"> <c:if test="${allMkInfo ne null}">
</c:if> </c:if>
} }
function EI(t) {return document.getElementById(t);} function EI(t) {return document.getElementById(t);}
tree.icons["property"] = "property.gif"; tree.icons["property"] = "property.gif";
tree.icons["css"] = "collection.gif"; tree.icons["css"] = "collection.gif";
tree.icons["book"] = "book.gif"; tree.icons["book"] = "book.gif";
tree.setIconPath("<%=basePath%>"+"/images/tree/"); //可用相对路径 tree.setIconPath("<%=basePath%>"+"/images/tree/"); //可用相对路径
var listvalue = new Array(); var listvalue = new Array();
<c:if test="${allMkInfo ne null}"> <c:if test="${allMkInfo ne null}">
<c:forEach var="item" items="${allMkInfo}"> <c:forEach var="item" items="${allMkInfo}">
<c:if test="${item.zxbz==1}" var="zxFlag"> <c:if test="${item.zxbz==1}" var="zxFlag">
tree.nodes["${item.pid}_${item.id}"]="text:<font color='#999999'>${item.mkmc}</font>;hint:${item.mkmc};icon:css;data:id=${item.id};leaf:true"; tree.nodes["${item.pid}_${item.id}"]="text:<font color='#999999'>${item.mkmc}</font>;hint:${item.mkmc};icon:css;data:id=${item.id};leaf:true";
</c:if> </c:if>
<c:if test="${!zxFlag}"> <c:if test="${!zxFlag}">
tree.nodes["${item.pid}_${item.id}"]="text:${item.mkmc};hint:${item.mkmc};icon:css;data:id=${item.id};leaf:true"; tree.nodes["${item.pid}_${item.id}"]="text:${item.mkmc};hint:${item.mkmc};icon:css;data:id=${item.id};leaf:true";
</c:if> </c:if>
listvalue['${item.id}']="${item.id};${item.handler};${item.mkurl};${item.mkmc};${item.iconimage};${item.mktype};${item.showorder};${item.mkms};${item.pid};${item.zxbz};${item.showlevel}"; listvalue['${item.id}']="${item.id};${item.handler};${item.mkurl};${item.mkmc};${item.iconimage};${item.mktype};${item.showorder};${item.mkms};${item.pid};${item.zxbz};${item.showlevel}";
</c:forEach> </c:forEach>
</c:if> </c:if>
tree.setTarget("MzMain"); tree.setTarget("MzMain");
//点击各节点触发的事件 //点击各节点触发的事件
function myclick(id){ function myclick(id){
$("#btn_sort").hide(); $("#btn_sort").hide();
var node=tree.currentNode; var node=tree.currentNode;
var values = listvalue[id].split(";"); var values = listvalue[id].split(";");
EI("pid").value=values[0]; EI("pid").value=values[0];
torepair(listvalue[id]); torepair(listvalue[id]);
} }
function initshow(){ function initshow(){
$("#tabl1").html("<table id='tabl1' class='table1' width='100%' border=0 cellpadding='0' cellspacing='1' width=\"100%\"><tr><th class=\"tdhead\">i18n_mkil.message.table.name_n81i</th><th class=\"tdhead\">i18n_mkil.message.table.type_n81i</th><th class='tdhead'>i18n_mkil.message.table.serial_n81i</th><th class=\"tdhead\">i18n_mkil.message.table.description_n81i</th><th class=\"tdhead\" style=\"\">i18n_mkil.message.table.operations_n81i</th></tr></table>"); $("#tabl1").html("<table id='tabl1' class='table1' width='100%' border=0 cellpadding='0' cellspacing='1' width=\"100%\"><tr><th class=\"tdhead\">i18n_mkil.message.table.name_n81i</th><th class=\"tdhead\">i18n_mkil.message.table.type_n81i</th><th class='tdhead'>i18n_mkil.message.table.serial_n81i</th><th class=\"tdhead\">i18n_mkil.message.table.description_n81i</th><th class=\"tdhead\" style=\"\">i18n_mkil.message.table.operations_n81i</th></tr></table>");
} }
//按钮排序 //按钮排序
function functionsort(sort){ function functionsort(sort){
var id = $("#id").val(); var id = $("#id").val();
if(!id){ if(!id){
alert('i18n_mkil.message.selectNode_n81i'); alert('i18n_mkil.message.selectNode_n81i');
return; return;
} }
var pid = $("#pid").val(); var pid = $("#pid").val();
var showNum = $("#forder").val(); var showNum = $("#forder").val();
var actionurl = "<%=path%>/functionManager/functionManager.do?action=update&sort="+sort; var actionurl = "<%=path%>/functionManager/functionManager.do?action=update&sort="+sort;
$.ajax( { $.ajax( {
url : actionurl+"&r="+new Date(), url : actionurl+"&r="+new Date(),
type : "POST", type : "POST",
dataType : "html", dataType : "html",
data:{'module.pid':pid,'module.id':id,'module.showorder':showNum}, data:{'module.pid':pid,'module.id':id,'module.showorder':showNum},
async:false, async:false,
success : function(data) { success : function(data) {
if(data == '1'){ if(data == '1'){
//alert('操作成功,请重新登录'); //alert('操作成功,请重新登录');
//window.parent.location="<%=path%>/login.do?type=refresh"; //window.parent.location="<%=path%>/login.do?type=refresh";
//window.parent.location.reload; //window.parent.location.reload;
alert('i18n_mkil.message.success_n81i'); alert('i18n_mkil.message.success_n81i');
window.location.href="<%=path%>/functionManager/functionManager.do?action=queryMkInfo"; window.location.href="<%=path%>/functionManager/functionManager.do?action=queryMkInfo";
}else if(data == '2'){ }else if(data == '2'){
alert('i18n_mkil.message.faild_n81i'); alert('i18n_mkil.message.faild_n81i');
}else if(data == '3'){ }else if(data == '3'){
alert('i18n_mkil.message.upDisable_n81i'); alert('i18n_mkil.message.upDisable_n81i');
}else if(data == '4'){ }else if(data == '4'){
alert('i18n_mkil.message.downDisable_n81i'); alert('i18n_mkil.message.downDisable_n81i');
} }
} }
}) })
} }
//修改 //修改
function torepair(txt){ function torepair(txt){
$("#pathAndjs").html("*"); $("#pathAndjs").html("*");
var arr=txt.split(";"); var arr=txt.split(";");
//父id //父id
$("#pid").val(arr[8]); $("#pid").val(arr[8]);
//主键 //主键
$("#id").val(arr[0]); $("#id").val(arr[0]);
//调用的js //调用的js
$("#handler").val(arr[1]); $("#handler").val(arr[1]);
$("#mkurl").val(arr[2]); $("#mkurl").val(arr[2]);
$("#mkmc").val(arr[3]); $("#mkmc").val(arr[3]);
$("#iconimage").val(arr[4]); $("#iconimage").val(arr[4]);
$("#forder").val(arr[6]); $("#forder").val(arr[6]);
$("#mkms").val(arr[7]); $("#mkms").val(arr[7]);
$("#mktype").val(arr[5]); $("#mktype").val(arr[5]);
$("#levelTemp").val(arr[10]); $("#levelTemp").val(arr[10]);
$("#level").val(arr[10]); $("#level").val(arr[10]);
//alert(arr[10]); //alert(arr[10]);
//alert($("#showlevel").val()); //alert($("#showlevel").val());
$("input[type='radio'][name='module.mktype']").removeAttr('disabled'); $("input[type='radio'][name='module.mktype']").removeAttr('disabled');
$("input[type='radio'][name='module.mktype'][value='"+(arr[5] == '' || arr[5] ==0 ? 0 : 1)+"']").trigger('click'); $("input[type='radio'][name='module.mktype'][value='"+(arr[5] == '' || arr[5] ==0 ? 0 : 1)+"']").trigger('click');
$("input[type='radio'][name='module.mktype']").attr('disabled','disabled'); $("input[type='radio'][name='module.mktype']").attr('disabled','disabled');
$("input[type='radio'][name='module.zxbz']").removeAttr('disabled'); $("input[type='radio'][name='module.zxbz']").removeAttr('disabled');
$("input[type='radio'][name='module.zxbz'][value='"+(arr[9] == '' || arr[9] ==0 ? 0 : 1)+"']").trigger('click'); $("input[type='radio'][name='module.zxbz'][value='"+(arr[9] == '' || arr[9] ==0 ? 0 : 1)+"']").trigger('click');
$("input[type='radio'][name='module.zxbz']").attr('disabled','disabled'); $("input[type='radio'][name='module.zxbz']").attr('disabled','disabled');
cancelForm(); cancelForm();
if($("#mktype").val()=='1'){//选中的是按钮,禁止添加子节点 if($("#mktype").val()=='1'){//选中的是按钮,禁止添加子节点
$("input[class=btn3_mouseout][type=button][value='i18n_mkil.message.andSubnode_n81i']").hide(); $("input[class=btn3_mouseout][type=button][value='i18n_mkil.message.andSubnode_n81i']").hide();
}else{ }else{
$("input[class=btn3_mouseout][type=button][value='i18n_mkil.message.andSubnode_n81i']").show(); $("input[class=btn3_mouseout][type=button][value='i18n_mkil.message.andSubnode_n81i']").show();
} }
} }
function cancelForm(){ function cancelForm(){
$("#yhForm input").attr('disabled','disabled'); $("#yhForm input").attr('disabled','disabled');
$("#yhForm textarea").attr('disabled','disabled'); $("#yhForm textarea").attr('disabled','disabled');
$("span[id^=buttons]").hide(); $("span[id^=buttons]").hide();
$("#btn_sort").hide(); $("#btn_sort").hide();
} }
function activeForm(){ function activeForm(){
$("#yhForm input").removeAttr('disabled'); $("#yhForm input").removeAttr('disabled');
$("#yhForm textarea").removeAttr('disabled'); $("#yhForm textarea").removeAttr('disabled');
} }
//模块管理的按钮修改 //模块管理的按钮修改
function updateMk(){ function updateMk(){
if($("#id").val()==""){ if($("#id").val()==""){
alert("i18n_mkil.message.updateMK_n81i"); alert("i18n_mkil.message.updateMK_n81i");
return ; return ;
} }
activeForm(); activeForm();
$("#buttons_add").hide(); $("#buttons_add").hide();
$("#buttons_update").show(); $("#buttons_update").show();
$("#btn_sort").show(); $("#btn_sort").show();
$("#showNum").val($("#forder").val()); $("#showNum").val($("#forder").val());
$("#level").removeAttr('readonly');//菜单级别可修改 $("#level").removeAttr('readonly');//菜单级别可修改
} }
//模块管理的添加按钮 //模块管理的添加按钮
function addMk(){ function addMk(){
$("#yhForm")[0].reset(); $("#yhForm")[0].reset();
activeForm(); activeForm();
$("#buttons_update").hide(); $("#buttons_update").hide();
$("#buttons_add").show(); $("#buttons_add").show();
getMaxShowOrder(); getMaxShowOrder();
$("input[type='radio'][name='module.mktype'][value='1'").attr('disabled','disabled');//不能为按钮 $("input[type='radio'][name='module.mktype'][value='1'").attr('disabled','disabled');//不能为按钮
$("#level").val(1); $("#level").val(1);
} }
//子模块管理的添加按钮 //子模块管理的添加按钮
function addZMk(){ function addZMk(){
var pid = $("#yhForm>#id").val(); var pid = $("#yhForm>#id").val();
if(pid == ""){ if(pid == ""){
alert("i18n_mkil.message.addZMK_n81i"); alert("i18n_mkil.message.addZMK_n81i");
return; return;
} }
$("#yhForm")[0].reset(); $("#yhForm")[0].reset();
$("#yhForm>#pid").val(pid); $("#yhForm>#pid").val(pid);
activeForm(); activeForm();
$("#buttons_update").hide(); $("#buttons_update").hide();
$("#buttons_add").show(); $("#buttons_add").show();
getMaxShowOrder(); getMaxShowOrder();
if($("#levelTemp").val()=='1'){//主菜单,只能添加菜单 if($("#levelTemp").val()=='1'){//主菜单,只能添加菜单
$("input[type='radio'][name='module.mktype'][value='1'").attr('disabled','disabled');//不能为按钮 $("input[type='radio'][name='module.mktype'][value='1'").attr('disabled','disabled');//不能为按钮
$("input[type='radio'][name='module.mktype'][value='0'").attr('checked','checked'); $("input[type='radio'][name='module.mktype'][value='0'").attr('checked','checked');
$("#level").val(2); $("#level").val(2);
$("input[type='radio'][name='module.mktype']:checked").trigger('click'); $("input[type='radio'][name='module.mktype']:checked").trigger('click');
}else if($("#levelTemp").val()=='2'){//子菜单 只能添加按钮 }else if($("#levelTemp").val()=='2'){//子菜单 只能添加按钮
$("input[type='radio'][name='module.mktype'][value='0'").attr('disabled','disabled');//不能为菜单 $("input[type='radio'][name='module.mktype'][value='0'").attr('disabled','disabled');//不能为菜单
$("input[type='radio'][name='module.mktype'][value='1'").attr('checked','checked'); $("input[type='radio'][name='module.mktype'][value='1'").attr('checked','checked');
$("#level").val(""); $("#level").val("");
$("input[type='radio'][name='module.mktype']:checked").trigger('click'); $("input[type='radio'][name='module.mktype']:checked").trigger('click');
} }
} }
//获取最大排列序号 //获取最大排列序号
function getMaxShowOrder(){ function getMaxShowOrder(){
$.post("<c:url value='/functionManager/functionManager!getMaxShowOrder.do'/>", $.post("<c:url value='/functionManager/functionManager!getMaxShowOrder.do'/>",
{pid:$("#pid").val()}, {pid:$("#pid").val()},
function(data){ function(data){
if(data!=null && data!=""){ if(data!=null && data!=""){
$("#forder").val(data.maxShowOrder); $("#forder").val(data.maxShowOrder);
} }
},"json"); },"json");
} }
//验证数字 //验证数字
function checkNum(num){ function checkNum(num){
var cs = /^[0-9]*$/; var cs = /^[0-9]*$/;
var resu = cs.test(num); var resu = cs.test(num);
return resu; return resu;
} }
function commitUpdate(){ function commitUpdate(){
//校验 //校验
if(!$id("mkmc","","i18n_mkil.text.mkmc_n81i")){ if(!$id("mkmc","","i18n_mkil.text.mkmc_n81i")){
$("#mkmc").trigger('focus'); $("#mkmc").trigger('focus');
return false; return false;
} }
if(checkSpecial($("#mkmc").val())){ if(checkSpecial($("#mkmc").val())){
$("#mkmc").next().html("i18n_mkil.message.mkmc_n81i"); $("#mkmc").next().html("i18n_mkil.message.mkmc_n81i");
$("#mkmc").trigger('focus'); $("#mkmc").trigger('focus');
return false; return false;
} }
if($("input[type='radio'][name='module.mktype']:checked").val()!="1"){ //菜单 if($("input[type='radio'][name='module.mktype']:checked").val()!="1"){ //菜单
if(!$id("mkurl","","i18n_mkil.text.mkurl_n81i")){ if(!$id("mkurl","","i18n_mkil.text.mkurl_n81i")){
$("#mkurl").trigger('focus'); $("#mkurl").trigger('focus');
return false; return false;
} }
if(!$id("level","sz","i18n_mkil.text.level_n81i")){ if(!$id("level","sz","i18n_mkil.text.level_n81i")){
$("#level").trigger('focus'); $("#level").trigger('focus');
return false; return false;
} }
}else{ //方法 }else{ //方法
if($("#handler").size()==0 || $("#handler").val()==""){ if($("#handler").size()==0 || $("#handler").val()==""){
$("#pathAndjs").html("i18n_mkil.message.pathAndjs_n81i"); $("#pathAndjs").html("i18n_mkil.message.pathAndjs_n81i");
$("#handler").trigger('focus'); $("#handler").trigger('focus');
return false; return false;
} }
} }
if(!$id("forder","sz","i18n_mkil.text.forder_n81i")){ if(!$id("forder","sz","i18n_mkil.text.forder_n81i")){
$("#forder").trigger('focus'); $("#forder").trigger('focus');
return false; return false;
} }
var actionurl = "<%=path%>/functionManager/functionManager.do?action=update"; var actionurl = "<%=path%>/functionManager/functionManager.do?action=update";
document.forms.yhForm.action = actionurl; document.forms.yhForm.action = actionurl;
document.forms.yhForm.submit(); document.forms.yhForm.submit();
document.forms.yhForm.action=""; document.forms.yhForm.action="";
} }
function commitAdd(){ function commitAdd(){
//校验 //校验
if(!$id("mkmc","","i18n_mkil.text.mkmc_n81i")){ if(!$id("mkmc","","i18n_mkil.text.mkmc_n81i")){
$("#mkmc").trigger('focus'); $("#mkmc").trigger('focus');
return false; return false;
} }
if(checkSpecial($("#mkmc").val())){ if(checkSpecial($("#mkmc").val())){
$("#mkmc").next().html("i18n_mkil.message.mkmc_n81i"); $("#mkmc").next().html("i18n_mkil.message.mkmc_n81i");
$("#mkmc").trigger('focus'); $("#mkmc").trigger('focus');
return false; return false;
} }
if($("input[type='radio'][name='module.mktype']:checked").val()!="1"){ //菜单 if($("input[type='radio'][name='module.mktype']:checked").val()!="1"){ //菜单
if(!$id("mkurl","","i18n_mkil.text.mkurl_n81i")){ if(!$id("mkurl","","i18n_mkil.text.mkurl_n81i")){
$("#mkurl").trigger('focus'); $("#mkurl").trigger('focus');
return false; return false;
} }
if(!$id("level","sz","i18n_mkil.text.level_n81i")){ if(!$id("level","sz","i18n_mkil.text.level_n81i")){
$("#level").trigger('focus'); $("#level").trigger('focus');
return false; return false;
} }
}else{ //方法 }else{ //方法
if($("#handler").size()==0 || $("#handler").val()==""){ if($("#handler").size()==0 || $("#handler").val()==""){
$("#pathAndjs").html("i18n_mkil.message.pathAndjs_n81i"); $("#pathAndjs").html("i18n_mkil.message.pathAndjs_n81i");
$("#handler").trigger('focus'); $("#handler").trigger('focus');
return false; return false;
} }
} }
//$("#level").val($("#levelTemp").val()); //$("#level").val($("#levelTemp").val());
var actionurl = "<%=path%>/functionManager/functionManager.do?action=add"; var actionurl = "<%=path%>/functionManager/functionManager.do?action=add";
document.forms.yhForm.action = actionurl; document.forms.yhForm.action = actionurl;
document.forms.yhForm.submit(); document.forms.yhForm.submit();
document.forms.yhForm.action=""; document.forms.yhForm.action="";
} }
$(function(){ $(function(){
cancelForm(); cancelForm();
$("span[id^=buttons]").hide(); $("span[id^=buttons]").hide();
$("#btn_sort").hide(); $("#btn_sort").hide();
$("input[type='radio'][name='module.mktype']").click(function(){ $("input[type='radio'][name='module.mktype']").click(function(){
if($(this).val()!=1){//菜单 if($(this).val()!=1){//菜单
$("#mkurl").show(); $("#mkurl").show();
$("#sl").show(); $("#sl").show();
$("#handler").hide(); $("#handler").hide();
}else{//按钮 }else{//按钮
$("#pathAndjs").html("*"); $("#pathAndjs").html("*");
$("#mkurl").hide(); $("#mkurl").hide();
$("#handler").show(); $("#handler").show();
$("#sl").hide(); $("#sl").hide();
} }
}); });
$("input[type='radio'][name='module.mktype']:checked").trigger('click'); $("input[type='radio'][name='module.mktype']:checked").trigger('click');
$("#forder").attr('readonly','readonly');//序号只读 $("#forder").attr('readonly','readonly');//序号只读
$("#level").attr('readonly','readonly');//菜单级别只读 $("#level").attr('readonly','readonly');//菜单级别只读
}); });
</script> </script>
</head> </head>
<body> <body>
<div class="middle_list"> <div class="middle_list">
<!--中间部分右边开始--> <!--中间部分右边开始-->
<div class="box_2"> <div class="box_2">
<jsp:include page="/include/include.jsp" /> <jsp:include page="/include/include.jsp" />
</div> </div>
<table border="0" cellpadding="0" cellspacing="0" class="table" > <table border="0" cellpadding="0" cellspacing="0" class="table" >
<tr> <tr>
<td class="color_8" colspan="2">i18n_mkil.text.mkManage_n81i</td> <td class="color_8" colspan="2">i18n_mkil.text.mkManage_n81i</td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="left"> <td class="color_1" align="left">
<div id="functionTree" <div id="functionTree"
style="overflow: scroll; height:500px"> style="overflow: scroll; height:500px">
<script language="javascript"> <script language="javascript">
<%-- 动态定义树的可显示高度 --%> <%-- 动态定义树的可显示高度 --%>
document.write(tree.toString()); document.write(tree.toString());
<%-- 生成功能树 --%> <%-- 生成功能树 --%>
</script> </script>
</div> </div>
</td> </td>
<td class="color_3" align="left" valign="top"> <td class="color_3" align="left" valign="top">
<input type="hidden" id="levelTemp" /> <input type="hidden" id="levelTemp" />
<form action="" name="yhForm" id="yhForm" method="post" > <form action="" name="yhForm" id="yhForm" method="post" >
<input type="hidden" name="position" value="${position }" /> <input type="hidden" name="position" value="${position }" />
<input type="hidden" name="module.pid" id="pid" /> <input type="hidden" name="module.pid" id="pid" />
<input type="hidden" name="module.id" id="id" /> <input type="hidden" name="module.id" id="id" />
<input type="hidden" name="mktype" id="mktype" /> <input type="hidden" name="mktype" id="mktype" />
<input type="hidden" id="showNum" /> <input type="hidden" id="showNum" />
<table width="100%" align="center" border="0" cellpadding="0" cellspacing="1" style="padding-left: 5px; padding-right: 5px;"> <table width="100%" align="center" border="0" cellpadding="0" cellspacing="1" style="padding-left: 5px; padding-right: 5px;">
<tr> <tr>
<td align="center" colspan="4" class="color_1"> <td align="center" colspan="4" class="color_1">
<strong>i18n_mkil.text.title_n81i</strong> <strong>i18n_mkil.text.title_n81i</strong>
</td> </td>
</tr> </tr>
<tr type='form'> <tr type='form'>
<td class="td_1"> <td class="td_1">
i18n_mkil.text.mkmc_n81i i18n_mkil.text.mkmc_n81i
</td> </td>
<td class="td_3"> <td class="td_3">
<input type="text" name="module.mkmc" id="mkmc" /> <input type="text" name="module.mkmc" id="mkmc" />
<font color="red">*</font> <font color="red">*</font>
</td> </td>
<td class="td_1"> <td class="td_1">
i18n_mkil.text.pathAndjs_n81i i18n_mkil.text.pathAndjs_n81i
</td> </td>
<td class="td_2"> <td class="td_2">
<input type="text" name="module.handler" id="handler" /> <input type="text" name="module.handler" id="handler" />
<input type="text" name="module.mkurl" id="mkurl" /> <input type="text" name="module.mkurl" id="mkurl" />
<font color="red" id="pathAndjs">*</font> <font color="red" id="pathAndjs">*</font>
</td> </td>
</tr> </tr>
<tr type='form'> <tr type='form'>
<td class="td_1"> <td class="td_1">
i18n_mkil.text.mktype_n81i i18n_mkil.text.mktype_n81i
</td> </td>
<td class="td_3"> <td class="td_3">
<input type="radio" name="module.mktype" value="0" checked="checked" id="menu"/>i18n_mkil.message.menu_n81i <input type="radio" name="module.mktype" value="0" checked="checked" id="menu"/>i18n_mkil.message.menu_n81i
<input type="radio" name="module.mktype" value="1" id="btn"/>i18n_mkil.message.button_n81i <input type="radio" name="module.mktype" value="1" id="btn"/>i18n_mkil.message.button_n81i
</td> </td>
<td class="td_1"> <td class="td_1">
i18n_mkil.text.state_n81i i18n_mkil.text.state_n81i
</td> </td>
<td class="td_2"> <td class="td_2">
<input type="radio" name="module.zxbz" value="0" <input type="radio" name="module.zxbz" value="0"
checked="checked" /> checked="checked" />
i18n_mkil.message.valid_n81i i18n_mkil.message.valid_n81i
<input type="radio" name="module.zxbz" value="1"/> <input type="radio" name="module.zxbz" value="1"/>
i18n_mkil.message.invalid_n81i i18n_mkil.message.invalid_n81i
</td> </td>
</tr> </tr>
<tr type='form'> <tr type='form'>
<td class="td_1"> <td class="td_1">
i18n_mkil.text.mkms_n81i i18n_mkil.text.mkms_n81i
</td> </td>
<td class="td_2" > <td class="td_2" >
<textarea rows="3" cols="18" name="module.mkms" id="mkms" ></textarea> <textarea rows="3" cols="18" name="module.mkms" id="mkms" ></textarea>
</td> </td>
<td class="td_1"> <td class="td_1">
i18n_mkil.text.showorder_n81i i18n_mkil.text.showorder_n81i
</td> </td>
<td class="td_2" valign="middle" style="display: inline;"> <td class="td_2" valign="middle" style="display: inline;">
<input type="text" maxlength="10" size="9" name="module.showorder" id="forder" /> <input type="text" maxlength="10" size="9" name="module.showorder" id="forder" />
<font color="red">*</font> <font color="red">*</font>
<div id = "btn_sort" style="display: inline;" > <div id = "btn_sort" style="display: inline;" >
<img align="middle" src="<%=path %>/images/sort_up.png" alt="i18n_mkil.message.btnsortup_n81i" onclick="functionsort('up')"/> <img align="middle" src="<%=path %>/images/sort_up.png" alt="i18n_mkil.message.btnsortup_n81i" onclick="functionsort('up')"/>
<img align="middle" src="<%=path %>/images/sort_down.png" alt="i18n_mkil.message.btnsortdown_n81i" onclick="functionsort('down')"/> <img align="middle" src="<%=path %>/images/sort_down.png" alt="i18n_mkil.message.btnsortdown_n81i" onclick="functionsort('down')"/>
</div> </div>
</td> </td>
</tr> </tr>
<tr type='form' id="sl"> <tr type='form' id="sl">
<td class="td_1"> <td class="td_1">
i18n_mkil.text.level_n81i i18n_mkil.text.level_n81i
</td> </td>
<td class="td_2" valign="middle" > <td class="td_2" valign="middle" >
<input type="text" maxlength="10" size="9" name="module.showlevel" id="level" /> <input type="text" maxlength="10" size="9" name="module.showlevel" id="level" />
<font color="red">*</font> <font color="red">*</font>
</td> </td>
</tr> </tr>
<tr> <tr>
<td colspan="4" align="right" class="td_1" >&nbsp; <td colspan="4" align="right" class="td_1" >&nbsp;
<span id="buttons_add"> <span id="buttons_add">
<input type="button" value="i18n_mkil.button.submit_n81i" class='btn3_mouseout' <input type="button" value="i18n_mkil.button.submit_n81i" class='btn3_mouseout'
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="commitAdd()"/> onclick="commitAdd()"/>
<input type="button" value="i18n_mkil.button.cancel_n81i" class='btn3_mouseout' <input type="button" value="i18n_mkil.button.cancel_n81i" class='btn3_mouseout'
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="cancelForm()"/> onclick="cancelForm()"/>
</span> </span>
<span id="buttons_update"> <span id="buttons_update">
<input type="button" value="i18n_mkil.button.submit_n81i" class='btn3_mouseout' <input type="button" value="i18n_mkil.button.submit_n81i" class='btn3_mouseout'
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="commitUpdate()"/> onclick="commitUpdate()"/>
<input type="button" value="i18n_mkil.button.cancel_n81i" class='btn3_mouseout' <input type="button" value="i18n_mkil.button.cancel_n81i" class='btn3_mouseout'
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="cancelForm()"/> onclick="cancelForm()"/>
</span> </span>
</td> </td>
</tr> </tr>
</table> </table>
</form> </form>
</td> </td>
</tr> </tr>
</table> </table>
<!--中间部分右边结束--> <!--中间部分右边结束-->
</div> </div>
</body> </body>
</html> </html>

View File

@@ -1,366 +1,366 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%> <%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib prefix="fn" uri="/jstl/fn"%> <%@ taglib prefix="fn" uri="/jstl/fn"%>
<%@ taglib prefix="fmt" uri="/jstl/fmt"%> <%@ taglib prefix="fmt" uri="/jstl/fmt"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
%> %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_adi.message.title_n81i</title> <title>i18n_adi.message.title_n81i</title>
<link href="<c:url value='/css/styles.css'/>" rel="stylesheet" <link href="<c:url value='/css/styles.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<link href="<c:url value='/desktop/css/index${userBgColor }.css'/>" rel="stylesheet" <link href="<c:url value='/desktop/css/index${userBgColor }.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<script src="<c:url value='/js/onmouse${userBgColor }.js'/>" type="text/javascript"></script> <script src="<c:url value='/js/onmouse${userBgColor }.js'/>" type="text/javascript"></script>
<link href="<c:url value='/css/k.css'/>" rel="stylesheet" type="text/css" /> <link href="<c:url value='/css/k.css'/>" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/datepicker/WdatePicker.js'/>"></script> src="<c:url value='/js/datepicker/WdatePicker.js'/>"></script>
<script type="text/javascript" <script type="text/javascript"
src="${pageContext.request.contextPath }/js/jquery.js"></script> src="${pageContext.request.contextPath }/js/jquery.js"></script>
<script type="text/javascript" <script type="text/javascript"
src="${pageContext.request.contextPath }/js/jquery.tools.js"></script> src="${pageContext.request.contextPath }/js/jquery.tools.js"></script>
</head> </head>
<script type="text/javascript"> <script type="text/javascript">
var msg = '${MSG}'; var msg = '${MSG}';
if(msg.length>0){ if(msg.length>0){
alert(msg); alert(msg);
} }
function add(){ function add(){
document.yhForm.action="<c:url value='/mission/missionParameterDefaults.do?action=insert'/>"; document.yhForm.action="<c:url value='/mission/missionParameterDefaults.do?action=insert'/>";
document.yhForm.submit(); document.yhForm.submit();
} }
jQuery(function(){ jQuery(function(){
//菜单流程 //菜单流程
$("tr[mt]").hide(); $("tr[mt]").hide();
if($("#MSGFlag").val()==1){ if($("#MSGFlag").val()==1){
$("[mst]").removeAttr("disabled"); $("[mst]").removeAttr("disabled");
$("tr[mt='"+$("#missionType").val()+"']").show(); $("tr[mt='"+$("#missionType").val()+"']").show();
}else{ }else{
$("[mst]").attr("disabled",'disabled'); $("[mst]").attr("disabled",'disabled');
} }
//系统和节点组 的 连动下拉菜单 //系统和节点组 的 连动下拉菜单
$("#systemId").data("nodes",$("#nodeId").clone()); $("#systemId").data("nodes",$("#nodeId").clone());
$("#systemId").bind("change",function(){ $("#systemId").bind("change",function(){
$("#nodeId option[systems]").remove(); $("#nodeId option[systems]").remove();
if($(this).val()=="0"){ if($(this).val()=="0"){
$("#systemId").data("nodes").find("option[systems]").clone().appendTo("#nodeId"); $("#systemId").data("nodes").find("option[systems]").clone().appendTo("#nodeId");
}else{ }else{
$("#systemId").data("nodes").find("option[systems='"+$("#systemId").val()+"']").clone().appendTo("#nodeId"); $("#systemId").data("nodes").find("option[systems='"+$("#systemId").val()+"']").clone().appendTo("#nodeId");
} }
$("#nodeId").val(0); $("#nodeId").val(0);
}); });
//系统和用户组 的 连动下拉菜单 //系统和用户组 的 连动下拉菜单
$("#systemId").data("userGroup",$("#groupId").clone()); $("#systemId").data("userGroup",$("#groupId").clone());
$("#systemId").bind("change",function(){ $("#systemId").bind("change",function(){
$("#groupId option[systems]").remove(); $("#groupId option[systems]").remove();
if($(this).val()=="0"){ if($(this).val()=="0"){
$("#systemId").data("userGroup").find("option[systems]").clone().appendTo("#groupId"); $("#systemId").data("userGroup").find("option[systems]").clone().appendTo("#groupId");
}else{ }else{
$("#systemId").data("userGroup").find("option[systems='"+$("#systemId").val()+"']").clone().appendTo("#groupId"); $("#systemId").data("userGroup").find("option[systems='"+$("#systemId").val()+"']").clone().appendTo("#groupId");
} }
$("#groupId").val(0); $("#groupId").val(0);
}); });
if($("#systemId").val()!=0){ if($("#systemId").val()!=0){
//节点组联动 //节点组联动
$("#nodeId option[systems]").remove(); $("#nodeId option[systems]").remove();
$("#systemId").data("nodes").find("option[systems='"+$("#systemId").val()+"']").clone().appendTo("#nodeId"); $("#systemId").data("nodes").find("option[systems='"+$("#systemId").val()+"']").clone().appendTo("#nodeId");
//用户组联动 //用户组联动
$("#groupId option[systems]").remove(); $("#groupId option[systems]").remove();
$("#systemId").data("userGroup").find("option[systems='"+$("#systemId").val()+"']").clone().appendTo("#groupId"); $("#systemId").data("userGroup").find("option[systems='"+$("#systemId").val()+"']").clone().appendTo("#groupId");
} }
//任务类型名称和任务类型 值联动 //任务类型名称和任务类型 值联动
$("#missionTypeName").val($("#missionType option:selected").attr("viewValue")); $("#missionTypeName").val($("#missionType option:selected").attr("viewValue"));
$("#systemId,#missionType").bind('change',function(){ $("#systemId,#missionType").bind('change',function(){
$("#missionTypeName").val($("#missionType option:selected").attr("viewValue")); $("#missionTypeName").val($("#missionType option:selected").attr("viewValue"));
if($("#missionType").val()==0){ if($("#missionType").val()==0){
$("#missionTypeName").val($("#missionType option:selected").attr("viewValue")); $("#missionTypeName").val($("#missionType option:selected").attr("viewValue"));
return; return;
} }
if($("#systemId").val()==0){ if($("#systemId").val()==0){
return; return;
} }
$("#paramenterForm").attr("action","<c:url value='/mission/missionParameterDefaults.do?action=check'/>").submit(); $("#paramenterForm").attr("action","<c:url value='/mission/missionParameterDefaults.do?action=check'/>").submit();
}); });
$("input[type='radio'][id='loopFlag']").click(function(){ $("input[type='radio'][id='loopFlag']").click(function(){
if($("#loopFlag").val()){ if($("#loopFlag").val()){
}else{ }else{
} }
}); });
//$("#checkValue").blur(function(){alert($(this).checkByteLength(100,"校验值信息"));}); //$("#checkValue").blur(function(){alert($(this).checkByteLength(100,"校验值信息"));});
}); });
function goBack(){ function goBack(){
document.yhForm.action="<c:url value='/mission/missionParameterDefaults.do?action=select'/>"; document.yhForm.action="<c:url value='/mission/missionParameterDefaults.do?action=select'/>";
document.yhForm.submit(); document.yhForm.submit();
} }
</script> </script>
<body> <body>
<form action="" name="yhForm" id="paramenterForm" method="post"> <form action="" name="yhForm" id="paramenterForm" method="post">
<input type="hidden" name="MSGFlag" id="MSGFlag" value="${MSGFlag }" /> <input type="hidden" name="MSGFlag" id="MSGFlag" value="${MSGFlag }" />
<table width="80%" align="center" border="0" cellpadding="0" cellspacing="1" class="ta_color" > <table width="80%" align="center" border="0" cellpadding="0" cellspacing="1" class="ta_color" >
<tr> <tr>
<td height="20" class="td_color"> <td height="20" class="td_color">
<span class="STYLE1">&nbsp;&nbsp;&nbsp;<strong>i18n_adi.text.title_n81i</strong></span> <span class="STYLE1">&nbsp;&nbsp;&nbsp;<strong>i18n_adi.text.title_n81i</strong></span>
</td> </td>
</tr> </tr>
<tr> <tr>
<td bgcolor="#ffffff" align="center"> <td bgcolor="#ffffff" align="center">
<table width="80%" align="center" border="0" cellpadding="0" cellspacing="1" style="padding-left: 5px;padding-right: 5px;"> <table width="80%" align="center" border="0" cellpadding="0" cellspacing="1" style="padding-left: 5px;padding-right: 5px;">
<tr><td colspan="4" style="height: 20px;"></td></tr> <tr><td colspan="4" style="height: 20px;"></td></tr>
<tr> <tr>
<td bgcolor="#FFFFFF" width="20%"> <td bgcolor="#FFFFFF" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_adi.text.system_n81i</span> <span class="STYLE1">i18n_adi.text.system_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left"> <div align="left">
<select id="systemId" name="parameterDefaults.systemId" > <select id="systemId" name="parameterDefaults.systemId" >
<option value="0">i18n_adi.message.selectDefault_n81i...</option> <option value="0">i18n_adi.message.selectDefault_n81i...</option>
<c:forEach items="${sysList}" var="sys"> <c:forEach items="${sysList}" var="sys">
<option value='${sys[0] }' <c:if test="${parameterDefaults.systemId eq sys[0] }"> selected ="selected"</c:if> >${sys[1] }</option> <option value='${sys[0] }' <c:if test="${parameterDefaults.systemId eq sys[0] }"> selected ="selected"</c:if> >${sys[1] }</option>
</c:forEach> </c:forEach>
</select> </select>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF" width="20%"> <td bgcolor="#FFFFFF" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_adi.text.missionType_n81i</span> <span class="STYLE1">i18n_adi.text.missionType_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left"> <div align="left">
<select id="missionType" name="parameterDefaults.missionType" > <select id="missionType" name="parameterDefaults.missionType" >
<option value="0" viewValue="">i18n_adi.message.selectDefault_n81i...</option> <option value="0" viewValue="">i18n_adi.message.selectDefault_n81i...</option>
<c:forEach items="${mtList}" var="mt"> <c:forEach items="${mtList}" var="mt">
<option value='${mt[0] }' viewValue="${mt[1] }" <c:if test="${parameterDefaults.missionType eq mt[0] }"> selected ="selected"</c:if> >${mt[1] }</option> <option value='${mt[0] }' viewValue="${mt[1] }" <c:if test="${parameterDefaults.missionType eq mt[0] }"> selected ="selected"</c:if> >${mt[1] }</option>
</c:forEach> </c:forEach>
</select> </select>
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td bgcolor="#FFFFFF" width="20%"> <td bgcolor="#FFFFFF" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_adi.text.nodeGroup_n81i</span> <span class="STYLE1">i18n_adi.text.nodeGroup_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left"> <div align="left">
<select id="nodeId" name="parameterDefaults.nodeListId" mst="mst" disabled="disabled" > <select id="nodeId" name="parameterDefaults.nodeListId" mst="mst" disabled="disabled" >
<option value="0">i18n_adi.message.selectDefault_n81i..</option> <option value="0">i18n_adi.message.selectDefault_n81i..</option>
<c:forEach items="${ngList }" var="ng"> <c:forEach items="${ngList }" var="ng">
<option value='${ng[0] }' systems="${ng[2] }" <c:if test="${nodeId eq ng[0] }"> selected ="selected"</c:if> >${ng[1] }</option> <option value='${ng[0] }' systems="${ng[2] }" <c:if test="${nodeId eq ng[0] }"> selected ="selected"</c:if> >${ng[1] }</option>
</c:forEach> </c:forEach>
</select> </select>
</select> </select>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF" width="20%"> <td bgcolor="#FFFFFF" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_adi.text.missionTypeName_n81i</span> <span class="STYLE1">i18n_adi.text.missionTypeName_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left"> <div align="left">
<input type="text" name="parameterDefaults.missionTypeName" id="missionTypeName" readonly="readonly" mst="mst" disabled="disabled" /> <input type="text" name="parameterDefaults.missionTypeName" id="missionTypeName" readonly="readonly" mst="mst" disabled="disabled" />
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td bgcolor="#FFFFFF" width="20%"> <td bgcolor="#FFFFFF" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_adi.text.viewLevel_n81i</span> <span class="STYLE1">i18n_adi.text.viewLevel_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left"> <div align="left">
<select name="parameterDefaults.viewLevel" mst="mst" disabled="disabled" > <select name="parameterDefaults.viewLevel" mst="mst" disabled="disabled" >
<option value="0">i18n_adi.message.selectDefault_n81i...</option> <option value="0">i18n_adi.message.selectDefault_n81i...</option>
<c:forEach items="${vlList}" var="vl"> <c:forEach items="${vlList}" var="vl">
<option value='${vl[0] }' <c:if test="${parameterDefaults.viewLevel eq vl[0] }"> selected ="selected"</c:if> >${vl[1] }</option> <option value='${vl[0] }' <c:if test="${parameterDefaults.viewLevel eq vl[0] }"> selected ="selected"</c:if> >${vl[1] }</option>
</c:forEach> </c:forEach>
</select> </select>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF" width="20%"> <td bgcolor="#FFFFFF" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_adi.text.userGroup_n81i</span> <span class="STYLE1">i18n_adi.text.userGroup_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left"> <div align="left">
<select name="parameterDefaults.groupId" id="groupId" mst="mst" disabled="disabled" > <select name="parameterDefaults.groupId" id="groupId" mst="mst" disabled="disabled" >
<option value="0">i18n_adi.message.selectDefault_n81i...</option> <option value="0">i18n_adi.message.selectDefault_n81i...</option>
<c:forEach items="${groupList }" var="group"> <c:forEach items="${groupList }" var="group">
<option value='${group[0] }' systems="${group[2] }" <c:if test="${parameterDefaults.groupId eq group[0] }"> selected ="selected"</c:if> >${group[1] }</option> <option value='${group[0] }' systems="${group[2] }" <c:if test="${parameterDefaults.groupId eq group[0] }"> selected ="selected"</c:if> >${group[1] }</option>
</c:forEach> </c:forEach>
</select> </select>
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td bgcolor="#FFFFFF" width="20%"> <td bgcolor="#FFFFFF" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_adi.text.startTime_n81i</span> <span class="STYLE1">i18n_adi.text.startTime_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left"> <div align="left">
<input type="text" mst="mst" <input type="text" mst="mst"
<%-- name="parameterDefaults.startTime"--%> <%-- name="parameterDefaults.startTime"--%>
disabled="disabled" /> disabled="disabled" />
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF" width="20%"> <td bgcolor="#FFFFFF" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_adi.text.endTime_n81i</span> <span class="STYLE1">i18n_adi.text.endTime_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left"> <div align="left">
<input type="text" mst="mst" <input type="text" mst="mst"
<%-- name="parameterDefaults.endTime" --%> <%-- name="parameterDefaults.endTime" --%>
disabled="disabled" /> disabled="disabled" />
</div> </div>
</td> </td>
</tr> </tr>
<tr><td colspan="4" style="height: 20px;"></td></tr> <tr><td colspan="4" style="height: 20px;"></td></tr>
</table> </table>
</td> </td>
</tr> </tr>
<tr mt=1> <tr mt=1>
<td bgcolor="#ffffff" align="center" > <td bgcolor="#ffffff" align="center" >
<table width="80%" align="center" border="0" cellpadding="0" cellspacing="1" style="padding-left: 5px;padding-right: 5px;"> <table width="80%" align="center" border="0" cellpadding="0" cellspacing="1" style="padding-left: 5px;padding-right: 5px;">
<tr><td colspan="2" style="height: 20px;"></td></tr> <tr><td colspan="2" style="height: 20px;"></td></tr>
<tr> <tr>
<td bgcolor="#FFFFFF" width="20%"> <td bgcolor="#FFFFFF" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_adi.text.targetPath_n81i</span> <span class="STYLE1">i18n_adi.text.targetPath_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left"> <div align="left">
<input type="text" size="60" name="parameterDefaults.targetPath" /> <input type="text" size="60" name="parameterDefaults.targetPath" />
</div> </div>
</td> </td>
</tr> </tr>
<%--<tr> <%--<tr>
<td bgcolor="#FFFFFF" width="20%"> <td bgcolor="#FFFFFF" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">文件校验值:</span> <span class="STYLE1">文件校验值:</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left"> <div align="left">
<textarea rows="3" cols="47" id="checkValue" name="parameterDefaults.checkValue" ></textarea> <textarea rows="3" cols="47" id="checkValue" name="parameterDefaults.checkValue" ></textarea>
</div> </div>
</td> </td>
</tr> </tr>
--%><tr><td colspan="2" style="height: 20px;"></td></tr> --%><tr><td colspan="2" style="height: 20px;"></td></tr>
</table> </table>
</td> </td>
</tr> </tr>
<tr mt=2> <tr mt=2>
<td bgcolor="#ffffff" align="center" > <td bgcolor="#ffffff" align="center" >
<div style="height: 20px; width: 100%; margin: 0px auto; padding: 0px;"></div> <div style="height: 20px; width: 100%; margin: 0px auto; padding: 0px;"></div>
<table width="80%" align="center" border="0" cellpadding="0" cellspacing="1" style="padding-left: 5px;padding-right: 5px;"> <table width="80%" align="center" border="0" cellpadding="0" cellspacing="1" style="padding-left: 5px;padding-right: 5px;">
<tr> <tr>
<td bgcolor="#FFFFFF" width="20%"> <td bgcolor="#FFFFFF" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_adi.text.loopFlag_n81i</span> <span class="STYLE1">i18n_adi.text.loopFlag_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF" colspan="3"> <td height="28" bgcolor="#FFFFFF" colspan="3">
<div align="left" class="STYLE1"> <div align="left" class="STYLE1">
<input type="radio" id='loopFlag' name="parameterDefaults.loopFlag" value="0" checked="checked" >i18n_adi.message.untimed_n81i <input type="radio" id='loopFlag' name="parameterDefaults.loopFlag" value="0" checked="checked" >i18n_adi.message.untimed_n81i
<input type="radio" id='loopFlag' name="parameterDefaults.loopFlag" value="1">定时任务 <input type="radio" id='loopFlag' name="parameterDefaults.loopFlag" value="1">定时任务
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td bgcolor="#FFFFFF" width="20%"> <td bgcolor="#FFFFFF" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_adi.text.loopStartDate_n81i</span> <span class="STYLE1">i18n_adi.text.loopStartDate_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left"> <div align="left">
<input type="text" name="parameterDefaults.loopStartDate" /> <input type="text" name="parameterDefaults.loopStartDate" />
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF" width="20%"> <td bgcolor="#FFFFFF" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_adi.text.loopEndDate_n81i</span> <span class="STYLE1">i18n_adi.text.loopEndDate_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left"> <div align="left">
<input type="text" name="parameterDefaults.loopEndDate" /> <input type="text" name="parameterDefaults.loopEndDate" />
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td bgcolor="#FFFFFF" width="20%"> <td bgcolor="#FFFFFF" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_adi.text.loopDelay_n81i</span> <span class="STYLE1">i18n_adi.text.loopDelay_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF" colspan="3"> <td height="28" bgcolor="#FFFFFF" colspan="3">
<div align="left" > <div align="left" >
<input type="text" name="parameterDefaults.loopDelay"/> <input type="text" name="parameterDefaults.loopDelay"/>
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td bgcolor="#FFFFFF" width="20%"> <td bgcolor="#FFFFFF" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_adi.text.filterKeyword_n81i</span> <span class="STYLE1">i18n_adi.text.filterKeyword_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF" colspan="3"> <td height="28" bgcolor="#FFFFFF" colspan="3">
<div align="left" > <div align="left" >
<textarea rows="4" cols="40" name="parameterDefaults.filterKeyword"></textarea> <textarea rows="4" cols="40" name="parameterDefaults.filterKeyword"></textarea>
</div> </div>
</td> </td>
</tr> </tr>
<tr><td colspan="2" style="height: 20px;"></td></tr> <tr><td colspan="2" style="height: 20px;"></td></tr>
</table> </table>
</td> </td>
</tr> </tr>
<tr> <tr>
<td height="20" class="td_color"> <td height="20" class="td_color">
<table width="100%" border="0" cellspacing="0" cellpadding="0"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr> <tr>
<td width="92%" align=right> <td width="92%" align=right>
<img onclick="add()" src="<c:url value='/desktop/images/anniu/a_12${userBgColor }.gif'/>" <img onclick="add()" src="<c:url value='/desktop/images/anniu/a_12${userBgColor }.gif'/>"
border="0" align="middle" />&nbsp; border="0" align="middle" />&nbsp;
</td> </td>
<td width="1%" align=right> <td width="1%" align=right>
&nbsp; &nbsp;
</td> </td>
<td align=left> <td align=left>
<img src="<c:url value='/desktop/images/anniu/a_21${userBgColor }.gif'/>" <img src="<c:url value='/desktop/images/anniu/a_21${userBgColor }.gif'/>"
border="0" align="middle" border="0" align="middle"
onclick="goBack()" />&nbsp; onclick="goBack()" />&nbsp;
</td> </td>
</tr> </tr>
</table> </table>
</td> </td>
</tr> </tr>
</table> </table>
<div style="height: 20px; width: 100%; margin: 0px auto; padding: 0px;"></div> <div style="height: 20px; width: 100%; margin: 0px auto; padding: 0px;"></div>
</form> </form>
</body> </body>
</html> </html>

View File

@@ -1,277 +1,277 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="/jstl/c"%> <%@ taglib prefix="c" uri="/jstl/c"%>
<%@ taglib prefix="fn" uri="/jstl/fn"%> <%@ taglib prefix="fn" uri="/jstl/fn"%>
<%@ taglib prefix="fmt" uri="/jstl/fmt"%> <%@ taglib prefix="fmt" uri="/jstl/fmt"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
%> %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_dil.message.infoManage_n81i</title> <title>i18n_dil.message.infoManage_n81i</title>
<link href="<c:url value='/desktop/css/index${userBgColor }.css'/>" rel="stylesheet" <link href="<c:url value='/desktop/css/index${userBgColor }.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<script src="<c:url value='/js/onmouse${userBgColor }.js'/>" type="text/javascript"></script> <script src="<c:url value='/js/onmouse${userBgColor }.js'/>" type="text/javascript"></script>
<link href="<c:url value='/css/styles.css'/>" rel="stylesheet" <link href="<c:url value='/css/styles.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<link href="<c:url value='/css/suggest.css'/>" rel="stylesheet" <link href="<c:url value='/css/suggest.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<script language="javascript" type="text/javascript"src="<c:url value='/js/datepicker/WdatePicker.js'/>"></script> <script language="javascript" type="text/javascript"src="<c:url value='/js/datepicker/WdatePicker.js'/>"></script>
<script type="text/javascript" src="<%=path%>/templates/js/object.js"></script> <script type="text/javascript" src="<%=path%>/templates/js/object.js"></script>
<script type="text/javascript" src="<%=path%>/templates/js/common.js"></script> <script type="text/javascript" src="<%=path%>/templates/js/common.js"></script>
<script type="text/javascript" src="<c:url value='/js/jquery.js' />"></script> <script type="text/javascript" src="<c:url value='/js/jquery.js' />"></script>
<script type="text/javascript" src="<c:url value='/js/jquery.suggest.js' />"></script> <script type="text/javascript" src="<c:url value='/js/jquery.suggest.js' />"></script>
<script type="text/javascript" src="<c:url value='/js/unicodes.js' />"></script> <script type="text/javascript" src="<c:url value='/js/unicodes.js' />"></script>
</head> </head>
<script language="javascript" type="text/javascript"> <script language="javascript" type="text/javascript">
var msg = '${MSG}'; var msg = '${MSG}';
if(msg=='1'){ if(msg=='1'){
alert("i18n_dil.message.success_n81i"); alert("i18n_dil.message.success_n81i");
}else if(msg=='2'){ }else if(msg=='2'){
alert("i18n_dil.message.faild_n81i"); alert("i18n_dil.message.faild_n81i");
} }
function addRecord(){ function addRecord(){
document.form1.action = "<%=path%>/mission/missionParameterDefaults.do?action=add"; document.form1.action = "<%=path%>/mission/missionParameterDefaults.do?action=add";
document.form1.submit(); document.form1.submit();
} }
function viewRecord(id){ function viewRecord(id){
document.getElementById("pdid").value = id; document.getElementById("pdid").value = id;
document.form1.action = "<%=path%>/mission/missionParameterDefaults.do?action=view"; document.form1.action = "<%=path%>/mission/missionParameterDefaults.do?action=view";
document.form1.submit(); document.form1.submit();
} }
function qry(){ function qry(){
document.form1.action = "<%=path%>/mission/missionParameterDefaults.do?action=select"; document.form1.action = "<%=path%>/mission/missionParameterDefaults.do?action=select";
document.form1.submit(); document.form1.submit();
} }
jQuery(function(){ jQuery(function(){
$("#systemId").data("nodes",$("#nodeId").clone()); $("#systemId").data("nodes",$("#nodeId").clone());
$("#systemId").bind("change",function(){ $("#systemId").bind("change",function(){
$("#nodeId option[systems]").remove(); $("#nodeId option[systems]").remove();
if($(this).val()=="0"){ if($(this).val()=="0"){
$("#systemId").data("nodes").find("option[systems]").clone().appendTo("#nodeId"); $("#systemId").data("nodes").find("option[systems]").clone().appendTo("#nodeId");
$("#nodeId").val(0); $("#nodeId").val(0);
}else{ }else{
$("#systemId").data("nodes").find("option[systems='"+$("#systemId").val()+"']").clone().appendTo("#nodeId"); $("#systemId").data("nodes").find("option[systems='"+$("#systemId").val()+"']").clone().appendTo("#nodeId");
$("#nodeId").val(0); $("#nodeId").val(0);
} }
}); });
if($("#systemId").val()!=0){ if($("#systemId").val()!=0){
$("#nodeId option[systems]").remove(); $("#nodeId option[systems]").remove();
$("#systemId").data("nodes").find("option[systems='"+$("#systemId").val()+"']").clone().appendTo("#nodeId"); $("#systemId").data("nodes").find("option[systems='"+$("#systemId").val()+"']").clone().appendTo("#nodeId");
} }
}); });
</script> </script>
<body> <body>
<form name=form1 id="missionForm" action="<c:url value='/mission/missionParameterDefaults.do?action=select'/>" method="post"> <form name=form1 id="missionForm" action="<c:url value='/mission/missionParameterDefaults.do?action=select'/>" method="post">
<input type="hidden" name="missionState.missionType" value="${missionState.missionType }" /> <input type="hidden" name="missionState.missionType" value="${missionState.missionType }" />
<input type="hidden" id="pdid" name="parameterDefaults.id" value="${parameterDefaults.id }" /> <input type="hidden" id="pdid" name="parameterDefaults.id" value="${parameterDefaults.id }" />
<table width="99%" align="center" border="0" cellpadding="0" <table width="99%" align="center" border="0" cellpadding="0"
cellspacing="1" class="ta_color" > cellspacing="1" class="ta_color" >
<div <div
style="height: 3px; width: 100%; margin: 0px auto; padding: 0px;"> style="height: 3px; width: 100%; margin: 0px auto; padding: 0px;">
</div> </div>
<td colspan="8"> <td colspan="8">
<table width="100%" border="0" cellspacing="1" cellpadding="0" class="ta_color"> <table width="100%" border="0" cellspacing="1" cellpadding="0" class="ta_color">
<tr> <tr>
<td colspan="15" height="25px" class="td_color" nowrap class="STYLE1" align="right"> <td colspan="15" height="25px" class="td_color" nowrap class="STYLE1" align="right">
<img src="<c:url value='/desktop/images/anniu/a_03${userBgColor }.gif'/>" align="center" onclick="javascript:addRecord();" border="0" />&nbsp; <img src="<c:url value='/desktop/images/anniu/a_03${userBgColor }.gif'/>" align="center" onclick="javascript:addRecord();" border="0" />&nbsp;
</td> </td>
</tr> </tr>
<tr align="left"> <tr align="left">
<td height="20" class="td_color" nowrap > <td height="20" class="td_color" nowrap >
<div align="center"> <div align="center">
<span class="STYLE1">&nbsp;&nbsp;i18n_dil.text.missionName_n81i : </span> <span class="STYLE1">&nbsp;&nbsp;i18n_dil.text.missionName_n81i : </span>
</div> </div>
</td> </td>
<td height="20" bgcolor="#FFFFFF" nowrap> <td height="20" bgcolor="#FFFFFF" nowrap>
<div align="left"> <div align="left">
<span class="STYLE1"> <span class="STYLE1">
<input type="text" id="missionName" <input type="text" id="missionName"
<%-- onkeyup="lianxiangkeyup('deptname','TableDepartment','String','deptname','suggest1',this.value);"--%> <%-- onkeyup="lianxiangkeyup('deptname','TableDepartment','String','deptname','suggest1',this.value);"--%>
name="missionState.missionName" value="${missionState.missionName }" size="20" /> </span> name="missionState.missionName" value="${missionState.missionName }" size="20" /> </span>
<div id='suggest1' class="ac_results"></div> <div id='suggest1' class="ac_results"></div>
</div> </div>
</td> </td>
<td height="20" class="td_color" nowrap > <td height="20" class="td_color" nowrap >
<div align="center"> <div align="center">
<span class="STYLE1">&nbsp;&nbsp;i18n_dil.text.missionType_n81i : </span> <span class="STYLE1">&nbsp;&nbsp;i18n_dil.text.missionType_n81i : </span>
</div> </div>
</td> </td>
<td height="20" bgcolor="#FFFFFF" nowrap> <td height="20" bgcolor="#FFFFFF" nowrap>
<div align="left"> <div align="left">
<span class="STYLE1"> <span class="STYLE1">
<select name="parameterDefaults.missionType"> <select name="parameterDefaults.missionType">
<option value="0">i18n_dil.text.selectDefault_n81i..</option> <option value="0">i18n_dil.text.selectDefault_n81i..</option>
<c:forEach items="${mtList }" var="mt"> <c:forEach items="${mtList }" var="mt">
<option value="${mt[0] }" <c:if test="${mt[0] eq parameterDefaults.missionType }" > selected="selected" </c:if> >${mt[1] }</option> <option value="${mt[0] }" <c:if test="${mt[0] eq parameterDefaults.missionType }" > selected="selected" </c:if> >${mt[1] }</option>
</c:forEach> </c:forEach>
</select> </select>
</span> </span>
<div id='suggest1' class="ac_results"></div> <div id='suggest1' class="ac_results"></div>
</div> </div>
</td> </td>
<td height="20" class="td_color" nowrap > <td height="20" class="td_color" nowrap >
<div align="center"> <div align="center">
<span class="STYLE1">&nbsp;&nbsp;i18n_dil.text.system_n81i : </span> <span class="STYLE1">&nbsp;&nbsp;i18n_dil.text.system_n81i : </span>
</div> </div>
</td> </td>
<td height="20" bgcolor="#FFFFFF" nowrap> <td height="20" bgcolor="#FFFFFF" nowrap>
<div align="left"> <div align="left">
<span class="STYLE1"> <span class="STYLE1">
<select id="systemId" name="missionState.systemId">${fn:length(sysList)} <select id="systemId" name="missionState.systemId">${fn:length(sysList)}
<option value="0">i18n_dil.text.selectDefault_n81i...</option> <option value="0">i18n_dil.text.selectDefault_n81i...</option>
<c:forEach items="${sysList}" var="sys"> <c:forEach items="${sysList}" var="sys">
<option value='${sys[0] }' <c:if test="${missionState.systemId eq sys[0] }"> selected ="selected"</c:if> >${sys[1] }</option> <option value='${sys[0] }' <c:if test="${missionState.systemId eq sys[0] }"> selected ="selected"</c:if> >${sys[1] }</option>
</c:forEach> </c:forEach>
</select> </select>
</span> </span>
<div id='suggest1' class="ac_results"></div> <div id='suggest1' class="ac_results"></div>
</div> </div>
</td> </td>
<td height="20" class="td_color" nowrap > <td height="20" class="td_color" nowrap >
<div align="center"> <div align="center">
<span class="STYLE1">&nbsp;&nbsp;i18n_dil.text.nodeGroup_n81i : </span> <span class="STYLE1">&nbsp;&nbsp;i18n_dil.text.nodeGroup_n81i : </span>
</div> </div>
</td> </td>
<td height="20" bgcolor="#FFFFFF" nowrap> <td height="20" bgcolor="#FFFFFF" nowrap>
<div align="left"> <div align="left">
<span class="STYLE1"> <span class="STYLE1">
<select id="nodeId" name="nodeId" > <select id="nodeId" name="nodeId" >
<option value="0">i18n_dil.text.selectDefault_n81i..</option> <option value="0">i18n_dil.text.selectDefault_n81i..</option>
<c:forEach items="${ngList}" var="ng" varStatus="ins"> <c:forEach items="${ngList}" var="ng" varStatus="ins">
<option value='${ng[0] }' systems="${ng[2] }" <c:if test="${nodeId eq ng[0] }"> selected ="selected"</c:if> >${ng[1] }</option> <option value='${ng[0] }' systems="${ng[2] }" <c:if test="${nodeId eq ng[0] }"> selected ="selected"</c:if> >${ng[1] }</option>
</c:forEach> </c:forEach>
</select> </select>
</select> </select>
</span> </span>
</span> </span>
<div id='suggest1' class="ac_results"></div> <div id='suggest1' class="ac_results"></div>
</div> </div>
</td> </td>
<td height="20" class="td_color"> <td height="20" class="td_color">
<div align="center"> <div align="center">
<img src="<c:url value='/desktop/images/anniu/anniu_3${userBgColor }.png'/>" align="center" onclick="javascript:qry();" border="0" /> <img src="<c:url value='/desktop/images/anniu/anniu_3${userBgColor }.png'/>" align="center" onclick="javascript:qry();" border="0" />
</div> </div>
</td> </td>
</tr> </tr>
</table> </table>
</td> </td>
</tr> </tr>
<tr> <tr>
<td width="5%" class="td_color"> <td width="5%" class="td_color">
<div align="center"> <div align="center">
<span class="STYLE1">i18n_dil.text.index_n81i</span> <span class="STYLE1">i18n_dil.text.index_n81i</span>
</div> </div>
</td> </td>
<td width="25%" class="td_color" nowrap> <td width="25%" class="td_color" nowrap>
<div align="center"> <div align="center">
<span class="STYLE1">i18n_dil.text.opration_n81i</span> <span class="STYLE1">i18n_dil.text.opration_n81i</span>
</div> </div>
</td> </td>
<td width="25%" class="td_color" nowrap> <td width="25%" class="td_color" nowrap>
<div align="center"> <div align="center">
<span class="STYLE1">i18n_dil.text.missionName_n81i</span> <span class="STYLE1">i18n_dil.text.missionName_n81i</span>
</div> </div>
</td> </td>
<td width="25%" class="td_color" nowrap> <td width="25%" class="td_color" nowrap>
<div align="center"> <div align="center">
<span class="STYLE1">i18n_dil.text.missionType1_n81i</span> <span class="STYLE1">i18n_dil.text.missionType1_n81i</span>
</div> </div>
</td> </td>
<td width="25%" class="td_color"> <td width="25%" class="td_color">
<div align="center"> <div align="center">
<span class="STYLE1">i18n_dil.text.missionType_n81i</span> <span class="STYLE1">i18n_dil.text.missionType_n81i</span>
</div> </div>
</td> </td>
<td width="25%" class="td_color" nowrap> <td width="25%" class="td_color" nowrap>
<div align="center"> <div align="center">
<span class="STYLE1">i18n_dil.text.nodeGroup_n81i</span> <span class="STYLE1">i18n_dil.text.nodeGroup_n81i</span>
</div> </div>
</td> </td>
</tr> </tr>
<c:set var="index" value="${1+(pageNo-1)*page.pageSize}" /> <c:set var="index" value="${1+(pageNo-1)*page.pageSize}" />
<c:choose> <c:choose>
<c:when test="${fn:length(list) > 0}"> <c:when test="${fn:length(list) > 0}">
<c:forEach items="${list}" var="pd"> <c:forEach items="${list}" var="pd">
<tr> <tr>
<td bgcolor="#FFFFFF"> <td bgcolor="#FFFFFF">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1">${index}</span> <span class="STYLE1">${index}</span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF"> <td bgcolor="#FFFFFF">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<font size=2> <font size=2>
<a href="javascript:viewRecord('${pd[0] }')">i18n_dil.text.viewRecord_n81i</a> <a href="javascript:viewRecord('${pd[0] }')">i18n_dil.text.viewRecord_n81i</a>
</font> </font>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF"> <td bgcolor="#FFFFFF">
<div align="center"> <div align="center">
<span class="STYLE1">${pd[1] } <span class="STYLE1">${pd[1] }
</span> </span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF"nowrap="nowrap" > <td bgcolor="#FFFFFF"nowrap="nowrap" >
<div align="center"class="STYLE1"> <div align="center"class="STYLE1">
<c:forEach items="${mtList}" var="mt" varStatus="ins"> <c:forEach items="${mtList}" var="mt" varStatus="ins">
<c:if test="${pd[2] eq mt[0] }">${mt[1] }</c:if> <c:if test="${pd[2] eq mt[0] }">${mt[1] }</c:if>
</c:forEach> </c:forEach>
</td > </td >
<td bgcolor="#FFFFFF"nowrap="nowrap" > <td bgcolor="#FFFFFF"nowrap="nowrap" >
<div align="center"class="STYLE1"> <div align="center"class="STYLE1">
${pd[4] } ${pd[4] }
</div> </div>
</td > </td >
<td bgcolor="#FFFFFF"nowrap="nowrap" > <td bgcolor="#FFFFFF"nowrap="nowrap" >
<div align="center"class="STYLE1"> <div align="center"class="STYLE1">
${pd[6] } ${pd[6] }
</div> </div>
</td > </td >
</tr> </tr>
<c:set var="index" value="${index + 1}" /> <c:set var="index" value="${index + 1}" />
</c:forEach> </c:forEach>
</c:when> </c:when>
<c:otherwise> <c:otherwise>
<tr> <tr>
<td colspan="8" height="20" align="center" class="color_6"> <td colspan="8" height="20" align="center" class="color_6">
i18n_dil.text.noRecord_n81i i18n_dil.text.noRecord_n81i
</td> </td>
</tr> </tr>
</c:otherwise> </c:otherwise>
</c:choose> </c:choose>
<tr> <tr>
<td height="20" colspan="8" class="td_color"> <td height="20" colspan="8" class="td_color">
<jsp:include page="/common/page.jsp" /></td> <jsp:include page="/common/page.jsp" /></td>
</tr> </tr>
</table> </table>
</form> </form>
<br/><br/> <br/><br/>
</body> </body>
</html> </html>

View File

@@ -1,345 +1,345 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%> <%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib prefix="fn" uri="/jstl/fn"%> <%@ taglib prefix="fn" uri="/jstl/fn"%>
<%@ taglib prefix="fmt" uri="/jstl/fmt"%> <%@ taglib prefix="fmt" uri="/jstl/fmt"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
%> %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_edi1.message.title_n81i</title> <title>i18n_edi1.message.title_n81i</title>
<link href="<c:url value='/css/styles.css'/>" rel="stylesheet" <link href="<c:url value='/css/styles.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<link href="<c:url value='/desktop/css/index${userBgColor }.css'/>" rel="stylesheet" <link href="<c:url value='/desktop/css/index${userBgColor }.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<script src="<c:url value='/js/onmouse${userBgColor }.js'/>" type="text/javascript"></script> <script src="<c:url value='/js/onmouse${userBgColor }.js'/>" type="text/javascript"></script>
<link href="<c:url value='/css/k.css'/>" rel="stylesheet" type="text/css" /> <link href="<c:url value='/css/k.css'/>" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/datepicker/WdatePicker.js'/>"></script> src="<c:url value='/js/datepicker/WdatePicker.js'/>"></script>
<script type="text/javascript" <script type="text/javascript"
src="${pageContext.request.contextPath }/js/jquery.js"></script> src="${pageContext.request.contextPath }/js/jquery.js"></script>
<script type="text/javascript" <script type="text/javascript"
src="${pageContext.request.contextPath }/js/jquery.tools.js"></script> src="${pageContext.request.contextPath }/js/jquery.tools.js"></script>
</head> </head>
<script type="text/javascript"> <script type="text/javascript">
var msg = '${MSG}'; var msg = '${MSG}';
if(msg.length>0){ if(msg.length>0){
alert(msg); alert(msg);
} }
function add(){ function add(){
document.yhForm.action="<c:url value='/mission/missionParameterDefaults.do?action=insert'/>"; document.yhForm.action="<c:url value='/mission/missionParameterDefaults.do?action=insert'/>";
document.yhForm.submit(); document.yhForm.submit();
} }
jQuery(function(){ jQuery(function(){
//菜单流程 //菜单流程
$("tr[mt]").hide(); $("tr[mt]").hide();
if($("#MSGFlag").val()==1){ if($("#MSGFlag").val()==1){
$("[mst]").removeAttr("disabled"); $("[mst]").removeAttr("disabled");
$("tr[mt='"+$("#missionType").val()+"']").show(); $("tr[mt='"+$("#missionType").val()+"']").show();
}else{ }else{
$("[mst]").attr("disabled",'disabled'); $("[mst]").attr("disabled",'disabled');
} }
//系统和节点组 的 连动下拉菜单 //系统和节点组 的 连动下拉菜单
$("#systemId").data("nodes",$("#nodeId").clone()); $("#systemId").data("nodes",$("#nodeId").clone());
$("#systemId").bind("change",function(){ $("#systemId").bind("change",function(){
$("#nodeId option[systems]").remove(); $("#nodeId option[systems]").remove();
if($(this).val()=="0"){ if($(this).val()=="0"){
$("#systemId").data("nodes").find("option[systems]").clone().appendTo("#nodeId"); $("#systemId").data("nodes").find("option[systems]").clone().appendTo("#nodeId");
}else{ }else{
$("#systemId").data("nodes").find("option[systems='"+$("#systemId").val()+"']").clone().appendTo("#nodeId"); $("#systemId").data("nodes").find("option[systems='"+$("#systemId").val()+"']").clone().appendTo("#nodeId");
} }
$("#nodeId").val(0); $("#nodeId").val(0);
}); });
//系统和用户组 的 连动下拉菜单 //系统和用户组 的 连动下拉菜单
$("#systemId").data("userGroup",$("#groupId").clone()); $("#systemId").data("userGroup",$("#groupId").clone());
$("#systemId").bind("change",function(){ $("#systemId").bind("change",function(){
$("#groupId option[systems]").remove(); $("#groupId option[systems]").remove();
if($(this).val()=="0"){ if($(this).val()=="0"){
$("#systemId").data("userGroup").find("option[systems]").clone().appendTo("#groupId"); $("#systemId").data("userGroup").find("option[systems]").clone().appendTo("#groupId");
}else{ }else{
$("#systemId").data("userGroup").find("option[systems='"+$("#systemId").val()+"']").clone().appendTo("#groupId"); $("#systemId").data("userGroup").find("option[systems='"+$("#systemId").val()+"']").clone().appendTo("#groupId");
} }
$("#groupId").val(0); $("#groupId").val(0);
}); });
if($("#systemId").val()!=0){ if($("#systemId").val()!=0){
//节点组联动 //节点组联动
$("#nodeId option[systems]").remove(); $("#nodeId option[systems]").remove();
$("#systemId").data("nodes").find("option[systems='"+$("#systemId").val()+"']").clone().appendTo("#nodeId"); $("#systemId").data("nodes").find("option[systems='"+$("#systemId").val()+"']").clone().appendTo("#nodeId");
//用户组联动 //用户组联动
$("#groupId option[systems]").remove(); $("#groupId option[systems]").remove();
$("#systemId").data("userGroup").find("option[systems='"+$("#systemId").val()+"']").clone().appendTo("#groupId"); $("#systemId").data("userGroup").find("option[systems='"+$("#systemId").val()+"']").clone().appendTo("#groupId");
} }
//任务类型名称和任务类型 值联动 //任务类型名称和任务类型 值联动
$("#missionTypeName").val($("#missionType option:selected").attr("viewValue")); $("#missionTypeName").val($("#missionType option:selected").attr("viewValue"));
$("#systemId,#missionType").bind('change',function(){ $("#systemId,#missionType").bind('change',function(){
$("#missionTypeName").val($("#missionType option:selected").attr("viewValue")); $("#missionTypeName").val($("#missionType option:selected").attr("viewValue"));
if($("#missionType").val()==0){ if($("#missionType").val()==0){
$("#missionTypeName").val($("#missionType option:selected").attr("viewValue")); $("#missionTypeName").val($("#missionType option:selected").attr("viewValue"));
return; return;
} }
if($("#systemId").val()==0){ if($("#systemId").val()==0){
return; return;
} }
$("#paramenterForm").attr("action","<c:url value='/mission/missionParameterDefaults.do?action=check'/>").submit(); $("#paramenterForm").attr("action","<c:url value='/mission/missionParameterDefaults.do?action=check'/>").submit();
}); });
$("input[type='radio'][id='loopFlag']").click(function(){ $("input[type='radio'][id='loopFlag']").click(function(){
if($("#loopFlag").val()){ if($("#loopFlag").val()){
}else{ }else{
} }
}); });
//$("#checkValue").blur(function(){alert($(this).checkByteLength(100,"校验值信息"));}); //$("#checkValue").blur(function(){alert($(this).checkByteLength(100,"校验值信息"));});
}); });
function goBack(){ function goBack(){
document.yhForm.action="<c:url value='/mission/missionParameterDefaults.do?action=select'/>"; document.yhForm.action="<c:url value='/mission/missionParameterDefaults.do?action=select'/>";
document.yhForm.submit(); document.yhForm.submit();
} }
</script> </script>
<body> <body>
<form action="" name="yhForm" id="paramenterForm" method="post"> <form action="" name="yhForm" id="paramenterForm" method="post">
<input type="hidden" name="MSGFlag" id="MSGFlag" value="${MSGFlag }" /> <input type="hidden" name="MSGFlag" id="MSGFlag" value="${MSGFlag }" />
<table width="80%" align="center" border="0" cellpadding="0" cellspacing="1" class="ta_color" > <table width="80%" align="center" border="0" cellpadding="0" cellspacing="1" class="ta_color" >
<tr> <tr>
<td height="20" class="td_color"> <td height="20" class="td_color">
<span class="STYLE1">&nbsp;&nbsp;&nbsp;<strong>i18n_edi1.text.title_n81i</strong></span> <span class="STYLE1">&nbsp;&nbsp;&nbsp;<strong>i18n_edi1.text.title_n81i</strong></span>
</td> </td>
</tr> </tr>
<tr> <tr>
<td bgcolor="#ffffff" align="center"> <td bgcolor="#ffffff" align="center">
<table width="80%" align="center" border="0" cellpadding="0" cellspacing="1" style="padding-left: 5px;padding-right: 5px;"> <table width="80%" align="center" border="0" cellpadding="0" cellspacing="1" style="padding-left: 5px;padding-right: 5px;">
<tr><td colspan="4" style="height: 20px;"></td></tr> <tr><td colspan="4" style="height: 20px;"></td></tr>
<tr> <tr>
<td bgcolor="#FFFFFF" width="20%"> <td bgcolor="#FFFFFF" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_edi1.text.systemName_n81i</span> <span class="STYLE1">i18n_edi1.text.systemName_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left"> <div align="left">
${sys.systemName } ${sys.systemName }
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF" width="20%"> <td bgcolor="#FFFFFF" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_edi1.text.missionType_n81i</span> <span class="STYLE1">i18n_edi1.text.missionType_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left"> <div align="left">
<c:forEach items="${mtList}" var="mt"> <c:forEach items="${mtList}" var="mt">
<c:if test="${parameterDefaults.missionType eq mt[0] }"> >${mt[1] }</c:if> <c:if test="${parameterDefaults.missionType eq mt[0] }"> >${mt[1] }</c:if>
</c:forEach> </c:forEach>
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td bgcolor="#FFFFFF" width="20%"> <td bgcolor="#FFFFFF" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_edi1.text.nodeGroup_n81i</span> <span class="STYLE1">i18n_edi1.text.nodeGroup_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left"> <div align="left">
${nod.groupName} ${nod.groupName}
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF" width="20%"> <td bgcolor="#FFFFFF" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_edi1.text.missionTypeName_n81i</span> <span class="STYLE1">i18n_edi1.text.missionTypeName_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left"> <div align="left">
${parameterDefaults.missionTypeName } ${parameterDefaults.missionTypeName }
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td bgcolor="#FFFFFF" width="20%"> <td bgcolor="#FFFFFF" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_edi1.text.viewLevel_n81i</span> <span class="STYLE1">i18n_edi1.text.viewLevel_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left"> <div align="left">
<c:forEach items="${vlList}" var="vl"> <c:forEach items="${vlList}" var="vl">
<c:if test="${parameterDefaults.viewLevel eq vl[0] }"> ${vl[1] }</c:if> <c:if test="${parameterDefaults.viewLevel eq vl[0] }"> ${vl[1] }</c:if>
</c:forEach> </c:forEach>
</select> </select>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF" width="20%"> <td bgcolor="#FFFFFF" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_edi1.text.userGroup_n81i</span> <span class="STYLE1">i18n_edi1.text.userGroup_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left"> <div align="left">
${xtj.jsmc } ${xtj.jsmc }
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td bgcolor="#FFFFFF" width="20%"> <td bgcolor="#FFFFFF" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_edi1.text.startTime_n81i</span> <span class="STYLE1">i18n_edi1.text.startTime_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left"> <div align="left">
<input type="text" mst="mst" <input type="text" mst="mst"
<%-- name="parameterDefaults.startTime"--%> <%-- name="parameterDefaults.startTime"--%>
disabled="disabled" /> disabled="disabled" />
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF" width="20%"> <td bgcolor="#FFFFFF" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_edi1.text.endTime_n81i</span> <span class="STYLE1">i18n_edi1.text.endTime_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left"> <div align="left">
<input type="text" mst="mst" <input type="text" mst="mst"
<%-- name="parameterDefaults.endTime" --%> <%-- name="parameterDefaults.endTime" --%>
disabled="disabled" /> disabled="disabled" />
</div> </div>
</td> </td>
</tr> </tr>
<tr><td colspan="4" style="height: 20px;"></td></tr> <tr><td colspan="4" style="height: 20px;"></td></tr>
</table> </table>
</td> </td>
</tr> </tr>
<tr mt=1> <tr mt=1>
<td bgcolor="#ffffff" align="center" > <td bgcolor="#ffffff" align="center" >
<table width="80%" align="center" border="0" cellpadding="0" cellspacing="1" style="padding-left: 5px;padding-right: 5px;"> <table width="80%" align="center" border="0" cellpadding="0" cellspacing="1" style="padding-left: 5px;padding-right: 5px;">
<tr><td colspan="2" style="height: 20px;"></td></tr> <tr><td colspan="2" style="height: 20px;"></td></tr>
<tr> <tr>
<td bgcolor="#FFFFFF" width="20%"> <td bgcolor="#FFFFFF" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_edi1.text.targetPath_n81i</span> <span class="STYLE1">i18n_edi1.text.targetPath_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left"> <div align="left">
<input type="text" size="60" name="parameterDefaults.targetPath" /> <input type="text" size="60" name="parameterDefaults.targetPath" />
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td bgcolor="#FFFFFF" width="20%"> <td bgcolor="#FFFFFF" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_edi1.text.checkValue_n81i</span> <span class="STYLE1">i18n_edi1.text.checkValue_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left"> <div align="left">
<textarea rows="3" cols="47" id="checkValue" name="parameterDefaults.checkValue" ></textarea> <textarea rows="3" cols="47" id="checkValue" name="parameterDefaults.checkValue" ></textarea>
</div> </div>
</td> </td>
</tr> </tr>
<tr><td colspan="2" style="height: 20px;"></td></tr> <tr><td colspan="2" style="height: 20px;"></td></tr>
</table> </table>
</td> </td>
</tr> </tr>
<tr mt=2> <tr mt=2>
<td bgcolor="#ffffff" align="center" > <td bgcolor="#ffffff" align="center" >
<div style="height: 20px; width: 100%; margin: 0px auto; padding: 0px;"></div> <div style="height: 20px; width: 100%; margin: 0px auto; padding: 0px;"></div>
<table width="80%" align="center" border="0" cellpadding="0" cellspacing="1" style="padding-left: 5px;padding-right: 5px;"> <table width="80%" align="center" border="0" cellpadding="0" cellspacing="1" style="padding-left: 5px;padding-right: 5px;">
<tr> <tr>
<td bgcolor="#FFFFFF" width="20%"> <td bgcolor="#FFFFFF" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_edi1.text.loopFlag_n81i</span> <span class="STYLE1">i18n_edi1.text.loopFlag_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF" colspan="3"> <td height="28" bgcolor="#FFFFFF" colspan="3">
<div align="left" class="STYLE1"> <div align="left" class="STYLE1">
<input type="radio" id='loopFlag' name="parameterDefaults.loopFlag" value="0" checked="checked" >i18n_edi1.message.untimed_n81i <input type="radio" id='loopFlag' name="parameterDefaults.loopFlag" value="0" checked="checked" >i18n_edi1.message.untimed_n81i
<input type="radio" id='loopFlag' name="parameterDefaults.loopFlag" value="1">i18n_edi1.message.timed_n81i <input type="radio" id='loopFlag' name="parameterDefaults.loopFlag" value="1">i18n_edi1.message.timed_n81i
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td bgcolor="#FFFFFF" width="20%"> <td bgcolor="#FFFFFF" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_edi1.text.loopStartDate_n81i</span> <span class="STYLE1">i18n_edi1.text.loopStartDate_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left"> <div align="left">
<input type="text" name="parameterDefaults.loopStartDate" /> <input type="text" name="parameterDefaults.loopStartDate" />
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF" width="20%"> <td bgcolor="#FFFFFF" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_edi1.text.loopEndDate_n81i</span> <span class="STYLE1">i18n_edi1.text.loopEndDate_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left"> <div align="left">
<input type="text" name="parameterDefaults.loopEndDate" /> <input type="text" name="parameterDefaults.loopEndDate" />
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td bgcolor="#FFFFFF" width="20%"> <td bgcolor="#FFFFFF" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_edi1.text.loopDelay_n81i</span> <span class="STYLE1">i18n_edi1.text.loopDelay_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF" colspan="3"> <td height="28" bgcolor="#FFFFFF" colspan="3">
<div align="left" > <div align="left" >
<input type="text" name="parameterDefaults.loopDelay"/> <input type="text" name="parameterDefaults.loopDelay"/>
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td bgcolor="#FFFFFF" width="20%"> <td bgcolor="#FFFFFF" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_edi1.text.filterKeyword_n81i</span> <span class="STYLE1">i18n_edi1.text.filterKeyword_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF" colspan="3"> <td height="28" bgcolor="#FFFFFF" colspan="3">
<div align="left" > <div align="left" >
<textarea rows="4" cols="40" name="parameterDefaults.filterKeyword"></textarea> <textarea rows="4" cols="40" name="parameterDefaults.filterKeyword"></textarea>
</div> </div>
</td> </td>
</tr> </tr>
<tr><td colspan="2" style="height: 20px;"></td></tr> <tr><td colspan="2" style="height: 20px;"></td></tr>
</table> </table>
</td> </td>
</tr> </tr>
<tr> <tr>
<td height="20" class="td_color"> <td height="20" class="td_color">
<table width="100%" border="0" cellspacing="0" cellpadding="0"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr> <tr>
<td width="92%" align=right> <td width="92%" align=right>
<img onclick="add()" src="<c:url value='/desktop/images/anniu/a_12${userBgColor }.gif'/>" <img onclick="add()" src="<c:url value='/desktop/images/anniu/a_12${userBgColor }.gif'/>"
border="0" align="middle" />&nbsp; border="0" align="middle" />&nbsp;
</td> </td>
<td width="1%" align=right> <td width="1%" align=right>
&nbsp; &nbsp;
</td> </td>
<td align=left> <td align=left>
<img src="<c:url value='/desktop/images/anniu/a_21${userBgColor }.gif'/>" <img src="<c:url value='/desktop/images/anniu/a_21${userBgColor }.gif'/>"
border="0" align="middle" border="0" align="middle"
onclick="goBack()" />&nbsp; onclick="goBack()" />&nbsp;
</td> </td>
</tr> </tr>
</table> </table>
</td> </td>
</tr> </tr>
</table> </table>
<div style="height: 20px; width: 100%; margin: 0px auto; padding: 0px;"></div> <div style="height: 20px; width: 100%; margin: 0px auto; padding: 0px;"></div>
</form> </form>
</body> </body>
</html> </html>

View File

@@ -1,366 +1,366 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%> <%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib prefix="fn" uri="/jstl/fn"%> <%@ taglib prefix="fn" uri="/jstl/fn"%>
<%@ taglib prefix="fmt" uri="/jstl/fmt"%> <%@ taglib prefix="fmt" uri="/jstl/fmt"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
%> %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_adi.message.addDefaultInfoTitle_n81i</title> <title>i18n_adi.message.addDefaultInfoTitle_n81i</title>
<link href="<c:url value='/css/styles.css'/>" rel="stylesheet" <link href="<c:url value='/css/styles.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<link href="<c:url value='/desktop/css/index${userBgColor }.css'/>" rel="stylesheet" <link href="<c:url value='/desktop/css/index${userBgColor }.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<script src="<c:url value='/js/onmouse${userBgColor }.js'/>" type="text/javascript"></script> <script src="<c:url value='/js/onmouse${userBgColor }.js'/>" type="text/javascript"></script>
<link href="<c:url value='/css/k.css'/>" rel="stylesheet" type="text/css" /> <link href="<c:url value='/css/k.css'/>" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/datepicker/WdatePicker.js'/>"></script> src="<c:url value='/js/datepicker/WdatePicker.js'/>"></script>
<script type="text/javascript" <script type="text/javascript"
src="${pageContext.request.contextPath }/js/jquery.js"></script> src="${pageContext.request.contextPath }/js/jquery.js"></script>
<script type="text/javascript" <script type="text/javascript"
src="${pageContext.request.contextPath }/js/jquery.tools.js"></script> src="${pageContext.request.contextPath }/js/jquery.tools.js"></script>
</head> </head>
<script type="text/javascript"> <script type="text/javascript">
var msg = '${MSG}'; var msg = '${MSG}';
if(msg.length>0){ if(msg.length>0){
alert(msg); alert(msg);
} }
function add(){ function add(){
document.yhForm.action="<c:url value='/mission/missionParameterDefaults.do?action=insert'/>"; document.yhForm.action="<c:url value='/mission/missionParameterDefaults.do?action=insert'/>";
document.yhForm.submit(); document.yhForm.submit();
} }
jQuery(function(){ jQuery(function(){
//菜单流程 //菜单流程
$("tr[mt]").hide(); $("tr[mt]").hide();
if($("#MSGFlag").val()==1){ if($("#MSGFlag").val()==1){
$("[mst]").removeAttr("disabled"); $("[mst]").removeAttr("disabled");
$("tr[mt='"+$("#missionType").val()+"']").show(); $("tr[mt='"+$("#missionType").val()+"']").show();
}else{ }else{
$("[mst]").attr("disabled",'disabled'); $("[mst]").attr("disabled",'disabled');
} }
//系统和节点组 的 连动下拉菜单 //系统和节点组 的 连动下拉菜单
$("#systemId").data("nodes",$("#nodeId").clone()); $("#systemId").data("nodes",$("#nodeId").clone());
$("#systemId").bind("change",function(){ $("#systemId").bind("change",function(){
$("#nodeId option[systems]").remove(); $("#nodeId option[systems]").remove();
if($(this).val()=="0"){ if($(this).val()=="0"){
$("#systemId").data("nodes").find("option[systems]").clone().appendTo("#nodeId"); $("#systemId").data("nodes").find("option[systems]").clone().appendTo("#nodeId");
}else{ }else{
$("#systemId").data("nodes").find("option[systems='"+$("#systemId").val()+"']").clone().appendTo("#nodeId"); $("#systemId").data("nodes").find("option[systems='"+$("#systemId").val()+"']").clone().appendTo("#nodeId");
} }
$("#nodeId").val(0); $("#nodeId").val(0);
}); });
//系统和用户组 的 连动下拉菜单 //系统和用户组 的 连动下拉菜单
$("#systemId").data("userGroup",$("#groupId").clone()); $("#systemId").data("userGroup",$("#groupId").clone());
$("#systemId").bind("change",function(){ $("#systemId").bind("change",function(){
$("#groupId option[systems]").remove(); $("#groupId option[systems]").remove();
if($(this).val()=="0"){ if($(this).val()=="0"){
$("#systemId").data("userGroup").find("option[systems]").clone().appendTo("#groupId"); $("#systemId").data("userGroup").find("option[systems]").clone().appendTo("#groupId");
}else{ }else{
$("#systemId").data("userGroup").find("option[systems='"+$("#systemId").val()+"']").clone().appendTo("#groupId"); $("#systemId").data("userGroup").find("option[systems='"+$("#systemId").val()+"']").clone().appendTo("#groupId");
} }
$("#groupId").val(0); $("#groupId").val(0);
}); });
if($("#systemId").val()!=0){ if($("#systemId").val()!=0){
//节点组联动 //节点组联动
$("#nodeId option[systems]").remove(); $("#nodeId option[systems]").remove();
$("#systemId").data("nodes").find("option[systems='"+$("#systemId").val()+"']").clone().appendTo("#nodeId"); $("#systemId").data("nodes").find("option[systems='"+$("#systemId").val()+"']").clone().appendTo("#nodeId");
//用户组联动 //用户组联动
$("#groupId option[systems]").remove(); $("#groupId option[systems]").remove();
$("#systemId").data("userGroup").find("option[systems='"+$("#systemId").val()+"']").clone().appendTo("#groupId"); $("#systemId").data("userGroup").find("option[systems='"+$("#systemId").val()+"']").clone().appendTo("#groupId");
} }
//任务类型名称和任务类型 值联动 //任务类型名称和任务类型 值联动
$("#missionTypeName").val($("#missionType option:selected").attr("viewValue")); $("#missionTypeName").val($("#missionType option:selected").attr("viewValue"));
$("#systemId,#missionType").bind('change',function(){ $("#systemId,#missionType").bind('change',function(){
$("#missionTypeName").val($("#missionType option:selected").attr("viewValue")); $("#missionTypeName").val($("#missionType option:selected").attr("viewValue"));
if($("#missionType").val()==0){ if($("#missionType").val()==0){
$("#missionTypeName").val($("#missionType option:selected").attr("viewValue")); $("#missionTypeName").val($("#missionType option:selected").attr("viewValue"));
return; return;
} }
if($("#systemId").val()==0){ if($("#systemId").val()==0){
return; return;
} }
$("#paramenterForm").attr("action","<c:url value='/mission/missionParameterDefaults.do?action=check'/>").submit(); $("#paramenterForm").attr("action","<c:url value='/mission/missionParameterDefaults.do?action=check'/>").submit();
}); });
$("input[type='radio'][id='loopFlag']").click(function(){ $("input[type='radio'][id='loopFlag']").click(function(){
if($("#loopFlag").val()){ if($("#loopFlag").val()){
}else{ }else{
} }
}); });
//$("#checkValue").blur(function(){alert($(this).checkByteLength(100,"校验值信息"));}); //$("#checkValue").blur(function(){alert($(this).checkByteLength(100,"校验值信息"));});
}); });
function goBack(){ function goBack(){
document.yhForm.action="<c:url value='/mission/missionParameterDefaults.do?action=select'/>"; document.yhForm.action="<c:url value='/mission/missionParameterDefaults.do?action=select'/>";
document.yhForm.submit(); document.yhForm.submit();
} }
</script> </script>
<body> <body>
<form action="" name="yhForm" id="paramenterForm" method="post"> <form action="" name="yhForm" id="paramenterForm" method="post">
<input type="hidden" name="MSGFlag" id="MSGFlag" value="${MSGFlag }" /> <input type="hidden" name="MSGFlag" id="MSGFlag" value="${MSGFlag }" />
<table width="80%" align="center" border="0" cellpadding="0" cellspacing="1" class="ta_color" > <table width="80%" align="center" border="0" cellpadding="0" cellspacing="1" class="ta_color" >
<tr> <tr>
<td height="20" class="td_color"> <td height="20" class="td_color">
<span class="STYLE1">&nbsp;&nbsp;&nbsp;<strong>i18n_edi2.text.title_n81i</strong></span> <span class="STYLE1">&nbsp;&nbsp;&nbsp;<strong>i18n_edi2.text.title_n81i</strong></span>
</td> </td>
</tr> </tr>
<tr> <tr>
<td bgcolor="#ffffff" align="center"> <td bgcolor="#ffffff" align="center">
<table width="80%" align="center" border="0" cellpadding="0" cellspacing="1" style="padding-left: 5px;padding-right: 5px;"> <table width="80%" align="center" border="0" cellpadding="0" cellspacing="1" style="padding-left: 5px;padding-right: 5px;">
<tr><td colspan="4" style="height: 20px;"></td></tr> <tr><td colspan="4" style="height: 20px;"></td></tr>
<tr> <tr>
<td bgcolor="#FFFFFF" width="20%"> <td bgcolor="#FFFFFF" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_edi2.text.systemName_n81i</span> <span class="STYLE1">i18n_edi2.text.systemName_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left"> <div align="left">
<select id="systemId" name="parameterDefaults.systemId" > <select id="systemId" name="parameterDefaults.systemId" >
<option value="0">i18n_edi2.message.selectDefault_n81i...</option> <option value="0">i18n_edi2.message.selectDefault_n81i...</option>
<c:forEach items="${sysList}" var="sys"> <c:forEach items="${sysList}" var="sys">
<option value='${sys[0] }' <c:if test="${parameterDefaults.systemId eq sys[0] }"> selected ="selected"</c:if> >${sys[1] }</option> <option value='${sys[0] }' <c:if test="${parameterDefaults.systemId eq sys[0] }"> selected ="selected"</c:if> >${sys[1] }</option>
</c:forEach> </c:forEach>
</select> </select>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF" width="20%"> <td bgcolor="#FFFFFF" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_edi2.text.missionType_n81i</span> <span class="STYLE1">i18n_edi2.text.missionType_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left"> <div align="left">
<select id="missionType" name="parameterDefaults.missionType" > <select id="missionType" name="parameterDefaults.missionType" >
<option value="0" viewValue="">i18n_edi2.message.selectDefault_n81i..</option> <option value="0" viewValue="">i18n_edi2.message.selectDefault_n81i..</option>
<c:forEach items="${mtList}" var="mt"> <c:forEach items="${mtList}" var="mt">
<option value='${mt[0] }' viewValue="${mt[1] }" <c:if test="${parameterDefaults.missionType eq mt[0] }"> selected ="selected"</c:if> >${mt[1] }</option> <option value='${mt[0] }' viewValue="${mt[1] }" <c:if test="${parameterDefaults.missionType eq mt[0] }"> selected ="selected"</c:if> >${mt[1] }</option>
</c:forEach> </c:forEach>
</select> </select>
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td bgcolor="#FFFFFF" width="20%"> <td bgcolor="#FFFFFF" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_edi2.text.nodeGroup_n81i</span> <span class="STYLE1">i18n_edi2.text.nodeGroup_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left"> <div align="left">
<select id="nodeId" name="parameterDefaults.nodeListId" mst="mst" disabled="disabled" > <select id="nodeId" name="parameterDefaults.nodeListId" mst="mst" disabled="disabled" >
<option value="0">i18n_edi2.message.selectDefault_n81i..</option> <option value="0">i18n_edi2.message.selectDefault_n81i..</option>
<c:forEach items="${ngList }" var="ng"> <c:forEach items="${ngList }" var="ng">
<option value='${ng[0] }' systems="${ng[2] }" <c:if test="${nodeId eq ng[0] }"> selected ="selected"</c:if> >${ng[1] }</option> <option value='${ng[0] }' systems="${ng[2] }" <c:if test="${nodeId eq ng[0] }"> selected ="selected"</c:if> >${ng[1] }</option>
</c:forEach> </c:forEach>
</select> </select>
</select> </select>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF" width="20%"> <td bgcolor="#FFFFFF" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_edi2.text.missionTypeName_n81i</span> <span class="STYLE1">i18n_edi2.text.missionTypeName_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left"> <div align="left">
<input type="text" name="parameterDefaults.missionTypeName" id="missionTypeName" readonly="readonly" mst="mst" disabled="disabled" /> <input type="text" name="parameterDefaults.missionTypeName" id="missionTypeName" readonly="readonly" mst="mst" disabled="disabled" />
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td bgcolor="#FFFFFF" width="20%"> <td bgcolor="#FFFFFF" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_edi2.text.viewLevel_n81i</span> <span class="STYLE1">i18n_edi2.text.viewLevel_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left"> <div align="left">
<select name="parameterDefaults.viewLevel" mst="mst" disabled="disabled" > <select name="parameterDefaults.viewLevel" mst="mst" disabled="disabled" >
<option value="0">i18n_edi2.message.selectDefault_n81i...</option> <option value="0">i18n_edi2.message.selectDefault_n81i...</option>
<c:forEach items="${vlList}" var="vl"> <c:forEach items="${vlList}" var="vl">
<option value='${vl[0] }' <c:if test="${parameterDefaults.viewLevel eq vl[0] }"> selected ="selected"</c:if> >${vl[1] }</option> <option value='${vl[0] }' <c:if test="${parameterDefaults.viewLevel eq vl[0] }"> selected ="selected"</c:if> >${vl[1] }</option>
</c:forEach> </c:forEach>
</select> </select>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF" width="20%"> <td bgcolor="#FFFFFF" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_edi2.text.userGroup_n81i</span> <span class="STYLE1">i18n_edi2.text.userGroup_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left"> <div align="left">
<select name="parameterDefaults.groupId" id="groupId" mst="mst" disabled="disabled" > <select name="parameterDefaults.groupId" id="groupId" mst="mst" disabled="disabled" >
<option value="0">i18n_edi2.message.selectDefault_n81i...</option> <option value="0">i18n_edi2.message.selectDefault_n81i...</option>
<c:forEach items="${groupList }" var="group"> <c:forEach items="${groupList }" var="group">
<option value='${group[0] }' systems="${group[2] }" <c:if test="${parameterDefaults.groupId eq group[0] }"> selected ="selected"</c:if> >${group[1] }</option> <option value='${group[0] }' systems="${group[2] }" <c:if test="${parameterDefaults.groupId eq group[0] }"> selected ="selected"</c:if> >${group[1] }</option>
</c:forEach> </c:forEach>
</select> </select>
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td bgcolor="#FFFFFF" width="20%"> <td bgcolor="#FFFFFF" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_edi2.text.startTime_n81i</span> <span class="STYLE1">i18n_edi2.text.startTime_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left"> <div align="left">
<input type="text" mst="mst" <input type="text" mst="mst"
<%-- name="parameterDefaults.startTime"--%> <%-- name="parameterDefaults.startTime"--%>
disabled="disabled" /> disabled="disabled" />
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF" width="20%"> <td bgcolor="#FFFFFF" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_edi2.text.endTime_n81i</span> <span class="STYLE1">i18n_edi2.text.endTime_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left"> <div align="left">
<input type="text" mst="mst" <input type="text" mst="mst"
<%-- name="parameterDefaults.endTime" --%> <%-- name="parameterDefaults.endTime" --%>
disabled="disabled" /> disabled="disabled" />
</div> </div>
</td> </td>
</tr> </tr>
<tr><td colspan="4" style="height: 20px;"></td></tr> <tr><td colspan="4" style="height: 20px;"></td></tr>
</table> </table>
</td> </td>
</tr> </tr>
<tr mt=1> <tr mt=1>
<td bgcolor="#ffffff" align="center" > <td bgcolor="#ffffff" align="center" >
<table width="80%" align="center" border="0" cellpadding="0" cellspacing="1" style="padding-left: 5px;padding-right: 5px;"> <table width="80%" align="center" border="0" cellpadding="0" cellspacing="1" style="padding-left: 5px;padding-right: 5px;">
<tr><td colspan="2" style="height: 20px;"></td></tr> <tr><td colspan="2" style="height: 20px;"></td></tr>
<tr> <tr>
<td bgcolor="#FFFFFF" width="20%"> <td bgcolor="#FFFFFF" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_edi2.text.targetPath_n81i</span> <span class="STYLE1">i18n_edi2.text.targetPath_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left"> <div align="left">
<input type="text" size="60" name="parameterDefaults.targetPath" /> <input type="text" size="60" name="parameterDefaults.targetPath" />
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td bgcolor="#FFFFFF" width="20%"> <td bgcolor="#FFFFFF" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_edi2.text.checkValue_n81i</span> <span class="STYLE1">i18n_edi2.text.checkValue_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left"> <div align="left">
<textarea rows="3" cols="47" id="checkValue" name="parameterDefaults.checkValue" ></textarea> <textarea rows="3" cols="47" id="checkValue" name="parameterDefaults.checkValue" ></textarea>
</div> </div>
</td> </td>
</tr> </tr>
<tr><td colspan="2" style="height: 20px;"></td></tr> <tr><td colspan="2" style="height: 20px;"></td></tr>
</table> </table>
</td> </td>
</tr> </tr>
<tr mt=2> <tr mt=2>
<td bgcolor="#ffffff" align="center" > <td bgcolor="#ffffff" align="center" >
<div style="height: 20px; width: 100%; margin: 0px auto; padding: 0px;"></div> <div style="height: 20px; width: 100%; margin: 0px auto; padding: 0px;"></div>
<table width="80%" align="center" border="0" cellpadding="0" cellspacing="1" style="padding-left: 5px;padding-right: 5px;"> <table width="80%" align="center" border="0" cellpadding="0" cellspacing="1" style="padding-left: 5px;padding-right: 5px;">
<tr> <tr>
<td bgcolor="#FFFFFF" width="20%"> <td bgcolor="#FFFFFF" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_edi2.text.loopFlag_n81i</span> <span class="STYLE1">i18n_edi2.text.loopFlag_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF" colspan="3"> <td height="28" bgcolor="#FFFFFF" colspan="3">
<div align="left" class="STYLE1"> <div align="left" class="STYLE1">
<input type="radio" id='loopFlag' name="parameterDefaults.loopFlag" value="0" checked="checked" >i18n_edi2.message.untimed_n81i <input type="radio" id='loopFlag' name="parameterDefaults.loopFlag" value="0" checked="checked" >i18n_edi2.message.untimed_n81i
<input type="radio" id='loopFlag' name="parameterDefaults.loopFlag" value="1">i18n_edi2.message.timed_n81i <input type="radio" id='loopFlag' name="parameterDefaults.loopFlag" value="1">i18n_edi2.message.timed_n81i
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td bgcolor="#FFFFFF" width="20%"> <td bgcolor="#FFFFFF" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_edi2.text.loopStartDate_n81i</span> <span class="STYLE1">i18n_edi2.text.loopStartDate_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left"> <div align="left">
<input type="text" name="parameterDefaults.loopStartDate" /> <input type="text" name="parameterDefaults.loopStartDate" />
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF" width="20%"> <td bgcolor="#FFFFFF" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_edi2.text.loopEndDate_n81i</span> <span class="STYLE1">i18n_edi2.text.loopEndDate_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left"> <div align="left">
<input type="text" name="parameterDefaults.loopEndDate" /> <input type="text" name="parameterDefaults.loopEndDate" />
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td bgcolor="#FFFFFF" width="20%"> <td bgcolor="#FFFFFF" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_edi2.text.loopDelay_n81i</span> <span class="STYLE1">i18n_edi2.text.loopDelay_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF" colspan="3"> <td height="28" bgcolor="#FFFFFF" colspan="3">
<div align="left" > <div align="left" >
<input type="text" name="parameterDefaults.loopDelay"/> <input type="text" name="parameterDefaults.loopDelay"/>
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td bgcolor="#FFFFFF" width="20%"> <td bgcolor="#FFFFFF" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_edi2.text.filterKeyword_n81i</span> <span class="STYLE1">i18n_edi2.text.filterKeyword_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF" colspan="3"> <td height="28" bgcolor="#FFFFFF" colspan="3">
<div align="left" > <div align="left" >
<textarea rows="4" cols="40" name="parameterDefaults.filterKeyword"></textarea> <textarea rows="4" cols="40" name="parameterDefaults.filterKeyword"></textarea>
</div> </div>
</td> </td>
</tr> </tr>
<tr><td colspan="2" style="height: 20px;"></td></tr> <tr><td colspan="2" style="height: 20px;"></td></tr>
</table> </table>
</td> </td>
</tr> </tr>
<tr> <tr>
<td height="20" class="td_color"> <td height="20" class="td_color">
<table width="100%" border="0" cellspacing="0" cellpadding="0"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr> <tr>
<td width="92%" align=right> <td width="92%" align=right>
<img onclick="add()" src="<c:url value='/desktop/images/anniu/a_12${userBgColor }.gif'/>" <img onclick="add()" src="<c:url value='/desktop/images/anniu/a_12${userBgColor }.gif'/>"
border="0" align="middle" />&nbsp; border="0" align="middle" />&nbsp;
</td> </td>
<td width="1%" align=right> <td width="1%" align=right>
&nbsp; &nbsp;
</td> </td>
<td align=left> <td align=left>
<img src="<c:url value='/desktop/images/anniu/a_21${userBgColor }.gif'/>" <img src="<c:url value='/desktop/images/anniu/a_21${userBgColor }.gif'/>"
border="0" align="middle" border="0" align="middle"
onclick="goBack()" />&nbsp; onclick="goBack()" />&nbsp;
</td> </td>
</tr> </tr>
</table> </table>
</td> </td>
</tr> </tr>
</table> </table>
<div style="height: 20px; width: 100%; margin: 0px auto; padding: 0px;"></div> <div style="height: 20px; width: 100%; margin: 0px auto; padding: 0px;"></div>
</form> </form>
</body> </body>
</html> </html>

View File

@@ -1,168 +1,168 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%> <%@ taglib uri="/jstl/c" prefix="c"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
%> %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_udi.message.title_n81i</title> <title>i18n_udi.message.title_n81i</title>
<link href="<c:url value='/desktop/css/index${userBgColor }.css'/>" rel="stylesheet" <link href="<c:url value='/desktop/css/index${userBgColor }.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<script src="<c:url value='/js/onmouse${userBgColor }.js'/>" type="text/javascript"></script> <script src="<c:url value='/js/onmouse${userBgColor }.js'/>" type="text/javascript"></script>
<link href="<c:url value='/css/styles.css'/>" rel="stylesheet" <link href="<c:url value='/css/styles.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<link href="<c:url value='/css/k.css'/>" rel="stylesheet" type="text/css" /> <link href="<c:url value='/css/k.css'/>" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/datepicker/WdatePicker.js'/>"></script> src="<c:url value='/js/datepicker/WdatePicker.js'/>"></script>
<script type="text/javascript" <script type="text/javascript"
src="${pageContext.request.contextPath }/js/jquery.js"></script> src="${pageContext.request.contextPath }/js/jquery.js"></script>
</head> </head>
<script type="text/javascript" src="<%=path%>/templates/js/object.js"></script> <script type="text/javascript" src="<%=path%>/templates/js/object.js"></script>
<script language="javascript" type="text/javascript"> <script language="javascript" type="text/javascript">
//new alignWindowObject(window.opener.winObj.width,window.opener.winObj.height).alignCenter(); //new alignWindowObject(window.opener.winObj.width,window.opener.winObj.height).alignCenter();
function $(name){ function $(name){
return document.getElementById(name); return document.getElementById(name);
} }
function doUpdate(deptid){ function doUpdate(deptid){
if($id("deptname","","i18n_udi.text.deptname_n81i")){ if($id("deptname","","i18n_udi.text.deptname_n81i")){
for(var i = 0 ;i<document.all.deptlayer.length;i++){ for(var i = 0 ;i<document.all.deptlayer.length;i++){
if(document.all.deptlayer[i].checked){ if(document.all.deptlayer[i].checked){
if((document.all.deptlayer[i].value==1 || document.all.deptlayer[i].value==2) && document.getElementById("upperlayer").value==-1){ if((document.all.deptlayer[i].value==1 || document.all.deptlayer[i].value==2) && document.getElementById("upperlayer").value==-1){
alert('i18n_udi.message.deptname_n81i'); alert('i18n_udi.message.deptname_n81i');
return false; return false;
}else{ }else{
document.yhForm.action="<%=path%>/sysManage/sysPopedomManage!execute.do?action=doUpdateDeptInfo&deptid="+deptid; document.yhForm.action="<%=path%>/sysManage/sysPopedomManage!execute.do?action=doUpdateDeptInfo&deptid="+deptid;
document.yhForm.submit(); document.yhForm.submit();
} }
} }
} }
} }
} }
function goBack(){ function goBack(){
document.yhForm.action="<%=path%>/sysManage/sysPopedomManage!execute.do?action=queryDeptInfo"; document.yhForm.action="<%=path%>/sysManage/sysPopedomManage!execute.do?action=queryDeptInfo";
document.yhForm.submit(); document.yhForm.submit();
} }
</script> </script>
<body> <body>
<form action="" name="yhForm" method="post"> <form action="" name="yhForm" method="post">
<input type="hidden" name="position" value="${position }"> <input type="hidden" name="position" value="${position }">
<table width="80%" align="center" border="0" cellpadding="0" <table width="80%" align="center" border="0" cellpadding="0"
cellspacing="1" class="ta_color" > cellspacing="1" class="ta_color" >
<tr> <tr>
<td height="20" class="td_color"> <td height="20" class="td_color">
<span class="STYLE1">&nbsp;&nbsp;&nbsp;<strong>i18n_udi.text.title_n81i</strong></span> <span class="STYLE1">&nbsp;&nbsp;&nbsp;<strong>i18n_udi.text.title_n81i</strong></span>
</td> </td>
</tr> </tr>
<tr> <tr>
<td width="18%" bgcolor="#ffffff" > <td width="18%" bgcolor="#ffffff" >
<div style="height: 20px; width: 100%; margin: 0px auto; padding: 0px;"></div> <div style="height: 20px; width: 100%; margin: 0px auto; padding: 0px;"></div>
<table width="100%" align="center" border="0" cellpadding="0" cellspacing="1" style="padding-left: 5px;padding-right: 5px;"> <table width="100%" align="center" border="0" cellpadding="0" cellspacing="1" style="padding-left: 5px;padding-right: 5px;">
<tr> <tr>
<td bgcolor="#FFFFFF" width="40%"> <td bgcolor="#FFFFFF" width="40%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_udi.text.deptname_n81i</span> <span class="STYLE1">i18n_udi.text.deptname_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left"> <div align="left">
<input type="text" name="dept.deptname" id="deptname" value="${deptList[0].deptname }" <input type="text" name="dept.deptname" id="deptname" value="${deptList[0].deptname }"
style="width: 155px; background-color: #fff; border: solid 1px #77abc4; font-size: 12px; color: #000000" /> style="width: 155px; background-color: #fff; border: solid 1px #77abc4; font-size: 12px; color: #000000" />
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td bgcolor="#FFFFFF"> <td bgcolor="#FFFFFF">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_udi.text.deptlayer_n81i</span> <span class="STYLE1">i18n_udi.text.deptlayer_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left"><span class="STYLE1"> <div align="left"><span class="STYLE1">
<input type="radio" name="dept.deptlayer" id="deptlayer" value="0" <c:if test="${deptList[0].deptlayer==0 }">checked="checked" </c:if> />i18n_udi.text.deptlayer.generalTeam_n81i <input type="radio" name="dept.deptlayer" id="deptlayer" value="0" <c:if test="${deptList[0].deptlayer==0 }">checked="checked" </c:if> />i18n_udi.text.deptlayer.generalTeam_n81i
<input type="radio" name="dept.deptlayer" id="deptlayer" value="1" <c:if test="${deptList[0].deptlayer==1 }">checked="checked" </c:if> />i18n_udi.text.deptlayer.detachment_n81i <input type="radio" name="dept.deptlayer" id="deptlayer" value="1" <c:if test="${deptList[0].deptlayer==1 }">checked="checked" </c:if> />i18n_udi.text.deptlayer.detachment_n81i
<input type="radio" name="dept.deptlayer" id="deptlayer" value="2" <c:if test="${deptList[0].deptlayer==2 }">checked="checked" </c:if> />i18n_udi.text.deptlayer.team_n81i <input type="radio" name="dept.deptlayer" id="deptlayer" value="2" <c:if test="${deptList[0].deptlayer==2 }">checked="checked" </c:if> />i18n_udi.text.deptlayer.team_n81i
</span> </span>
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td bgcolor="#FFFFFF"> <td bgcolor="#FFFFFF">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_udi.text.upperlayer_n81i</span> <span class="STYLE1">i18n_udi.text.upperlayer_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<select name="dept.upperlayer" id="upperlayer" <select name="dept.upperlayer" id="upperlayer"
style="width: 160px; height: 20px; background-color: #fff; border: solid 1px #77abc4; font-size: 12px; color: #000000"> style="width: 160px; height: 20px; background-color: #fff; border: solid 1px #77abc4; font-size: 12px; color: #000000">
<option value="-1"> <option value="-1">
i18n_udi.message.default_n81i i18n_udi.message.default_n81i
</option> </option>
<c:forEach items="${listDeptInfo}" var="deptInfo"> <c:forEach items="${listDeptInfo}" var="deptInfo">
<option value="${deptInfo.deptid}" <c:if test="${deptList[0].upperlayer==deptInfo.deptid }">selected="selected"</c:if>> <option value="${deptInfo.deptid}" <c:if test="${deptList[0].upperlayer==deptInfo.deptid }">selected="selected"</c:if>>
${deptInfo.deptname} ${deptInfo.deptname}
</option> </option>
</c:forEach> </c:forEach>
</select> </select>
</td> </td>
</tr> </tr>
<tr><td colspan="2" style="height: 20px;"></td></tr> <tr><td colspan="2" style="height: 20px;"></td></tr>
</table> </table>
</td> </td>
</tr> </tr>
<tr> <tr>
<td height="20" class="td_color"> <td height="20" class="td_color">
<table width="100%" border="0" cellspacing="0" cellpadding="0"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr> <tr>
<td width="92%" align=right> <td width="92%" align=right>
<img onclick="doUpdate('${deptList[0].deptid }','${deptList[0].deptid}')" src="<c:url value='/desktop/images/anniu/a_12${userBgColor }.gif'/>" <img onclick="doUpdate('${deptList[0].deptid }','${deptList[0].deptid}')" src="<c:url value='/desktop/images/anniu/a_12${userBgColor }.gif'/>"
border="0" align="middle" />&nbsp; border="0" align="middle" />&nbsp;
</td> </td>
<td align=left> <td align=left>
<img src="<c:url value='/desktop/images/anniu/a_39${userBgColor }.gif'/>" <img src="<c:url value='/desktop/images/anniu/a_39${userBgColor }.gif'/>"
border="0" align="middle" border="0" align="middle"
onclick="javascript:document.forms['yhForm'].reset()" />&nbsp; onclick="javascript:document.forms['yhForm'].reset()" />&nbsp;
</td> </td>
<td align=left> <td align=left>
<img src="<c:url value='/desktop/images/anniu/a_21${userBgColor }.gif'/>" <img src="<c:url value='/desktop/images/anniu/a_21${userBgColor }.gif'/>"
border="0" align="middle" border="0" align="middle"
onclick="goBack()" />&nbsp; onclick="goBack()" />&nbsp;
</td> </td>
</tr> </tr>
</table> </table>
</td> </td>
</tr> </tr>
</table> </table>
</form> </form>
</body> </body>
<script> <script>
function selectUpper(opt){ function selectUpper(opt){
if(opt==0){ if(opt==0){
document.getElementById("upperlayer").options[document.getElementById("upperlayer").selectedIndex].value="-1"; document.getElementById("upperlayer").options[document.getElementById("upperlayer").selectedIndex].value="-1";
document.getElementById("upperlayer").options[document.getElementById("upperlayer").selectedIndex].text="i18n_udi.message.upperlayer_n81i"; document.getElementById("upperlayer").options[document.getElementById("upperlayer").selectedIndex].text="i18n_udi.message.upperlayer_n81i";
document.getElementById("upperlayer").disabled=true; document.getElementById("upperlayer").disabled=true;
//alert(document.getElementById("upperlayer").value); //alert(document.getElementById("upperlayer").value);
}else{ }else{
document.getElementById("upperlayer").disabled=false; document.getElementById("upperlayer").disabled=false;
} }
} }
</script> </script>
</html> </html>

View File

@@ -1,279 +1,279 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%> <%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib prefix="fn" uri="/jstl/fn"%> <%@ taglib prefix="fn" uri="/jstl/fn"%>
<%@ taglib prefix="fmt" uri="/jstl/fmt"%> <%@ taglib prefix="fmt" uri="/jstl/fmt"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
%> %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title> <title></title>
<link href="<c:url value='/css/styles.css'/>" rel="stylesheet" <link href="<c:url value='/css/styles.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<link href="<c:url value='/desktop/css/index${userBgColor }.css'/>" rel="stylesheet" <link href="<c:url value='/desktop/css/index${userBgColor }.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<script src="<c:url value='/js/onmouse${userBgColor }.js'/>" type="text/javascript"></script> <script src="<c:url value='/js/onmouse${userBgColor }.js'/>" type="text/javascript"></script>
<link href="<c:url value='/css/k.css'/>" rel="stylesheet" type="text/css" /> <link href="<c:url value='/css/k.css'/>" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/datepicker/WdatePicker.js'/>"></script> src="<c:url value='/js/datepicker/WdatePicker.js'/>"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery.js"></script> <script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery.js"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value="/js/fileInput.js"/>"></script> src="<c:url value="/js/fileInput.js"/>"></script>
</head> </head>
<script type="text/javascript"> <script type="text/javascript">
function add(){ function add(){
var $form = $("form:visible").first(); var $form = $("form:visible").first();
if($form.find("#upFile").size() > 0){ if($form.find("#upFile").size() > 0){
if($("#systemId1").val()==0){alert("i18n_ami.message.selectSystem_n81i");return null;} if($("#systemId1").val()==0){alert("i18n_ami.message.selectSystem_n81i");return null;}
if($("#nodeList").val()==0){alert("i18n_ami.message.selectMK_n81i");return null;} if($("#nodeList").val()==0){alert("i18n_ami.message.selectMK_n81i");return null;}
if(!$id("upFile","","i18n_ami.text.upFile_n81i")){return;} if(!$id("upFile","","i18n_ami.text.upFile_n81i")){return;}
$form[0].action="<c:url value='/mission/simpleMission.do?action=insert'/>"; $form[0].action="<c:url value='/mission/simpleMission.do?action=insert'/>";
$form[0].submit(); $form[0].submit();
} }
if($form.find("#systemId2").size()>0){ if($form.find("#systemId2").size()>0){
if($("#systemId2").val()==0){alert("i18n_ami.message.selectSystem_n81i");return null;} if($("#systemId2").val()==0){alert("i18n_ami.message.selectSystem_n81i");return null;}
if($("#filePath").val()==0){alert("i18n_ami.message.filePath_n81i");return null;} if($("#filePath").val()==0){alert("i18n_ami.message.filePath_n81i");return null;}
if($("#sets").val()==0){alert("i18n_ami.message.sets_n81i");return null;} if($("#sets").val()==0){alert("i18n_ami.message.sets_n81i");return null;}
$form[0].action="<c:url value='/mission/simpleMission.do?action=insert'/>"; $form[0].action="<c:url value='/mission/simpleMission.do?action=insert'/>";
$form[0].submit(); $form[0].submit();
} }
} }
jQuery(function(){ jQuery(function(){
$("#sets").change(function(){ $("#sets").change(function(){
$("#startFlag").val($("#sets option:selected").attr("startFlag")); $("#startFlag").val($("#sets option:selected").attr("startFlag"));
$("#endFlag").val($("#sets option:selected").attr("endFlag")); $("#endFlag").val($("#sets option:selected").attr("endFlag"));
}); });
}); });
function goBack(){ function goBack(){
document.yhForm.action="<c:url value='/mission/simpleMission.do?action=select'/>"; document.yhForm.action="<c:url value='/mission/simpleMission.do?action=select'/>";
document.yhForm.submit(); document.yhForm.submit();
} }
</script> </script>
<body> <body>
<form action="" name="yhForm" method="post" enctype="multipart/form-data" <form action="" name="yhForm" method="post" enctype="multipart/form-data"
<c:if test="${missionState.missionType ne 1}"> <c:if test="${missionState.missionType ne 1}">
style="display:none;" style="display:none;"
</c:if> </c:if>
> >
<input type="hidden" name="missionState.missionType" value="${missionState.missionType }" /> <input type="hidden" name="missionState.missionType" value="${missionState.missionType }" />
<%-- <input type="hidden" name="missionState.missionType" value="1" />--%> <%-- <input type="hidden" name="missionState.missionType" value="1" />--%>
<table width="80%" align="center" border="0" cellpadding="0" <table width="80%" align="center" border="0" cellpadding="0"
cellspacing="1" class="ta_color" > cellspacing="1" class="ta_color" >
<tr> <tr>
<td height="20" class="td_color"> <td height="20" class="td_color">
<span class="STYLE1">&nbsp;&nbsp;&nbsp;<strong>i18n_ami.text.title_n81i</strong></span> <span class="STYLE1">&nbsp;&nbsp;&nbsp;<strong>i18n_ami.text.title_n81i</strong></span>
</td> </td>
</tr> </tr>
<tr> <tr>
<td width="18%" bgcolor="#ffffff"> <td width="18%" bgcolor="#ffffff">
<table width="100%" align="center" border="0" cellpadding="0" cellspacing="1" style="padding-left: 5px;padding-right: 5px;"> <table width="100%" align="center" border="0" cellpadding="0" cellspacing="1" style="padding-left: 5px;padding-right: 5px;">
<div style="height: 20px; width: 100%; margin: 0px auto; padding: 0px;"></div> <div style="height: 20px; width: 100%; margin: 0px auto; padding: 0px;"></div>
<tr> <tr>
<td bgcolor="#FFFFFF" width="40%"> <td bgcolor="#FFFFFF" width="40%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_ami.text.systemName_n81i</span> <span class="STYLE1">i18n_ami.text.systemName_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left"> <div align="left">
<select name="missionState.systemId" id="systemId1" style="display: none"> <select name="missionState.systemId" id="systemId1" style="display: none">
<option value="0">i18n_ami.message.selectDefault_n81i..</option> <option value="0">i18n_ami.message.selectDefault_n81i..</option>
<c:forEach items="${sysList}" var="sys"> <c:forEach items="${sysList}" var="sys">
<option value='${sys[0] }'<c:if test="${sys[0] eq missionState.systemId }">selected="selected"</c:if> >${sys[1] }</option> <option value='${sys[0] }'<c:if test="${sys[0] eq missionState.systemId }">selected="selected"</c:if> >${sys[1] }</option>
</c:forEach> </c:forEach>
</select> </select>
<c:forEach items="${sysList}" var="sys"> <c:forEach items="${sysList}" var="sys">
<c:if test="${sys[0] eq missionState.systemId }">${sys[1] }</c:if> <c:if test="${sys[0] eq missionState.systemId }">${sys[1] }</c:if>
</c:forEach> </c:forEach>
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td bgcolor="#FFFFFF" width="40%"> <td bgcolor="#FFFFFF" width="40%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_ami.text.module_n81i<div style="display: none;">i18n_ami.text.deployedNodeGroup_n81inode_List_id</div></span> <span class="STYLE1">i18n_ami.text.module_n81i<div style="display: none;">i18n_ami.text.deployedNodeGroup_n81inode_List_id</div></span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left"> <div align="left">
<select name="missionParameter1.nodeListId" id="nodeList"> <select name="missionParameter1.nodeListId" id="nodeList">
<option value="0">i18n_ami.message.selectDefault_n81i..</option> <option value="0">i18n_ami.message.selectDefault_n81i..</option>
<option value='10'>i18n_ami.message.selectMK10_n81i</option> <option value='10'>i18n_ami.message.selectMK10_n81i</option>
<option value='11'>i18n_ami.message.selectMK11_n81i</option> <option value='11'>i18n_ami.message.selectMK11_n81i</option>
<option value='12'>i18n_ami.message.selectMK12_n81i</option> <option value='12'>i18n_ami.message.selectMK12_n81i</option>
<option value='13'>i18n_ami.message.selectMK13_n81i</option> <option value='13'>i18n_ami.message.selectMK13_n81i</option>
</select> </select>
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td bgcolor="#FFFFFF" width="40%"> <td bgcolor="#FFFFFF" width="40%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_ami.message.selectUpFile_n81i</span> <span class="STYLE1">i18n_ami.message.selectUpFile_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left"> <div align="left">
<input type="button" value="i18n_ami.message.selectUpFile_n81i" title="i18n_ami.message.selectUpFile_n81i" class="btn3_mouseout" onclick="javascript:uploadFile(this)"/> <input type="button" value="i18n_ami.message.selectUpFile_n81i" title="i18n_ami.message.selectUpFile_n81i" class="btn3_mouseout" onclick="javascript:uploadFile(this)"/>
<input type="file" onchange="javascript:setValue(this.value)" name="upload" id="upFile" style="width: 155px; background-color: #fff; border: solid 1px #77abc4; font-size: 12px; color: #000000" /> <input type="file" onchange="javascript:setValue(this.value)" name="upload" id="upFile" style="width: 155px; background-color: #fff; border: solid 1px #77abc4; font-size: 12px; color: #000000" />
</div> </div>
</td> </td>
</tr> </tr>
<tr><td colspan="2" style="height: 20px;"></td></tr> <tr><td colspan="2" style="height: 20px;"></td></tr>
</table> </table>
</td> </td>
</tr> </tr>
<tr> <tr>
<td height="20" class="td_color"> <td height="20" class="td_color">
<table width="100%" border="0" cellspacing="0" cellpadding="0"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr> <tr>
<td width="92%" align=right> <td width="92%" align=right>
<img onclick="add()" src="<c:url value='/desktop/images/anniu/a_12${userBgColor }.gif'/>" <img onclick="add()" src="<c:url value='/desktop/images/anniu/a_12${userBgColor }.gif'/>"
border="0" align="middle" />&nbsp; border="0" align="middle" />&nbsp;
</td> </td>
<td width="1%" align=right> <td width="1%" align=right>
&nbsp; &nbsp;
</td> </td>
<td align=left> <td align=left>
<img src="<c:url value='/desktop/images/anniu/a_21${userBgColor }.gif'/>" <img src="<c:url value='/desktop/images/anniu/a_21${userBgColor }.gif'/>"
border="0" align="middle" border="0" align="middle"
onclick="goBack()" />&nbsp; onclick="goBack()" />&nbsp;
</td> </td>
</tr> </tr>
</table> </table>
</td> </td>
</tr> </tr>
</table> </table>
</form> </form>
<form action="" name="yhForm2" method="post" <form action="" name="yhForm2" method="post"
<%-- enctype="multipart/form-data"--%> <%-- enctype="multipart/form-data"--%>
<c:if test="${missionState.missionType ne 2}"> <c:if test="${missionState.missionType ne 2}">
style="display:none;" style="display:none;"
</c:if> </c:if>
> >
<input type="hidden" name="missionState.missionType" value="2" /> <input type="hidden" name="missionState.missionType" value="2" />
<table width="80%" align="center" border="0" cellpadding="0" <table width="80%" align="center" border="0" cellpadding="0"
cellspacing="1" class="ta_color" > cellspacing="1" class="ta_color" >
<tr> <tr>
<td height="20" class="td_color"> <td height="20" class="td_color">
<span class="STYLE1">&nbsp;&nbsp;&nbsp;<strong>i18n_ami.text.checkSets_n81i</strong></span> <span class="STYLE1">&nbsp;&nbsp;&nbsp;<strong>i18n_ami.text.checkSets_n81i</strong></span>
</td> </td>
</tr> </tr>
<tr> <tr>
<td width="18%" bgcolor="#ffffff"> <td width="18%" bgcolor="#ffffff">
<table width="100%" align="center" border="0" cellpadding="0" cellspacing="1" style="padding-left: 5px;padding-right: 5px;"> <table width="100%" align="center" border="0" cellpadding="0" cellspacing="1" style="padding-left: 5px;padding-right: 5px;">
<div style="height: 20px; width: 100%; margin: 0px auto; padding: 0px;"></div> <div style="height: 20px; width: 100%; margin: 0px auto; padding: 0px;"></div>
<tr> <tr>
<td bgcolor="#FFFFFF" width="40%"> <td bgcolor="#FFFFFF" width="40%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_ami.text.systemName_n81i</span> <span class="STYLE1">i18n_ami.text.systemName_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left"> <div align="left">
<select name="missionState.systemId" id="systemId2" style="display: none"> <select name="missionState.systemId" id="systemId2" style="display: none">
<option value="0">i18n_ami.message.selectDefault_n81i..</option> <option value="0">i18n_ami.message.selectDefault_n81i..</option>
<c:forEach items="${sysList}" var="sys"> <c:forEach items="${sysList}" var="sys">
<option value='${sys[0] }'<c:if test="${sys[0] eq missionState.systemId }">selected="selected"</c:if> >${sys[1] }</option> <option value='${sys[0] }'<c:if test="${sys[0] eq missionState.systemId }">selected="selected"</c:if> >${sys[1] }</option>
</c:forEach> </c:forEach>
</select> </select>
<c:forEach items="${sysList}" var="sys"> <c:forEach items="${sysList}" var="sys">
<c:if test="${sys[0] eq missionState.systemId }">${sys[1] }</c:if> <c:if test="${sys[0] eq missionState.systemId }">${sys[1] }</c:if>
</c:forEach> </c:forEach>
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td bgcolor="#FFFFFF" width="40%"> <td bgcolor="#FFFFFF" width="40%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_ami.text.filePath_n81i</span> <span class="STYLE1">i18n_ami.text.filePath_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left"> <div align="left">
<%-- <input type="file" name="upload" id="upFile2"/> --%> <%-- <input type="file" name="upload" id="upFile2"/> --%>
<select name="missionParameter2.filePath" id="filePath"> <select name="missionParameter2.filePath" id="filePath">
<option value="0">i18n_ami.message.selectDefault_n81i..</option> <option value="0">i18n_ami.message.selectDefault_n81i..</option>
<option value="main.conf">main.conf</option> <option value="main.conf">main.conf</option>
<option value="cpp.conf">cpp.conf</option> <option value="cpp.conf">cpp.conf</option>
<option value="test.conf">test.conf</option> <option value="test.conf">test.conf</option>
<option value="deploy.conf">deploy.conf</option> <option value="deploy.conf">deploy.conf</option>
<option value="head.conf">head.conf</option> <option value="head.conf">head.conf</option>
</select> </select>
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td bgcolor="#FFFFFF" width="40%"> <td bgcolor="#FFFFFF" width="40%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_ami.text.sets_n81i</span> <span class="STYLE1">i18n_ami.text.sets_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left"> <div align="left">
<select name="sets" id="sets"> <select name="sets" id="sets">
<option value="0" startFlag="" endFlag="" >i18n_ami.message.selectDefault_n81i..</option> <option value="0" startFlag="" endFlag="" >i18n_ami.message.selectDefault_n81i..</option>
<option value="1" startFlag="i18n_ami.message.passback_n81iAA" endFlag="i18n_ami.message.passback_n81iBB" >i18n_ami.message.passback_n81i</option> <option value="1" startFlag="i18n_ami.message.passback_n81iAA" endFlag="i18n_ami.message.passback_n81iBB" >i18n_ami.message.passback_n81i</option>
<option value="2" startFlag="i18n_ami.message.flyer_n81iA" endFlag="i18n_ami.message.flyer_n81iB" >i18n_ami.message.flyer_n81i</option> <option value="2" startFlag="i18n_ami.message.flyer_n81iA" endFlag="i18n_ami.message.flyer_n81iB" >i18n_ami.message.flyer_n81i</option>
<option value="3" startFlag="i18n_ami.message.presetInfo_n81i1" endFlag="i18n_ami.message.presetInfo_n81i2" >i18n_ami.message.presetInfo_n81i</option> <option value="3" startFlag="i18n_ami.message.presetInfo_n81i1" endFlag="i18n_ami.message.presetInfo_n81i2" >i18n_ami.message.presetInfo_n81i</option>
<option value="4" startFlag="i18n_ami.message.testNetwork_n81i1" endFlag="i18n_ami.message.testNetwork_n81i1" >i18n_ami.message.testNetwork_n81i</option> <option value="4" startFlag="i18n_ami.message.testNetwork_n81i1" endFlag="i18n_ami.message.testNetwork_n81i1" >i18n_ami.message.testNetwork_n81i</option>
</select> </select>
<input type="hidden" name="missionParameter2.startFlag" id="startFlag"/> <input type="hidden" name="missionParameter2.startFlag" id="startFlag"/>
<input type="hidden" name="missionParameter2.endFlag" id="endFlag"/> <input type="hidden" name="missionParameter2.endFlag" id="endFlag"/>
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td bgcolor="#FFFFFF" width="40%"> <td bgcolor="#FFFFFF" width="40%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_ami.text.filterFlag_n81i</span> <span class="STYLE1">i18n_ami.text.filterFlag_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<span class="STYLE1"><input type="radio" value="0" name="filterFlag" id="filterFlag" checked="checked">i18n_ami.message.yes_n81i <span class="STYLE1"><input type="radio" value="0" name="filterFlag" id="filterFlag" checked="checked">i18n_ami.message.yes_n81i
&nbsp;&nbsp;&nbsp;<input type="radio"value="1" name="filterFlag" id="filterFlag" >i18n_ami.message.no_n81i &nbsp;&nbsp;&nbsp;<input type="radio"value="1" name="filterFlag" id="filterFlag" >i18n_ami.message.no_n81i
</span> </span>
<%-- <textarea rows="4" cols="40" id="keyFilter" name="missionParameter2.filterKeyword"></textarea>--%> <%-- <textarea rows="4" cols="40" id="keyFilter" name="missionParameter2.filterKeyword"></textarea>--%>
</td> </td>
</tr> </tr>
<tr><td colspan="2" style="height: 20px;"></td></tr> <tr><td colspan="2" style="height: 20px;"></td></tr>
</table> </table>
</td> </td>
</tr> </tr>
<tr> <tr>
<td height="20" class="td_color"> <td height="20" class="td_color">
<table width="100%" border="0" cellspacing="0" cellpadding="0"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr> <tr>
<td width="92%" align=right> <td width="92%" align=right>
<img onclick="add()" src="<c:url value='/desktop/images/anniu/a_12${userBgColor }.gif'/>" <img onclick="add()" src="<c:url value='/desktop/images/anniu/a_12${userBgColor }.gif'/>"
border="0" align="middle" />&nbsp; border="0" align="middle" />&nbsp;
</td> </td>
<td width="1%" align=right> <td width="1%" align=right>
&nbsp; &nbsp;
</td> </td>
<td align=left> <td align=left>
<img src="<c:url value='/desktop/images/anniu/a_21${userBgColor }.gif'/>" <img src="<c:url value='/desktop/images/anniu/a_21${userBgColor }.gif'/>"
border="0" align="middle" border="0" align="middle"
onclick="goBack()" />&nbsp; onclick="goBack()" />&nbsp;
</td> </td>
</tr> </tr>
</table> </table>
</td> </td>
</tr> </tr>
</table> </table>
</form> </form>
</body> </body>
</html> </html>

View File

@@ -1,328 +1,328 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%> <%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib prefix="fn" uri="/jstl/fn"%> <%@ taglib prefix="fn" uri="/jstl/fn"%>
<%@ taglib prefix="fmt" uri="/jstl/fmt"%> <%@ taglib prefix="fmt" uri="/jstl/fmt"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
%> %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_emi1.message.title_n81i</title> <title>i18n_emi1.message.title_n81i</title>
<link href="<c:url value='/css/styles.css'/>" rel="stylesheet" <link href="<c:url value='/css/styles.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<link href="<c:url value='/desktop/css/index${userBgColor }.css'/>" rel="stylesheet" <link href="<c:url value='/desktop/css/index${userBgColor }.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<script src="<c:url value='/js/onmouse${userBgColor }.js'/>" type="text/javascript"></script> <script src="<c:url value='/js/onmouse${userBgColor }.js'/>" type="text/javascript"></script>
<link href="<c:url value='/css/k.css'/>" rel="stylesheet" type="text/css" /> <link href="<c:url value='/css/k.css'/>" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/datepicker/WdatePicker.js'/>"></script> src="<c:url value='/js/datepicker/WdatePicker.js'/>"></script>
<script type="text/javascript" <script type="text/javascript"
src="${pageContext.request.contextPath }/js/jquery.js"></script> src="${pageContext.request.contextPath }/js/jquery.js"></script>
</head> </head>
<script type="text/javascript"> <script type="text/javascript">
function goBack(){ function goBack(){
document.yhForm.action="<c:url value='/mission/simpleMission.do?action=select'/>"; document.yhForm.action="<c:url value='/mission/simpleMission.do?action=select'/>";
document.yhForm.submit(); document.yhForm.submit();
} }
</script> </script>
<body> <body>
<form action="" name="yhForm" method="post"> <form action="" name="yhForm" method="post">
<input type="hidden" id="missionType" name="missionState.missionType" value="${missionState.missionType }" /> <input type="hidden" id="missionType" name="missionState.missionType" value="${missionState.missionType }" />
<%-- <input type="hidden" name="missionState.missionType" value="1" />--%> <%-- <input type="hidden" name="missionState.missionType" value="1" />--%>
<c:forEach items="${list }" var="obs"> <c:forEach items="${list }" var="obs">
<table width="80%" align="center" border="0" cellpadding="0" <table width="80%" align="center" border="0" cellpadding="0"
cellspacing="1" class="ta_color" > cellspacing="1" class="ta_color" >
<tr> <tr>
<td height="20" colspan="4" class="td_color"> <td height="20" colspan="4" class="td_color">
<span class="STYLE1">&nbsp;&nbsp;&nbsp;<strong>i18n_emi1.text.title_n81i</strong></span> <span class="STYLE1">&nbsp;&nbsp;&nbsp;<strong>i18n_emi1.text.title_n81i</strong></span>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="td_color" width="20%"> <td class="td_color" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_emi1.text.missionName_n81i</span> <span class="STYLE1">i18n_emi1.text.missionName_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left" class="STYLE1"> <div align="left" class="STYLE1">
${obs[1] } ${obs[1] }
</div> </div>
</td> </td>
<td class="td_color" width="20%"> <td class="td_color" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_emi1.text.createTime_n81i</span> <span class="STYLE1">i18n_emi1.text.createTime_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left" class="STYLE1"> <div align="left" class="STYLE1">
<fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss" value="${obs[2]}" /> <fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss" value="${obs[2]}" />
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="td_color" width="20%"> <td class="td_color" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_emi1.text.missionState_n81i</span> <span class="STYLE1">i18n_emi1.text.missionState_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left" class="STYLE1"> <div align="left" class="STYLE1">
${obs[4] } ${obs[4] }
</div> </div>
</td> </td>
<td class="td_color" width="20%"> <td class="td_color" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_emi1.text.viewLevel_n81i</span> <span class="STYLE1">i18n_emi1.text.viewLevel_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left" class="STYLE1"> <div align="left" class="STYLE1">
<c:forEach items="${vlList }" var="vl" > <c:forEach items="${vlList }" var="vl" >
<c:if test="${vl[0] eq obs[5] }">${vl[1] }</c:if> <c:if test="${vl[0] eq obs[5] }">${vl[1] }</c:if>
</c:forEach> </c:forEach>
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="td_color" width="20%"> <td class="td_color" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_emi1.text.addUser_n81i</span> <span class="STYLE1">i18n_emi1.text.addUser_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left" class="STYLE1"> <div align="left" class="STYLE1">
${obs[8] } ${obs[8] }
</div> </div>
</td> </td>
<td class="td_color" width="20%"> <td class="td_color" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_emi1.text.userGroup_n81i</span> <span class="STYLE1">i18n_emi1.text.userGroup_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left" class="STYLE1"> <div align="left" class="STYLE1">
${obs[10] } ${obs[10] }
</div> </div>
</td> </td>
</tr> </tr>
<tr > <tr >
<td class="td_color" width="20%"> <td class="td_color" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_emi1.text.nodeGroup_n81i</span> <span class="STYLE1">i18n_emi1.text.nodeGroup_n81i</span>
</div> </div>
</td> </td>
<td height="28" colspan="3" bgcolor="#FFFFFF"> <td height="28" colspan="3" bgcolor="#FFFFFF">
<div align="left" class="STYLE1"> <div align="left" class="STYLE1">
${obs[14] } ${obs[14] }
</div> </div>
</td> </td>
</tr> </tr>
<tr > <tr >
<td class="td_color" width="20%"> <td class="td_color" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_emi1.text.targetPath_n81i</span> <span class="STYLE1">i18n_emi1.text.targetPath_n81i</span>
</div> </div>
</td> </td>
<td height="28"colspan='3' bgcolor="#FFFFFF"> <td height="28"colspan='3' bgcolor="#FFFFFF">
<div align="left" class="STYLE1"> <div align="left" class="STYLE1">
${obs[15] } ${obs[15] }
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="td_color" width="20%"> <td class="td_color" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_emi1.text.missionComments_n81i</span> <span class="STYLE1">i18n_emi1.text.missionComments_n81i</span>
</div> </div>
</td> </td>
<td height="28" colspan="3" bgcolor="#FFFFFF"> <td height="28" colspan="3" bgcolor="#FFFFFF">
<div align="left" class="STYLE1"> <div align="left" class="STYLE1">
${obs[16] } ${obs[16] }
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td height="20" colspan="4" class="td_color"> <td height="20" colspan="4" class="td_color">
<table width="100%" border="0" cellspacing="0" cellpadding="0"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr> <tr>
<td width="88%" align=right> <td width="88%" align=right>
&nbsp; &nbsp;
</td> </td>
<td align=left width="4%"> <td align=left width="4%">
<img src="<c:url value='/desktop/images/anniu/a_40${userBgColor }.gif'/>" <img src="<c:url value='/desktop/images/anniu/a_40${userBgColor }.gif'/>"
border="0" align="middle" border="0" align="middle"
onclick="goBack()" />&nbsp; onclick="goBack()" />&nbsp;
</td> </td>
<td align=left> <td align=left>
<img src="<c:url value='/desktop/images/anniu/a_21${userBgColor }.gif'/>" <img src="<c:url value='/desktop/images/anniu/a_21${userBgColor }.gif'/>"
border="0" align="middle" border="0" align="middle"
onclick="goBack()" />&nbsp; onclick="goBack()" />&nbsp;
</td> </td>
</tr> </tr>
</table> </table>
</td> </td>
</tr> </tr>
</table> </table>
</c:forEach> </c:forEach>
<div style="height:22px;">&nbsp;</div> <div style="height:22px;">&nbsp;</div>
<table width="80%" align="center" border="0" cellpadding="0" <table width="80%" align="center" border="0" cellpadding="0"
cellspacing="1" class="ta_color" > cellspacing="1" class="ta_color" >
<tr> <tr>
<td class="td_color"> <td class="td_color">
<div align="center"> <div align="center">
<span class="STYLE1">i18n_emi1.text.nodeIp_n81i</span> <span class="STYLE1">i18n_emi1.text.nodeIp_n81i</span>
</div> </div>
</td> </td>
<td class="td_color"> <td class="td_color">
<div align="center"> <div align="center">
<span class="STYLE1">i18n_emi1.text.state_n81i</span> <span class="STYLE1">i18n_emi1.text.state_n81i</span>
</div> </div>
</td> </td>
<td class="td_color"> <td class="td_color">
<div align="center"> <div align="center">
<span class="STYLE1">i18n_emi1.text.returnValue_n81i</span> <span class="STYLE1">i18n_emi1.text.returnValue_n81i</span>
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td bgcolor="#FFFFFF" class="STYLE1"> <td bgcolor="#FFFFFF" class="STYLE1">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1">10.4.20.100</span> <span class="STYLE1">10.4.20.100</span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF" class="STYLE1"> <td bgcolor="#FFFFFF" class="STYLE1">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1">i18n_emi1.text.success_n81i</span> <span class="STYLE1">i18n_emi1.text.success_n81i</span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF" class="STYLE1"> <td bgcolor="#FFFFFF" class="STYLE1">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1">i18n_emi1.text.testA_n81i</span> <span class="STYLE1">i18n_emi1.text.testA_n81i</span>
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td bgcolor="#FFFFFF" class="STYLE1"> <td bgcolor="#FFFFFF" class="STYLE1">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1">10.4.20.102</span> <span class="STYLE1">10.4.20.102</span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF" class="STYLE1"> <td bgcolor="#FFFFFF" class="STYLE1">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1">i18n_emi1.text.success_n81i</span> <span class="STYLE1">i18n_emi1.text.success_n81i</span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF" class="STYLE1"> <td bgcolor="#FFFFFF" class="STYLE1">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1">i18n_emi1.text.testA_n81i</span> <span class="STYLE1">i18n_emi1.text.testA_n81i</span>
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td bgcolor="#FFFFFF" class="STYLE1"> <td bgcolor="#FFFFFF" class="STYLE1">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1">10.4.20.103</span> <span class="STYLE1">10.4.20.103</span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF" class="STYLE1"> <td bgcolor="#FFFFFF" class="STYLE1">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1">i18n_emi1.text.success_n81i</span> <span class="STYLE1">i18n_emi1.text.success_n81i</span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF" class="STYLE1"> <td bgcolor="#FFFFFF" class="STYLE1">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1">i18n_emi1.text.testA_n81i</span> <span class="STYLE1">i18n_emi1.text.testA_n81i</span>
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td bgcolor="#FFFFFF" class="STYLE1"> <td bgcolor="#FFFFFF" class="STYLE1">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1">10.4.20.105</span> <span class="STYLE1">10.4.20.105</span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF" class="STYLE1"> <td bgcolor="#FFFFFF" class="STYLE1">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1">i18n_emi1.text.success_n81i</span> <span class="STYLE1">i18n_emi1.text.success_n81i</span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF" class="STYLE1"> <td bgcolor="#FFFFFF" class="STYLE1">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1">i18n_emi1.text.testA_n81i</span> <span class="STYLE1">i18n_emi1.text.testA_n81i</span>
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td bgcolor="#FFFFFF" class="STYLE1"> <td bgcolor="#FFFFFF" class="STYLE1">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1">10.4.20.106</span> <span class="STYLE1">10.4.20.106</span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF" class="STYLE1"> <td bgcolor="#FFFFFF" class="STYLE1">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1">i18n_emi1.text.success_n81i</span> <span class="STYLE1">i18n_emi1.text.success_n81i</span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF" class="STYLE1"> <td bgcolor="#FFFFFF" class="STYLE1">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1">i18n_emi1.text.testA_n81i</span> <span class="STYLE1">i18n_emi1.text.testA_n81i</span>
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td bgcolor="#FFFFFF" class="STYLE1"> <td bgcolor="#FFFFFF" class="STYLE1">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1">10.4.20.107</span> <span class="STYLE1">10.4.20.107</span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF" class="STYLE1"> <td bgcolor="#FFFFFF" class="STYLE1">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1">i18n_emi1.text.faild_n81i</span> <span class="STYLE1">i18n_emi1.text.faild_n81i</span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF" class="STYLE1"> <td bgcolor="#FFFFFF" class="STYLE1">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1">i18n_emi1.text.testA_n81i</span> <span class="STYLE1">i18n_emi1.text.testA_n81i</span>
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td bgcolor="#FFFFFF" class="STYLE1"> <td bgcolor="#FFFFFF" class="STYLE1">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1">10.4.20.108</span> <span class="STYLE1">10.4.20.108</span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF" class="STYLE1"> <td bgcolor="#FFFFFF" class="STYLE1">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1">i18n_emi1.text.faild_n81i</span> <span class="STYLE1">i18n_emi1.text.faild_n81i</span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF" class="STYLE1"> <td bgcolor="#FFFFFF" class="STYLE1">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1">i18n_emi1.text.testB_n81i</span> <span class="STYLE1">i18n_emi1.text.testB_n81i</span>
</div> </div>
</td> </td>
</tr> </tr>
</table> </table>
<div style="height:22px;">&nbsp;</div> <div style="height:22px;">&nbsp;</div>
</form> </form>
<form action="" name="yhForm2" method="post" <form action="" name="yhForm2" method="post"
<c:if test="${missionState.missionType ne 2}"> <c:if test="${missionState.missionType ne 2}">
style="display:none;" style="display:none;"
</c:if> </c:if>
> >
<input type="hidden" name="missionState.missionType" value="${missionState.missionType }" /> <input type="hidden" name="missionState.missionType" value="${missionState.missionType }" />
</form> </form>
</body> </body>
</html> </html>

View File

@@ -1,412 +1,412 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%> <%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib prefix="fn" uri="/jstl/fn"%> <%@ taglib prefix="fn" uri="/jstl/fn"%>
<%@ taglib prefix="fmt" uri="/jstl/fmt"%> <%@ taglib prefix="fmt" uri="/jstl/fmt"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
%> %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_emi2.message.title_n81i</title> <title>i18n_emi2.message.title_n81i</title>
<link href="<c:url value='/css/styles.css'/>" rel="stylesheet" <link href="<c:url value='/css/styles.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<link href="<c:url value='/desktop/css/index${userBgColor }.css'/>" rel="stylesheet" <link href="<c:url value='/desktop/css/index${userBgColor }.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<script src="<c:url value='/js/onmouse${userBgColor }.js'/>" type="text/javascript"></script> <script src="<c:url value='/js/onmouse${userBgColor }.js'/>" type="text/javascript"></script>
<link href="<c:url value='/css/k.css'/>" rel="stylesheet" type="text/css" /> <link href="<c:url value='/css/k.css'/>" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/datepicker/WdatePicker.js'/>"></script> src="<c:url value='/js/datepicker/WdatePicker.js'/>"></script>
<script type="text/javascript" <script type="text/javascript"
src="${pageContext.request.contextPath }/js/jquery.js"></script> src="${pageContext.request.contextPath }/js/jquery.js"></script>
</head> </head>
<script type="text/javascript"> <script type="text/javascript">
function goBack(){ function goBack(){
document.yhForm.action="<c:url value='/mission/simpleMission.do?action=select'/>"; document.yhForm.action="<c:url value='/mission/simpleMission.do?action=select'/>";
document.yhForm.submit(); document.yhForm.submit();
} }
</script> </script>
<body> <body>
<form action="" name="yhForm" method="post"> <form action="" name="yhForm" method="post">
<input type="hidden" id="missionType" name="missionState.missionType" value="${missionState.missionType }" /> <input type="hidden" id="missionType" name="missionState.missionType" value="${missionState.missionType }" />
<%-- <input type="hidden" name="missionState.missionType" value="1" />--%> <%-- <input type="hidden" name="missionState.missionType" value="1" />--%>
<c:forEach items="${list }" var="obs"> <c:forEach items="${list }" var="obs">
<table width="80%" align="center" border="0" cellpadding="0" <table width="80%" align="center" border="0" cellpadding="0"
cellspacing="1" class="ta_color" > cellspacing="1" class="ta_color" >
<tr> <tr>
<td height="20" colspan="4" class="td_color"> <td height="20" colspan="4" class="td_color">
<span class="STYLE1">&nbsp;&nbsp;&nbsp;<strong>i18n_emi2.text.title_n81i</strong></span> <span class="STYLE1">&nbsp;&nbsp;&nbsp;<strong>i18n_emi2.text.title_n81i</strong></span>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="td_color" width="20%"> <td class="td_color" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_emi2.text.missionName_n81i</span> <span class="STYLE1">i18n_emi2.text.missionName_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left" class="STYLE1"> <div align="left" class="STYLE1">
${obs[1] } ${obs[1] }
</div> </div>
</td> </td>
<td class="td_color" width="20%"> <td class="td_color" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_emi2.text.createTime_n81i</span> <span class="STYLE1">i18n_emi2.text.createTime_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left" class="STYLE1"> <div align="left" class="STYLE1">
<fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss" value="${obs[2]}" /> <fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss" value="${obs[2]}" />
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="td_color" width="20%"> <td class="td_color" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_emi2.text.missionState_n81i</span> <span class="STYLE1">i18n_emi2.text.missionState_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left" class="STYLE1"> <div align="left" class="STYLE1">
${obs[4] } ${obs[4] }
</div> </div>
</td> </td>
<td class="td_color" width="20%"> <td class="td_color" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_emi2.text.viewLevel_n81i</span> <span class="STYLE1">i18n_emi2.text.viewLevel_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left" class="STYLE1"> <div align="left" class="STYLE1">
<c:forEach items="${vlList }" var="vl" > <c:forEach items="${vlList }" var="vl" >
<c:if test="${vl[0] eq obs[5] }">${vl[1] }</c:if> <c:if test="${vl[0] eq obs[5] }">${vl[1] }</c:if>
</c:forEach> </c:forEach>
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="td_color" width="20%"> <td class="td_color" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_emi2.text.addUser_n81i</span> <span class="STYLE1">i18n_emi2.text.addUser_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left" class="STYLE1"> <div align="left" class="STYLE1">
${obs[8] } ${obs[8] }
</div> </div>
</td> </td>
<td class="td_color" width="20%"> <td class="td_color" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_emi2.text.userGroup_n81i</span> <span class="STYLE1">i18n_emi2.text.userGroup_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left" class="STYLE1"> <div align="left" class="STYLE1">
${obs[10] } ${obs[10] }
</div> </div>
</td> </td>
</tr> </tr>
<tr > <tr >
<td class="td_color" width="20%"> <td class="td_color" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_emi2.text.nodeGroup_n81i</span> <span class="STYLE1">i18n_emi2.text.nodeGroup_n81i</span>
</div> </div>
</td> </td>
<td height="28" colspan="3" bgcolor="#FFFFFF"> <td height="28" colspan="3" bgcolor="#FFFFFF">
<div align="left" class="STYLE1"> <div align="left" class="STYLE1">
${obs[14] } ${obs[14] }
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="td_color" width="20%"> <td class="td_color" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_emi2.text.isFilter_n81i</span> <span class="STYLE1">i18n_emi2.text.isFilter_n81i</span>
</div> </div>
</td> </td>
<td height="28" colspan="3" bgcolor="#FFFFFF"> <td height="28" colspan="3" bgcolor="#FFFFFF">
<div align="left" class="STYLE1"> <div align="left" class="STYLE1">
${obs[15] } ${obs[15] }
</div> </div>
</td> </td>
</tr> </tr>
<tr > <tr >
<td class="td_color" width="20%"> <td class="td_color" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_emi2.text.filterValue_n81i</span> <span class="STYLE1">i18n_emi2.text.filterValue_n81i</span>
</div> </div>
</td> </td>
<td height="28" colspan="3" bgcolor="#FFFFFF"> <td height="28" colspan="3" bgcolor="#FFFFFF">
<div align="left" class="STYLE1"> <div align="left" class="STYLE1">
<textarea rows="4" cols="50" disabled="true" s readonly="readonly">${obs[16] }</textarea> <textarea rows="4" cols="50" disabled="true" s readonly="readonly">${obs[16] }</textarea>
</div> </div>
</td> </td>
</tr> </tr>
<tr > <tr >
<td class="td_color" width="20%"> <td class="td_color" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_emi2.text.missionComments_n81i</span> <span class="STYLE1">i18n_emi2.text.missionComments_n81i</span>
</div> </div>
</td> </td>
<td height="28" colspan="3" bgcolor="#FFFFFF"> <td height="28" colspan="3" bgcolor="#FFFFFF">
<div align="left" class="STYLE1"> <div align="left" class="STYLE1">
${obs[17] } ${obs[17] }
</div> </div>
</td> </td>
</tr> </tr>
<c:if test="${obs[17] eq 1}"> <c:if test="${obs[17] eq 1}">
<tr > <tr >
<td class="td_color" width="20%"> <td class="td_color" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_emi2.text.startTime_n81i</span> <span class="STYLE1">i18n_emi2.text.startTime_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left" class="STYLE1"> <div align="left" class="STYLE1">
<fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss" value="${obs[18]}" /> <fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss" value="${obs[18]}" />
</div> </div>
</td> </td>
<td class="td_color" width="20%"> <td class="td_color" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_emi2.text.endTime_n81i</span> <span class="STYLE1">i18n_emi2.text.endTime_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left" class="STYLE1"> <div align="left" class="STYLE1">
<fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss" value="${obs[19]}" /> <fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss" value="${obs[19]}" />
</div> </div>
</td> </td>
</tr> </tr>
<tr > <tr >
<td class="td_color" width="20%"> <td class="td_color" width="20%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_emi2.text.cycle_n81i</span> <span class="STYLE1">i18n_emi2.text.cycle_n81i</span>
</div> </div>
</td> </td>
<td height="28" colspan="3" bgcolor="#FFFFFF"> <td height="28" colspan="3" bgcolor="#FFFFFF">
<div align="left" class="STYLE1"> <div align="left" class="STYLE1">
${obs[20]} ${obs[20]}
</div> </div>
</td> </td>
</tr> </tr>
</c:if> </c:if>
<tr> <tr>
<td height="20" colspan="4" class="td_color"> <td height="20" colspan="4" class="td_color">
<table width="100%" border="0" cellspacing="0" cellpadding="0"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr> <tr>
<td width="88%" align=right> <td width="88%" align=right>
&nbsp; &nbsp;
</td> </td>
<td align=left width="4%"> <td align=left width="4%">
<img src="<c:url value='/desktop/images/anniu/a_40${userBgColor }.gif'/>" <img src="<c:url value='/desktop/images/anniu/a_40${userBgColor }.gif'/>"
border="0" align="middle" border="0" align="middle"
onclick="goBack()" />&nbsp; onclick="goBack()" />&nbsp;
</td> </td>
<td align=left> <td align=left>
<img src="<c:url value='/desktop/images/anniu/a_21${userBgColor }.gif'/>" <img src="<c:url value='/desktop/images/anniu/a_21${userBgColor }.gif'/>"
border="0" align="middle" border="0" align="middle"
onclick="goBack()" />&nbsp; onclick="goBack()" />&nbsp;
</td> </td>
</tr> </tr>
</table> </table>
</td> </td>
</tr> </tr>
</table> </table>
</c:forEach> </c:forEach>
<div style="height:22px;" mt='2'>&nbsp;</div> <div style="height:22px;" mt='2'>&nbsp;</div>
<table width="80%" align="center" border="0" cellpadding="0" <table width="80%" align="center" border="0" cellpadding="0"
cellspacing="1" class="ta_color" > cellspacing="1" class="ta_color" >
<tr> <tr>
<td class="td_color"> <td class="td_color">
<div align="center"> <div align="center">
<span class="STYLE1">i18n_emi2.text.sets_n81i</span> <span class="STYLE1">i18n_emi2.text.sets_n81i</span>
</div> </div>
</td> </td>
<td class="td_color"> <td class="td_color">
<div align="center"> <div align="center">
<span class="STYLE1">i18n_emi2.text.nodeNum_n81i</span> <span class="STYLE1">i18n_emi2.text.nodeNum_n81i</span>
</div> </div>
</td> </td>
<td class="td_color"> <td class="td_color">
<div align="center"> <div align="center">
<span class="STYLE1">i18n_emi2.text.nodeList_n81i</span> <span class="STYLE1">i18n_emi2.text.nodeList_n81i</span>
</div> </div>
</td> </td>
<td class="td_color"> <td class="td_color">
<div align="center"> <div align="center">
<span class="STYLE1">i18n_emi2.text.exportNode_n81i</span> <span class="STYLE1">i18n_emi2.text.exportNode_n81i</span>
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td bgcolor="#FFFFFF" class="STYLE1"> <td bgcolor="#FFFFFF" class="STYLE1">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1">i18n_emi2.text.context1_n81i</span> <span class="STYLE1">i18n_emi2.text.context1_n81i</span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF" class="STYLE1"> <td bgcolor="#FFFFFF" class="STYLE1">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1">2</span> <span class="STYLE1">2</span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF" class="STYLE1"> <td bgcolor="#FFFFFF" class="STYLE1">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1" mt=1></span> <span class="STYLE1" mt=1></span>
<span class="STYLE1" mt=2>i18n_emi2.text.nodes_n81i1:10.2.3.1<br/>i18n_emi2.text.nodes_n81i2:10.2.3.2<br>i18n_emi2.text.nodes_n81i3:10.2.3.3</span> <span class="STYLE1" mt=2>i18n_emi2.text.nodes_n81i1:10.2.3.1<br/>i18n_emi2.text.nodes_n81i2:10.2.3.2<br>i18n_emi2.text.nodes_n81i3:10.2.3.3</span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF" class="STYLE1"> <td bgcolor="#FFFFFF" class="STYLE1">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1" mt=1></span> <span class="STYLE1" mt=1></span>
<span class="STYLE1" mt=2> <span class="STYLE1" mt=2>
<img src="<c:url value='/desktop/images/anniu/a_41${userBgColor }.gif'/>" <img src="<c:url value='/desktop/images/anniu/a_41${userBgColor }.gif'/>"
border="0" align="middle" border="0" align="middle"
onclick="goBack()" />&nbsp; onclick="goBack()" />&nbsp;
</span> </span>
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td bgcolor="#FFFFFF" class="STYLE1"> <td bgcolor="#FFFFFF" class="STYLE1">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1">i18n_emi2.text.context1_n81i</span> <span class="STYLE1">i18n_emi2.text.context1_n81i</span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF" class="STYLE1"> <td bgcolor="#FFFFFF" class="STYLE1">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1">2</span> <span class="STYLE1">2</span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF" class="STYLE1"> <td bgcolor="#FFFFFF" class="STYLE1">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1" mt=1></span> <span class="STYLE1" mt=1></span>
<span class="STYLE1" mt=2>i18n_emi2.text.nodes_n81i1:10.2.3.1<br/>i18n_emi2.text.nodes_n81i2:10.2.3.2<br>i18n_emi2.text.nodes_n81i3:10.2.3.3</span> <span class="STYLE1" mt=2>i18n_emi2.text.nodes_n81i1:10.2.3.1<br/>i18n_emi2.text.nodes_n81i2:10.2.3.2<br>i18n_emi2.text.nodes_n81i3:10.2.3.3</span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF" class="STYLE1"> <td bgcolor="#FFFFFF" class="STYLE1">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1" mt=1></span> <span class="STYLE1" mt=1></span>
<span class="STYLE1" mt=2><img src="<c:url value='/desktop/images/anniu/a_41${userBgColor }.gif'/>" <span class="STYLE1" mt=2><img src="<c:url value='/desktop/images/anniu/a_41${userBgColor }.gif'/>"
border="0" align="middle" border="0" align="middle"
onclick="goBack()" />&nbsp;</span> onclick="goBack()" />&nbsp;</span>
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="td_color"> <td class="td_color">
<div align="center"> <div align="center">
<span class="STYLE1">i18n_emi2.text.faildCause_n81i</span> <span class="STYLE1">i18n_emi2.text.faildCause_n81i</span>
</div> </div>
</td> </td>
<td class="td_color"> <td class="td_color">
<div align="center"> <div align="center">
<span class="STYLE1">i18n_emi2.text.nodeNum_n81i</span> <span class="STYLE1">i18n_emi2.text.nodeNum_n81i</span>
</div> </div>
</td> </td>
<td class="td_color"> <td class="td_color">
<div align="center"> <div align="center">
<span class="STYLE1">i18n_emi2.text.nodeList_n81i</span> <span class="STYLE1">i18n_emi2.text.nodeList_n81i</span>
</div> </div>
</td> </td>
<td class="td_color"> <td class="td_color">
<div align="center"> <div align="center">
<span class="STYLE1">i18n_emi2.text.exportNode_n81i</span> <span class="STYLE1">i18n_emi2.text.exportNode_n81i</span>
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td bgcolor="#FFFFFF" class="STYLE1"> <td bgcolor="#FFFFFF" class="STYLE1">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1">i18n_emi2.text.unkownException_n81i</span> <span class="STYLE1">i18n_emi2.text.unkownException_n81i</span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF" class="STYLE1"> <td bgcolor="#FFFFFF" class="STYLE1">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1">3</span> <span class="STYLE1">3</span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF" class="STYLE1"> <td bgcolor="#FFFFFF" class="STYLE1">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1">i18n_emi2.text.nodes_n81i4:10.4.20.106<br>i18n_emi2.text.nodes_n81i5:10.4.20.109</span> <span class="STYLE1">i18n_emi2.text.nodes_n81i4:10.4.20.106<br>i18n_emi2.text.nodes_n81i5:10.4.20.109</span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF" class="STYLE1"> <td bgcolor="#FFFFFF" class="STYLE1">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1"><img src="<c:url value='/desktop/images/anniu/a_41${userBgColor }.gif'/>" <span class="STYLE1"><img src="<c:url value='/desktop/images/anniu/a_41${userBgColor }.gif'/>"
border="0" align="middle" border="0" align="middle"
onclick="goBack()" />&nbsp;</span> onclick="goBack()" />&nbsp;</span>
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td bgcolor="#FFFFFF" class="STYLE1"> <td bgcolor="#FFFFFF" class="STYLE1">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1">i18n_emi2.text.runtimeError_n81i</span> <span class="STYLE1">i18n_emi2.text.runtimeError_n81i</span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF" class="STYLE1"> <td bgcolor="#FFFFFF" class="STYLE1">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1">2</span> <span class="STYLE1">2</span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF" class="STYLE1"> <td bgcolor="#FFFFFF" class="STYLE1">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1">i18n_emi2.text.nodes_n81i4:10.4.20.106<br>i18n_emi2.text.nodes_n81i5:10.4.20.109</span> <span class="STYLE1">i18n_emi2.text.nodes_n81i4:10.4.20.106<br>i18n_emi2.text.nodes_n81i5:10.4.20.109</span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF" class="STYLE1"> <td bgcolor="#FFFFFF" class="STYLE1">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1"><img src="<c:url value='/desktop/images/anniu/a_41${userBgColor }.gif'/>" <span class="STYLE1"><img src="<c:url value='/desktop/images/anniu/a_41${userBgColor }.gif'/>"
border="0" align="middle" border="0" align="middle"
onclick="goBack()" />&nbsp;</span> onclick="goBack()" />&nbsp;</span>
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td bgcolor="#FFFFFF" class="STYLE1"> <td bgcolor="#FFFFFF" class="STYLE1">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1">i18n_emi2.text.connectNodeFaild_n81i</span> <span class="STYLE1">i18n_emi2.text.connectNodeFaild_n81i</span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF" class="STYLE1"> <td bgcolor="#FFFFFF" class="STYLE1">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1">2</span> <span class="STYLE1">2</span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF" class="STYLE1"> <td bgcolor="#FFFFFF" class="STYLE1">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1">i18n_emi2.text.nodes_n81i4:10.4.20.106<br>i18n_emi2.text.nodes_n81i5:10.4.20.109</span> <span class="STYLE1">i18n_emi2.text.nodes_n81i4:10.4.20.106<br>i18n_emi2.text.nodes_n81i5:10.4.20.109</span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF" class="STYLE1"> <td bgcolor="#FFFFFF" class="STYLE1">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1"><img src="<c:url value='/desktop/images/anniu/a_41${userBgColor }.gif'/>" <span class="STYLE1"><img src="<c:url value='/desktop/images/anniu/a_41${userBgColor }.gif'/>"
border="0" align="middle" border="0" align="middle"
onclick="goBack()" />&nbsp;</span> onclick="goBack()" />&nbsp;</span>
</div> </div>
</td> </td>
</tr> </tr>
</table> </table>
<div style="height:22px;">&nbsp;</div> <div style="height:22px;">&nbsp;</div>
</form> </form>
<form action="" name="yhForm2" method="post" <form action="" name="yhForm2" method="post"
<c:if test="${missionState.missionType ne 2}"> <c:if test="${missionState.missionType ne 2}">
style="display:none;" style="display:none;"
</c:if> </c:if>
> >
<input type="hidden" name="missionState.missionType" value="${missionState.missionType }" /> <input type="hidden" name="missionState.missionType" value="${missionState.missionType }" />
</form> </form>
</body> </body>
</html> </html>

View File

@@ -1,376 +1,376 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="/jstl/c"%> <%@ taglib prefix="c" uri="/jstl/c"%>
<%@ taglib prefix="fn" uri="/jstl/fn"%> <%@ taglib prefix="fn" uri="/jstl/fn"%>
<%@ taglib prefix="fmt" uri="/jstl/fmt"%> <%@ taglib prefix="fmt" uri="/jstl/fmt"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
%> %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_msil.message.title_n81i</title> <title>i18n_msil.message.title_n81i</title>
<link href="<c:url value='/desktop/css/index${userBgColor }.css'/>" rel="stylesheet" <link href="<c:url value='/desktop/css/index${userBgColor }.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<script src="<c:url value='/js/onmouse${userBgColor }.js'/>" type="text/javascript"></script> <script src="<c:url value='/js/onmouse${userBgColor }.js'/>" type="text/javascript"></script>
<link href="<c:url value='/css/styles.css'/>" rel="stylesheet" <link href="<c:url value='/css/styles.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<link href="<c:url value='/css/suggest.css'/>" rel="stylesheet" <link href="<c:url value='/css/suggest.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<script language="javascript" type="text/javascript"src="<c:url value='/js/datepicker/WdatePicker.js'/>"></script> <script language="javascript" type="text/javascript"src="<c:url value='/js/datepicker/WdatePicker.js'/>"></script>
<script type="text/javascript" src="<%=path%>/templates/js/object.js"></script> <script type="text/javascript" src="<%=path%>/templates/js/object.js"></script>
<script type="text/javascript" src="<%=path%>/templates/js/common.js"></script> <script type="text/javascript" src="<%=path%>/templates/js/common.js"></script>
<script type="text/javascript" src="<c:url value='/js/jquery.js' />"></script> <script type="text/javascript" src="<c:url value='/js/jquery.js' />"></script>
<script type="text/javascript" src="<c:url value='/js/jquery.suggest.js' />"></script> <script type="text/javascript" src="<c:url value='/js/jquery.suggest.js' />"></script>
<script type="text/javascript" src="<c:url value='/js/unicodes.js' />"></script> <script type="text/javascript" src="<c:url value='/js/unicodes.js' />"></script>
</head> </head>
<script language="javascript" type="text/javascript"> <script language="javascript" type="text/javascript">
var msg = '${MSG}'; var msg = '${MSG}';
if(msg=='1'){ if(msg=='1'){
alert("i18n_msil.message.success_n81i"); alert("i18n_msil.message.success_n81i");
}else if(msg=='2'){ }else if(msg=='2'){
alert("i18n_msil.message.faild_n81i"); alert("i18n_msil.message.faild_n81i");
} }
function addRecord(){ function addRecord(){
document.form1.action = "<%=path%>/mission/simpleMission.do?action=add"; document.form1.action = "<%=path%>/mission/simpleMission.do?action=add";
document.form1.submit(); document.form1.submit();
} }
function viewRecord(mid){ function viewRecord(mid){
document.getElementById("mid").value=mid; document.getElementById("mid").value=mid;
document.form1.action = "<%=path%>/mission/simpleMission.do?action=view"; document.form1.action = "<%=path%>/mission/simpleMission.do?action=view";
document.form1.submit(); document.form1.submit();
} }
function changeState(mid){ function changeState(mid){
document.getElementById("mid").value=mid; document.getElementById("mid").value=mid;
document.form1.action = "<%=path%>/mission/simpleMission.do?action=changeState"; document.form1.action = "<%=path%>/mission/simpleMission.do?action=changeState";
document.form1.submit(); document.form1.submit();
} }
function qry(){ function qry(){
document.form1.action = "<%=path%>/mission/simpleMission.do?action=select"; document.form1.action = "<%=path%>/mission/simpleMission.do?action=select";
document.form1.submit(); document.form1.submit();
} }
jQuery(function(){ jQuery(function(){
$("#systemId").data("nodes",$("#nodeId").clone()); $("#systemId").data("nodes",$("#nodeId").clone());
$("#systemId").bind("change",function(){ $("#systemId").bind("change",function(){
$("#nodeId option[systems]").remove(); $("#nodeId option[systems]").remove();
if($(this).val()=="0"){ if($(this).val()=="0"){
$("#systemId").data("nodes").find("option[systems]").clone().appendTo("#nodeId"); $("#systemId").data("nodes").find("option[systems]").clone().appendTo("#nodeId");
$("#nodeId").val(0); $("#nodeId").val(0);
}else{ }else{
$("#systemId").data("nodes").find("option[systems='"+$("#systemId").val()+"']").clone().appendTo("#nodeId"); $("#systemId").data("nodes").find("option[systems='"+$("#systemId").val()+"']").clone().appendTo("#nodeId");
$("#nodeId").val(0); $("#nodeId").val(0);
} }
}); });
if($("#systemId").val()!=0){ if($("#systemId").val()!=0){
$("#nodeId option[systems]").remove(); $("#nodeId option[systems]").remove();
$("#systemId").data("nodes").find("option[systems='"+$("#systemId").val()+"']").clone().appendTo("#nodeId"); $("#systemId").data("nodes").find("option[systems='"+$("#systemId").val()+"']").clone().appendTo("#nodeId");
} }
}); });
</script> </script>
<body> <body>
<form name=form1 id="missionForm" action="<c:url value='/mission/simpleMission.do?action=select'/>" method="post"> <form name=form1 id="missionForm" action="<c:url value='/mission/simpleMission.do?action=select'/>" method="post">
<input type="hidden" name="missionState.missionType" value="${missionState.missionType }" /> <input type="hidden" name="missionState.missionType" value="${missionState.missionType }" />
<input type="hidden" id ="mid" name="missionState.missionId" value="" /> <input type="hidden" id ="mid" name="missionState.missionId" value="" />
<table width="99%" align="center" border="0" cellpadding="0" <table width="99%" align="center" border="0" cellpadding="0"
cellspacing="1" class="ta_color" > cellspacing="1" class="ta_color" >
<div <div
style="height: 3px; width: 100%; margin: 0px auto; padding: 0px;"> style="height: 3px; width: 100%; margin: 0px auto; padding: 0px;">
</div> </div>
<td colspan="8"> <td colspan="8">
<table width="100%" border="0" cellspacing="1" cellpadding="0" class="ta_color"> <table width="100%" border="0" cellspacing="1" cellpadding="0" class="ta_color">
<tr> <tr>
<td colspan="15" height="25px" class="td_color" nowrap class="STYLE1" align="right"> <td colspan="15" height="25px" class="td_color" nowrap class="STYLE1" align="right">
<%@ include file="/include/include.jsp" %> <%@ include file="/include/include.jsp" %>
<%-- <img src="<c:url value='/desktop/images/anniu/a_03${userBgColor }.gif'/>" align="center" onclick="javascript:addRecord();" border="0" />&nbsp;--%> <%-- <img src="<c:url value='/desktop/images/anniu/a_03${userBgColor }.gif'/>" align="center" onclick="javascript:addRecord();" border="0" />&nbsp;--%>
</td> </td>
</tr> </tr>
<tr align="left"> <tr align="left">
<td height="20" class="td_color" nowrap > <td height="20" class="td_color" nowrap >
<div align="center"> <div align="center">
<span class="STYLE1">&nbsp;&nbsp;i18n_msil.text.missionName_n81i : </span> <span class="STYLE1">&nbsp;&nbsp;i18n_msil.text.missionName_n81i : </span>
</div> </div>
</td> </td>
<td height="20" bgcolor="#FFFFFF" nowrap> <td height="20" bgcolor="#FFFFFF" nowrap>
<div align="left"> <div align="left">
<span class="STYLE1"> <span class="STYLE1">
<input type="text" id="missionName" <input type="text" id="missionName"
<%-- onkeyup="lianxiangkeyup('deptname','TableDepartment','String','deptname','suggest1',this.value);"--%> <%-- onkeyup="lianxiangkeyup('deptname','TableDepartment','String','deptname','suggest1',this.value);"--%>
name="missionState.missionName" value="${missionState.missionName }" size="20" /> </span> name="missionState.missionName" value="${missionState.missionName }" size="20" /> </span>
<div id='suggest1' class="ac_results"></div> <div id='suggest1' class="ac_results"></div>
</div> </div>
</td> </td>
<td height="20" class="td_color" nowrap > <td height="20" class="td_color" nowrap >
<div align="center"> <div align="center">
<span class="STYLE1">&nbsp;&nbsp;i18n_msil.text.username_n81i : </span> <span class="STYLE1">&nbsp;&nbsp;i18n_msil.text.username_n81i : </span>
</div> </div>
</td> </td>
<td height="20" bgcolor="#FFFFFF" nowrap> <td height="20" bgcolor="#FFFFFF" nowrap>
<div align="left"> <div align="left">
<span class="STYLE1"> <span class="STYLE1">
<input type="text" id="userName" <input type="text" id="userName"
name="userName" value="${userName}" size="10" /> </span> name="userName" value="${userName}" size="10" /> </span>
<div id='suggest1' class="ac_results"></div> <div id='suggest1' class="ac_results"></div>
</div> </div>
</td> </td>
<td height="20" class="td_color" nowrap > <td height="20" class="td_color" nowrap >
<div align="center"> <div align="center">
<span class="STYLE1">&nbsp;&nbsp;i18n_msil.text.createDate_n81i : </span> <span class="STYLE1">&nbsp;&nbsp;i18n_msil.text.createDate_n81i : </span>
</div> </div>
</td> </td>
<td height="20" bgcolor="#FFFFFF" nowrap colspan="4"> <td height="20" bgcolor="#FFFFFF" nowrap colspan="4">
<div align="left"> <div align="left">
<span class="STYLE1"> <span class="STYLE1">
<input type="text" id="deptname"value="${deptname}" size="20" />i18n_msil.text.to_n81i <input type="text" id="deptname"value="${deptname}" size="20" />i18n_msil.text.to_n81i
<input type="text" id="deptname"value="${deptname}" size="20" /> <input type="text" id="deptname"value="${deptname}" size="20" />
</span> </span>
<div id='suggest1' class="ac_results"></div> <div id='suggest1' class="ac_results"></div>
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td height="20" class="td_color" nowrap > <td height="20" class="td_color" nowrap >
<div align="center"> <div align="center">
<span class="STYLE1">&nbsp;&nbsp;i18n_msil.text.missionState_n81i : </span> <span class="STYLE1">&nbsp;&nbsp;i18n_msil.text.missionState_n81i : </span>
</div> </div>
</td> </td>
<td height="20" bgcolor="#FFFFFF" nowrap> <td height="20" bgcolor="#FFFFFF" nowrap>
<div align="left"> <div align="left">
<span class="STYLE1"> <span class="STYLE1">
<select name="missionState.missionState"> <select name="missionState.missionState">
<c:if test="${missionState.missionType eq 1 }"> <c:if test="${missionState.missionType eq 1 }">
<c:set var="ben" value="${1}" /> <c:set var="ben" value="${1}" />
<c:set var="end" value="${4}" /> <c:set var="end" value="${4}" />
</c:if> </c:if>
<c:if test="${missionState.missionType ne 1 }"> <c:if test="${missionState.missionType ne 1 }">
<c:set var="ben" value="${0}" /> <c:set var="ben" value="${0}" />
<c:set var="end" value="${5}" /> <c:set var="end" value="${5}" />
</c:if> </c:if>
<option value="0">i18n_msil.message.selectDefault_n81i...</option> <option value="0">i18n_msil.message.selectDefault_n81i...</option>
<c:forEach items="${msList}" var="ms" begin="${ben }" end="${end }"> <c:forEach items="${msList}" var="ms" begin="${ben }" end="${end }">
<option value='${ms[0] }' <c:if test="${missionState.missionState eq ms[0] }"> selected ="selected"</c:if> >${ms[1] }</option> <option value='${ms[0] }' <c:if test="${missionState.missionState eq ms[0] }"> selected ="selected"</c:if> >${ms[1] }</option>
</c:forEach> </c:forEach>
</select> </select>
</span> </span>
<div id='suggest1' class="ac_results"></div> <div id='suggest1' class="ac_results"></div>
</div> </div>
</td> </td>
<td height="20" class="td_color" nowrap > <td height="20" class="td_color" nowrap >
<div align="center"> <div align="center">
<span class="STYLE1">&nbsp;&nbsp;i18n_msil.text.systemName_n81i : </span> <span class="STYLE1">&nbsp;&nbsp;i18n_msil.text.systemName_n81i : </span>
</div> </div>
</td> </td>
<td height="20" bgcolor="#FFFFFF" nowrap> <td height="20" bgcolor="#FFFFFF" nowrap>
<div align="left"> <div align="left">
<span class="STYLE1"> <span class="STYLE1">
<input type="hidden" id="systemId" name="missionState.systemId" value="${missionState.systemId }" /> <input type="hidden" id="systemId" name="missionState.systemId" value="${missionState.systemId }" />
<c:forEach items="${sysList}" var="sys"> <c:forEach items="${sysList}" var="sys">
<c:if test="${missionState.systemId eq sys[0] }">${sys[1] }</c:if> <c:if test="${missionState.systemId eq sys[0] }">${sys[1] }</c:if>
</c:forEach> </c:forEach>
<%-- <select id="systemId" name="missionState.systemId">--%> <%-- <select id="systemId" name="missionState.systemId">--%>
<%-- <option value="0">请选择...</option>--%> <%-- <option value="0">请选择...</option>--%>
<%-- <c:forEach items="${sysList}" var="sys">--%> <%-- <c:forEach items="${sysList}" var="sys">--%>
<%-- <option value='${sys[0] }' <c:if test="${missionState.systemId eq sys[0] }"> selected ="selected"</c:if> >${sys[1] }</option>--%> <%-- <option value='${sys[0] }' <c:if test="${missionState.systemId eq sys[0] }"> selected ="selected"</c:if> >${sys[1] }</option>--%>
<%-- </c:forEach>--%> <%-- </c:forEach>--%>
<%-- </select>--%> <%-- </select>--%>
</span> </span>
<div id='suggest1' class="ac_results"></div> <div id='suggest1' class="ac_results"></div>
</div> </div>
</td> </td>
<td height="20" class="td_color" nowrap > <td height="20" class="td_color" nowrap >
<div align="center"> <div align="center">
<span class="STYLE1">&nbsp;&nbsp;i18n_msil.text.nodeGroup_n81i : </span> <span class="STYLE1">&nbsp;&nbsp;i18n_msil.text.nodeGroup_n81i : </span>
</div> </div>
</td> </td>
<td height="20" bgcolor="#FFFFFF" nowrap> <td height="20" bgcolor="#FFFFFF" nowrap>
<div align="left"> <div align="left">
<span class="STYLE1"> <span class="STYLE1">
<select id="nodeId" name="nodeId" > <select id="nodeId" name="nodeId" >
<option value="0">i18n_msil.message.selectDefault_n81i..</option> <option value="0">i18n_msil.message.selectDefault_n81i..</option>
<c:forEach items="${ngList}" var="ng" varStatus="ins"> <c:forEach items="${ngList}" var="ng" varStatus="ins">
<option value='${ng[0] }' systems="${ng[2] }" <c:if test="${nodeId eq ng[0] }"> selected ="selected"</c:if> >${ng[1] }</option> <option value='${ng[0] }' systems="${ng[2] }" <c:if test="${nodeId eq ng[0] }"> selected ="selected"</c:if> >${ng[1] }</option>
</c:forEach> </c:forEach>
</select> </select>
</span> </span>
<div id='suggest1' class="ac_results"></div> <div id='suggest1' class="ac_results"></div>
</div> </div>
</td> </td>
<td height="20" class="td_color" nowrap > <td height="20" class="td_color" nowrap >
<div align="center"> <div align="center">
<span class="STYLE1">&nbsp;&nbsp;i18n_msil.text.viewLevel_n81i : </span> <span class="STYLE1">&nbsp;&nbsp;i18n_msil.text.viewLevel_n81i : </span>
</div> </div>
</td> </td>
<td height="20" bgcolor="#FFFFFF" nowrap> <td height="20" bgcolor="#FFFFFF" nowrap>
<div align="left"> <div align="left">
<span class="STYLE1"> <span class="STYLE1">
<select name="missionState.viewLevel"> <select name="missionState.viewLevel">
<option value="0">i18n_msil.message.selectDefault_n81i...</option> <option value="0">i18n_msil.message.selectDefault_n81i...</option>
<c:forEach items="${vlList}" var="vl"> <c:forEach items="${vlList}" var="vl">
<option value='${vl[0] }' <c:if test="${missionState.viewLevel eq vl[0] }"> selected ="selected"</c:if> >${vl[1] }</option> <option value='${vl[0] }' <c:if test="${missionState.viewLevel eq vl[0] }"> selected ="selected"</c:if> >${vl[1] }</option>
</c:forEach> </c:forEach>
</select> </select>
</span> </span>
<div id='suggest1' class="ac_results"></div> <div id='suggest1' class="ac_results"></div>
</div> </div>
</td> </td>
<td height="20" class="td_color"> <td height="20" class="td_color">
<div align="center"> <div align="center">
<img src="<c:url value='/desktop/images/anniu/anniu_3${userBgColor }.png'/>" align="center" onclick="javascript:qry();" border="0" /> <img src="<c:url value='/desktop/images/anniu/anniu_3${userBgColor }.png'/>" align="center" onclick="javascript:qry();" border="0" />
</div> </div>
</td> </td>
</tr> </tr>
</table> </table>
</td> </td>
</tr> </tr>
<tr> <tr>
<td width="5%" class="td_color"> <td width="5%" class="td_color">
<div align="center"> <div align="center">
<span class="STYLE1">i18n_msil.text.index_n81i</span> <span class="STYLE1">i18n_msil.text.index_n81i</span>
</div> </div>
</td> </td>
<td width="25%" class="td_color" nowrap> <td width="25%" class="td_color" nowrap>
<div align="center"> <div align="center">
<span class="STYLE1">i18n_msil.text.opration_n81i</span> <span class="STYLE1">i18n_msil.text.opration_n81i</span>
</div> </div>
</td> </td>
<td width="25%" class="td_color" nowrap> <td width="25%" class="td_color" nowrap>
<div align="center"> <div align="center">
<span class="STYLE1">i18n_msil.text.missionName_n81i</span> <span class="STYLE1">i18n_msil.text.missionName_n81i</span>
</div> </div>
</td> </td>
<td width="25%" class="td_color"> <td width="25%" class="td_color">
<div align="center"> <div align="center">
<span class="STYLE1">i18n_msil.text.systemName_n81i</span> <span class="STYLE1">i18n_msil.text.systemName_n81i</span>
</div> </div>
</td> </td>
<td width="25%" class="td_color" nowrap> <td width="25%" class="td_color" nowrap>
<div align="center"> <div align="center">
<span class="STYLE1"> <span class="STYLE1">
<c:if test="${missionState.missionType ne 1 }">i18n_msil.message.missionType0_n81i</c:if> <c:if test="${missionState.missionType ne 1 }">i18n_msil.message.missionType0_n81i</c:if>
<c:if test="${missionState.missionType eq 1 }">i18n_msil.message.updateRecord_n81i</c:if> <c:if test="${missionState.missionType eq 1 }">i18n_msil.message.updateRecord_n81i</c:if>
</span> </span>
</div> </div>
</td> </td>
<td width="25%" class="td_color" nowrap> <td width="25%" class="td_color" nowrap>
<div align="center"> <div align="center">
<span class="STYLE1">i18n_msil.text.viewLevel_n81i</span> <span class="STYLE1">i18n_msil.text.viewLevel_n81i</span>
</div> </div>
</td> </td>
<td width="25%" class="td_color"> <td width="25%" class="td_color">
<div align="center"> <div align="center">
<span class="STYLE1">i18n_msil.text.username_n81i</span> <span class="STYLE1">i18n_msil.text.username_n81i</span>
</div> </div>
</td> </td>
<td width="25%" class="td_color"> <td width="25%" class="td_color">
<div align="center"> <div align="center">
<span class="STYLE1">i18n_msil.text.createDate_n81i</span> <span class="STYLE1">i18n_msil.text.createDate_n81i</span>
</div> </div>
</td> </td>
</tr> </tr>
<c:set var="index" value="${1+(pageNo-1)*page.pageSize}" /> <c:set var="index" value="${1+(pageNo-1)*page.pageSize}" />
<c:choose> <c:choose>
<c:when test="${fn:length(list) > 0}"> <c:when test="${fn:length(list) > 0}">
<c:forEach items="${list}" var="miss"> <c:forEach items="${list}" var="miss">
<tr> <tr>
<td bgcolor="#FFFFFF"> <td bgcolor="#FFFFFF">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<span class="STYLE1">${index}</span> <span class="STYLE1">${index}</span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF"> <td bgcolor="#FFFFFF">
<div align="center" class="STYLE1"> <div align="center" class="STYLE1">
<font size=2> <font size=2>
<c:if test="${missionState.missionType ne 1 && miss[5] eq 5}"><a href="javascript:updateRecord('${miss[0]}')">执行</a></c:if> <c:if test="${missionState.missionType ne 1 && miss[5] eq 5}"><a href="javascript:updateRecord('${miss[0]}')">执行</a></c:if>
<c:if test="${missionState.missionType ne 1 && miss[5] eq 1}"><a href="javascript:changeState('${miss[0]}')">暂停</a></c:if> <c:if test="${missionState.missionType ne 1 && miss[5] eq 1}"><a href="javascript:changeState('${miss[0]}')">暂停</a></c:if>
<a href="javascript:viewRecord('${miss[0]}')">i18n_msil.message.viewRecord_n81i</a> <a href="javascript:viewRecord('${miss[0]}')">i18n_msil.message.viewRecord_n81i</a>
</font> </font>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF"> <td bgcolor="#FFFFFF">
<div align="center"> <div align="center">
<span class="STYLE1">${miss[1]} <span class="STYLE1">${miss[1]}
</span> </span>
</div> </div>
</td> </td>
<td bgcolor="#FFFFFF"nowrap="nowrap" > <td bgcolor="#FFFFFF"nowrap="nowrap" >
<div align="center"class="STYLE1"> <div align="center"class="STYLE1">
${miss[3]} ${miss[3]}
</td > </td >
<td bgcolor="#FFFFFF"nowrap="nowrap" > <td bgcolor="#FFFFFF"nowrap="nowrap" >
<div align="center"class="STYLE1"> <div align="center"class="STYLE1">
<c:if test="${missionState.missionType ne 1 }">${miss[7]}</c:if> <c:if test="${missionState.missionType ne 1 }">${miss[7]}</c:if>
<c:if test="${missionState.missionType eq 1 }"> <c:if test="${missionState.missionType eq 1 }">
<c:if test="${miss[6] eq 10}">i18n_msil.message.missionType10_n81i</c:if> <c:if test="${miss[6] eq 10}">i18n_msil.message.missionType10_n81i</c:if>
<c:if test="${miss[6] eq 11}">i18n_msil.message.missionType11_n81i</c:if> <c:if test="${miss[6] eq 11}">i18n_msil.message.missionType11_n81i</c:if>
<c:if test="${miss[6] eq 12}">i18n_msil.message.missionType12_n81i</c:if> <c:if test="${miss[6] eq 12}">i18n_msil.message.missionType12_n81i</c:if>
<c:if test="${miss[6] eq 13}">i18n_msil.message.missionType13_n81i</c:if> <c:if test="${miss[6] eq 13}">i18n_msil.message.missionType13_n81i</c:if>
</c:if> </c:if>
</div> </div>
</td > </td >
<td bgcolor="#FFFFFF"nowrap="nowrap" > <td bgcolor="#FFFFFF"nowrap="nowrap" >
<div align="center"class="STYLE1"> <div align="center"class="STYLE1">
<c:if test="${miss[8] eq 1 }"> i18n_msil.message.publisher_n81i</c:if> <c:if test="${miss[8] eq 1 }"> i18n_msil.message.publisher_n81i</c:if>
<c:if test="${miss[8] eq 2 }"> i18n_msil.message.publisherGroup_n81i</c:if> <c:if test="${miss[8] eq 2 }"> i18n_msil.message.publisherGroup_n81i</c:if>
<c:if test="${miss[8] eq 3 }"> i18n_msil.message.allInSys_n81i</c:if> <c:if test="${miss[8] eq 3 }"> i18n_msil.message.allInSys_n81i</c:if>
</div> </div>
</td > </td >
<td bgcolor="#FFFFFF"nowrap="nowrap" > <td bgcolor="#FFFFFF"nowrap="nowrap" >
<div align="center"class="STYLE1"> <div align="center"class="STYLE1">
${miss[10]} ${miss[10]}
</div> </div>
</td > </td >
<td bgcolor="#FFFFFF"nowrap="nowrap" > <td bgcolor="#FFFFFF"nowrap="nowrap" >
<div align="center"class="STYLE1"> <div align="center"class="STYLE1">
<fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss" value="${miss[11]}" /> <fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss" value="${miss[11]}" />
</div> </div>
</td > </td >
</tr> </tr>
<c:set var="index" value="${index + 1}" /> <c:set var="index" value="${index + 1}" />
</c:forEach> </c:forEach>
</c:when> </c:when>
<c:otherwise> <c:otherwise>
<tr> <tr>
<td colspan="8" height="20" align="center" class="color_6"> <td colspan="8" height="20" align="center" class="color_6">
i18n_msil.message.noRecord_n81i i18n_msil.message.noRecord_n81i
</td> </td>
</tr> </tr>
</c:otherwise> </c:otherwise>
</c:choose> </c:choose>
<tr> <tr>
<td height="20" colspan="8" class="td_color"> <td height="20" colspan="8" class="td_color">
<jsp:include page="/common/page.jsp" /></td> <jsp:include page="/common/page.jsp" /></td>
</tr> </tr>
</table> </table>
</form> </form>
<br/><br/> <br/><br/>
</body> </body>
</html> </html>

View File

@@ -1,135 +1,135 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%> <%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib uri="/jstl/fn" prefix="fn"%> <%@ taglib uri="/jstl/fn" prefix="fn"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
%> %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!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"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_api.message.title_n81i</title> <title>i18n_api.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" <link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<link href="<c:url value='/js//dtree/css/dtree.css'/>" <link href="<c:url value='/js//dtree/css/dtree.css'/>"
rel="stylesheet" type="text/css" /> rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script> src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script> src="<c:url value='/js/onmouse.js'/>"></script>
<script type="text/javascript" <script type="text/javascript"
src="<c:url value='/js/jquery.form.js'/>"></script> src="<c:url value='/js/jquery.form.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value="/js/fileInput.js"/>"></script> src="<c:url value="/js/fileInput.js"/>"></script>
<script language="javascript" type="text/javascript"> <script language="javascript" type="text/javascript">
function add(){ function add(){
if($("#name").val()==''){ if($("#name").val()==''){
$("#name").next().html("i18n_api.message.name_n81i。"); $("#name").next().html("i18n_api.message.name_n81i。");
return; return;
} }
if($("#myFile").val()==''){ if($("#myFile").val()==''){
$("#myFile").next().html("i18n_api.message.myFile_n81i"); $("#myFile").next().html("i18n_api.message.myFile_n81i");
return; return;
} }
$.ajax({ $.ajax({
url : "<%=path%>/pluginManage/pluginManage.do?action=checkName", url : "<%=path%>/pluginManage/pluginManage.do?action=checkName",
type : "POST", type : "POST",
dataType : "text", dataType : "text",
data:{'name':$("#name").val()}, data:{'name':$("#name").val()},
async:true, async:true,
success : function(data,textStatus) { success : function(data,textStatus) {
if(data != "" && data != null) if(data != "" && data != null)
{ {
alert(data); alert(data);
return false; return false;
}else{ }else{
document.Mkform.action="<%=path%>/pluginManage/pluginManage.do?action=doAdd"; document.Mkform.action="<%=path%>/pluginManage/pluginManage.do?action=doAdd";
document.Mkform.submit(); document.Mkform.submit();
} }
} }
}) })
} }
function goBack(){ function goBack(){
document.Mkform.action="<%=path%>/pluginManage/pluginManage.do?action=queryInfo"; document.Mkform.action="<%=path%>/pluginManage/pluginManage.do?action=queryInfo";
document.Mkform.submit(); document.Mkform.submit();
} }
</script> </script>
</head> </head>
<body> <body>
<div class="middle_list"> <div class="middle_list">
<div class="box_2"> <div class="box_2">
<input type="button" class="btn3_mouseout" <input type="button" class="btn3_mouseout"
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onclick="goBack()" onmouseup="this.className='btn3_mouseup'" onclick="goBack()"
value="i18n_api.button.back_n81i" /> value="i18n_api.button.back_n81i" />
</div> </div>
<form action="" name="Mkform" method="post" <form action="" name="Mkform" method="post"
enctype="multipart/form-data"> enctype="multipart/form-data">
<input type="hidden" name="pageNo" value="${pageNo }" /> <input type="hidden" name="pageNo" value="${pageNo }" />
<input type="hidden" name="pageSize" value="${pageSize }" /> <input type="hidden" name="pageSize" value="${pageSize }" />
<div style="clear: both"></div> <div style="clear: both"></div>
<table border="0" cellpadding="0" cellspacing="0" class="table"> <table border="0" cellpadding="0" cellspacing="0" class="table">
<tr> <tr>
<td colspan="4" class="color_8"> <td colspan="4" class="color_8">
<strong>i18n_api.text.title_n81i</strong> <strong>i18n_api.text.title_n81i</strong>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" width="15%" align="right" nowrap="nowrap"> <td class="color_1" width="15%" align="right" nowrap="nowrap">
i18n_api.text.name_n81i i18n_api.text.name_n81i
</td> </td>
<td class="color_3" width="30%" align="left"> <td class="color_3" width="30%" align="left">
<input type="text" name="pluginInfo.name" id="name" <input type="text" name="pluginInfo.name" id="name"
value="${pluginInfo.name }" /> value="${pluginInfo.name }" />
<font color="red">*</font> <font color="red">*</font>
</td> </td>
<td class="color_1" width="20%" align="right" nowrap="nowrap"> <td class="color_1" width="20%" align="right" nowrap="nowrap">
i18n_api.text.myFile_n81i i18n_api.text.myFile_n81i
</td> </td>
<td class="color_3" width="30%" align="left"> <td class="color_3" width="30%" align="left">
<input type="button" value="i18n_api.text.myFile_n81i" title="i18n_api.text.myFile_n81i" class="btn3_mouseout" onclick="javascript:uploadFile(this)"/> <input type="button" value="i18n_api.text.myFile_n81i" title="i18n_api.text.myFile_n81i" class="btn3_mouseout" onclick="javascript:uploadFile(this)"/>
<input type="file" name="myFile" id="myFile" value="" onchange="javascript:setValue(this.value)" <input type="file" name="myFile" id="myFile" value="" onchange="javascript:setValue(this.value)"
class="filebtn" style="width: 220px;" /> class="filebtn" style="width: 220px;" />
<font color="red">*</font> <font color="red">*</font>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" width="10%" align="right" nowrap="nowrap"> <td class="color_1" width="10%" align="right" nowrap="nowrap">
i18n_api.text.des_n81i i18n_api.text.des_n81i
</td> </td>
<td class="color_3" width="35%" align="left" colspan="3"> <td class="color_3" width="35%" align="left" colspan="3">
<textarea name="pluginInfo.des" id="des" rows="3" cols="40">${pluginInfo.des }</textarea> <textarea name="pluginInfo.des" id="des" rows="3" cols="40">${pluginInfo.des }</textarea>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_7" colspan="4" align="right"> <td class="color_7" colspan="4" align="right">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onclick="add()" onmouseup="this.className='btn3_mouseup'" onclick="add()"
value="i18n_api.button.submit_n81i" /> value="i18n_api.button.submit_n81i" />
&nbsp; &nbsp;
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="javascript:document.forms['Mkform'].reset()" value="i18n_api.button.reset_n81i" /> onclick="javascript:document.forms['Mkform'].reset()" value="i18n_api.button.reset_n81i" />
</td> </td>
</tr> </tr>
</table> </table>
</form> </form>
</div> </div>
</body> </body>
</html> </html>

View File

@@ -1,264 +1,264 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="/jstl/c"%> <%@ taglib prefix="c" uri="/jstl/c"%>
<%@ taglib prefix="fn" uri="/jstl/fn"%> <%@ taglib prefix="fn" uri="/jstl/fn"%>
<%@ taglib prefix="fmt" uri="/jstl/fmt"%> <%@ taglib prefix="fmt" uri="/jstl/fmt"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
%> %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_pil.message.title_n81i</title> <title>i18n_pil.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" type="text/css" /> <link href="<c:url value='/css/nms.css'/>" rel="stylesheet" type="text/css" />
<link href="<c:url value='/js/jBox/Skins/Gray/jbox.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" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script> src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script> src="<c:url value='/js/onmouse.js'/>"></script>
</head> </head>
<script language="javascript" type="text/javascript"> <script language="javascript" type="text/javascript">
//添加记录 //添加记录
function addPlugin(){ function addPlugin(){
document.form3.action ="<%=path%>/pluginManage/pluginManage.do?action=openAdd&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }'; document.form3.action ="<%=path%>/pluginManage/pluginManage.do?action=openAdd&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }';
document.form3.submit(); document.form3.submit();
} }
//修改记录 //修改记录
function updatePlugin(){ function updatePlugin(){
if(!isRigthCheck("ids", "edit")){ if(!isRigthCheck("ids", "edit")){
alert("i18n_pil.message.selectOne_n81i"); alert("i18n_pil.message.selectOne_n81i");
}else{ }else{
document.form3.action ="<%=path%>/pluginManage/pluginManage.do?action=openUpdate&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }'; document.form3.action ="<%=path%>/pluginManage/pluginManage.do?action=openUpdate&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }';
document.form3.submit(); document.form3.submit();
} }
} }
//删除记录 //删除记录
function delPlugin(){ function delPlugin(){
if(!isRigthCheck("ids", "remove")){ if(!isRigthCheck("ids", "remove")){
alert("i18n_pil.message.selectOne_n81i"); alert("i18n_pil.message.selectOne_n81i");
}else if(confirm("i18n_pil.message.delPlugin_n81i")){ }else if(confirm("i18n_pil.message.delPlugin_n81i")){
document.form3.action ="<%=path%>/pluginManage/pluginManage.do?action=del&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }'; document.form3.action ="<%=path%>/pluginManage/pluginManage.do?action=del&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }';
document.form3.submit(); document.form3.submit();
} }
} }
//下载插件 //下载插件
function downPlugin(){ function downPlugin(){
if(!isRigthCheck("ids", "edit")){ if(!isRigthCheck("ids", "edit")){
alert("i18n_pil.message.selectOne_n81i"); alert("i18n_pil.message.selectOne_n81i");
}else { }else {
document.form3.action ="<%=path%>/pluginManage/pluginManage.do?action=downloadPlugin&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }'; document.form3.action ="<%=path%>/pluginManage/pluginManage.do?action=downloadPlugin&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }';
document.form3.submit(); document.form3.submit();
document.form3.action ="<%=path%>/pluginManage/pluginManage.do?action=queryInfo&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }'; document.form3.action ="<%=path%>/pluginManage/pluginManage.do?action=queryInfo&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }';
} }
} }
//查询记录 //查询记录
function qry(){ function qry(){
document.form3.action = "<%=path%>/pluginManage/pluginManage.do?action=queryInfo"; document.form3.action = "<%=path%>/pluginManage/pluginManage.do?action=queryInfo";
document.form3.submit(); document.form3.submit();
} }
function ieBrowser(){ function ieBrowser(){
if($.browser.msie){ if($.browser.msie){
if($.browser.version.split('.')[0]<=7){ if($.browser.version.split('.')[0]<=7){
return false; return false;
}else{ }else{
return true;//ie8+ return true;//ie8+
} }
} }
} }
$(function(){ $(function(){
var dh = document.body.clientHeight; var dh = document.body.clientHeight;
var dhh = dh-60+"px;"; var dhh = dh-60+"px;";
var tableHeight = $("#info").height(); var tableHeight = $("#info").height();
if(tableHeight > dh-60){ 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); $("#maindiv").attr("style","clear:both;margin-left:6px;overflow-y:auto;overflow-x:auto;width:99%;font-size:12px;height: "+dhh);
if(ieBrowser()){ if(ieBrowser()){
$("#info").attr("style","width:100%;"); $("#info").attr("style","width:100%;");
}else{ }else{
$("#info").attr("style","width:98.5%;"); $("#info").attr("style","width:98.5%;");
} }
}else{ }else{
$("#maindiv").attr("style","clear:both;margin-left:6px;overflow-y:auto;overflow-x:auto;width:98%;font-size:12px;height: "+dhh); $("#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%;"); $("#info").attr("style","width:100%;");
} }
$("#info").floatHeaderDiv(); $("#info").floatHeaderDiv();
}); });
/*------ 滚动条滚动 延迟加载页面操作--------------*/ /*------ 滚动条滚动 延迟加载页面操作--------------*/
var hght=0;//初始化滚动条总长 var hght=0;//初始化滚动条总长
var topH=0;//初始化滚动条的当前位置 var topH=0;//初始化滚动条的当前位置
var pagePoint = ${pageNo}; var pagePoint = ${pageNo};
var flashFlag = false; var flashFlag = false;
var memoryData ; var memoryData ;
var intervalID ; var intervalID ;
var params;//页面查询条件 var params;//页面查询条件
$(document).ready(function(){//DOM的onload事件 $(document).ready(function(){//DOM的onload事件
params = "&name="+$("#name").val()+"&fileName="+$("#fileName").val(); params = "&name="+$("#name").val()+"&fileName="+$("#fileName").val();
//$(”#mypage”).load(”table.html”);//table.html的内容被加载到mypage元素 //$(”#mypage”).load(”table.html”);//table.html的内容被加载到mypage元素
$("#maindiv").scroll( function() {//定义滚动条位置改变时触发的事件。 $("#maindiv").scroll( function() {//定义滚动条位置改变时触发的事件。
hght=this.scrollHeight;//得到滚动条总长赋给hght变量 hght=this.scrollHeight;//得到滚动条总长赋给hght变量
topH=this.scrollTop+this.clientHeight;//得到滚动条当前值赋给top变量 topH=this.scrollTop+this.clientHeight;//得到滚动条当前值赋给top变量
}); });
$.get("<c:url value='/pluginManage/pluginManage.do?action=queryChild'/>&pageSize="+'${pageSize }'+"&pageNo="+(++pagePoint)+params, function(data){//利用jquery的get方法得到table.html内容 $.get("<c:url value='/pluginManage/pluginManage.do?action=queryChild'/>&pageSize="+'${pageSize }'+"&pageNo="+(++pagePoint)+params, function(data){//利用jquery的get方法得到table.html内容
memoryData = data; memoryData = data;
flashFlag = true; flashFlag = true;
}); });
intervalID = setInterval(function(){cando();},1000);//每隔2秒钟调用一次cando函数来判断当前滚动条位置。 intervalID = setInterval(function(){cando();},1000);//每隔2秒钟调用一次cando函数来判断当前滚动条位置。
function cando(){ function cando(){
//alert(topH+" " +hght); //alert(topH+" " +hght);
if(topH!=0 && hght!=0 && topH == hght && flashFlag){//判断滚动条当前位置是否超过总长的3/2parseInt为取整函数 if(topH!=0 && hght!=0 && topH == hght && flashFlag){//判断滚动条当前位置是否超过总长的3/2parseInt为取整函数
show();//如果是调用show函数加载内容。 show();//如果是调用show函数加载内容。
} }
//if(topH>parseInt(hght/3)*2){//判断滚动条当前位置是否超过总长的3/2parseInt为取整函数 //if(topH>parseInt(hght/3)*2){//判断滚动条当前位置是否超过总长的3/2parseInt为取整函数
// show();//如果是调用show函数加载内容。 // show();//如果是调用show函数加载内容。
//} //}
} }
function show(){ function show(){
flashFlag=false; flashFlag=false;
hght=0;//恢复滚动条总长,因为$(”#mypage”).scroll事件一触发又会得到新值不恢复的话可能会造成判断错误而再次加载…… hght=0;//恢复滚动条总长,因为$(”#mypage”).scroll事件一触发又会得到新值不恢复的话可能会造成判断错误而再次加载……
topH=0;//原因同上。 topH=0;//原因同上。
var flag2 = true; var flag2 = true;
if(memoryData!=null&&memoryData!=""&&memoryData.replace(/(^\s*)|(\s*$)/g,"")!=""){ if(memoryData!=null&&memoryData!=""&&memoryData.replace(/(^\s*)|(\s*$)/g,"")!=""){
try{ try{
$("#info").append($(memoryData));//用append方法追加内容到mypage元素。 $("#info").append($(memoryData));//用append方法追加内容到mypage元素。
$("#currentPage").html(pagePoint); $("#currentPage").html(pagePoint);
$("#pageNo").val(pagePoint); $("#pageNo").val(pagePoint);
flag2 = false; flag2 = false;
}catch(err){ }catch(err){
} }
} }
$.get("<c:url value='/pluginManage/pluginManage.do?action=queryChild'/>&pageSize="+'${pageSize }'+"&pageNo="+(++pagePoint)+params, function(data){//利用jquery的get方法得到table.html内容 $.get("<c:url value='/pluginManage/pluginManage.do?action=queryChild'/>&pageSize="+'${pageSize }'+"&pageNo="+(++pagePoint)+params, function(data){//利用jquery的get方法得到table.html内容
if(flag2){ if(flag2){
try{ try{
$("#info").append($(data));//用append方法追加内容到mypage元素。 $("#info").append($(data));//用append方法追加内容到mypage元素。
}catch(err){ }catch(err){
} }
}else{ }else{
flag2 = true; flag2 = true;
memoryData = data; memoryData = data;
} }
//无数据 //无数据
if(data==null||data==""){ if(data==null||data==""){
clearInterval(intervalID); clearInterval(intervalID);
} }
flashFlag = true; flashFlag = true;
}); });
} }
}); });
/*------ 滚动条滚动 延迟加载页面操作--------------*/ /*------ 滚动条滚动 延迟加载页面操作--------------*/
</script> </script>
<body> <body>
<div class="middle_list" style="overflow: hidden;"> <div class="middle_list" style="overflow: hidden;">
<form name=form3 id="frmArticleType" action="<c:url value='/pluginManage/pluginManage.do?action=queryInfo'/>" method="post" enctype="multipart/form-data"> <form name=form3 id="frmArticleType" action="<c:url value='/pluginManage/pluginManage.do?action=queryInfo'/>" method="post" enctype="multipart/form-data">
<input type="hidden" name="pageNoforexp" id="pageNo" value="${pageNo }"/> <input type="hidden" name="pageNoforexp" id="pageNo" value="${pageNo }"/>
<div id="divTop"> <div id="divTop">
<div class="box_1"> <div class="box_1">
<label class="divTopText"><font class="selectText">i18n_pil.text.name_n81i</font><input type="text" id="name" name="name" title="i18n_pil.text.name_n81i" value="${name}" size="20" maxlength="50"/></label> <label class="divTopText"><font class="selectText">i18n_pil.text.name_n81i</font><input type="text" id="name" name="name" title="i18n_pil.text.name_n81i" value="${name}" size="20" maxlength="50"/></label>
<label class="divTopText"><font class="selectText">i18n_pil.text.fileName_n81i</font><input type="text" id="fileName" name="fileName" title="文件名" value="${fileName}" size="20" maxlength="100"/></label> <label class="divTopText"><font class="selectText">i18n_pil.text.fileName_n81i</font><input type="text" id="fileName" name="fileName" title="文件名" value="${fileName}" size="20" maxlength="100"/></label>
<img src="<c:url value='/images/button_chaxun.png'/>" <img src="<c:url value='/images/button_chaxun.png'/>"
class="img_middle2" onclick="javascript:qry();" /> class="img_middle2" onclick="javascript:qry();" />
</div> </div>
<div class="box_2"> <div class="box_2">
<jsp:include page="/include/include.jsp" /> <jsp:include page="/include/include.jsp" />
</div> </div>
</div> </div>
<div id="maindiv"> <div id="maindiv">
<table border="0" cellpadding="0" cellspacing="0" class="table" id="info"> <table border="0" cellpadding="0" cellspacing="0" class="table" id="info">
<tr > <tr >
<td width="6%" class="color_top"> <td width="6%" class="color_top">
<input type="checkbox" name="checkbox62" value="checkbox" onClick="checkAll(this)" />序号 <input type="checkbox" name="checkbox62" value="checkbox" onClick="checkAll(this)" />序号
</td> </td>
<td width="12%" class="color_top"> <td width="12%" class="color_top">
i18n_pil.text.name_n81i i18n_pil.text.name_n81i
</td> </td>
<td width="12%" class="color_top"> <td width="12%" class="color_top">
i18n_pil.text.des_n81i i18n_pil.text.des_n81i
</td> </td>
<td width="10%" class="color_top"> <td width="10%" class="color_top">
i18n_pil.text.fileName_n81i i18n_pil.text.fileName_n81i
</td> </td>
<td width="5%" class="color_top"> <td width="5%" class="color_top">
i18n_pil.text.createUsername_n81i i18n_pil.text.createUsername_n81i
</td> </td>
<td width="11%" class="color_top"> <td width="11%" class="color_top">
i18n_pil.text.createTime_n81i i18n_pil.text.createTime_n81i
</td> </td>
<td width="5%" class="color_top"> <td width="5%" class="color_top">
i18n_pil.text.updateUsername_n81i i18n_pil.text.updateUsername_n81i
</td> </td>
<td width="11%" class="color_8"> <td width="11%" class="color_8">
i18n_pil.text.udateTime_n81i i18n_pil.text.udateTime_n81i
</td> </td>
</tr> </tr>
<c:set var="index" value="${1}" /> <c:set var="index" value="${1}" />
<c:choose> <c:choose>
<c:when test="${fn:length(pluginList) > 0}"> <c:when test="${fn:length(pluginList) > 0}">
<c:forEach items="${pluginList}" var="plugin" varStatus="vs"> <c:forEach items="${pluginList}" var="plugin" varStatus="vs">
<c:set var="color" value="color_1"/> <c:set var="color" value="color_1"/>
<c:set var="color_end" value="color_7"/> <c:set var="color_end" value="color_7"/>
<c:if test="${vs.count%2!=0 }"> <c:if test="${vs.count%2!=0 }">
<c:set var="color" value="color_3"/> <c:set var="color" value="color_3"/>
<c:set var="color_end" value="color_6"/> <c:set var="color_end" value="color_6"/>
</c:if> </c:if>
<tr > <tr >
<td class="${color }"> <td class="${color }">
<input type="checkbox" name="ids" id="ids" <input type="checkbox" name="ids" id="ids"
value="${plugin.id}"/> value="${plugin.id}"/>
${index+(pageNo-1)*pageSize} ${index+(pageNo-1)*pageSize}
</td> </td>
<td class="${color }"> <td class="${color }">
${plugin.name} ${plugin.name}
</td> </td>
<td class="${color }"> <td class="${color }">
${plugin.des} ${plugin.des}
</td> </td>
<td class="${color }"> <td class="${color }">
${plugin.fileName} ${plugin.fileName}
</td> </td>
<td class="${color }"> <td class="${color }">
${plugin.creatUserName} ${plugin.creatUserName}
</td> </td>
<td class="${color }"> <td class="${color }">
<fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss" value="${plugin.creatTime}" /> <fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss" value="${plugin.creatTime}" />
</td> </td>
<td class="${color }"> <td class="${color }">
${plugin.updateUserName} ${plugin.updateUserName}
</td> </td>
<td class="${color_end }"> <td class="${color_end }">
<fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss" value="${plugin.updateTime}" /> <fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss" value="${plugin.updateTime}" />
</td> </td>
</tr> </tr>
<c:set var="index" value="${index + 1}" /> <c:set var="index" value="${index + 1}" />
</c:forEach> </c:forEach>
</c:when> </c:when>
<c:otherwise> <c:otherwise>
<tr> <tr>
<td colspan="8" class="color_6" align="center"> <td colspan="8" class="color_6" align="center">
i18n_pil.text.noRecord_n81i i18n_pil.text.noRecord_n81i
</td> </td>
</tr> </tr>
</c:otherwise> </c:otherwise>
</c:choose> </c:choose>
</table> </table>
</div> </div>
<c:if test="${!empty pluginList}"> <c:if test="${!empty pluginList}">
<div id="divBoot"> <div id="divBoot">
<jsp:include page="/common/page.jsp" /> <jsp:include page="/common/page.jsp" />
</div> </div>
</c:if> </c:if>
</form> </form>
</div> </div>
</body> </body>
</html> </html>

View File

@@ -1,51 +1,51 @@
<%@ page language="java" pageEncoding="utf-8"%> <%@ page language="java" pageEncoding="utf-8"%>
<%@include file="/common/taglib.jsp"%> <%@include file="/common/taglib.jsp"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
%> %>
<c:set var="index" value="${1}" /> <c:set var="index" value="${1}" />
<c:choose> <c:choose>
<c:when test="${fn:length(pluginList) > 0}"> <c:when test="${fn:length(pluginList) > 0}">
<c:forEach items="${pluginList}" var="plugin" varStatus="vs"> <c:forEach items="${pluginList}" var="plugin" varStatus="vs">
<c:set var="color" value="color_1"/> <c:set var="color" value="color_1"/>
<c:set var="color_end" value="color_7"/> <c:set var="color_end" value="color_7"/>
<c:if test="${vs.count%2!=0 }"> <c:if test="${vs.count%2!=0 }">
<c:set var="color" value="color_3"/> <c:set var="color" value="color_3"/>
<c:set var="color_end" value="color_6"/> <c:set var="color_end" value="color_6"/>
</c:if> </c:if>
<tr > <tr >
<td class="${color }"> <td class="${color }">
<input type="checkbox" name="ids" id="ids" <input type="checkbox" name="ids" id="ids"
value="${plugin.id}"/> value="${plugin.id}"/>
${index+(pageNo-1)*pageSize} ${index+(pageNo-1)*pageSize}
</td> </td>
<td class="${color }"> <td class="${color }">
${plugin.name} ${plugin.name}
</td> </td>
<td class="${color }"> <td class="${color }">
${plugin.des} ${plugin.des}
</td> </td>
<td class="${color }"> <td class="${color }">
${plugin.fileName} ${plugin.fileName}
</td> </td>
<td class="${color }"> <td class="${color }">
${plugin.creatUserName} ${plugin.creatUserName}
</td> </td>
<td class="${color }"> <td class="${color }">
<fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss" value="${plugin.creatTime}" /> <fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss" value="${plugin.creatTime}" />
</td> </td>
<td class="${color }"> <td class="${color }">
${plugin.updateUserName} ${plugin.updateUserName}
</td> </td>
<td class="${color_end }"> <td class="${color_end }">
<fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss" value="${plugin.updateTime}" /> <fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss" value="${plugin.updateTime}" />
</td> </td>
</tr> </tr>
<c:set var="index" value="${index + 1}" /> <c:set var="index" value="${index + 1}" />
</c:forEach> </c:forEach>
</c:when> </c:when>
</c:choose> </c:choose>

View File

@@ -1,160 +1,160 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%> <%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib uri="/jstl/fn" prefix="fn"%> <%@ taglib uri="/jstl/fn" prefix="fn"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
%> %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_upi.message.title_n81i</title> <title>i18n_upi.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" <link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<link href="<c:url value='/js//dtree/css/dtree.css'/>" <link href="<c:url value='/js//dtree/css/dtree.css'/>"
rel="stylesheet" type="text/css" /> rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script> src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script> src="<c:url value='/js/onmouse.js'/>"></script>
<script type="text/javascript" <script type="text/javascript"
src="<c:url value='/js/jquery.form.js'/>"></script> src="<c:url value='/js/jquery.form.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value="/js/fileInput.js"/>"></script> src="<c:url value="/js/fileInput.js"/>"></script>
</head> </head>
<script language="javascript" type="text/javascript"> <script language="javascript" type="text/javascript">
function goBack(){ function goBack(){
document.Mkform.action="<%=path%>/pluginManage/pluginManage.do?action=queryInfo"; document.Mkform.action="<%=path%>/pluginManage/pluginManage.do?action=queryInfo";
document.Mkform.submit(); document.Mkform.submit();
} }
function add(){ function add(){
if($("#name").val()==''){ if($("#name").val()==''){
$("#name").next().html("i18n_upi.message.name_n81i"); $("#name").next().html("i18n_upi.message.name_n81i");
return; return;
} }
$.ajax({ $.ajax({
url : "<%=path%>/pluginManage/pluginManage.do?action=checkName", url : "<%=path%>/pluginManage/pluginManage.do?action=checkName",
type : "POST", type : "POST",
dataType : "text", dataType : "text",
data:{'name':$("#name").val(),"pluginId":${pluginInfo.id}}, data:{'name':$("#name").val(),"pluginId":${pluginInfo.id}},
async:true, async:true,
success : function(data,textStatus) { success : function(data,textStatus) {
if(data != "" && data != null) if(data != "" && data != null)
{ {
alert(data); alert(data);
return false; return false;
}else{ }else{
document.Mkform.action="<%=path%>/pluginManage/pluginManage.do?action=doUpdate"; document.Mkform.action="<%=path%>/pluginManage/pluginManage.do?action=doUpdate";
document.Mkform.submit(); document.Mkform.submit();
} }
} }
}) })
} }
$(function(){ $(function(){
//下载附件 //下载附件
$(".downloadA").click(function(){ $(".downloadA").click(function(){
window.location="<c:url value='/pluginManage/pluginManage.do?action=downloadPlugin&ids="+${pluginId}+"'/>"; window.location="<c:url value='/pluginManage/pluginManage.do?action=downloadPlugin&ids="+${pluginId}+"'/>";
}) })
//删除文件 //删除文件
$(".delUpload").live("click",function(){ $(".delUpload").live("click",function(){
$(this).closest("DIV").remove(); $(this).closest("DIV").remove();
}) })
}) })
</script> </script>
<body> <body>
<div class="middle_list"> <div class="middle_list">
<div class="box_2"> <div class="box_2">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onclick="goBack()" onmouseup="this.className='btn3_mouseup'" onclick="goBack()"
value="i18n_upi.button.back_n81i" /> value="i18n_upi.button.back_n81i" />
</div> </div>
<input type="hidden" id="ctname1" <input type="hidden" id="ctname1"
value="${checkTypeInfo.checkTypeName1 }" /> value="${checkTypeInfo.checkTypeName1 }" />
<form action="" name="Mkform" method="post" <form action="" name="Mkform" method="post"
enctype="multipart/form-data"> enctype="multipart/form-data">
<input type="hidden" name="pageNo" value="${pageNo }" /> <input type="hidden" name="pageNo" value="${pageNo }" />
<input type="hidden" name="pageSize" value="${pageSize }" /> <input type="hidden" name="pageSize" value="${pageSize }" />
<input type="hidden" name="pluginInfo.id" value="${pluginInfo.id }" /> <input type="hidden" name="pluginInfo.id" value="${pluginInfo.id }" />
<div style="clear: both"></div> <div style="clear: both"></div>
<table border="0" cellpadding="0" cellspacing="0" class="table"> <table border="0" cellpadding="0" cellspacing="0" class="table">
<tr> <tr>
<td colspan="4" class="color_8"> <td colspan="4" class="color_8">
<strong>i18n_upi.text.title_n81i<span style="color: red;">(i18n_upi.message.titleInfo_n81i)</span> <strong>i18n_upi.text.title_n81i<span style="color: red;">(i18n_upi.message.titleInfo_n81i)</span>
</strong> </strong>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" width="15%" align="right" nowrap="nowrap"> <td class="color_1" width="15%" align="right" nowrap="nowrap">
i18n_upi.text.name_n81i i18n_upi.text.name_n81i
</td> </td>
<td class="color_3" width="30%" align="left"> <td class="color_3" width="30%" align="left">
<input type="text" name="pluginInfo.name" id="name" <input type="text" name="pluginInfo.name" id="name"
value="${pluginInfo.name }" /> value="${pluginInfo.name }" />
<font color="red">*</font> <font color="red">*</font>
</td> </td>
<td class="color_1" width="20%" align="right" nowrap="nowrap"> <td class="color_1" width="20%" align="right" nowrap="nowrap">
i18n_upi.text.myFile_n81i i18n_upi.text.myFile_n81i
</td> </td>
<td class="color_3" width="30%" align="left"> <td class="color_3" width="30%" align="left">
<input type="button" value="i18n_upi.text.myFile_n81i" title="i18n_upi.text.myFile_n81i" class="btn3_mouseout" onclick="javascript:uploadFile(this)"/> <input type="button" value="i18n_upi.text.myFile_n81i" title="i18n_upi.text.myFile_n81i" class="btn3_mouseout" onclick="javascript:uploadFile(this)"/>
<input type="file" name="myFile" id="myFile" value="" onchange="javascript:setValue(this.value)" <input type="file" name="myFile" id="myFile" value="" onchange="javascript:setValue(this.value)"
class="filebtn" style="width: 220px;" /> class="filebtn" style="width: 220px;" />
<font color="red">*</font> <font color="red">*</font>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" width="10%" align="right" nowrap="nowrap"> <td class="color_1" width="10%" align="right" nowrap="nowrap">
i18n_upi.text.des_n81i i18n_upi.text.des_n81i
</td> </td>
<td class="color_3" width="35%" align="left" colspan="3"> <td class="color_3" width="35%" align="left" colspan="3">
<textarea name="pluginInfo.des" id="des" rows="3" cols="40">${pluginInfo.des }</textarea> <textarea name="pluginInfo.des" id="des" rows="3" cols="40">${pluginInfo.des }</textarea>
</td> </td>
</tr> </tr>
<tr> <tr>
<td colspan="4"> <td colspan="4">
<div style="font-size: 12px; padding: 5px;"> <div style="font-size: 12px; padding: 5px;">
<a title="i18n_upi.text.download_n81i" href="#" class="downloadA">${pluginInfo.fileName}</a> <a title="i18n_upi.text.download_n81i" href="#" class="downloadA">${pluginInfo.fileName}</a>
<span class="delUpload" <span class="delUpload"
style="border: gray 1px solid; padding: 5px 15px; background-color: #BABABA; color: #000fff;">i18n_upi.text.delete_n81i style="border: gray 1px solid; padding: 5px 15px; background-color: #BABABA; color: #000fff;">i18n_upi.text.delete_n81i
</span> </span>
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_7" colspan="4" align="right"> <td class="color_7" colspan="4" align="right">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onclick="add()" onmouseup="this.className='btn3_mouseup'" onclick="add()"
value="i18n_upi.button.update_n81i" /> value="i18n_upi.button.update_n81i" />
&nbsp; &nbsp;
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="javascript:document.forms['Mkform'].reset()" value="i18n_upi.button.reset_n81i" /> onclick="javascript:document.forms['Mkform'].reset()" value="i18n_upi.button.reset_n81i" />
</td> </td>
</tr> </tr>
</table> </table>
</form> </form>
</div> </div>
</body> </body>
</html> </html>

File diff suppressed because it is too large Load Diff

View File

@@ -1,89 +1,89 @@
<%@ page language="java" pageEncoding="UTF-8"%> <%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%> <%@ taglib uri="/jstl/c" prefix="c"%>
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_ft.message.title_n81i</title> <title>i18n_ft.message.title_n81i</title>
<link href="<c:url value='/css/styles.css'/>" rel="stylesheet" <link href="<c:url value='/css/styles.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<script type="text/javascript" <script type="text/javascript"
src="<c:url value="/topo/swfobject.js"/>"></script> src="<c:url value="/topo/swfobject.js"/>"></script>
<script type="text/javascript"> <script type="text/javascript">
function inint() function inint()
{ {
if(document.getElementById("topo") != null) if(document.getElementById("topo") != null)
{ {
document.getElementById("topo").focus(); document.getElementById("topo").focus();
} }
} }
</script> </script>
<script language="javascript" type="text/javascript"> <script language="javascript" type="text/javascript">
var contentpath = "<%=request.getContextPath()%>"; var contentpath = "<%=request.getContextPath()%>";
var swfVersionStr = "10.0.0"; var swfVersionStr = "10.0.0";
var xiSwfUrlStr = contentpath+"/topo/playerProductInstall.swf"; var xiSwfUrlStr = contentpath+"/topo/playerProductInstall.swf";
var pathflash = contentpath+"/topo/topo.swf"; var pathflash = contentpath+"/topo/topo.swf";
var flashvars = {"context":contentpath}; var flashvars = {"context":contentpath};
var params = {}; var params = {};
params.quality = "high"; params.quality = "high";
params.bgcolor = "#ffffff"; params.bgcolor = "#ffffff";
params.allowscriptaccess = "sameDomain"; params.allowscriptaccess = "sameDomain";
params.allowfullscreen = "true"; params.allowfullscreen = "true";
params.wmode="transparent"; params.wmode="transparent";
var attributes = {}; var attributes = {};
attributes.id = "topo"; attributes.id = "topo";
attributes.name = "topo"; attributes.name = "topo";
attributes.align = "middle"; attributes.align = "middle";
swfobject.embedSWF( swfobject.embedSWF(
pathflash, "flashContent", pathflash, "flashContent",
"100%", "100%", "100%", "100%",
swfVersionStr, xiSwfUrlStr, swfVersionStr, xiSwfUrlStr,
flashvars, params, attributes); flashvars, params, attributes);
swfobject.createCSS("#flashContent", "display:block;text-align:left;"); swfobject.createCSS("#flashContent", "display:block;text-align:left;");
</script> </script>
</head> </head>
<body onload="inint();" style="margin:0 0;padding:0 0" style="overflow: hidden;"> <body onload="inint();" style="margin:0 0;padding:0 0" style="overflow: hidden;">
<!-- SWFObject's dynamic embed method replaces this alternative HTML content with Flash content when enough <!-- SWFObject's dynamic embed method replaces this alternative HTML content with Flash content when enough
JavaScript and Flash plug-in support is available. The div is initially hidden so that it doesn't show JavaScript and Flash plug-in support is available. The div is initially hidden so that it doesn't show
when JavaScript is disabled. when JavaScript is disabled.
--> -->
<div id="flashContent" align="center" style="font-size:14px; visibility:hidden;margin: 100 200"> <div id="flashContent" align="center" style="font-size:14px; visibility:hidden;margin: 100 200">
<p> <p>
i18n_ft.message.flashContent_n81i i18n_ft.message.flashContent_n81i
<script type="text/javascript"> <script type="text/javascript">
var contentpathforimage = "<%=request.getContextPath()%>"; var contentpathforimage = "<%=request.getContextPath()%>";
document.write("<a href='"+contentpathforimage+"/download/downLoadFile!download.do?file=flashplayer11_install.exe'>i18n_ft.message.flashUrl_n81i</a>" ); document.write("<a href='"+contentpathforimage+"/download/downLoadFile!download.do?file=flashplayer11_install.exe'>i18n_ft.message.flashUrl_n81i</a>" );
</script> </script>
</p> </p>
</div> </div>
<noscript> <noscript>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%" id="topo"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%" id="topo">
<param name="movie" value="<%=request.getContextPath()%>/topo/topo.swf" /> <param name="movie" value="<%=request.getContextPath()%>/topo/topo.swf" />
<param name="quality" value="high" /> <param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" /> <param name="bgcolor" value="#ffffff" />
<param name="allowScriptAccess" value="sameDomain" /> <param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="true" /> <param name="allowFullScreen" value="true" />
<param name="wmode" value="transparent"> <param name="wmode" value="transparent">
<!--[if !IE]>--> <!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="<%=request.getContextPath()%>/topo/topo.swf" width="100%" height="100%"> <object type="application/x-shockwave-flash" data="<%=request.getContextPath()%>/topo/topo.swf" width="100%" height="100%">
<param name="quality" value="high" /> <param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" /> <param name="bgcolor" value="#ffffff" />
<param name="allowScriptAccess" value="sameDomain" /> <param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="true" /> <param name="allowFullScreen" value="true" />
<!--<![endif]--> <!--<![endif]-->
<div align="center" style="font-size:14px;margin: 100 200"> <div align="center" style="font-size:14px;margin: 100 200">
i18n_ft.message.noJsOrFlash_n81i i18n_ft.message.noJsOrFlash_n81i
<a href='<%=request.getContextPath()%>/download/downLoadFile!download.do?file=flashplayer11_install.exe'>i18n_ft.message.flashUrl_n81i</a> <a href='<%=request.getContextPath()%>/download/downLoadFile!download.do?file=flashplayer11_install.exe'>i18n_ft.message.flashUrl_n81i</a>
</div> </div>
<!--[if !IE]>--> <!--[if !IE]>-->
</object> </object>
<!--<![endif]--> <!--<![endif]-->
</object> </object>
</noscript> </noscript>
</body> </body>
</html> </html>

View File

@@ -1,297 +1,297 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%> <%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib uri="/jstl/fn" prefix="fn"%> <%@ taglib uri="/jstl/fn" prefix="fn"%>
<% <%
response.setHeader("Cache-Control", "no-cache"); response.setHeader("Cache-Control", "no-cache");
response.setHeader("Pragma", "no-cache"); response.setHeader("Pragma", "no-cache");
response.setDateHeader("Expires", 0); response.setDateHeader("Expires", 0);
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":" String basePath = request.getScheme() + "://" + request.getServerName() + ":"
+ request.getServerPort() + path + "/"; + request.getServerPort() + path + "/";
request.setAttribute("vEnter","\n"); request.setAttribute("vEnter","\n");
%> %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_abi.message.title_n81i</title> <title>i18n_abi.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" <link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<link href="<c:url value='/css/suggest.css'/>" rel="stylesheet" <link href="<c:url value='/css/suggest.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script> src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script> src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/j.suggest.js'/>"></script> src="<c:url value='/js/j.suggest.js'/>"></script>
</head> </head>
<script language="javascript" type="text/javascript"> <script language="javascript" type="text/javascript">
$(document).keydown(function (e) {//绑定键盘按下事件 防止退格键返回 $(document).keydown(function (e) {//绑定键盘按下事件 防止退格键返回
var doPrevent; var doPrevent;
// for IE && Firefox // for IE && Firefox
var varkey = (e.keyCode) || (e.which) || (e.charCode); var varkey = (e.keyCode) || (e.which) || (e.charCode);
if (varkey == 8) { if (varkey == 8) {
var d = e.srcElement || e.target; var d = e.srcElement || e.target;
if (d.tagName.toUpperCase() == 'INPUT' || d.tagName.toUpperCase() == 'TEXTAREA') { if (d.tagName.toUpperCase() == 'INPUT' || d.tagName.toUpperCase() == 'TEXTAREA') {
doPrevent = d.readOnly || d.disabled; doPrevent = d.readOnly || d.disabled;
if (d.type.toUpperCase() == 'SUBMIT' if (d.type.toUpperCase() == 'SUBMIT'
|| d.type.toUpperCase() == 'RADIO' || d.type.toUpperCase() == 'RADIO'
|| d.type.toUpperCase() == 'CHECKBOX' || d.type.toUpperCase() == 'CHECKBOX'
|| d.type.toUpperCase() == 'BUTTON') { || d.type.toUpperCase() == 'BUTTON') {
doPrevent = true; doPrevent = true;
} }
} }
else { else {
doPrevent = true; doPrevent = true;
} }
} }
else { else {
doPrevent = false; doPrevent = false;
} }
if (doPrevent) if (doPrevent)
e.preventDefault(); e.preventDefault();
}); });
$(function(){ $(function(){
$("#boxUType").change(function(){ $("#boxUType").change(function(){
if(!$id("boxUType","sz","i18n_abi.text.boxUType_n81i")){ if(!$id("boxUType","sz","i18n_abi.text.boxUType_n81i")){
$("#boxUType").val(""); $("#boxUType").val("");
} }
}) })
}) })
function checkIspn(){ function checkIspn(){
var type; var type;
$.ajax({ $.ajax({
url:"<%=path%>/nodePosition/boxSet.do?action=addCheck", url:"<%=path%>/nodePosition/boxSet.do?action=addCheck",
type : "POST", type : "POST",
async:false, async:false,
data:$('#Mkform').serialize(), data:$('#Mkform').serialize(),
success : function(data) { success : function(data) {
if(data == "exist"){ if(data == "exist"){
$("#ispn").next().html("i18n_abi.message.ispn_n81i"); $("#ispn").next().html("i18n_abi.message.ispn_n81i");
type = false; type = false;
}else if(data == "exception"){ }else if(data == "exception"){
alert("i18n_abi.message.faild_n81i"); alert("i18n_abi.message.faild_n81i");
type = false; type = false;
}else if(data =="success"){ }else if(data =="success"){
type = true; type = true;
} }
} }
}); });
return type; return type;
} }
function add(){ function add(){
var roomIspn ; var roomIspn ;
if($id("ispn","","i18n_abi.text.roomIspn_n81i") && $id("boxUType","sz","i18n_abi.text.boxUType_n81i")){ if($id("ispn","","i18n_abi.text.roomIspn_n81i") && $id("boxUType","sz","i18n_abi.text.boxUType_n81i")){
if($("select[name=nodeBox.roomIspn]").val()==undefined){ if($("select[name=nodeBox.roomIspn]").val()==undefined){
roomIspn = $id("roomIspn","","i18n_abi.text.roomIspn_n81i") ; roomIspn = $id("roomIspn","","i18n_abi.text.roomIspn_n81i") ;
}else{ }else{
roomIspn = $id("roomIspn","xz","i18n_abi.text.roomIspn_n81i") ; roomIspn = $id("roomIspn","xz","i18n_abi.text.roomIspn_n81i") ;
} }
if(roomIspn && $id("roomRowPosition","xz","i18n_abi.text.roomRowPosition_n81i") if(roomIspn && $id("roomRowPosition","xz","i18n_abi.text.roomRowPosition_n81i")
&& $id("roomColPosition","xz","i18n_abi.text.roomColPosition_n81i") && $id("descinfo","","i18n_abi.text.descinfo_n81i")){ && $id("roomColPosition","xz","i18n_abi.text.roomColPosition_n81i") && $id("descinfo","","i18n_abi.text.descinfo_n81i")){
if(!containSpecial(lrtrim($("#ispn").val()))){ if(!containSpecial(lrtrim($("#ispn").val()))){
if(checkIspn($("#ispn").val())){ if(checkIspn($("#ispn").val())){
document.Mkform.action="<%=path%>/nodePosition/boxSet.do?action=doAdd"; document.Mkform.action="<%=path%>/nodePosition/boxSet.do?action=doAdd";
document.Mkform.submit(); document.Mkform.submit();
} }
}else{ }else{
$("#ispn").next().html("i18n_abi.message.ispn1_n81i"); $("#ispn").next().html("i18n_abi.message.ispn1_n81i");
return; return;
} }
} }
} }
} }
//去除左右两端空格 //去除左右两端空格
function lrtrim(s){ function lrtrim(s){
s = s.replace(/(^\s*)|(\s*$)/g,""); s = s.replace(/(^\s*)|(\s*$)/g,"");
return s; return s;
} }
function goBack(){ function goBack(){
document.Mkform.action="<%=path%>/nodePosition/boxSet.do?action=query"; document.Mkform.action="<%=path%>/nodePosition/boxSet.do?action=query";
document.Mkform.submit(); document.Mkform.submit();
} }
// -----机房及位置相关处理 // -----机房及位置相关处理
$(function(){ $(function(){
//-- 机房 事件绑定 获取可选行号 //-- 机房 事件绑定 获取可选行号
roomIspnChange(); roomIspnChange();
//-- i18n_abi.text.roomRowPosition_n81i 事件绑定 由行号决定可选列号 //-- i18n_abi.text.roomRowPosition_n81i 事件绑定 由行号决定可选列号
$("#roomRowPosition").blur(function(){ $("#roomRowPosition").blur(function(){
$("#roomColPosition").empty(); $("#roomColPosition").empty();
$("#roomColPosition").append("<option value=''>i18n_abi.message.selectDefault_n81i</option>"); $("#roomColPosition").append("<option value=''>i18n_abi.message.selectDefault_n81i</option>");
var roomIspnVal = $("#roomIspn").val(); var roomIspnVal = $("#roomIspn").val();
if(roomIspnVal==null||roomIspnVal==""||roomIspnVal==undefined){ if(roomIspnVal==null||roomIspnVal==""||roomIspnVal==undefined){
roomIspnVal = $("select[name=nodeBox.roomIspn]").val() roomIspnVal = $("select[name=nodeBox.roomIspn]").val()
} }
var curVal = $(this).val(); var curVal = $(this).val();
if(curVal!=""){ if(curVal!=""){
$.post("<c:url value='/nodePosition/boxSet!getRoomFreeCols.do'/>", $.post("<c:url value='/nodePosition/boxSet!getRoomFreeCols.do'/>",
{"roomIspn":roomIspnVal,"rowNum":curVal}, {"roomIspn":roomIspnVal,"rowNum":curVal},
function(data){ function(data){
// 追加option元素 // 追加option元素
if(data!=null && data!=""){ if(data!=null && data!=""){
$.each(data, function(i,val){ $.each(data, function(i,val){
$("#roomColPosition").append("<option value='"+val+"'>" + val + "</option>"); $("#roomColPosition").append("<option value='"+val+"'>" + val + "</option>");
}); });
} }
}, "json"); }, "json");
} }
}); });
}); });
function roomIspnChange(){ function roomIspnChange(){
var roomIspnVal; var roomIspnVal;
roomIspnVal = $("#roomIspn").val(); roomIspnVal = $("#roomIspn").val();
if(roomIspnVal==null||roomIspnVal==""||roomIspnVal==undefined){ if(roomIspnVal==null||roomIspnVal==""||roomIspnVal==undefined){
roomIspnVal = $("select[name=nodeBox.roomIspn]").val() roomIspnVal = $("select[name=nodeBox.roomIspn]").val()
} }
$("#roomRowPosition").empty(); $("#roomRowPosition").empty();
$("#roomRowPosition").append("<option value=''>i18n_abi.message.selectDefault_n81i</option>"); $("#roomRowPosition").append("<option value=''>i18n_abi.message.selectDefault_n81i</option>");
$("#roomColPosition").empty(); $("#roomColPosition").empty();
$("#roomColPosition").append("<option value=''>i18n_abi.message.selectDefault_n81i</option>"); $("#roomColPosition").append("<option value=''>i18n_abi.message.selectDefault_n81i</option>");
$.post("<c:url value='/nodePosition/boxSet!getRoomFreeRows.do'/>", $.post("<c:url value='/nodePosition/boxSet!getRoomFreeRows.do'/>",
{"roomIspn":roomIspnVal}, {"roomIspn":roomIspnVal},
function(data){ function(data){
// 追加option元素 // 追加option元素
if(data!=null && data!=""){ if(data!=null && data!=""){
$.each(data, function(i,val){ $.each(data, function(i,val){
$("#roomRowPosition").append("<option value='"+val+"'>" + val + "</option>"); $("#roomRowPosition").append("<option value='"+val+"'>" + val + "</option>");
}); });
} }
}, "json"); }, "json");
} }
</script> </script>
<body> <body>
<div class="middle_list" > <div class="middle_list" >
<div class="box_2"> <div class="box_2">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="goBack()" value="i18n_abi.button.back_n81i"/> onclick="goBack()" value="i18n_abi.button.back_n81i"/>
</div> </div>
<form action="" name="Mkform" id="Mkform" method="post"> <form action="" name="Mkform" id="Mkform" method="post">
<input type="hidden" name="ispnNum" value="${ispnNum }"> <input type="hidden" name="ispnNum" value="${ispnNum }">
<input type="hidden" name="pageNo" value="${pageNo }" /> <input type="hidden" name="pageNo" value="${pageNo }" />
<input type="hidden" name="pageSize" value="${pageSize }" /> <input type="hidden" name="pageSize" value="${pageSize }" />
<input type="hidden" name="fromWhere" value="${fromWhere }"/> <input type="hidden" name="fromWhere" value="${fromWhere }"/>
<input type="hidden" name="roomid" value="${roomid }"/> <input type="hidden" name="roomid" value="${roomid }"/>
<input type="hidden" name="roomIspn" value="${roomIspn }" > <input type="hidden" name="roomIspn" value="${roomIspn }" >
<div style="clear: both"></div> <div style="clear: both"></div>
<table border="0" cellpadding="0" cellspacing="0" class="table"> <table border="0" cellpadding="0" cellspacing="0" class="table">
<tr> <tr>
<td colspan="2" class="color_8"> <td colspan="2" class="color_8">
<strong>i18n_abi.text.title_n81i</strong> <strong>i18n_abi.text.title_n81i</strong>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" width="30%" align="right"> <td class="color_1" width="30%" align="right">
i18n_abi.text.ispn_n81i i18n_abi.text.ispn_n81i
</td> </td>
<td class="color_3" align="left"> <td class="color_3" align="left">
<input type="text" name="nodeBox.ispn" id="ispn" /> <input type="text" name="nodeBox.ispn" id="ispn" />
<font color="red">*</font> <font color="red">*</font>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" width="30%" align="right"> <td class="color_1" width="30%" align="right">
i18n_abi.text.U_n81i i18n_abi.text.U_n81i
</td> </td>
<td class="color_3" align="left"> <td class="color_3" align="left">
<input type="text" name="nodeBox.boxUType" id="boxUType" <input type="text" name="nodeBox.boxUType" id="boxUType"
value="42" /> value="42" />
<font color="red">*</font> <font color="red">*</font>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right"> <td class="color_1" align="right">
i18n_abi.text.roomIspn_n81i i18n_abi.text.roomIspn_n81i
</td> </td>
<td class="color_3" align="left"> <td class="color_3" align="left">
<c:choose> <c:choose>
<c:when test="${roomIspn==null||roomIspn==''}"> <c:when test="${roomIspn==null||roomIspn==''}">
<select name="nodeBox.roomIspn" onchange="roomIspnChange()" id="roomIspn"> <select name="nodeBox.roomIspn" onchange="roomIspnChange()" id="roomIspn">
<option value="">i18n_abi.message.selectDefault_n81i</option> <option value="">i18n_abi.message.selectDefault_n81i</option>
<c:forEach items="${nodeRoomList}" var="item"> <c:forEach items="${nodeRoomList}" var="item">
<option value="${item.roomIspn}">${item.roomIspn}</option> <option value="${item.roomIspn}">${item.roomIspn}</option>
</c:forEach> </c:forEach>
</select> </select>
</c:when> </c:when>
<c:otherwise> <c:otherwise>
<input disabled="disabled" value="${roomIspn }"/> <input disabled="disabled" value="${roomIspn }"/>
<input name="nodeBox.roomIspn" id="roomIspn" type="hidden" value="${roomIspn }"/> <input name="nodeBox.roomIspn" id="roomIspn" type="hidden" value="${roomIspn }"/>
</c:otherwise> </c:otherwise>
</c:choose> </c:choose>
<font color="red">*</font> <font color="red">*</font>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right"> <td class="color_1" align="right">
i18n_abi.text.roomRowPosition_n81i i18n_abi.text.roomRowPosition_n81i
</td> </td>
<td class="color_3" align="left"> <td class="color_3" align="left">
<select name="nodeBox.roomRowPosition" id="roomRowPosition" <select name="nodeBox.roomRowPosition" id="roomRowPosition"
style="width: 151px;"> style="width: 151px;">
<option value=""> <option value="">
i18n_abi.message.selectDefault_n81i i18n_abi.message.selectDefault_n81i
</option> </option>
</select> </select>
<font color="red">*</font> <font color="red">*</font>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right"> <td class="color_1" align="right">
i18n_abi.text.roomColPosition_n81i i18n_abi.text.roomColPosition_n81i
</td> </td>
<td class="color_3" align="left"> <td class="color_3" align="left">
<select name="nodeBox.roomColPosition" id="roomColPosition" <select name="nodeBox.roomColPosition" id="roomColPosition"
style="width: 151px;"> style="width: 151px;">
<option value=""> <option value="">
i18n_abi.message.selectDefault_n81i i18n_abi.message.selectDefault_n81i
</option> </option>
</select> </select>
<font color="red">*</font> <font color="red">*</font>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" width="20%" align="right"> <td class="color_1" width="20%" align="right">
i18n_abi.text.des_n81i i18n_abi.text.des_n81i
</td> </td>
<td class="color_3" align="left"> <td class="color_3" align="left">
<textarea rows="5" cols="60" id="descinfo" <textarea rows="5" cols="60" id="descinfo"
name="nodeBox.descinfo" ></textarea> name="nodeBox.descinfo" ></textarea>
<font color="red">*</font> <font color="red">*</font>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_7" colspan="2" align="right"> <td class="color_7" colspan="2" align="right">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onclick="add()" value="i18n_abi.text.submit_n81i"/> onmouseup="this.className='btn3_mouseup'" onclick="add()" value="i18n_abi.text.submit_n81i"/>
&nbsp; &nbsp;
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="javascript:document.forms['Mkform'].reset()" value="i18n_abi.text.reset_n81i"/> onclick="javascript:document.forms['Mkform'].reset()" value="i18n_abi.text.reset_n81i"/>
</td> </td>
</tr> </tr>
</table> </table>
</form> </form>
</div> </div>
</body> </body>
</html> </html>

View File

@@ -1,456 +1,456 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="/jstl/c"%> <%@ taglib prefix="c" uri="/jstl/c"%>
<%@ taglib prefix="fn" uri="/jstl/fn"%> <%@ taglib prefix="fn" uri="/jstl/fn"%>
<%@ taglib prefix="fmt" uri="/jstl/fmt"%> <%@ taglib prefix="fmt" uri="/jstl/fmt"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
%> %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_bil.message.title_n81i</title> <title>i18n_bil.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" type="text/css" /> <link href="<c:url value='/css/nms.css'/>" rel="stylesheet" type="text/css" />
<link href="<c:url value='/js/jBox/Skins/Gray/jbox.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" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script> src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script> src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.suggest.js'/>"></script> src="<c:url value='/js/jquery.suggest.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value="/js/jBox/jquery.jBox-2.3.min.js"/>"></script> src="<c:url value="/js/jBox/jquery.jBox-2.3.min.js"/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value="/js/fileInput.js"/>"></script> src="<c:url value="/js/fileInput.js"/>"></script>
<style type="text/css"> <style type="text/css">
.mydiv { .mydiv {
background-color:#fff; background-color:#fff;
border: 1px solid #000; border: 1px solid #000;
text-align: center; text-align: center;
line-height: 40px; line-height: 40px;
font-size: 12px; font-size: 12px;
font-weight: bold; font-weight: bold;
z-index:99; z-index:99;
width: 220px; width: 220px;
height: 80px; height: 80px;
left:50%;/*FF IE7*/ left:50%;/*FF IE7*/
top: 50%;/*FF IE7*/ top: 50%;/*FF IE7*/
margin-left:-150px!important;/*FF IE7 该值为本身宽的一半 */ margin-left:-150px!important;/*FF IE7 该值为本身宽的一半 */
margin-top:-60px!important;/*FF IE7 该值为本身高的一半*/ margin-top:-60px!important;/*FF IE7 该值为本身高的一半*/
margin-top:0px; margin-top:0px;
position:fixed!important;/*FF IE7*/ position:fixed!important;/*FF IE7*/
position:absolute;/*IE6*/ position:absolute;/*IE6*/
_top: expression(eval(document.compatMode && _top: expression(eval(document.compatMode &&
document.compatMode=='CSS1Compat') ? document.compatMode=='CSS1Compat') ?
documentElement.scrollTop + (document.documentElement.clientHeight-this.offsetHeight)/2 :/*IE6*/ documentElement.scrollTop + (document.documentElement.clientHeight-this.offsetHeight)/2 :/*IE6*/
document.body.scrollTop + (document.body.clientHeight - this.clientHeight)/2);/*IE5 IE5.5*/ document.body.scrollTop + (document.body.clientHeight - this.clientHeight)/2);/*IE5 IE5.5*/
} }
.bg { .bg {
background-color: #ccc; background-color: #ccc;
width: 100%; width: 100%;
height: 100%; height: 100%;
left:0; left:0;
top:0;/*FF IE7*/ top:0;/*FF IE7*/
filter:alpha(opacity=50);/*IE*/ filter:alpha(opacity=50);/*IE*/
opacity:0.5;/*FF*/ opacity:0.5;/*FF*/
z-index:1; z-index:1;
position:fixed!important;/*FF IE7*/ position:fixed!important;/*FF IE7*/
position:absolute;/*IE6*/ position:absolute;/*IE6*/
_top: expression(eval(document.compatMode && _top: expression(eval(document.compatMode &&
document.compatMode=='CSS1Compat') ? document.compatMode=='CSS1Compat') ?
documentElement.scrollTop + (document.documentElement.clientHeight-this.offsetHeight)/2 :/*IE6*/ documentElement.scrollTop + (document.documentElement.clientHeight-this.offsetHeight)/2 :/*IE6*/
document.body.scrollTop + (document.body.clientHeight - this.clientHeight)/2);/*IE5 IE5.5*/ document.body.scrollTop + (document.body.clientHeight - this.clientHeight)/2);/*IE5 IE5.5*/
} }
/*The END*/ /*The END*/
</style> </style>
</head> </head>
<script language="javascript" type="text/javascript"> <script language="javascript" type="text/javascript">
var msg = '${MSG}'; var msg = '${MSG}';
if(msg=='1'){ if(msg=='1'){
alert("i18n_bil.message.success_n81i"); alert("i18n_bil.message.success_n81i");
}else if(msg=='2'){ }else if(msg=='2'){
alert("i18n_bil.message.faild_n81i"); alert("i18n_bil.message.faild_n81i");
} }
//添加记录 //添加记录
function addNb(){ function addNb(){
document.form3.action ="<%=path%>/nodePosition/boxSet!executeAction.do?action=openAdd&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }'; document.form3.action ="<%=path%>/nodePosition/boxSet!executeAction.do?action=openAdd&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }';
document.form3.submit(); document.form3.submit();
} }
//修改记录 //修改记录
function updNb(){ function updNb(){
if(!isRigthCheck("ids", "edit")){ if(!isRigthCheck("ids", "edit")){
alert("i18n_bil.message.selectOne_n81i"); alert("i18n_bil.message.selectOne_n81i");
}else{ }else{
document.form3.action ="<%=path%>/nodePosition/boxSet!executeAction.do?action=openUpdate&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }'; document.form3.action ="<%=path%>/nodePosition/boxSet!executeAction.do?action=openUpdate&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }';
document.form3.submit(); document.form3.submit();
} }
} }
//删除记录 //删除记录
function delNb(){ function delNb(){
if(!isRigthCheck("ids", "remove")){ if(!isRigthCheck("ids", "remove")){
alert("i18n_bil.message.selectOne_n81i"); alert("i18n_bil.message.selectOne_n81i");
}else if(confirm("i18n_bil.message.delete_n81i")){ }else if(confirm("i18n_bil.message.delete_n81i")){
document.form3.action ="<%=path%>/nodePosition/boxSet!executeAction.do?action=del&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }'; document.form3.action ="<%=path%>/nodePosition/boxSet!executeAction.do?action=del&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }';
document.form3.submit(); document.form3.submit();
} }
} }
//查询记录 //查询记录
function qry(){ function qry(){
document.form3.action = "<%=path%>/nodePosition/boxSet.do?action=query"; document.form3.action = "<%=path%>/nodePosition/boxSet.do?action=query";
document.form3.submit(); document.form3.submit();
} }
//返回 //返回
function goBack(){ function goBack(){
document.location.href = "<%=path%>/nodePosition/roomManage.do?action=query"; document.location.href = "<%=path%>/nodePosition/roomManage.do?action=query";
} }
var set_Id; var set_Id;
var ajaxProperties = ""; var ajaxProperties = "";
var ajaxTableName = ""; var ajaxTableName = "";
var ajaxType = ""; var ajaxType = "";
var id = ""; var id = "";
var returnDiv = ""; var returnDiv = "";
var ajaxValue = ""; var ajaxValue = "";
function lianxiangkeydown() { function lianxiangkeydown() {
clearTimeout(set_Id); clearTimeout(set_Id);
} }
function lianxiangkeyup(ajaxProperties1,ajaxTableName1,ajaxType1,id1,returnDiv1,ajaxValue1) { function lianxiangkeyup(ajaxProperties1,ajaxTableName1,ajaxType1,id1,returnDiv1,ajaxValue1) {
if(parent.document.getElementById("lianxiangStatus").value=="2") if(parent.document.getElementById("lianxiangStatus").value=="2")
{ {
if(jQuery.trim(ajaxValue1)=="") return false; if(jQuery.trim(ajaxValue1)=="") return false;
ajaxProperties = ajaxProperties1; ajaxProperties = ajaxProperties1;
ajaxTableName = ajaxTableName1; ajaxTableName = ajaxTableName1;
ajaxType = ajaxType1; ajaxType = ajaxType1;
id = id1; id = id1;
returnDiv = returnDiv1; returnDiv = returnDiv1;
if(!containSpecial(ajaxValue1)){ if(!containSpecial(ajaxValue1)){
ajaxValue = ajaxValue1; ajaxValue = ajaxValue1;
}else{ }else{
alert('i18n_bil.message.inputInfo_n81i'); alert('i18n_bil.message.inputInfo_n81i');
$("#"+id).val(''); $("#"+id).val('');
return; return;
} }
clearTimeout(set_Id); clearTimeout(set_Id);
set_Id = setTimeout(ajaxForLianxiang,500); set_Id = setTimeout(ajaxForLianxiang,500);
} }
} }
function ajaxForLianxiang() function ajaxForLianxiang()
{ {
jQuery.post("<%=path%>/sysManage/sysPopedomManage!queryInfoForAjax.do", jQuery.post("<%=path%>/sysManage/sysPopedomManage!queryInfoForAjax.do",
{"ajaxProperties":ajaxProperties,"ajaxTableName":ajaxTableName,"ajaxType":ajaxType,"ajaxValue":ajaxValue},function(data) {"ajaxProperties":ajaxProperties,"ajaxTableName":ajaxTableName,"ajaxType":ajaxType,"ajaxValue":ajaxValue},function(data)
{ {
var lianxiangList = data.split(","); var lianxiangList = data.split(",");
jQuery("#"+id).suggest(lianxiangList,{hot_list:lianxiangList,attachObject:"#"+returnDiv}); jQuery("#"+id).suggest(lianxiangList,{hot_list:lianxiangList,attachObject:"#"+returnDiv});
}); });
} }
function ieBrowser(){ function ieBrowser(){
if($.browser.msie){ if($.browser.msie){
if($.browser.version.split('.')[0]<=7){ if($.browser.version.split('.')[0]<=7){
return false; return false;
}else{ }else{
return true;//ie8+ return true;//ie8+
} }
} }
} }
function goGuide(datas) { function goGuide(datas) {
if(datas!=null && datas!=""){ if(datas!=null && datas!=""){
if(datas.resu=='over') { if(datas.resu=='over') {
window.location ="<%=path%>/sysManage/guideManage!execute.do?action=index"; window.location ="<%=path%>/sysManage/guideManage!execute.do?action=index";
} }
} }
} }
// 程辉 2013-4-27 新增 模板下载 // 程辉 2013-4-27 新增 模板下载
function downloadExample() { function downloadExample() {
document.form3.action = "<%=path%>/nodePosition/boxSet.do?action=downloadExample"; document.form3.action = "<%=path%>/nodePosition/boxSet.do?action=downloadExample";
document.form3.submit(); document.form3.submit();
document.form3.action = "<%=path%>/nodePosition/boxSet.do?action=query"; document.form3.action = "<%=path%>/nodePosition/boxSet.do?action=query";
} }
//程辉 2013-4-27 新增 导入节点 //程辉 2013-4-27 新增 导入节点
function importXls() { function importXls() {
var myfileVal = document.getElementById("myFile").value; var myfileVal = document.getElementById("myFile").value;
if(myfileVal=="") { if(myfileVal=="") {
alert("i18n_bil.message.selectImportFile_n81i"); alert("i18n_bil.message.selectImportFile_n81i");
}else if((myfileVal.lastIndexOf(".xlsx")+5)!=myfileVal.length && (myfileVal.lastIndexOf(".xls")+4)!=myfileVal.length){ }else if((myfileVal.lastIndexOf(".xlsx")+5)!=myfileVal.length && (myfileVal.lastIndexOf(".xls")+4)!=myfileVal.length){
alert("i18n_bil.message.selectFileType_n81i"); alert("i18n_bil.message.selectFileType_n81i");
}else if(confirm('i18n_bil.message.sureToImport_n81i')){ }else if(confirm('i18n_bil.message.sureToImport_n81i')){
//window.location = "<%=path%>/nodePosition/boxSet.do?action=importXls"; //window.location = "<%=path%>/nodePosition/boxSet.do?action=importXls";
document.form3.action = "<%=path%>/nodePosition/boxSet.do?action=importXls"; document.form3.action = "<%=path%>/nodePosition/boxSet.do?action=importXls";
document.form3.submit(); document.form3.submit();
document.form3.action = "<%=path%>/nodePosition/boxSet.do?action=query"; document.form3.action = "<%=path%>/nodePosition/boxSet.do?action=query";
} }
} }
//程辉 2013-5-8 新增 导出当前页 //程辉 2013-5-8 新增 导出当前页
function emportCurrentXls() { function emportCurrentXls() {
document.form3.action = "<c:url value='/'/>//nodePosition/boxSet.do?action=emportCurrentXls&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }'+"&ispnNum="+$("#ispn").val(); document.form3.action = "<c:url value='/'/>//nodePosition/boxSet.do?action=emportCurrentXls&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }'+"&ispnNum="+$("#ispn").val();
document.form3.submit(); document.form3.submit();
closeDiv(); closeDiv();
document.form3.action = "<%=path%>/nodePosition/boxSet.do?action=query"; document.form3.action = "<%=path%>/nodePosition/boxSet.do?action=query";
} }
//程辉 2013-5-8 新增 导出全部 //程辉 2013-5-8 新增 导出全部
function emportAllXls() { function emportAllXls() {
document.form3.action = "<c:url value='/'/>/nodePosition/boxSet.do?action=emportAllXls&ispnNum="+$("#ispn").val(); document.form3.action = "<c:url value='/'/>/nodePosition/boxSet.do?action=emportAllXls&ispnNum="+$("#ispn").val();
document.form3.submit(); document.form3.submit();
closeDiv(); closeDiv();
document.form3.action = "<%=path%>/nodePosition/boxSet.do?action=query"; document.form3.action = "<%=path%>/nodePosition/boxSet.do?action=query";
} }
function showDiv(){ function showDiv(){
document.getElementById('popDiv').style.display='block'; document.getElementById('popDiv').style.display='block';
document.getElementById('bg').style.display='block'; document.getElementById('bg').style.display='block';
} }
function closeDiv(){ function closeDiv(){
document.getElementById('popDiv').style.display='none'; document.getElementById('popDiv').style.display='none';
document.getElementById('bg').style.display='none'; document.getElementById('bg').style.display='none';
} }
$(function(){ $(function(){
var dh = document.body.clientHeight; var dh = document.body.clientHeight;
var dhh = dh-60+"px;"; var dhh = dh-60+"px;";
var tableHeight = $("#info").height(); var tableHeight = $("#info").height();
if(tableHeight > dh-60){ 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); $("#maindiv").attr("style","clear:both;margin-left:6px;overflow-y:auto;overflow-x:auto;width:99%;font-size:12px;height: "+dhh);
if(ieBrowser()){ if(ieBrowser()){
$("#info").attr("style","width:100%;"); $("#info").attr("style","width:100%;");
}else{ }else{
$("#info").attr("style","width:98.5%;"); $("#info").attr("style","width:98.5%;");
} }
}else{ }else{
$("#maindiv").attr("style","clear:both;margin-left:6px;overflow-y:auto;overflow-x:auto;width:98%;font-size:12px;height: "+dhh); $("#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%;"); $("#info").attr("style","width:100%;");
} }
$("#info").floatHeaderDiv(); $("#info").floatHeaderDiv();
// $("#maindiv").attr("style","clear:left"); // $("#maindiv").attr("style","clear:left");
if($("#isComplete").val()=='0'){ if($("#isComplete").val()=='0'){
//var content = { //var content = {
// content: '业务系统操作已完成,是否进行下一步操作?', // content: '业务系统操作已完成,是否进行下一步操作?',
// buttons: { '下一步': 1, '返回'0,'取消': -1 }, // buttons: { '下一步': 1, '返回'0,'取消': -1 },
// buttonsFocus: 0, // buttonsFocus: 0,
// submit: function (v, h, f) { // submit: function (v, h, f) {
// if(v == 1) {//执行下一步--用户组 // if(v == 1) {//执行下一步--用户组
// window.location ="<%=path%>/sysManage/userGroupPerssion.do?action=query"; // window.location ="<%=path%>/sysManage/userGroupPerssion.do?action=query";
// } // }
// if(v == 0){//返回到设置向导页 // if(v == 0){//返回到设置向导页
// window.location ="<%=path%>/sysManage/guideManage!execute.do?action=index"; // window.location ="<%=path%>/sysManage/guideManage!execute.do?action=index";
// } // }
// if(v == -1){//返回到设置向导页 // if(v == -1){//返回到设置向导页
// return; // return;
// } // }
// } // }
//}; //};
//$.jBox(content); //$.jBox(content);
var submit = function (v, h, f) { var submit = function (v, h, f) {
if (v == 'yes') { if (v == 'yes') {
$("input[type=hidden][name=fromWhere]").val('formGuide'); $("input[type=hidden][name=fromWhere]").val('formGuide');
return; return;
} }
if (v == 'no') { if (v == 'no') {
$.post("<c:url value='/sysManage/guideManage!setComplete.do'/>", $.post("<c:url value='/sysManage/guideManage!setComplete.do'/>",
{ {
packNum:4, packNum:4,
packName:'jg' packName:'jg'
}, },
function(datas){ function(datas){
goGuide(datas); goGuide(datas);
},"json"); },"json");
} }
}; };
$.jBox.warning("i18n_bil.message.warning_n81i", "i18n_bil.message.hint_n81i", submit,{icon: false}); $.jBox.warning("i18n_bil.message.warning_n81i", "i18n_bil.message.hint_n81i", submit,{icon: false});
} }
}); });
</script> </script>
<body> <body>
<div class="middle_list" style="overflow: hidden;"> <div class="middle_list" style="overflow: hidden;">
<form name=form3 id="frmArticleType" <form name=form3 id="frmArticleType"
action="<c:url value='/nodePosition/boxSet.do'/>" method="post" enctype="multipart/form-data"> action="<c:url value='/nodePosition/boxSet.do'/>" method="post" enctype="multipart/form-data">
<input type="hidden" name = "isComplete" id="isComplete" value="${isComplete}"/> <input type="hidden" name = "isComplete" id="isComplete" value="${isComplete}"/>
<input type="hidden" name="fromWhere" value="${fromWhere }"/> <input type="hidden" name="fromWhere" value="${fromWhere }"/>
<input type="hidden" name="roomid" value="${roomid }"/> <input type="hidden" name="roomid" value="${roomid }"/>
<input type="hidden" name="roomIspn" value="${roomIspn }"/> <input type="hidden" name="roomIspn" value="${roomIspn }"/>
<div id="divTop"> <div id="divTop">
<div class="box_1"> <div class="box_1">
<label class="divTopText"><font class="selectText">i18n_bil.text.nodeBoxTable_n81i</font> <label class="divTopText"><font class="selectText">i18n_bil.text.nodeBoxTable_n81i</font>
<input type="text" id="ispn" <input type="text" id="ispn"
onkeyup="lianxiangkeyup('ispn','NodeBoxTable','String','ispn','suggest1',this.value);" onkeyup="lianxiangkeyup('ispn','NodeBoxTable','String','ispn','suggest1',this.value);"
name="ispnNum" title="i18n_bil.message.nodeBoxTable_n81i" value="${ispnNum}" size="20" /> name="ispnNum" title="i18n_bil.message.nodeBoxTable_n81i" value="${ispnNum}" size="20" />
<div id='suggest1' class="ac_results"></div></label> <div id='suggest1' class="ac_results"></div></label>
<img src="<c:url value='/images/button_chaxun.png'/>" <img src="<c:url value='/images/button_chaxun.png'/>"
class="img_middle" onclick="javascript:qry();" /> class="img_middle" onclick="javascript:qry();" />
</div> </div>
<div class="box_2"> <div class="box_2">
<!-- 程辉 2013-4-27 新增 begin--> <!-- 程辉 2013-4-27 新增 begin-->
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="javascript:downloadExample();" value="i18n_bil.button.downloadExample_n81i"/> onclick="javascript:downloadExample();" value="i18n_bil.button.downloadExample_n81i"/>
&nbsp; &nbsp;
<input type="button" value="i18n_bil.text.importXls_n81i" title="i18n_bil.text.importXls_n81i" class="btn3_mouseout" onclick="javascript:uploadFile(this)"/> <input type="button" value="i18n_bil.text.importXls_n81i" title="i18n_bil.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="file" name="myFile" id="myFile" value="" class="filebtn" onchange="javascript:setValue(this.value)"/>
&nbsp; &nbsp;
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="javascript:importXls();" value="i18n_bil.button.importXls_n81i"/> onclick="javascript:importXls();" value="i18n_bil.button.importXls_n81i"/>
&nbsp; &nbsp;
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="javascript:showDiv();" value="i18n_bil.button.showDiv_n81i"/> onclick="javascript:showDiv();" value="i18n_bil.button.showDiv_n81i"/>
&nbsp; &nbsp;
<!-- 程辉 2013-4-27 新增 end--> <!-- 程辉 2013-4-27 新增 end-->
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="javascript:addNb();" value="i18n_bil.button.add_n81i" /> onclick="javascript:addNb();" value="i18n_bil.button.add_n81i" />
&nbsp; &nbsp;
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="javascript:updNb();" value="i18n_bil.button.update_n81i" /> onclick="javascript:updNb();" value="i18n_bil.button.update_n81i" />
&nbsp; &nbsp;
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="javascript:delNb();" value="i18n_bil.button.delete_n81i" /> onclick="javascript:delNb();" value="i18n_bil.button.delete_n81i" />
&nbsp; &nbsp;
<%--<jsp:include page="/include/include.jsp" />--%> <%--<jsp:include page="/include/include.jsp" />--%>
<c:if test="${roomid ne null && roomid ne ''}"> <c:if test="${roomid ne null && roomid ne ''}">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="javascript:goBack();" value="i18n_bil.button.back_n81i" /> onclick="javascript:goBack();" value="i18n_bil.button.back_n81i" />
</c:if> </c:if>
</div> </div>
</div> </div>
<div id="maindiv"> <div id="maindiv">
<table border="0" cellpadding="0" cellspacing="0" class="table" id="info"> <table border="0" cellpadding="0" cellspacing="0" class="table" id="info">
<tr> <tr>
<td width="10%" class="color_top" nowrap> <td width="10%" class="color_top" nowrap>
<input type="checkbox" <input type="checkbox"
name="checkbox62" value="checkbox" onClick="checkAll(this)" />i18n_bil.text.index_n81i name="checkbox62" value="checkbox" onClick="checkAll(this)" />i18n_bil.text.index_n81i
</td> </td>
<td width="20%" class="color_top" nowrap> <td width="20%" class="color_top" nowrap>
i18n_bil.text.nodeBoxTable_n81i i18n_bil.text.nodeBoxTable_n81i
</td> </td>
<td width="30%" class="color_top" nowrap> <td width="30%" class="color_top" nowrap>
i18n_bil.text.descinfo_n81i i18n_bil.text.descinfo_n81i
</td> </td>
<td width="20%" class="color_top" nowrap> <td width="20%" class="color_top" nowrap>
i18n_bil.text.roomIspn_n81i i18n_bil.text.roomIspn_n81i
</td> </td>
</tr> </tr>
<c:set var="index" value="${1}" /> <c:set var="index" value="${1}" />
<c:choose> <c:choose>
<c:when test="${fn:length(nodeBoxList) > 0}"> <c:when test="${fn:length(nodeBoxList) > 0}">
<c:forEach items="${nodeBoxList}" var="nodebox" varStatus="vs"> <c:forEach items="${nodeBoxList}" var="nodebox" varStatus="vs">
<c:set var="color" value="color_1"/> <c:set var="color" value="color_1"/>
<c:set var="color_end" value="color_7"/> <c:set var="color_end" value="color_7"/>
<c:if test="${vs.count%2!=0 }"> <c:if test="${vs.count%2!=0 }">
<c:set var="color" value="color_3"/> <c:set var="color" value="color_3"/>
<c:set var="color_end" value="color_6"/> <c:set var="color_end" value="color_6"/>
</c:if> </c:if>
<tr> <tr>
<td class="${color }"> <td class="${color }">
<input type="checkbox" name="ids" id="ids" <input type="checkbox" name="ids" id="ids"
value="${nodebox.nodeBoxId}" /> value="${nodebox.nodeBoxId}" />
${index+(pageNo-1)*pageSize} ${index+(pageNo-1)*pageSize}
</td> </td>
<td class="${color }"> <td class="${color }">
${nodebox.ispn} ${nodebox.ispn}
</td> </td>
<td class="${color }"> <td class="${color }">
${nodebox.descinfo} ${nodebox.descinfo}
</td> </td>
<td class="${color }"> <td class="${color }">
${nodebox.roomIspn} ${nodebox.roomIspn}
</td> </td>
</tr> </tr>
<c:set var="index" value="${index + 1}" /> <c:set var="index" value="${index + 1}" />
</c:forEach> </c:forEach>
</c:when> </c:when>
<c:otherwise> <c:otherwise>
<tr> <tr>
<td colspan="4" height="20" class="color_6" align="center"> <td colspan="4" height="20" class="color_6" align="center">
i18n_bil.text.noRecord_n81i i18n_bil.text.noRecord_n81i
</td> </td>
</tr> </tr>
</c:otherwise> </c:otherwise>
</c:choose> </c:choose>
</table> </table>
</div> </div>
<c:if test="${!empty nodeBoxList}"> <c:if test="${!empty nodeBoxList}">
<div id="divBoot"> <div id="divBoot">
<jsp:include page="/common/page.jsp" /> <jsp:include page="/common/page.jsp" />
</div> </div>
</c:if> </c:if>
</form> </form>
</div> </div>
<br /> <br />
<div id="popDiv" class="mydiv" style="display:none;"> <div id="popDiv" class="mydiv" style="display:none;">
<input type="hidden" /> <input type="hidden" />
<input type="button" class=btn3_mouseout style="width:100px;" <input type="button" class=btn3_mouseout style="width:100px;"
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="javascript:emportCurrentXls();" value="i18n_bil.button.exportCurrentPage_n81i"/> onclick="javascript:emportCurrentXls();" value="i18n_bil.button.exportCurrentPage_n81i"/>
&nbsp; &nbsp;
<input type="button" class=btn3_mouseout style="width:80px" <input type="button" class=btn3_mouseout style="width:80px"
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="javascript:emportAllXls();" value="i18n_bil.button.exportAllData_n81i"/> onclick="javascript:emportAllXls();" value="i18n_bil.button.exportAllData_n81i"/>
&nbsp;<br/> &nbsp;<br/>
<a href="javascript:closeDiv()">i18n_bil.text.closeWindow_n81i</a></div> <a href="javascript:closeDiv()">i18n_bil.text.closeWindow_n81i</a></div>
<div id="bg" class="bg" style="display:none;"></div> <div id="bg" class="bg" style="display:none;"></div>
</body> </body>
</html> </html>

View File

@@ -1,93 +1,93 @@
<%@ page language="java" pageEncoding="UTF-8"%> <%@ page language="java" pageEncoding="UTF-8"%>
<%@include file="/common/taglib.jsp"%> <%@include file="/common/taglib.jsp"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
%> %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!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"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>i18n_sie.message.title_n81i</title> <title>i18n_sie.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" <link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<script type="text/javascript"> <script type="text/javascript">
function goBack(){ function goBack(){
document.form1.action="<%=path%>/nodePosition/boxSet.do?action=query"; document.form1.action="<%=path%>/nodePosition/boxSet.do?action=query";
document.form1.submit(); document.form1.submit();
} }
</script> </script>
</head> </head>
<body> <body>
<div class="middle_list"> <div class="middle_list">
<!--中间部分右边开始--> <!--中间部分右边开始-->
<form action="" name="form1" id="form1" method="post"> <form action="" name="form1" id="form1" method="post">
<input type="hidden" name="isComplete" value="${isComplete }" /> <input type="hidden" name="isComplete" value="${isComplete }" />
<input type="hidden" name="ispnNum" value="${ispnNum }" /> <input type="hidden" name="ispnNum" value="${ispnNum }" />
<table align="center" border="0" cellpadding="0" <table align="center" border="0" cellpadding="0"
cellspacing="0" class="table1"> cellspacing="0" class="table1">
<tr> <tr>
<td height="30" class="color_7" colspan="6"> <td height="30" class="color_7" colspan="6">
<strong>i18n_sie.text.title_n81i</strong> <strong>i18n_sie.text.title_n81i</strong>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1"> <td class="color_1">
i18n_sie.text.index_n81i i18n_sie.text.index_n81i
</td> </td>
<td class="color_1"> <td class="color_1">
i18n_sie.text.U_n81i i18n_sie.text.U_n81i
</td> </td>
<td class="color_1"> <td class="color_1">
i18n_sie.text.roomIspn_n81i i18n_sie.text.roomIspn_n81i
</td> </td>
<td class="color_1"> <td class="color_1">
i18n_sie.text.roomRowPosition_n81i i18n_sie.text.roomRowPosition_n81i
</td> </td>
<td class="color_1"> <td class="color_1">
i18n_sie.text.roomColPosition_n81i i18n_sie.text.roomColPosition_n81i
</td> </td>
<td class="color_7"> <td class="color_7">
i18n_sie.text.errorInfo_n81i i18n_sie.text.errorInfo_n81i
</td> </td>
</tr> </tr>
<c:forEach items="${errorList}" var="info"> <c:forEach items="${errorList}" var="info">
<tr> <tr>
<td class="color_3"> <td class="color_3">
${info.ispn } ${info.ispn }
</td> </td>
<td class="color_3"> <td class="color_3">
${info.boxUType } ${info.boxUType }
</td> </td>
<td class="color_3"> <td class="color_3">
${info.roomIspn } ${info.roomIspn }
</td> </td>
<td class="color_3"> <td class="color_3">
${info.roomRowPosition } ${info.roomRowPosition }
</td> </td>
<td class="color_3"> <td class="color_3">
${info.roomColPosition } ${info.roomColPosition }
</td> </td>
<td class="color_6"> <td class="color_6">
${info.showError } ${info.showError }
</td> </td>
</tr> </tr>
</c:forEach> </c:forEach>
<tr> <tr>
<td class="color_7" colspan="6"> <td class="color_7" colspan="6">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onclick="goBack()" value="i18n_sie.button.back_n81i"/> onmouseup="this.className='btn3_mouseup'" onclick="goBack()" value="i18n_sie.button.back_n81i"/>
&nbsp; &nbsp;
</td> </td>
</tr> </tr>
</table> </table>
</form> </form>
<!--中间部分右边结束--> <!--中间部分右边结束-->
</div> </div>
</body> </body>
</html> </html>

View File

@@ -1,310 +1,310 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%> <%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib uri="/jstl/fn" prefix="fn"%> <%@ taglib uri="/jstl/fn" prefix="fn"%>
<%@ taglib uri="/jstl/fmt" prefix="fmt"%> <%@ taglib uri="/jstl/fmt" prefix="fmt"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
%> %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_ubi.message.title_n81i</title> <title>i18n_ubi.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" <link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<link href="<c:url value='/css/suggest.css'/>" rel="stylesheet" <link href="<c:url value='/css/suggest.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script> src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script> src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/j.suggest.js'/>"></script> src="<c:url value='/js/j.suggest.js'/>"></script>
</head> </head>
<script language="javascript" type="text/javascript"> <script language="javascript" type="text/javascript">
$(document).keydown(function (e) {//绑定键盘按下事件 防止退格键返回 $(document).keydown(function (e) {//绑定键盘按下事件 防止退格键返回
var doPrevent; var doPrevent;
// for IE && Firefox // for IE && Firefox
var varkey = (e.keyCode) || (e.which) || (e.charCode); var varkey = (e.keyCode) || (e.which) || (e.charCode);
if (varkey == 8) { if (varkey == 8) {
var d = e.srcElement || e.target; var d = e.srcElement || e.target;
if (d.tagName.toUpperCase() == 'INPUT' || d.tagName.toUpperCase() == 'TEXTAREA') { if (d.tagName.toUpperCase() == 'INPUT' || d.tagName.toUpperCase() == 'TEXTAREA') {
doPrevent = d.readOnly || d.disabled; doPrevent = d.readOnly || d.disabled;
if (d.type.toUpperCase() == 'SUBMIT' if (d.type.toUpperCase() == 'SUBMIT'
|| d.type.toUpperCase() == 'RADIO' || d.type.toUpperCase() == 'RADIO'
|| d.type.toUpperCase() == 'CHECKBOX' || d.type.toUpperCase() == 'CHECKBOX'
|| d.type.toUpperCase() == 'BUTTON') { || d.type.toUpperCase() == 'BUTTON') {
doPrevent = true; doPrevent = true;
} }
} }
else { else {
doPrevent = true; doPrevent = true;
} }
} }
else { else {
doPrevent = false; doPrevent = false;
} }
if (doPrevent) if (doPrevent)
e.preventDefault(); e.preventDefault();
}); });
$(function(){ $(function(){
$("#boxUType").change(function(){ $("#boxUType").change(function(){
if(!$id("boxUType","sz","i18n_ubi.text.boxUType_n81i")){ if(!$id("boxUType","sz","i18n_ubi.text.boxUType_n81i")){
$("#boxUType").val(""); $("#boxUType").val("");
} }
}) })
}) })
function updateCheck(){ function updateCheck(){
var type; var type;
$.ajax({ $.ajax({
url:"<%=path%>/nodePosition/boxSet.do?action=updateCheck", url:"<%=path%>/nodePosition/boxSet.do?action=updateCheck",
type : "POST", type : "POST",
async:false, async:false,
data:$('#Mkform').serialize(), data:$('#Mkform').serialize(),
success : function(data) { success : function(data) {
if(data == "exception"){ if(data == "exception"){
type = false; type = false;
alert("i18n_ubi.message.faild_n81i"); alert("i18n_ubi.message.faild_n81i");
}else if(data =="success"){ }else if(data =="success"){
type = true; type = true;
}else{ }else{
type = false; type = false;
alert(data); alert(data);
} }
} }
}); });
return type; return type;
} }
function add(){ function add(){
if($id("ispn","","i18n_ubi.text.ispn_n81i") && $id("descinfo","","i18n_ubi.text.descinfo_n81i") && $id("boxUType","sz","i18n_ubi.text.boxUType_n81i") if($id("ispn","","i18n_ubi.text.ispn_n81i") && $id("descinfo","","i18n_ubi.text.descinfo_n81i") && $id("boxUType","sz","i18n_ubi.text.boxUType_n81i")
&& $id("roomIspn","","i18n_ubi.text.roomIspn_n81i") && $id("roomRowPosition","xz","i18n_ubi.text.roomRowPosition_n81i") && $id("roomIspn","","i18n_ubi.text.roomIspn_n81i") && $id("roomRowPosition","xz","i18n_ubi.text.roomRowPosition_n81i")
&& $id("roomColPosition","xz","i18n_ubi.text.roomColPosition_n81i")){ && $id("roomColPosition","xz","i18n_ubi.text.roomColPosition_n81i")){
if(!containSpecial(lrtrim($("#ispn").val()))){ if(!containSpecial(lrtrim($("#ispn").val()))){
document.Mkform.action="<%=path%>/nodePosition/boxSet.do?action=doUpdate"; document.Mkform.action="<%=path%>/nodePosition/boxSet.do?action=doUpdate";
document.Mkform.submit(); document.Mkform.submit();
}else{ }else{
$("#ispn").next().html("i18n_ubi.message.inputInfo_n81i"); $("#ispn").next().html("i18n_ubi.message.inputInfo_n81i");
return; return;
} }
} }
} }
//去除左右两端空格 //去除左右两端空格
function lrtrim(s){ function lrtrim(s){
s = s.replace(/(^\s*)|(\s*$)/g,""); s = s.replace(/(^\s*)|(\s*$)/g,"");
return s; return s;
} }
function goBack(){ function goBack(){
document.Mkform.action="<%=path%>/nodePosition/boxSet.do?action=query"; document.Mkform.action="<%=path%>/nodePosition/boxSet.do?action=query";
document.Mkform.submit(); document.Mkform.submit();
} }
function resetInit(){ function resetInit(){
$("#roomIspn").val("${nodeBox.roomIspn }"); $("#roomIspn").val("${nodeBox.roomIspn }");
var roomIspn = "${nodeBox.roomIspn }"; var roomIspn = "${nodeBox.roomIspn }";
if(roomIspn!=""){ if(roomIspn!=""){
$.post("<c:url value='/nodePosition/boxSet!getRoomFreeRows.do'/>", $.post("<c:url value='/nodePosition/boxSet!getRoomFreeRows.do'/>",
{"roomIspn":roomIspn,"boxId":${nodeBox.nodeBoxId}}, {"roomIspn":roomIspn,"boxId":${nodeBox.nodeBoxId}},
function(data){ function(data){
// 追加option元素 // 追加option元素
if(data!=null && data!=""){ if(data!=null && data!=""){
$.each(data, function(i,val){ $.each(data, function(i,val){
$("#roomRowPosition").append("<option value='"+val+"'>" + val + "</option>"); $("#roomRowPosition").append("<option value='"+val+"'>" + val + "</option>");
}); });
} }
//选中行 //选中行
$("#roomRowPosition option[value=${nodeBox.roomRowPosition}]").attr("selected","selected"); $("#roomRowPosition option[value=${nodeBox.roomRowPosition}]").attr("selected","selected");
}, "json"); }, "json");
} }
var roomRowPosition = "${nodeBox.roomRowPosition}"; var roomRowPosition = "${nodeBox.roomRowPosition}";
if(roomRowPosition!=""){ if(roomRowPosition!=""){
$.post("<c:url value='/nodePosition/boxSet!getRoomFreeCols.do'/>", $.post("<c:url value='/nodePosition/boxSet!getRoomFreeCols.do'/>",
{"roomIspn":roomIspn,"rowNum":roomRowPosition,"boxId":${nodeBox.nodeBoxId}}, {"roomIspn":roomIspn,"rowNum":roomRowPosition,"boxId":${nodeBox.nodeBoxId}},
function(data){ function(data){
// 追加option元素 // 追加option元素
if(data!=null && data!=""){ if(data!=null && data!=""){
$.each(data, function(i,val){ $.each(data, function(i,val){
$("#roomColPosition").append("<option value='"+val+"'>" + val + "</option>"); $("#roomColPosition").append("<option value='"+val+"'>" + val + "</option>");
}); });
} }
//选中列 //选中列
$("#roomColPosition option[value=${nodeBox.roomColPosition}]").attr("selected","selected"); $("#roomColPosition option[value=${nodeBox.roomColPosition}]").attr("selected","selected");
}, "json"); }, "json");
} }
} }
// -----机房及位置相关处理 // -----机房及位置相关处理
$(function(){ $(function(){
var first = 1; var first = 1;
var vstart; var vstart;
//-- 机房 事件绑定 获取可选行号 //-- 机房 事件绑定 获取可选行号
$("#roomRowPosition").empty(); $("#roomRowPosition").empty();
$("#roomRowPosition").append("<option value=''>i18n_ubi.message.selectDefault_n81i</option>"); $("#roomRowPosition").append("<option value=''>i18n_ubi.message.selectDefault_n81i</option>");
$("#roomColPosition").empty(); $("#roomColPosition").empty();
$("#roomColPosition").append("<option value=''>i18n_ubi.message.selectDefault_n81i</option>"); $("#roomColPosition").append("<option value=''>i18n_ubi.message.selectDefault_n81i</option>");
var curVal = $("#roomIspn").val(); var curVal = $("#roomIspn").val();
if(curVal!=""){ if(curVal!=""){
$.post("<c:url value='/nodePosition/boxSet!getRoomFreeRows.do'/>", $.post("<c:url value='/nodePosition/boxSet!getRoomFreeRows.do'/>",
{"roomIspn":curVal,"boxId":${nodeBox.nodeBoxId}}, {"roomIspn":curVal,"boxId":${nodeBox.nodeBoxId}},
function(data){ function(data){
// 追加option元素 // 追加option元素
if(data!=null && data!=""){ if(data!=null && data!=""){
$.each(data, function(i,val){ $.each(data, function(i,val){
$("#roomRowPosition").append("<option value='"+val+"'>" + val + "</option>"); $("#roomRowPosition").append("<option value='"+val+"'>" + val + "</option>");
}); });
} }
if(first==1){//第一次加载,选中行 if(first==1){//第一次加载,选中行
$("#roomRowPosition option[value=${nodeBox.roomRowPosition}]").attr("selected","selected"); $("#roomRowPosition option[value=${nodeBox.roomRowPosition}]").attr("selected","selected");
$("#roomRowPosition").trigger("blur");//获取列 $("#roomRowPosition").trigger("blur");//获取列
} }
}, "json"); }, "json");
} }
//-- 机房行号 事件绑定 由行号决定可选列号 //-- 机房行号 事件绑定 由行号决定可选列号
$("#roomRowPosition").blur(function(){ $("#roomRowPosition").blur(function(){
$("#roomColPosition").empty(); $("#roomColPosition").empty();
$("#roomColPosition").append("<option value=''>i18n_ubi.message.selectDefault_n81i</option>"); $("#roomColPosition").append("<option value=''>i18n_ubi.message.selectDefault_n81i</option>");
var roomIspn = $("#roomIspn").val(); var roomIspn = $("#roomIspn").val();
var curVal = $(this).val(); var curVal = $(this).val();
if(curVal!=""){ if(curVal!=""){
$.post("<c:url value='/nodePosition/boxSet!getRoomFreeCols.do'/>", $.post("<c:url value='/nodePosition/boxSet!getRoomFreeCols.do'/>",
{"roomIspn":roomIspn,"rowNum":curVal,"boxId":${nodeBox.nodeBoxId}}, {"roomIspn":roomIspn,"rowNum":curVal,"boxId":${nodeBox.nodeBoxId}},
function(data){ function(data){
// 追加option元素 // 追加option元素
if(data!=null && data!=""){ if(data!=null && data!=""){
$.each(data, function(i,val){ $.each(data, function(i,val){
$("#roomColPosition").append("<option value='"+val+"'>" + val + "</option>"); $("#roomColPosition").append("<option value='"+val+"'>" + val + "</option>");
}); });
} }
if(first==1){//第一次加载,选中列 if(first==1){//第一次加载,选中列
$("#roomColPosition option[value=${nodeBox.roomColPosition}]").attr("selected","selected"); $("#roomColPosition option[value=${nodeBox.roomColPosition}]").attr("selected","selected");
first = 0; first = 0;
} }
}, "json"); }, "json");
} }
}); });
}); });
</script> </script>
<body > <body >
<div class="middle_list" > <div class="middle_list" >
<div class="box_2"> <div class="box_2">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="goBack()" value="i18n_ubi.button.back_n81i"/> onclick="goBack()" value="i18n_ubi.button.back_n81i"/>
</div> </div>
<form action="" name="Mkform" method="post" id="Mkform"> <form action="" name="Mkform" method="post" id="Mkform">
<input type="hidden" name="nodeBox.nodeBoxId" value="${nodeBox.nodeBoxId}" /> <input type="hidden" name="nodeBox.nodeBoxId" value="${nodeBox.nodeBoxId}" />
<input type="hidden" name="ispnNum" value="${ispnNum }"> <input type="hidden" name="ispnNum" value="${ispnNum }">
<input type="hidden" name="pageNo" value="${pageNo }" /> <input type="hidden" name="pageNo" value="${pageNo }" />
<input type="hidden" name="pageSize" value="${pageSize }" /> <input type="hidden" name="pageSize" value="${pageSize }" />
<input type="hidden" name="roomid" value="${roomid }"/> <input type="hidden" name="roomid" value="${roomid }"/>
<input type="hidden" name="roomIspn" value="${roomIspn }"/> <input type="hidden" name="roomIspn" value="${roomIspn }"/>
<jsp:include page="/common/transferHiddenParameter.jsp" /> <jsp:include page="/common/transferHiddenParameter.jsp" />
<div style="clear: both"></div> <div style="clear: both"></div>
<table border="0" cellpadding="0" cellspacing="0" class="table"> <table border="0" cellpadding="0" cellspacing="0" class="table">
<tr> <tr>
<td colspan="2" class="color_8"> <td colspan="2" class="color_8">
<strong>i18n_ubi.text.title_n81i</strong> <strong>i18n_ubi.text.title_n81i</strong>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" width="30%" align="right"> <td class="color_1" width="30%" align="right">
i18n_ubi.text.index_n81i i18n_ubi.text.index_n81i
</td> </td>
<td class="color_3" align="left"> <td class="color_3" align="left">
<input type="text" name="nodeBox.ispn" id="ispn" value="${nodeBox.ispn}"/> <input type="text" name="nodeBox.ispn" id="ispn" value="${nodeBox.ispn}"/>
<font color="red">*</font> <font color="red">*</font>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" width="30%" align="right"> <td class="color_1" width="30%" align="right">
i18n_ubi.text.U_n81i i18n_ubi.text.U_n81i
</td> </td>
<td class="color_3" align="left"> <td class="color_3" align="left">
<input type="text" name="nodeBox.boxUType" id="boxUType" value="${nodeBox.boxUType}"/> <input type="text" name="nodeBox.boxUType" id="boxUType" value="${nodeBox.boxUType}"/>
<font color="red">*</font> <font color="red">*</font>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right"> <td class="color_1" align="right">
i18n_ubi.text.roomIspn_n81i i18n_ubi.text.roomIspn_n81i
</td> </td>
<td class="color_3" align="left"> <td class="color_3" align="left">
<input value="${nodeBox.roomIspn }" disabled="disabled"/> <input value="${nodeBox.roomIspn }" disabled="disabled"/>
<input name="nodeBox.roomIspn" id="roomIspn" type="hidden" value="${nodeBox.roomIspn }" /> <input name="nodeBox.roomIspn" id="roomIspn" type="hidden" value="${nodeBox.roomIspn }" />
<font color="red">*</font> <font color="red">*</font>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right"> <td class="color_1" align="right">
i18n_ubi.text.roomRowPosition_n81i i18n_ubi.text.roomRowPosition_n81i
</td> </td>
<td class="color_3" align="left"> <td class="color_3" align="left">
<select name="nodeBox.roomRowPosition" id="roomRowPosition" <select name="nodeBox.roomRowPosition" id="roomRowPosition"
style="width: 151px;"> style="width: 151px;">
<option value=""> <option value="">
i18n_ubi.message.selectDefault_n81i i18n_ubi.message.selectDefault_n81i
</option> </option>
</select> </select>
<font color="red">*</font> <font color="red">*</font>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right"> <td class="color_1" align="right">
i18n_ubi.text.roomColPosition_n81i i18n_ubi.text.roomColPosition_n81i
</td> </td>
<td class="color_3" align="left"> <td class="color_3" align="left">
<select name="nodeBox.roomColPosition" id="roomColPosition" <select name="nodeBox.roomColPosition" id="roomColPosition"
style="width: 151px;"> style="width: 151px;">
<option value=""> <option value="">
i18n_ubi.message.selectDefault_n81i i18n_ubi.message.selectDefault_n81i
</option> </option>
</select> </select>
<font color="red">*</font> <font color="red">*</font>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right"> <td class="color_1" align="right">
i18n_ubi.text.desc_n81i i18n_ubi.text.desc_n81i
</td> </td>
<td class="color_3" align="left"> <td class="color_3" align="left">
<textarea rows="5" cols="60" id="descinfo" <textarea rows="5" cols="60" id="descinfo"
name="nodeBox.descinfo" >${nodeBox.descinfo}</textarea> name="nodeBox.descinfo" >${nodeBox.descinfo}</textarea>
<font color="red">*</font> <font color="red">*</font>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_7" colspan="2" align="right"> <td class="color_7" colspan="2" align="right">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onclick="add()" value="i18n_ubi.button.submit_n81i"/> onmouseup="this.className='btn3_mouseup'" onclick="add()" value="i18n_ubi.button.submit_n81i"/>
&nbsp; &nbsp;
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="javascript:document.forms['Mkform'].reset();resetInit();" value="i18n_ubi.button.reset_n81i"/> onclick="javascript:document.forms['Mkform'].reset();resetInit();" value="i18n_ubi.button.reset_n81i"/>
</td> </td>
</tr> </tr>
</table> </table>
</form> </form>
</div> </div>
</body> </body>
</html> </html>

File diff suppressed because it is too large Load Diff

View File

@@ -1,371 +1,371 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="/jstl/c"%> <%@ taglib prefix="c" uri="/jstl/c"%>
<%@ taglib prefix="fn" uri="/jstl/fn"%> <%@ taglib prefix="fn" uri="/jstl/fn"%>
<%@ taglib prefix="fmt" uri="/jstl/fmt"%> <%@ taglib prefix="fmt" uri="/jstl/fmt"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":" String basePath = request.getScheme() + "://" + request.getServerName() + ":"
+ request.getServerPort() + path + "/"; + request.getServerPort() + path + "/";
%> %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html> <html>
<head> <head>
<title>i18n_st.message.title_n81i</title> <title>i18n_st.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" <link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<link rel="stylesheet" <link rel="stylesheet"
href="<c:url value='/js/jquery-easyui-1.1.2/themes/default/easyui.css'/>" href="<c:url value='/js/jquery-easyui-1.1.2/themes/default/easyui.css'/>"
type="text/css"></link> type="text/css"></link>
<script type="text/javascript" src="<%=path%>/js/jquery-1.4.2.min.js"></script> <script type="text/javascript" src="<%=path%>/js/jquery-1.4.2.min.js"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/raphael.js'/>"></script> src="<c:url value='/js/raphael.js'/>"></script>
<script type="text/javascript" <script type="text/javascript"
src="<c:url value='/js/jquery-easyui-1.1.2/jquery.easyui.min.js' />"></script> src="<c:url value='/js/jquery-easyui-1.1.2/jquery.easyui.min.js' />"></script>
<script type="text/javascript" <script type="text/javascript"
src="<c:url value='/js/jtopo-0.4.8_01-min.js' />"></script> src="<c:url value='/js/jtopo-0.4.8_01-min.js' />"></script>
<style> <style>
body { body {
background-image: url("<%=path%>/images/show/bg.jpg"); background-image: url("<%=path%>/images/show/bg.jpg");
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: center; background-position: center;
scrollbar-face-color: #EEF0ED; //滚动条凸出部分的颜色 scrollbar-face-color: #EEF0ED; //滚动条凸出部分的颜色
scrollbar-highlight-color: #E7E8EA; //滚动条空白部分的颜色 scrollbar-highlight-color: #E7E8EA; //滚动条空白部分的颜色
scrollbar-shadow-color: #EEF0ED; //立体滚动条阴影的颜色 scrollbar-shadow-color: #EEF0ED; //立体滚动条阴影的颜色
scrollbar-3dlight-color: #EEF0ED; //滚动条亮边的颜色 scrollbar-3dlight-color: #EEF0ED; //滚动条亮边的颜色
scrollbar-arrow-color: #E1E3E0; //上下按钮上三角箭头的颜色 scrollbar-arrow-color: #E1E3E0; //上下按钮上三角箭头的颜色
scrollbar-track-color: #EEF0ED; //滚动条的背景颜色 scrollbar-track-color: #EEF0ED; //滚动条的背景颜色
scrollbar-darkshadow-color: #CCCCCC; //滚动条强阴影的颜色 scrollbar-darkshadow-color: #CCCCCC; //滚动条强阴影的颜色
scrollbar-base-color: #EEF0ED //滚动条的基本颜色 scrollbar-base-color: #EEF0ED //滚动条的基本颜色
} }
</style> </style>
</head> </head>
<body> <body>
<div> <div>
<canvas id="canvas" style="background-color:#FAFAFA; border:1px solid #444;display:block"></canvas> <canvas id="canvas" style="background-color:#FAFAFA; border:1px solid #444;display:block"></canvas>
</div> </div>
<div id="nodeList" closed="true"> <div id="nodeList" closed="true">
<!-- 1为禁止查询2为可以联想查询 此开关同main.jsp--> <!-- 1为禁止查询2为可以联想查询 此开关同main.jsp-->
<input type="hidden" id="lianxiangStatus" value="2" /> <input type="hidden" id="lianxiangStatus" value="2" />
<!--<span id="title" class="color_3_tip" <!--<span id="title" class="color_3_tip"
style="width: 100%; display: none; text-align: center;"></span>--> style="width: 100%; display: none; text-align: center;"></span>-->
<div id="title" class="color_3_tip" style="height: 20px;text-align: center;line-height: 20px">i18n_st.text.policy_n81i</div> <div id="title" class="color_3_tip" style="height: 20px;text-align: center;line-height: 20px">i18n_st.text.policy_n81i</div>
<iframe id="I4" name="I4" height="30%" width="100%" border="0" <iframe id="I4" name="I4" height="30%" width="100%" border="0"
style="background: #FFFFFF; display: none;" frameborder="0" src="" style="background: #FFFFFF; display: none;" frameborder="0" src=""
scrolling="no"> scrolling="no">
i18n_st.message.frameInfo_n81i i18n_st.message.frameInfo_n81i
</iframe> </iframe>
<hr id="hr" /> <hr id="hr" />
<iframe id="I5" name="I5" height="100%" width="100%" border="0" <iframe id="I5" name="I5" height="100%" width="100%" border="0"
style="background: #FFFFFF;" frameborder="0" src="" scrolling="no"> style="background: #FFFFFF;" frameborder="0" src="" scrolling="no">
i18n_st.message.frameInfo_n81i i18n_st.message.frameInfo_n81i
</iframe> </iframe>
</div> </div>
<!-- <div id="nodeList" closed="true"> <!-- <div id="nodeList" closed="true">
1为禁止查询2为可以联想查询 此开关同main.jsp 1为禁止查询2为可以联想查询 此开关同main.jsp
<input type="hidden" id="lianxiangStatus" value="2" /> <input type="hidden" id="lianxiangStatus" value="2" />
<span id="title" class="color_3_tip" <span id="title" class="color_3_tip"
style="width: 100%; display: none; text-align: center;"></span> style="width: 100%; display: none; text-align: center;"></span>
<div id="title" class="color_3_tip" style="height: 20px;text-align: center;line-height: 20px">i18n_st.text.policy_n81i</div> <div id="title" class="color_3_tip" style="height: 20px;text-align: center;line-height: 20px">i18n_st.text.policy_n81i</div>
<iframe id="I2" name="I2" height="30%" width="100%" border="0" <iframe id="I2" name="I2" height="30%" width="100%" border="0"
style="background: #FFFFFF; display: none;" frameborder="0" src="" style="background: #FFFFFF; display: none;" frameborder="0" src=""
scrolling="no"> scrolling="no">
i18n_st.message.frameInfo_n81i i18n_st.message.frameInfo_n81i
</iframe> </iframe>
<hr id="hr" /> <hr id="hr" />
<iframe id="I3" name="I3" height="100%" width="100%" border="0" <iframe id="I3" name="I3" height="100%" width="100%" border="0"
style="background: #FFFFFF;" frameborder="0" src="" scrolling="no"> style="background: #FFFFFF;" frameborder="0" src="" scrolling="no">
i18n_st.message.frameInfo_n81i i18n_st.message.frameInfo_n81i
</iframe> </iframe>
</div> --> </div> -->
<span id='content' ></span> <span id='content' ></span>
</body> </body>
<script> <script>
var imgagePath="${pageContext.request.contextPath}/images/newtopo/"; var imgagePath="${pageContext.request.contextPath}/images/newtopo/";
var canvas = document.getElementById('canvas'); var canvas = document.getElementById('canvas');
var stage = new JTopo.Stage(canvas); // 创建一个舞台对象 var stage = new JTopo.Stage(canvas); // 创建一个舞台对象
var scene = new JTopo.Scene(stage); // 创建一个场景对象 var scene = new JTopo.Scene(stage); // 创建一个场景对象
var nodeMap={}; var nodeMap={};
//节点 //节点
function newNode(x, y, w, h, text,img){ function newNode(x, y, w, h, text,img){
var node = new JTopo.Node(text); var node = new JTopo.Node(text);
node.setImage(imgagePath+img,false); node.setImage(imgagePath+img,false);
node.setLocation(x, y); node.setLocation(x, y);
node.setSize(w, h); node.setSize(w, h);
node.fillColor='255,128,0'; node.fillColor='255,128,0';
node.fontColor='0,0,0'; node.fontColor='0,0,0';
node.addEventListener("click",function(node){ node.addEventListener("click",function(node){
console.log('x ----- '+node.target.x+' y ------ '+node.target.y+' ---- '+node.target.text); console.log('x ----- '+node.target.x+' y ------ '+node.target.y+' ---- '+node.target.text);
}) })
scene.add(node); scene.add(node);
return node; return node;
} }
// 简单连线 // 简单连线
function newLink(nodeA, nodeZ, text, dashedPattern,arrowsRadius){ function newLink(nodeA, nodeZ, text, dashedPattern,arrowsRadius){
var link = new JTopo.Link(nodeA, nodeZ, text); var link = new JTopo.Link(nodeA, nodeZ, text);
link.lineWidth = 2; // 线宽 link.lineWidth = 2; // 线宽
link.dashedPattern = dashedPattern; // 虚线 link.dashedPattern = dashedPattern; // 虚线
link.bundleOffset = 60; // 折线拐角处的长度 link.bundleOffset = 60; // 折线拐角处的长度
link.bundleGap = 20; // 线条之间的间隔 link.bundleGap = 20; // 线条之间的间隔
link.textOffsetY = 3; // 文本偏移量向下3个像素 link.textOffsetY = 3; // 文本偏移量向下3个像素
link.strokeColor = '0,0,0'; link.strokeColor = '0,0,0';
link.fontColor='0,0,0'; link.fontColor='0,0,0';
if(arrowsRadius){ if(arrowsRadius){
link.arrowsRadius = 10; link.arrowsRadius = 10;
} }
scene.add(link); scene.add(link);
return link; return link;
} }
// 折线 // 折线
function newFoldLink(nodeA, nodeZ, text, direction, dashedPattern){ function newFoldLink(nodeA, nodeZ, text, direction, dashedPattern){
var link = new JTopo.FoldLink(nodeA, nodeZ, text); var link = new JTopo.FoldLink(nodeA, nodeZ, text);
link.direction = direction || 'horizontal'; link.direction = direction || 'horizontal';
// link.arrowsRadius = 15; //箭头大小 // link.arrowsRadius = 15; //箭头大小
link.lineWidth = 2; // 线宽 link.lineWidth = 2; // 线宽
link.bundleOffset = 40; // 折线拐角处的长度 link.bundleOffset = 40; // 折线拐角处的长度
link.bundleGap = 20; // 线条之间的间隔 link.bundleGap = 20; // 线条之间的间隔
link.textOffsetY = 3; // 文本偏移量向下3个像素 link.textOffsetY = 3; // 文本偏移量向下3个像素
link.dashedPattern = dashedPattern; link.dashedPattern = dashedPattern;
link.strokeColor = '0,0,0'; link.strokeColor = '0,0,0';
link.fontColor='0,0,0'; link.fontColor='0,0,0';
scene.add(link); scene.add(link);
return link; return link;
} }
//二次折线 //二次折线
function newFlexionalLink(nodeA, nodeZ, text, dashedPattern,direction){ function newFlexionalLink(nodeA, nodeZ, text, dashedPattern,direction){
var link = new JTopo.FlexionalLink(nodeA, nodeZ, text); var link = new JTopo.FlexionalLink(nodeA, nodeZ, text);
// link.arrowsRadius = 10; // link.arrowsRadius = 10;
link.lineWidth = 2; // 线宽 link.lineWidth = 2; // 线宽
link.bundleGap = 15; // 线条之间的间隔 link.bundleGap = 15; // 线条之间的间隔
link.textOffsetY = 10; // 文本偏移量向下15个像素 link.textOffsetY = 10; // 文本偏移量向下15个像素
link.dashedPattern = dashedPattern; link.dashedPattern = dashedPattern;
link.direction=direction||'vertical'; link.direction=direction||'vertical';
link.strokeColor = '0,0,0'; link.strokeColor = '0,0,0';
link.fontColor='0,0,0'; link.fontColor='0,0,0';
scene.add(link); scene.add(link);
return link; return link;
} }
$(function (){ $(function (){
$("#canvas").attr("width",$(window).get(0).innerWidth); $("#canvas").attr("width",$(window).get(0).innerWidth);
$("#canvas").attr("height",$(window).get(0).innerHeight); $("#canvas").attr("height",$(window).get(0).innerHeight);
scene.mousemove(function(event){ scene.mousemove(function(event){
var node=event.target; var node=event.target;
if(node&&node.elementType=='node'){ if(node&&node.elementType=='node'){
var width=20; var width=20;
$('#content').html(node.text); $('#content').html(node.text);
$('#content').css({ $('#content').css({
position:'absolute', position:'absolute',
top:event.pageY, top:event.pageY,
left:event.pageX+20 left:event.pageX+20
}).show(); }).show();
}else{ }else{
$('#content').hide(); $('#content').hide();
} }
}); });
//遍历创建节点对象 //遍历创建节点对象
<c:forEach items="${requestScope.topoNodeInfos}" var="item"> <c:forEach items="${requestScope.topoNodeInfos}" var="item">
/* var node${item.id} = newNode(${item.x},${item.y},${item.width},${item.height},'${item.text}${item.id}','${item.topoImg.name}'); */ /* var node${item.id} = newNode(${item.x},${item.y},${item.width},${item.height},'${item.text}${item.id}','${item.topoImg.name}'); */
var node${item.id} = newNode(${item.x},${item.y},${item.width},${item.height},'${item.text}','${item.topoImg.name}'); var node${item.id} = newNode(${item.x},${item.y},${item.width},${item.height},'${item.text}','${item.topoImg.name}');
node${item.id}.status=${item.status}; node${item.id}.status=${item.status};
node${item.id}.serializedProperties.push('status'); node${item.id}.serializedProperties.push('status');
<c:if test="${item.status==1}"> <c:if test="${item.status==1}">
node${item.id}.nodeInterval=setInterval(function(){ node${item.id}.nodeInterval=setInterval(function(){
if(node${item.id}.alarm!=null&&node${item.id}.alarm!=''){ if(node${item.id}.alarm!=null&&node${item.id}.alarm!=''){
node${item.id}.alarm=null; node${item.id}.alarm=null;
}else{ }else{
node${item.id}.alarm='${item.alarm}'; node${item.id}.alarm='${item.alarm}';
node${item.id}.alarmColor='171,30,50'; node${item.id}.alarmColor='171,30,50';
node${item.id}.alarmAlpha=0.8; node${item.id}.alarmAlpha=0.8;
} }
},600) },600)
node${item.id}.serializedProperties.push('nodeInterval'); node${item.id}.serializedProperties.push('nodeInterval');
</c:if> </c:if>
<c:choose> <c:choose>
<c:when test="${item.type==4}"> <c:when test="${item.type==4}">
node${item.id}.addEventListener("click",function(){ node${item.id}.addEventListener("click",function(){
window.location.href="${pageContext.request.contextPath}/nodePosition/newTopoShow.do?action=showTopo&topoInfoId="+${item.typeId}; window.location.href="${pageContext.request.contextPath}/nodePosition/newTopoShow.do?action=showTopo&topoInfoId="+${item.typeId};
}); });
</c:when> </c:when>
<c:when test="${item.type==1||item.type==2}"> <c:when test="${item.type==1||item.type==2}">
node${item.id}.addEventListener("click",function(node){ node${item.id}.addEventListener("click",function(node){
/* parent.getDetectInfo(${item.typeId},${item.type},${item.status}); */ /* parent.getDetectInfo(${item.typeId},${item.type},${item.status}); */
getDetectInfo(${item.typeId},${item.type},${item.status}); getDetectInfo(${item.typeId},${item.type},${item.status});
}); });
</c:when> </c:when>
</c:choose> </c:choose>
//设置自己特定的class样式 //设置自己特定的class样式
<c:if test="${not empty item.topoNodeInfoClass}"> <c:if test="${not empty item.topoNodeInfoClass}">
var classJson=${item.topoNodeInfoClass}; var classJson=${item.topoNodeInfoClass};
for(var i=0;i<classJson.length;i++){ for(var i=0;i<classJson.length;i++){
for(var key in classJson[i]){ for(var key in classJson[i]){
if(key=='textPosition'){ if(key=='textPosition'){
node${item.id}.textPosition=classJson[i][key]; node${item.id}.textPosition=classJson[i][key];
} }
} }
} }
</c:if> </c:if>
//将节点对象放入map中 key为node+id 值为节点对象 //将节点对象放入map中 key为node+id 值为节点对象
nodeMap['node${item.id}']=node${item.id}; nodeMap['node${item.id}']=node${item.id};
</c:forEach> </c:forEach>
//遍历创建连线 连接节点 //遍历创建连线 连接节点
<c:forEach items="${requestScope.topoLineInfos}" var="item"> <c:forEach items="${requestScope.topoLineInfos}" var="item">
<c:choose> <c:choose>
<c:when test="${not empty item.topoLineInfoClass}"> <c:when test="${not empty item.topoLineInfoClass}">
var link${item.id}; var link${item.id};
var classJson=${item.topoLineInfoClass}; var classJson=${item.topoLineInfoClass};
for(var i=0;i<classJson.length;i++){ for(var i=0;i<classJson.length;i++){
for(var key in classJson[i]){ for(var key in classJson[i]){
if(key=='newLineMethod'){ if(key=='newLineMethod'){
if(classJson[i][key]=='FoldLink'){ if(classJson[i][key]=='FoldLink'){
link${item.id}=newFoldLink(node${item.topoNodeInfo1.id},node${item.topoNodeInfo2.id},'${item.text}'); link${item.id}=newFoldLink(node${item.topoNodeInfo1.id},node${item.topoNodeInfo2.id},'${item.text}');
}else if(classJson[i][key]=='FlexionalLink'){ }else if(classJson[i][key]=='FlexionalLink'){
link${item.id}=newFlexionalLink(node${item.topoNodeInfo1.id},node${item.topoNodeInfo2.id},'${item.text}'); link${item.id}=newFlexionalLink(node${item.topoNodeInfo1.id},node${item.topoNodeInfo2.id},'${item.text}');
} }
}else if(key=='offsetGap'){ }else if(key=='offsetGap'){
link${item.id}.offsetGap=classJson[i][key]; link${item.id}.offsetGap=classJson[i][key];
}else if(key=='direction'){ }else if(key=='direction'){
link${item.id}.direction=classJson[i][key]; link${item.id}.direction=classJson[i][key];
}else if(key=='nodeIndex'){ }else if(key=='nodeIndex'){
link${item.id}.nodeIndex=classJson[i][key]; link${item.id}.nodeIndex=classJson[i][key];
} }
} }
} }
</c:when> </c:when>
<c:otherwise> <c:otherwise>
var link${item.id} = newLink(node${item.topoNodeInfo1.id},node${item.topoNodeInfo2.id},'${item.text}'); var link${item.id} = newLink(node${item.topoNodeInfo1.id},node${item.topoNodeInfo2.id},'${item.text}');
</c:otherwise> </c:otherwise>
</c:choose> </c:choose>
</c:forEach> </c:forEach>
//缩放并居中显示 //缩放并居中显示
stage.centerAndZoom(); stage.centerAndZoom();
//设置鼠标可以进行滚轮放大缩小 //设置鼠标可以进行滚轮放大缩小
stage.wheelZoom=0.85; stage.wheelZoom=0.85;
}) })
$(function(){ $(function(){
//5分钟刷新一次 //5分钟刷新一次
interview = setInterval('refresh()',5*60*10000); interview = setInterval('refresh()',5*60*10000);
var height = document.body.clientHeight; var height = document.body.clientHeight;
var width = document.body.clientWidth; var width = document.body.clientWidth;
}) })
function refresh(){ function refresh(){
var varNames={}; var varNames={};
$.ajax({ $.ajax({
type:"post", type:"post",
dataType:'json', dataType:'json',
url:"<c:url value='/nodePosition/newTopoShow.do?action=showTopo'/>", url:"<c:url value='/nodePosition/newTopoShow.do?action=showTopo'/>",
data:"&requestType=ajax", data:"&requestType=ajax",
async:true, async:true,
success:function (data,textStatus){ success:function (data,textStatus){
if(textStatus=='success'&&data!=''&&data!=null){ if(textStatus=='success'&&data!=''&&data!=null){
var topoNodeInfos; var topoNodeInfos;
var topoLineInfos; var topoLineInfos;
$(data).each(function(i,item){ $(data).each(function(i,item){
topoNodeInfos = item.topoNodeInfoList; topoNodeInfos = item.topoNodeInfoList;
topoLineInfos = item.topoLineInfoList; topoLineInfos = item.topoLineInfoList;
}) })
$(topoNodeInfos).each(function(i,item){ $(topoNodeInfos).each(function(i,item){
//修改节点的警告状态 //修改节点的警告状态
if(nodeMap['node'+item.id].status==item.status){ if(nodeMap['node'+item.id].status==item.status){
return; return;
}else if(item.status==1){ }else if(item.status==1){
console.log('进入重设alarm') console.log('进入重设alarm')
nodeMap['node'+item.id].nodeInterval=setInterval(function(){ nodeMap['node'+item.id].nodeInterval=setInterval(function(){
if(nodeMap['node'+item.id].alarm!=null&&nodeMap['node'+item.id].alarm!=''){ if(nodeMap['node'+item.id].alarm!=null&&nodeMap['node'+item.id].alarm!=''){
nodeMap['node'+item.id].alarm=null; nodeMap['node'+item.id].alarm=null;
}else{ }else{
nodeMap['node'+item.id].alarm=item.alarm; nodeMap['node'+item.id].alarm=item.alarm;
nodeMap['node'+item.id].alarmColor='171,30,50'; nodeMap['node'+item.id].alarmColor='171,30,50';
nodeMap['node'+item.id].alarmAlpha=0.8; nodeMap['node'+item.id].alarmAlpha=0.8;
} }
},600); },600);
nodeMap['node'+item.id].serializedProperties.push('nodeInterval'); nodeMap['node'+item.id].serializedProperties.push('nodeInterval');
nodeMap['node'+item.id].status=1; nodeMap['node'+item.id].status=1;
}else{ }else{
console.log('删除alarm'); console.log('删除alarm');
nodeMap['node'+item.id].alarm=null; nodeMap['node'+item.id].alarm=null;
nodeMap['node'+item.id].status=0; nodeMap['node'+item.id].status=0;
window.clearInterval(nodeMap['node'+item.id].nodeInterval); window.clearInterval(nodeMap['node'+item.id].nodeInterval);
} }
}) })
} }
} }
}) })
} }
//以下代码解决了easy-ui报错 can't read property msie of undefined //以下代码解决了easy-ui报错 can't read property msie of undefined
jQuery.browser={};(function(){jQuery.browser.msie=false; jQuery.browser.version=0;if(navigator.userAgent.match(/MSIE ([0-9]+)./)){ jQuery.browser.msie=true;jQuery.browser.version=RegExp.$1;}})(); jQuery.browser={};(function(){jQuery.browser.msie=false; jQuery.browser.version=0;if(navigator.userAgent.match(/MSIE ([0-9]+)./)){ jQuery.browser.msie=true;jQuery.browser.version=RegExp.$1;}})();
$(function(){ $(function(){
//告警节点列表初始化 //告警节点列表初始化
$("#nodeList").dialog({ $("#nodeList").dialog({
title:"i18n_st.nodeList.title_n81i", title:"i18n_st.nodeList.title_n81i",
resizable:true, resizable:true,
width:1024, width:1024,
height:600 height:600
}); });
console.log("123213213213") console.log("123213213213")
}) })
function getDetectInfo(id,type,showStatus){ function getDetectInfo(id,type,showStatus){
//根据类型的不同 判断节点或节点组的查询条件 //根据类型的不同 判断节点或节点组的查询条件
var url ="<c:url value='/detection/monitorData.do?action=query&nodeType=1&requestType=newTopo&nodeGroupId="+id+"'/>"; var url ="<c:url value='/detection/monitorData.do?action=query&nodeType=1&requestType=newTopo&nodeGroupId="+id+"'/>";
var url2="<c:url value='/detection/monitorData.do?action=queryEmergentDetail&nodeType=1&requestType=topo&nodeGroupId="+id+"'/>"; var url2="<c:url value='/detection/monitorData.do?action=queryEmergentDetail&nodeType=1&requestType=topo&nodeGroupId="+id+"'/>";
if(type==2){ if(type==2){
url ="<c:url value='/detection/monitorData.do?action=query&nodeType=2&requestType=newTopo&nodeId="+id+"'/>"; url ="<c:url value='/detection/monitorData.do?action=query&nodeType=2&requestType=newTopo&nodeId="+id+"'/>";
url2="<c:url value='/detection/monitorData.do?action=queryEmergentDetail&nodeType=2&requestType=topo&nodeId="+id+"'/>"; url2="<c:url value='/detection/monitorData.do?action=queryEmergentDetail&nodeType=2&requestType=topo&nodeId="+id+"'/>";
} }
//异常情况,显示紧急告警列表,否则不显示 //异常情况,显示紧急告警列表,否则不显示
if(showStatus == 1){ if(showStatus == 1){
$("#title").show(); $("#title").show();
$("#I4").show(); $("#I4").show();
$("#hr").show(); $("#hr").show();
$("#I4").attr("src",url2); $("#I4").attr("src",url2);
}else{ }else{
$("#title").hide(); $("#title").hide();
$("#I4").hide(); $("#I4").hide();
$("#hr").hide(); $("#hr").hide();
} }
$("#I5").attr("src",url);//由于所有数据列表不会出现隐藏的情况所以标题的确定就有I5来负责 $("#I5").attr("src",url);//由于所有数据列表不会出现隐藏的情况所以标题的确定就有I5来负责
} }
function setDivTitle(groupName) { function setDivTitle(groupName) {
if(groupName!='undefined' && groupName!=null && groupName!="") { if(groupName!='undefined' && groupName!=null && groupName!="") {
$("#nodeList").dialog({ $("#nodeList").dialog({
title:groupName+" i18n_st.text.monitorData_n81i" title:groupName+" i18n_st.text.monitorData_n81i"
}); });
}else { }else {
$("#nodeList").dialog({ $("#nodeList").dialog({
title:"i18n_st.text.monitorData_n81i" title:"i18n_st.text.monitorData_n81i"
}); });
} }
$("#nodeList").dialog("open"); $("#nodeList").dialog("open");
} }
</script> </script>
</html> </html>

File diff suppressed because it is too large Load Diff

View File

@@ -1,174 +1,174 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%> <%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib uri="/jstl/fn" prefix="fn"%> <%@ taglib uri="/jstl/fn" prefix="fn"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
%> %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_ari.message.title_n81i</title> <title>i18n_ari.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" <link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script> src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script> src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.tools.js'/>"></script> src="<c:url value='/js/jquery.tools.js'/>"></script>
</head> </head>
<script language="javascript" type="text/javascript"> <script language="javascript" type="text/javascript">
var maxRows ='${maxRoomRows}'; var maxRows ='${maxRoomRows}';
var maxCols = '${maxRoomCols}'; var maxCols = '${maxRoomCols}';
function add(){ function add(){
if($id("roomIspn","","i18n_ari.text.roomIspn_n81i") && $id("roomRows","sz","i18n_ari.text.roomRows_n81i") && $id("roomCols","sz","i18n_ari.text.roomCols_n81i")){ if($id("roomIspn","","i18n_ari.text.roomIspn_n81i") && $id("roomRows","sz","i18n_ari.text.roomRows_n81i") && $id("roomCols","sz","i18n_ari.text.roomCols_n81i")){
if(!containSpecial($("#roomIspn").val())){ if(!containSpecial($("#roomIspn").val())){
$("#roomIspn").next().html("*"); $("#roomIspn").next().html("*");
$("#roomRows").next().html("*"); $("#roomRows").next().html("*");
$("#roomCols").next().html("*"); $("#roomCols").next().html("*");
if(Number($("#roomRows").val())>Number(maxRows)){ if(Number($("#roomRows").val())>Number(maxRows)){
$("#roomRows").next().html("i18n_ari.message.roomRows_n81i"+maxRows); $("#roomRows").next().html("i18n_ari.message.roomRows_n81i"+maxRows);
return; return;
}else if(Number($("#roomCols").val())>Number(maxCols)){ }else if(Number($("#roomCols").val())>Number(maxCols)){
$("#roomCols").next().html("i18n_ari.message.roomRows_n81i"+maxCols); $("#roomCols").next().html("i18n_ari.message.roomRows_n81i"+maxCols);
return; return;
}else{ }else{
if(ajaxCheck()){ if(ajaxCheck()){
document.Mkform.action="<%=path%>/nodePosition/roomManage.do?action=doAdd"; document.Mkform.action="<%=path%>/nodePosition/roomManage.do?action=doAdd";
document.Mkform.submit(); document.Mkform.submit();
} }
} }
}else{ }else{
$("#roomIspn").next().html("i18n_ari.message.roomIspn_n81i"); $("#roomIspn").next().html("i18n_ari.message.roomIspn_n81i");
return; return;
} }
} }
} }
function ajaxCheck(){ function ajaxCheck(){
var type; var type;
$.ajax({ $.ajax({
url:"<%=path%>/nodePosition/roomManage.do?action=AjaxCheck", url:"<%=path%>/nodePosition/roomManage.do?action=AjaxCheck",
type : "POST", type : "POST",
async:false, async:false,
data:$('#Mkform').serialize(), data:$('#Mkform').serialize(),
success : function(data) { success : function(data) {
if(data == "error"){ if(data == "error"){
alert("i18n_ari.message.MkformError_n81i"); alert("i18n_ari.message.MkformError_n81i");
type = false; type = false;
}else if(data == "exception"){ }else if(data == "exception"){
alert("i18n_ari.message.MkformException_n81i"); alert("i18n_ari.message.MkformException_n81i");
type = false; type = false;
}else if(data =="success"){ }else if(data =="success"){
type = true; type = true;
} }
} }
}); });
return type; return type;
} }
function goBack(){ function goBack(){
document.Mkform.action="<%=path%>/nodePosition/roomManage.do?action=query"; document.Mkform.action="<%=path%>/nodePosition/roomManage.do?action=query";
document.Mkform.submit(); document.Mkform.submit();
} }
$(function(){ $(function(){
$("#roomRows").change(function(){ $("#roomRows").change(function(){
if(!$id("roomRows","sz","i18n_ari.text.roomRows_n81i")){ if(!$id("roomRows","sz","i18n_ari.text.roomRows_n81i")){
$("#roomRows").val(""); $("#roomRows").val("");
} }
}) })
$("#roomCols").change(function(){ $("#roomCols").change(function(){
if(!$id("roomCols","sz","i18n_ari.text.roomCols_n81i")){ if(!$id("roomCols","sz","i18n_ari.text.roomCols_n81i")){
$("#roomCols").val(""); $("#roomCols").val("");
} }
}) })
}) })
</script> </script>
<body> <body>
<div class="middle_list" > <div class="middle_list" >
<div class="box_2"> <div class="box_2">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="goBack()" value="i18n_ari.button.back_n81i"/> onclick="goBack()" value="i18n_ari.button.back_n81i"/>
</div> </div>
<form action="" name="Mkform" id="Mkform" method="post" id="Mkform"> <form action="" name="Mkform" id="Mkform" method="post" id="Mkform">
<input type="hidden" name="pageNo" value="${pageNo }" /> <input type="hidden" name="pageNo" value="${pageNo }" />
<input type="hidden" name="pageSize" value="${pageSize }" /> <input type="hidden" name="pageSize" value="${pageSize }" />
<input type="hidden" name="fromWhere" value="${fromWhere }"/> <input type="hidden" name="fromWhere" value="${fromWhere }"/>
<div style="clear: both"></div> <div style="clear: both"></div>
<table border="0" cellpadding="0" cellspacing="0" class="table"> <table border="0" cellpadding="0" cellspacing="0" class="table">
<tr> <tr>
<td colspan="2" class="color_8"> <td colspan="2" class="color_8">
<strong>i18n_ari.text.title_n81i</strong> <strong>i18n_ari.text.title_n81i</strong>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" width="30%" align="right"> <td class="color_1" width="30%" align="right">
i18n_ari.text.index_n81i i18n_ari.text.index_n81i
</td> </td>
<td class="color_3" align="left"> <td class="color_3" align="left">
<input type="text" name="nodeRoom.roomIspn" id="roomIspn" /> <input type="text" name="nodeRoom.roomIspn" id="roomIspn" />
<span style="color: red" id="info">*</span> <span style="color: red" id="info">*</span>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" width="30%" align="right"> <td class="color_1" width="30%" align="right">
i18n_ari.text.rows_n81i i18n_ari.text.rows_n81i
</td> </td>
<td class="color_3" align="left"> <td class="color_3" align="left">
<input type="text" name="nodeRoom.roomRows" id="roomRows" value=""/> <input type="text" name="nodeRoom.roomRows" id="roomRows" value=""/>
<span style="color: red" id="row">*</span> <span style="color: red" id="row">*</span>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" width="30%" align="right"> <td class="color_1" width="30%" align="right">
i18n_ari.text.cols_n81i i18n_ari.text.cols_n81i
</td> </td>
<td class="color_3" align="left"> <td class="color_3" align="left">
<input type="text" name="nodeRoom.roomCols" id="roomCols" value=""/> <input type="text" name="nodeRoom.roomCols" id="roomCols" value=""/>
<span style="color: red" id="col">*</span> <span style="color: red" id="col">*</span>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" width="20%" align="right"> <td class="color_1" width="20%" align="right">
i18n_ari.text.roomDesc_n81i i18n_ari.text.roomDesc_n81i
</td> </td>
<td class="color_3" align="left"> <td class="color_3" align="left">
<textarea rows="5" cols="60" id="roomDesc" <textarea rows="5" cols="60" id="roomDesc"
name="nodeRoom.roomDesc" ></textarea> name="nodeRoom.roomDesc" ></textarea>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_7" colspan="2" align="right"> <td class="color_7" colspan="2" align="right">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onclick="add()" value="i18n_ari.button.submit_n81i"/> onmouseup="this.className='btn3_mouseup'" onclick="add()" value="i18n_ari.button.submit_n81i"/>
&nbsp; &nbsp;
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="javascript:document.forms['Mkform'].reset()" value="i18n_ari.button.reset_n81i"/> onclick="javascript:document.forms['Mkform'].reset()" value="i18n_ari.button.reset_n81i"/>
</td> </td>
</tr> </tr>
</table> </table>
</form> </form>
</div> </div>
</body> </body>
</html> </html>

View File

@@ -1,444 +1,444 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="/jstl/c"%> <%@ taglib prefix="c" uri="/jstl/c"%>
<%@ taglib prefix="fn" uri="/jstl/fn"%> <%@ taglib prefix="fn" uri="/jstl/fn"%>
<%@ taglib prefix="fmt" uri="/jstl/fmt"%> <%@ taglib prefix="fmt" uri="/jstl/fmt"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
%> %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_ril.message.title_n81i</title> <title>i18n_ril.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" <link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<link href="<c:url value='/js/jBox/Skins/Gray/jbox.css'/>" <link href="<c:url value='/js/jBox/Skins/Gray/jbox.css'/>"
rel="stylesheet" type="text/css" /> rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script> src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script> src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.suggest.js'/>"></script> src="<c:url value='/js/jquery.suggest.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value="/js/jBox/jquery.jBox-2.3.min.js"/>"></script> src="<c:url value="/js/jBox/jquery.jBox-2.3.min.js"/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value="/js/fileInput.js"/>"></script> src="<c:url value="/js/fileInput.js"/>"></script>
<style type="text/css"> <style type="text/css">
.mydiv { .mydiv {
background-color: #fff; background-color: #fff;
border: 1px solid #000; border: 1px solid #000;
text-align: center; text-align: center;
line-height: 40px; line-height: 40px;
font-size: 12px; font-size: 12px;
font-weight: bold; font-weight: bold;
z-index: 99; z-index: 99;
width: 220px; width: 220px;
height: 80px; height: 80px;
left: 50%; /*FF IE7*/ left: 50%; /*FF IE7*/
top: 50%; /*FF IE7*/ top: 50%; /*FF IE7*/
margin-left: -150px !important; /*FF IE7 该值为本身宽的一半 */ margin-left: -150px !important; /*FF IE7 该值为本身宽的一半 */
margin-top: -60px !important; /*FF IE7 该值为本身高的一半*/ margin-top: -60px !important; /*FF IE7 该值为本身高的一半*/
margin-top: 0px; margin-top: 0px;
position: fixed !important; /*FF IE7*/ position: fixed !important; /*FF IE7*/
position: absolute; /*IE6*/ position: absolute; /*IE6*/
_top: expression(eval(document.compatMode && _top: expression(eval(document.compatMode &&
document.compatMode == 'CSS1Compat') ? document.compatMode == 'CSS1Compat') ?
documentElement.scrollTop + ( documentElement.scrollTop + (
document.documentElement.clientHeight-this.offsetHeight )/ 2 : document.documentElement.clientHeight-this.offsetHeight )/ 2 :
/*IE6*/ /*IE6*/
document.body.scrollTop + ( document.body.scrollTop + (
document.body.clientHeight - this.clientHeight )/ 2 ); document.body.clientHeight - this.clientHeight )/ 2 );
/*IE5 IE5.5*/ /*IE5 IE5.5*/
} }
.bg { .bg {
background-color: #ccc; background-color: #ccc;
width: 100%; width: 100%;
height: 100%; height: 100%;
left: 0; left: 0;
top: 0; /*FF IE7*/ top: 0; /*FF IE7*/
filter: alpha(opacity = 50); /*IE*/ filter: alpha(opacity = 50); /*IE*/
opacity: 0.5; /*FF*/ opacity: 0.5; /*FF*/
z-index: 1; z-index: 1;
position: fixed !important; /*FF IE7*/ position: fixed !important; /*FF IE7*/
position: absolute; /*IE6*/ position: absolute; /*IE6*/
_top: expression(eval(document.compatMode && _top: expression(eval(document.compatMode &&
document.compatMode == 'CSS1Compat') ? document.compatMode == 'CSS1Compat') ?
documentElement.scrollTop + ( documentElement.scrollTop + (
document.documentElement.clientHeight-this.offsetHeight )/ 2 : document.documentElement.clientHeight-this.offsetHeight )/ 2 :
/*IE6*/ /*IE6*/
document.body.scrollTop + ( document.body.scrollTop + (
document.body.clientHeight - this.clientHeight )/ 2 ); document.body.clientHeight - this.clientHeight )/ 2 );
/*IE5 IE5.5*/ /*IE5 IE5.5*/
} }
/*The END*/ /*The END*/
</style> </style>
<script language="javascript" type="text/javascript"> <script language="javascript" type="text/javascript">
var msg = '${MSG}'; var msg = '${MSG}';
if(msg=='1'){ if(msg=='1'){
alert("i18n_ril.message.success_n81i"); alert("i18n_ril.message.success_n81i");
}else if(msg=='2'){ }else if(msg=='2'){
alert("i18n_ril.message.faild_n81i"); alert("i18n_ril.message.faild_n81i");
} }
function boxmanager(){ function boxmanager(){
if(!isRigthCheck("ids", "edit")){ if(!isRigthCheck("ids", "edit")){
alert("i18n_ril.message.selectOne_n81i"); alert("i18n_ril.message.selectOne_n81i");
}else{ }else{
var checks = document.getElementsByName("ids"); var checks = document.getElementsByName("ids");
var roomid =""; var roomid ="";
var roomIspn; var roomIspn;
for(i = 0 ; i <= checks.length ; i++ ){ for(i = 0 ; i <= checks.length ; i++ ){
if(checks[i]){ if(checks[i]){
if(checks[i].checked) if(checks[i].checked)
{ {
roomid=checks[i].value; roomid=checks[i].value;
roomIspn=$.trim($(checks[i]).parent().next().html()); roomIspn=$.trim($(checks[i]).parent().next().html());
} }
} }
} }
document.form3.action ="<%=path%>/nodePosition/boxSet.do?action=query&roomid="+roomid+"&roomIspn="+roomIspn; document.form3.action ="<%=path%>/nodePosition/boxSet.do?action=query&roomid="+roomid+"&roomIspn="+roomIspn;
document.form3.submit(); document.form3.submit();
} }
} }
//添加记录 //添加记录
function addRecord(){ function addRecord(){
document.form3.action ="<%=path%>/nodePosition/roomManage!executeAction.do?action=openAdd&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }'; document.form3.action ="<%=path%>/nodePosition/roomManage!executeAction.do?action=openAdd&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }';
document.form3.submit(); document.form3.submit();
} }
//修改记录 //修改记录
function updRecord(){ function updRecord(){
if(!isRigthCheck("ids", "edit")){ if(!isRigthCheck("ids", "edit")){
alert("i18n_ril.message.selectOne_n81i"); alert("i18n_ril.message.selectOne_n81i");
}else{ }else{
document.form3.action ="<%=path%>/nodePosition/roomManage!executeAction.do?action=openUpdate&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }'; document.form3.action ="<%=path%>/nodePosition/roomManage!executeAction.do?action=openUpdate&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }';
document.form3.submit(); document.form3.submit();
} }
} }
//删除记录 //删除记录
function delRecord(){ function delRecord(){
if(!isRigthCheck("ids", "remove")){ if(!isRigthCheck("ids", "remove")){
alert("i18n_ril.message.selectOne_n81i"); alert("i18n_ril.message.selectOne_n81i");
}else if(confirm("i18n_ril.message.delete_n81i")){ }else if(confirm("i18n_ril.message.delete_n81i")){
document.form3.action ="<%=path%>/nodePosition/roomManage!executeAction.do?action=del&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }'; document.form3.action ="<%=path%>/nodePosition/roomManage!executeAction.do?action=del&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }';
document.form3.submit(); document.form3.submit();
} }
} }
//查询记录 //查询记录
function qry(){ function qry(){
document.form3.action = "<%=path%>/nodePosition/roomManage.do?action=query"; document.form3.action = "<%=path%>/nodePosition/roomManage.do?action=query";
document.form3.submit(); document.form3.submit();
} }
var set_Id; var set_Id;
var ajaxProperties = ""; var ajaxProperties = "";
var ajaxTableName = ""; var ajaxTableName = "";
var ajaxType = ""; var ajaxType = "";
var id = ""; var id = "";
var returnDiv = ""; var returnDiv = "";
var ajaxValue = ""; var ajaxValue = "";
function lianxiangkeydown() { function lianxiangkeydown() {
clearTimeout(set_Id); clearTimeout(set_Id);
} }
function lianxiangkeyup(ajaxProperties1,ajaxTableName1,ajaxType1,id1,returnDiv1,ajaxValue1) { function lianxiangkeyup(ajaxProperties1,ajaxTableName1,ajaxType1,id1,returnDiv1,ajaxValue1) {
if(parent.document.getElementById("lianxiangStatus").value=="2") if(parent.document.getElementById("lianxiangStatus").value=="2")
{ {
if(jQuery.trim(ajaxValue1)=="") return false; if(jQuery.trim(ajaxValue1)=="") return false;
ajaxProperties = ajaxProperties1; ajaxProperties = ajaxProperties1;
ajaxTableName = ajaxTableName1; ajaxTableName = ajaxTableName1;
ajaxType = ajaxType1; ajaxType = ajaxType1;
id = id1; id = id1;
returnDiv = returnDiv1; returnDiv = returnDiv1;
if(!containSpecial(ajaxValue1)){ if(!containSpecial(ajaxValue1)){
ajaxValue = ajaxValue1; ajaxValue = ajaxValue1;
}else{ }else{
clearTimeout(set_Id); clearTimeout(set_Id);
alert('i18n_ril.message.inputInfo_n81i'); alert('i18n_ril.message.inputInfo_n81i');
$("#"+id).val(''); $("#"+id).val('');
return; return;
} }
clearTimeout(set_Id); clearTimeout(set_Id);
set_Id = setTimeout(ajaxForLianxiang,500); set_Id = setTimeout(ajaxForLianxiang,500);
} }
} }
function ajaxForLianxiang() function ajaxForLianxiang()
{ {
jQuery.post("<%=path%>/sysManage/sysPopedomManage!queryInfoForAjax.do", jQuery.post("<%=path%>/sysManage/sysPopedomManage!queryInfoForAjax.do",
{"ajaxProperties":ajaxProperties,"ajaxTableName":ajaxTableName,"ajaxType":ajaxType,"ajaxValue":ajaxValue},function(data) {"ajaxProperties":ajaxProperties,"ajaxTableName":ajaxTableName,"ajaxType":ajaxType,"ajaxValue":ajaxValue},function(data)
{ {
var lianxiangList = data.split(","); var lianxiangList = data.split(",");
jQuery("#"+id).suggest(lianxiangList,{hot_list:lianxiangList,attachObject:"#"+returnDiv}); jQuery("#"+id).suggest(lianxiangList,{hot_list:lianxiangList,attachObject:"#"+returnDiv});
}); });
} }
function ieBrowser(){ function ieBrowser(){
if($.browser.msie){ if($.browser.msie){
if($.browser.version.split('.')[0]<=7){ if($.browser.version.split('.')[0]<=7){
return false; return false;
}else{ }else{
return true;//ie8+ return true;//ie8+
} }
} }
} }
// 程辉 2013-5-8 新增 模板下载 // 程辉 2013-5-8 新增 模板下载
function downloadExample() { function downloadExample() {
document.form3.action = "<c:url value='/'/>/nodePosition/roomManage.do?action=downloadExample"; document.form3.action = "<c:url value='/'/>/nodePosition/roomManage.do?action=downloadExample";
document.form3.submit(); document.form3.submit();
document.form3.action = "<%=path%>/nodePosition/roomManage.do?action=query"; document.form3.action = "<%=path%>/nodePosition/roomManage.do?action=query";
} }
//程辉 2013-5-8 新增 导入 //程辉 2013-5-8 新增 导入
function importXls() { function importXls() {
var myfileVal = document.getElementById("myFile").value; var myfileVal = document.getElementById("myFile").value;
if(myfileVal=="") { if(myfileVal=="") {
alert("i18n_ril.message.selectImportFile_n81i"); alert("i18n_ril.message.selectImportFile_n81i");
}else if((myfileVal.lastIndexOf(".xlsx")+5)!=myfileVal.length && (myfileVal.lastIndexOf(".xls")+4)!=myfileVal.length){ }else if((myfileVal.lastIndexOf(".xlsx")+5)!=myfileVal.length && (myfileVal.lastIndexOf(".xls")+4)!=myfileVal.length){
alert("i18n_ril.message.selectCorrectFile_n81i"); alert("i18n_ril.message.selectCorrectFile_n81i");
}else if(confirm('i18n_ril.message.sureToImport_n81i')){ }else if(confirm('i18n_ril.message.sureToImport_n81i')){
document.form3.action = "<c:url value='/'/>/nodePosition/roomManage.do?action=importXls"; document.form3.action = "<c:url value='/'/>/nodePosition/roomManage.do?action=importXls";
document.form3.submit(); document.form3.submit();
document.form3.action = "<%=path%>/nodePosition/roomManage.do?action=query"; document.form3.action = "<%=path%>/nodePosition/roomManage.do?action=query";
} }
} }
//程辉 2013-5-8 新增 导出当前页 //程辉 2013-5-8 新增 导出当前页
function emportCurrentXls() { function emportCurrentXls() {
document.form3.action = "<c:url value='/'/>/nodePosition/roomManage.do?action=emportCurrentXls&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }'+"&rIspn="+$("#rIspn").val(); document.form3.action = "<c:url value='/'/>/nodePosition/roomManage.do?action=emportCurrentXls&pageNo="+'${pageNo }'+"&pageSize="+'${pageSize }'+"&rIspn="+$("#rIspn").val();
document.form3.submit(); document.form3.submit();
closeDiv(); closeDiv();
document.form3.action = "<%=path%>/nodePosition/roomManage.do?action=query"; document.form3.action = "<%=path%>/nodePosition/roomManage.do?action=query";
} }
//程辉 2013-5-8 新增 导出全部 //程辉 2013-5-8 新增 导出全部
function emportAllXls() { function emportAllXls() {
document.form3.action = "<c:url value='/'/>/nodePosition/roomManage.do?action=emportAllXls&rIspn="+$("#rIspn").val(); document.form3.action = "<c:url value='/'/>/nodePosition/roomManage.do?action=emportAllXls&rIspn="+$("#rIspn").val();
document.form3.submit(); document.form3.submit();
closeDiv(); closeDiv();
document.form3.action = "<%=path%>/nodePosition/roomManage.do?action=query"; document.form3.action = "<%=path%>/nodePosition/roomManage.do?action=query";
} }
function showDiv(){ function showDiv(){
document.getElementById('popDiv').style.display='block'; document.getElementById('popDiv').style.display='block';
document.getElementById('bg').style.display='block'; document.getElementById('bg').style.display='block';
} }
function closeDiv(){ function closeDiv(){
document.getElementById('popDiv').style.display='none'; document.getElementById('popDiv').style.display='none';
document.getElementById('bg').style.display='none'; document.getElementById('bg').style.display='none';
} }
function goGuide(datas) { function goGuide(datas) {
if(datas!=null && datas!=""){ if(datas!=null && datas!=""){
if(datas.resu=='over') { if(datas.resu=='over') {
window.location ="<%=path%>/sysManage/guideManage!execute.do?action=index"; window.location ="<%=path%>/sysManage/guideManage!execute.do?action=index";
} }
} }
} }
$(function(){ $(function(){
var dh = document.body.clientHeight; var dh = document.body.clientHeight;
var dhh = dh-60+"px;"; var dhh = dh-60+"px;";
var tableHeight = $("#info").height(); var tableHeight = $("#info").height();
if(tableHeight > dh-60){ 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); $("#maindiv").attr("style","clear:both;margin-left:6px;overflow-y:auto;overflow-x:auto;width:99%;font-size:12px;height: "+dhh);
if(ieBrowser()){ if(ieBrowser()){
$("#info").attr("style","width:100%;"); $("#info").attr("style","width:100%;");
}else{ }else{
$("#info").attr("style","width:98.5%;"); $("#info").attr("style","width:98.5%;");
} }
}else{ }else{
$("#maindiv").attr("style","clear:both;margin-left:6px;overflow-y:auto;overflow-x:auto;width:98%;font-size:12px;height: "+dhh); $("#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%;"); $("#info").attr("style","width:100%;");
} }
$("#maindiv").attr("style","clear:left"); $("#maindiv").attr("style","clear:left");
if($("#isComplete").val()=='0'){ if($("#isComplete").val()=='0'){
var submit = function (v, h, f) { var submit = function (v, h, f) {
if (v == 'yes') { if (v == 'yes') {
$("input[type=hidden][name=fromWhere]").val('formGuide'); $("input[type=hidden][name=fromWhere]").val('formGuide');
return; return;
} }
if (v == 'no') { if (v == 'no') {
$.post("<c:url value='/sysManage/guideManage!setComplete.do'/>", $.post("<c:url value='/sysManage/guideManage!setComplete.do'/>",
{ {
packNum:3, packNum:3,
packName:'jf' packName:'jf'
}, },
function(datas){ function(datas){
goGuide(datas); goGuide(datas);
},"json"); },"json");
} }
}; };
$.jBox.warning("i18n_ril.message.warning_n81i", "i18n_ril.message.hint_n81i", submit,{icon: false}); $.jBox.warning("i18n_ril.message.warning_n81i", "i18n_ril.message.hint_n81i", submit,{icon: false});
} }
}); });
</script> </script>
</head> </head>
<body> <body>
<div class="middle_list" style="overflow: hidden;"> <div class="middle_list" style="overflow: hidden;">
<form name=form3 id="frmArticleType" <form name=form3 id="frmArticleType"
action="<c:url value='/nodePosition/roomManage.do?action=query'/>" method="post" action="<c:url value='/nodePosition/roomManage.do?action=query'/>" method="post"
enctype="multipart/form-data"> enctype="multipart/form-data">
<input type="hidden" name="isComplete" id="isComplete" <input type="hidden" name="isComplete" id="isComplete"
value="${isComplete}" /> value="${isComplete}" />
<input type="hidden" name="fromWhere" value="${fromWhere }" /> <input type="hidden" name="fromWhere" value="${fromWhere }" />
<div id="divTop"> <div id="divTop">
<div class="box_1"> <div class="box_1">
<label class="divTopText"><font class="selectText">i18n_ril.text.rIspn_n81i</font> <label class="divTopText"><font class="selectText">i18n_ril.text.rIspn_n81i</font>
<input type="text" id="rIspn" <input type="text" id="rIspn"
onkeyup="lianxiangkeyup('roomIspn','NodeRoomTable','String','rIspn','suggest1',this.value);" onkeyup="lianxiangkeyup('roomIspn','NodeRoomTable','String','rIspn','suggest1',this.value);"
name="rIspn" title="i18n_ril.message.rIspn_n81i" value="${rIspn}" size="20" /> name="rIspn" title="i18n_ril.message.rIspn_n81i" value="${rIspn}" size="20" />
<div id='suggest1' class="ac_results"></div></label> <div id='suggest1' class="ac_results"></div></label>
<img src="<c:url value='/images/button_chaxun.png'/>" <img src="<c:url value='/images/button_chaxun.png'/>"
class="img_middle2" onclick="javascript:qry();" /> class="img_middle2" onclick="javascript:qry();" />
</div> </div>
<div class="box_2"> <div class="box_2">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="javascript:downloadExample();" value="i18n_ril.button.downloadExample_n81i" /> onclick="javascript:downloadExample();" value="i18n_ril.button.downloadExample_n81i" />
&nbsp; &nbsp;
<input type="button" value="i18n_ril.text.importXls_n81i" title="i18n_ril.text.importXls_n81i" class="btn3_mouseout" onclick="javascript:uploadFile(this)"/> <input type="button" value="i18n_ril.text.importXls_n81i" title="i18n_ril.text.importXls_n81i" class="btn3_mouseout" onclick="javascript:uploadFile(this)"/>
<input type="file" name="myFile" id="myFile" value="" onchange="javascript:setValue(this.value)" <input type="file" name="myFile" id="myFile" value="" onchange="javascript:setValue(this.value)"
class="filebtn" /> class="filebtn" />
&nbsp; &nbsp;
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="javascript:importXls();" value="i18n_ril.button.import_n81i" /> onclick="javascript:importXls();" value="i18n_ril.button.import_n81i" />
&nbsp; &nbsp;
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="javascript:showDiv();" value="i18n_ril.button.export_n81i" /> onclick="javascript:showDiv();" value="i18n_ril.button.export_n81i" />
&nbsp; &nbsp;
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="javascript:boxmanager();" value="i18n_ril.button.boxmanager_n81i" /> onclick="javascript:boxmanager();" value="i18n_ril.button.boxmanager_n81i" />
&nbsp; &nbsp;
<jsp:include page="/include/include.jsp" /></div> <jsp:include page="/include/include.jsp" /></div>
</div> </div>
<div id="maindiv"> <div id="maindiv">
<table border="0" cellpadding="0" cellspacing="0" class="table" <table border="0" cellpadding="0" cellspacing="0" class="table"
id="info"> id="info">
<tr> <tr>
<td width="8%" class="color_top" nowrap> <td width="8%" class="color_top" nowrap>
<input type="checkbox" name="checkbox62" value="checkbox" <input type="checkbox" name="checkbox62" value="checkbox"
onClick="checkAll(this)" /> onClick="checkAll(this)" />
i18n_ril.text.index_n81i i18n_ril.text.index_n81i
</td> </td>
<td width="20%" class="color_top" nowrap> <td width="20%" class="color_top" nowrap>
i18n_ril.text.rIspn_n81i i18n_ril.text.rIspn_n81i
</td> </td>
<td width="10%" class="color_top" nowrap> <td width="10%" class="color_top" nowrap>
i18n_ril.text.roomRows_n81i i18n_ril.text.roomRows_n81i
</td> </td>
<td width="10%" class="color_top" nowrap> <td width="10%" class="color_top" nowrap>
i18n_ril.text.roomCols_n81i i18n_ril.text.roomCols_n81i
</td> </td>
<td width="40%" class="color_top" nowrap> <td width="40%" class="color_top" nowrap>
i18n_ril.text.roomDesc_n81i i18n_ril.text.roomDesc_n81i
</td> </td>
</tr> </tr>
<c:set var="index" value="${1}" /> <c:set var="index" value="${1}" />
<c:choose> <c:choose>
<c:when test="${fn:length(nodeRoomList) > 0}"> <c:when test="${fn:length(nodeRoomList) > 0}">
<c:forEach items="${nodeRoomList}" var="nodeRoom" varStatus="vs"> <c:forEach items="${nodeRoomList}" var="nodeRoom" varStatus="vs">
<c:set var="color" value="color_1" /> <c:set var="color" value="color_1" />
<c:set var="color_end" value="color_7" /> <c:set var="color_end" value="color_7" />
<c:if test="${vs.count%2!=0 }"> <c:if test="${vs.count%2!=0 }">
<c:set var="color" value="color_3" /> <c:set var="color" value="color_3" />
<c:set var="color_end" value="color_6" /> <c:set var="color_end" value="color_6" />
</c:if> </c:if>
<tr> <tr>
<td class="${color }"> <td class="${color }">
<input type="checkbox" name="ids" id="ids" <input type="checkbox" name="ids" id="ids"
value="${nodeRoom.roomId}" /> value="${nodeRoom.roomId}" />
${index+(pageNo-1)*pageSize} ${index+(pageNo-1)*pageSize}
</td> </td>
<td class="${color }"> <td class="${color }">
${nodeRoom.roomIspn} ${nodeRoom.roomIspn}
</td> </td>
<td class="${color }"> <td class="${color }">
${nodeRoom.roomRows} ${nodeRoom.roomRows}
</td> </td>
<td class="${color }"> <td class="${color }">
${nodeRoom.roomCols} ${nodeRoom.roomCols}
</td> </td>
<td class="${color }"> <td class="${color }">
${nodeRoom.roomDesc} ${nodeRoom.roomDesc}
</td> </td>
</tr> </tr>
<c:set var="index" value="${index + 1}" /> <c:set var="index" value="${index + 1}" />
</c:forEach> </c:forEach>
</c:when> </c:when>
<c:otherwise> <c:otherwise>
<tr> <tr>
<td colspan="5" height="20" class="color_6" align="center"> <td colspan="5" height="20" class="color_6" align="center">
i18n_ril.text.noRecord_n81i i18n_ril.text.noRecord_n81i
</td> </td>
</tr> </tr>
</c:otherwise> </c:otherwise>
</c:choose> </c:choose>
</table> </table>
</div> </div>
<c:if test="${!empty nodeRoomList}"> <c:if test="${!empty nodeRoomList}">
<div id="divBoot"> <div id="divBoot">
<jsp:include page="/common/page.jsp" /> <jsp:include page="/common/page.jsp" />
</div> </div>
</c:if> </c:if>
</form> </form>
</div> </div>
<br /> <br />
<div id="popDiv" class="mydiv" style="display: none;"> <div id="popDiv" class="mydiv" style="display: none;">
<input type="hidden" /> <input type="hidden" />
<input type="button" class=btn3_mouseout style="width: 100px;" <input type="button" class=btn3_mouseout style="width: 100px;"
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="javascript:emportCurrentXls();" value="i18n_ril.button.exportCurrentXls_n81i" /> onclick="javascript:emportCurrentXls();" value="i18n_ril.button.exportCurrentXls_n81i" />
&nbsp; &nbsp;
<input type="button" class=btn3_mouseout style="width: 80px" <input type="button" class=btn3_mouseout style="width: 80px"
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="javascript:emportAllXls();" value="i18n_ril.button.exportAllXls_n81i" /> onclick="javascript:emportAllXls();" value="i18n_ril.button.exportAllXls_n81i" />
&nbsp; &nbsp;
<br /> <br />
<a href="javascript:closeDiv()">i18n_ril.text.closeWindow_n81i</a> <a href="javascript:closeDiv()">i18n_ril.text.closeWindow_n81i</a>
</div> </div>
<div id="bg" class="bg" style="display: none;"></div> <div id="bg" class="bg" style="display: none;"></div>
</body> </body>
</html> </html>

View File

@@ -1,177 +1,177 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%> <%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib uri="/jstl/fn" prefix="fn"%> <%@ taglib uri="/jstl/fn" prefix="fn"%>
<%@ taglib uri="/jstl/fmt" prefix="fmt"%> <%@ taglib uri="/jstl/fmt" prefix="fmt"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
%> %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_uri.message.title_n81i</title> <title>i18n_uri.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" <link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script> src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script> src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.tools.js'/>"></script> src="<c:url value='/js/jquery.tools.js'/>"></script>
</head> </head>
<script language="javascript" type="text/javascript"> <script language="javascript" type="text/javascript">
function ajaxCheck(){ function ajaxCheck(){
var type; var type;
$.ajax({ $.ajax({
url:"<%=path%>/nodePosition/roomManage.do?action=roomManagerCheck", url:"<%=path%>/nodePosition/roomManage.do?action=roomManagerCheck",
type : "POST", type : "POST",
async:false, async:false,
data:$('#Mkform').serialize(), data:$('#Mkform').serialize(),
success : function(data) { success : function(data) {
if(data == "error"){ if(data == "error"){
alert("i18n_uri.message.mkFormError_n81i"); alert("i18n_uri.message.mkFormError_n81i");
type = false; type = false;
}else if(data == "exception"){ }else if(data == "exception"){
alert("i18n_uri.message.mkFormException_n81i"); alert("i18n_uri.message.mkFormException_n81i");
type = false; type = false;
}else if(data =="success"){ }else if(data =="success"){
type = true; type = true;
} }
} }
}); });
return type; return type;
} }
var maxRows ='${maxRoomRows}'; var maxRows ='${maxRoomRows}';
var maxCols = '${maxRoomCols}'; var maxCols = '${maxRoomCols}';
function add(){ function add(){
if($id("roomIspn","","i18n_uri.text.roomIspn_n81i") && $id("roomRows","sz","i18n_uri.text.roomRows_n81i") && $id("roomCols","sz","i18n_uri.text.roomCols_n81i")){ if($id("roomIspn","","i18n_uri.text.roomIspn_n81i") && $id("roomRows","sz","i18n_uri.text.roomRows_n81i") && $id("roomCols","sz","i18n_uri.text.roomCols_n81i")){
if(!containSpecial($("#roomIspn").val())){ if(!containSpecial($("#roomIspn").val())){
$("#roomIspn").next().html("*"); $("#roomIspn").next().html("*");
$("#roomRows").next().html("*"); $("#roomRows").next().html("*");
$("#roomCols").next().html("*"); $("#roomCols").next().html("*");
if(Number($("#roomRows").val()) > Number(maxRows)){ if(Number($("#roomRows").val()) > Number(maxRows)){
$("#roomRows").next().html("i18n_uri.message.roomRows_n81i"+maxRows); $("#roomRows").next().html("i18n_uri.message.roomRows_n81i"+maxRows);
return; return;
}else if(Number($("#roomCols").val()) > Number(maxCols)){ }else if(Number($("#roomCols").val()) > Number(maxCols)){
$("#roomCols").next().html("i18n_uri.message.roomCols_n81i"+maxCols); $("#roomCols").next().html("i18n_uri.message.roomCols_n81i"+maxCols);
return; return;
}else{ }else{
if(ajaxCheck()){ if(ajaxCheck()){
document.Mkform.action="<%=path%>/nodePosition/roomManage.do?action=doUpdate"; document.Mkform.action="<%=path%>/nodePosition/roomManage.do?action=doUpdate";
document.Mkform.submit(); document.Mkform.submit();
} }
} }
}else{ }else{
$("#roomIspn").next().html("i18n_uri.message.roomIspn_n81i"); $("#roomIspn").next().html("i18n_uri.message.roomIspn_n81i");
return; return;
} }
} }
} }
function goBack(){ function goBack(){
document.Mkform.action="<%=path%>/nodePosition/roomManage.do?action=query"; document.Mkform.action="<%=path%>/nodePosition/roomManage.do?action=query";
document.Mkform.submit(); document.Mkform.submit();
} }
$(function(){ $(function(){
$("#roomRows").change(function(){ $("#roomRows").change(function(){
if(!$id("roomRows","sz","i18n_uri.text.roomRows_n81i")){ if(!$id("roomRows","sz","i18n_uri.text.roomRows_n81i")){
$("#roomRows").val(""); $("#roomRows").val("");
} }
}) })
$("#roomCols").change(function(){ $("#roomCols").change(function(){
if(!$id("roomCols","sz","i18n_uri.text.roomCols_n81i")){ if(!$id("roomCols","sz","i18n_uri.text.roomCols_n81i")){
$("#roomCols").val(""); $("#roomCols").val("");
} }
}) })
}) })
</script> </script>
<body > <body >
<div class="middle_list" > <div class="middle_list" >
<div class="box_2"> <div class="box_2">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="goBack()" value="i18n_uri.button.back_n81i"/> onclick="goBack()" value="i18n_uri.button.back_n81i"/>
</div> </div>
<form action="" name="Mkform" method="post" id="Mkform"> <form action="" name="Mkform" method="post" id="Mkform">
<input type="hidden" name="nodeRoom.roomId" value="${nodeRoom.roomId}" /> <input type="hidden" name="nodeRoom.roomId" value="${nodeRoom.roomId}" />
<input type="hidden" name="rIspn" value="${rIspn }" id="rIspn"> <input type="hidden" name="rIspn" value="${rIspn }" id="rIspn">
<input type="hidden" name="pageNo" value="${pageNo }" /> <input type="hidden" name="pageNo" value="${pageNo }" />
<input type="hidden" name="pageSize" value="${pageSize }" /> <input type="hidden" name="pageSize" value="${pageSize }" />
<jsp:include page="/common/transferHiddenParameter.jsp" /> <jsp:include page="/common/transferHiddenParameter.jsp" />
<div style="clear: both"></div> <div style="clear: both"></div>
<table border="0" cellpadding="0" cellspacing="0" class="table"> <table border="0" cellpadding="0" cellspacing="0" class="table">
<tr> <tr>
<td colspan="2" class="color_8"> <td colspan="2" class="color_8">
<strong>i18n_uri.text.title_n81i</strong> <strong>i18n_uri.text.title_n81i</strong>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" width="30%" align="right"> <td class="color_1" width="30%" align="right">
i18n_uri.text.index_n81i i18n_uri.text.index_n81i
</td> </td>
<td class="color_3" align="left"> <td class="color_3" align="left">
<input type="text" name="nodeRoom.roomIspn" id="roomIspn" value="${nodeRoom.roomIspn}"/> <input type="text" name="nodeRoom.roomIspn" id="roomIspn" value="${nodeRoom.roomIspn}"/>
<span style="color: red" id="info">*</span> <span style="color: red" id="info">*</span>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" width="30%" align="right"> <td class="color_1" width="30%" align="right">
i18n_uri.text.rows_n81i i18n_uri.text.rows_n81i
</td> </td>
<td class="color_3" align="left"> <td class="color_3" align="left">
<input type="text" name="nodeRoom.roomRows" id="roomRows" value="${nodeRoom.roomRows}"/> <input type="text" name="nodeRoom.roomRows" id="roomRows" value="${nodeRoom.roomRows}"/>
<span style="color: red" id="row">*</span> <span style="color: red" id="row">*</span>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" width="30%" align="right"> <td class="color_1" width="30%" align="right">
i18n_uri.text.cols_n81i i18n_uri.text.cols_n81i
</td> </td>
<td class="color_3" align="left"> <td class="color_3" align="left">
<input type="text" name="nodeRoom.roomCols" id="roomCols" value="${nodeRoom.roomCols}"/> <input type="text" name="nodeRoom.roomCols" id="roomCols" value="${nodeRoom.roomCols}"/>
<span style="color: red" id="col">*</span> <span style="color: red" id="col">*</span>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right"> <td class="color_1" align="right">
i18n_uri.text.rommDesc_n81i i18n_uri.text.rommDesc_n81i
</td> </td>
<td class="color_3" align="left"> <td class="color_3" align="left">
<textarea rows="5" cols="60" id="rommDesc" <textarea rows="5" cols="60" id="rommDesc"
name="nodeRoom.roomDesc" >${nodeRoom.roomDesc}</textarea> name="nodeRoom.roomDesc" >${nodeRoom.roomDesc}</textarea>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_7" colspan="2" align="right"> <td class="color_7" colspan="2" align="right">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onclick="add()" value="i18n_uri.button.submit_n81i"/> onmouseup="this.className='btn3_mouseup'" onclick="add()" value="i18n_uri.button.submit_n81i"/>
&nbsp; &nbsp;
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="javascript:document.forms['Mkform'].reset()" value="i18n_uri.button.reset_n81i"/> onclick="javascript:document.forms['Mkform'].reset()" value="i18n_uri.button.reset_n81i"/>
</td> </td>
</tr> </tr>
</table> </table>
</form> </form>
</div> </div>
</body> </body>
</html> </html>

View File

@@ -1,290 +1,290 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/common/taglib.jsp"%> <%@ include file="/common/taglib.jsp"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
%> %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html> <html>
<head> <head>
<title>i18n_sr.message.title_n81i</title> <title>i18n_sr.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" <link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script> src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script> src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/raphael.js'/>"></script> src="<c:url value='/js/raphael.js'/>"></script>
<style> <style>
body { body {
background-image: url("<%=path %>/images/show/bg.jpg"); background-image: url("<%=path %>/images/show/bg.jpg");
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: center; background-position: center;
scrollbar-face-color: #E6E7E9; //滚动条凸出部分的颜色 scrollbar-face-color: #E6E7E9; //滚动条凸出部分的颜色
scrollbar-highlight-color: #E7E8EA; //滚动条空白部分的颜色 scrollbar-highlight-color: #E7E8EA; //滚动条空白部分的颜色
scrollbar-shadow-color: #E6E7E9; //立体滚动条阴影的颜色 scrollbar-shadow-color: #E6E7E9; //立体滚动条阴影的颜色
scrollbar-3dlight-color: #E6E7E9; //滚动条亮边的颜色 scrollbar-3dlight-color: #E6E7E9; //滚动条亮边的颜色
scrollbar-arrow-color: #E1E3E0; //上下按钮上三角箭头的颜色 scrollbar-arrow-color: #E1E3E0; //上下按钮上三角箭头的颜色
scrollbar-track-color: #E6E7E9; //滚动条的背景颜色 scrollbar-track-color: #E6E7E9; //滚动条的背景颜色
scrollbar-darkshadow-color: #CCCCCC; //滚动条强阴影的颜色 scrollbar-darkshadow-color: #CCCCCC; //滚动条强阴影的颜色
scrollbar-base-color: #E6E7E9// 滚动条的基本颜色 scrollbar-base-color: #E6E7E9// 滚动条的基本颜色
} }
#hint { #hint {
border: 1px solid #000000; border: 1px solid #000000;
background: #EEF0ED; background: #EEF0ED;
position: absolute; position: absolute;
z-index: 9; z-index: 9;
padding: 6px; padding: 6px;
line-height: 14px; line-height: 14px;
text-align: left; text-align: left;
top: 1520px; top: 1520px;
font-size: 12px; font-size: 12px;
} }
</style> </style>
<script type="text/javascript"> <script type="text/javascript">
var raphael; var raphael;
var raphaelRoom; var raphaelRoom;
var top1 = 20; var top1 = 20;
var left = 5; var left = 5;
var Xgap = 5; var Xgap = 5;
var Ygap = 10; var Ygap = 10;
var nodeWidth = 60; var nodeWidth = 60;
var nodeHeight = 60; var nodeHeight = 60;
var leafNodeHeight = 33; var leafNodeHeight = 33;
var textOffset = 8; var textOffset = 8;
var nodes = new Array(); var nodes = new Array();
var roomY = 30; var roomY = 30;
var roomGap = 5; var roomGap = 5;
var roomWidth=100; var roomWidth=100;
var roomHeight=100; var roomHeight=100;
var minboxWidth=50; var minboxWidth=50;
var minboxHeight=100; var minboxHeight=100;
var boxWidth=250; var boxWidth=250;
var boxHeight=500; var boxHeight=500;
var nodegroupsHeight=0; var nodegroupsHeight=0;
var nodeGroupUrl="${pageContext.request.contextPath}/images/topo3d/nodeGroup.png"; var nodeGroupUrl="${pageContext.request.contextPath}/images/topo3d/nodeGroup.png";
var nodeGroupErrorUrl="${pageContext.request.contextPath}/images/topo3d/nodeGroupError.png"; var nodeGroupErrorUrl="${pageContext.request.contextPath}/images/topo3d/nodeGroupError.png";
var leafNodeUrl="${pageContext.request.contextPath}/images/topo3d/leafNode.png"; var leafNodeUrl="${pageContext.request.contextPath}/images/topo3d/leafNode.png";
var leafNodeErrorUrl="${pageContext.request.contextPath}/images/topo3d/leafNodeError.png"; var leafNodeErrorUrl="${pageContext.request.contextPath}/images/topo3d/leafNodeError.png";
var boxUrl="${pageContext.request.contextPath}/images/topo3d/box.png"; var boxUrl="${pageContext.request.contextPath}/images/topo3d/box.png";
var boxErrorUrl="${pageContext.request.contextPath}/images/topo3d/boxError.png"; var boxErrorUrl="${pageContext.request.contextPath}/images/topo3d/boxError.png";
var lineUrl = "${pageContext.request.contextPath}/images/topo3d/cutLine.png"; var lineUrl = "${pageContext.request.contextPath}/images/topo3d/cutLine.png";
$(function(){ $(function(){
var height = document.body.clientHeight; var height = document.body.clientHeight;
var width = document.body.clientWidth; var width = document.body.clientWidth;
$("#nodegroups").css("height",height-10); $("#nodegroups").css("height",height-10);
var length = '${fn:length(nodegroupList) }'; var length = '${fn:length(nodegroupList) }';
nodegroupsHeight = top1+ length*(nodeHeight+Ygap) nodegroupsHeight = top1+ length*(nodeHeight+Ygap)
raphael = Raphael("nodegroups",70,nodegroupsHeight); raphael = Raphael("nodegroups",70,nodegroupsHeight);
var leafNums = 0; var leafNums = 0;
var firstGroupId = '${firstGroupId}'; var firstGroupId = '${firstGroupId}';
<c:forEach items="${nodegroupList}" var="nodeGroup" varStatus="index"> <c:forEach items="${nodegroupList}" var="nodeGroup" varStatus="index">
var ind = '${index.index}'; var ind = '${index.index}';
if(ind == 0 && (firstGroupId == ""||firstGroupId == null)){ if(ind == 0 && (firstGroupId == ""||firstGroupId == null)){
firstGroupId = '${nodeGroup.groupId}'; firstGroupId = '${nodeGroup.groupId}';
} }
var nodeX = left; var nodeX = left;
var nodeY = top1 +ind*(nodeHeight+Ygap)-(leafNums*(nodeWidth-leafNodeHeight)); var nodeY = top1 +ind*(nodeHeight+Ygap)-(leafNums*(nodeWidth-leafNodeHeight));
var fillImg; var fillImg;
var fillImgHeight; var fillImgHeight;
//是否为叶子节点组 leafGroup=0叶子节点组 //是否为叶子节点组 leafGroup=0叶子节点组
if('${nodeGroup.leafGroup}' == 0){ if('${nodeGroup.leafGroup}' == 0){
//节点组状态 0正常 1异常 //节点组状态 0正常 1异常
if('${nodeGroup.status}' == 0){ if('${nodeGroup.status}' == 0){
fillImg = leafNodeUrl; fillImg = leafNodeUrl;
}else{ }else{
fillImg = leafNodeErrorUrl; fillImg = leafNodeErrorUrl;
} }
fillImgHeight = leafNodeHeight; fillImgHeight = leafNodeHeight;
leafNums++; leafNums++;
}else{ }else{
//节点组状态 0正常 1异常 //节点组状态 0正常 1异常
if('${nodeGroup.status}' == 0){ if('${nodeGroup.status}' == 0){
fillImg = nodeGroupUrl; fillImg = nodeGroupUrl;
}else{ }else{
fillImg = nodeGroupErrorUrl; fillImg = nodeGroupErrorUrl;
} }
fillImgHeight = nodeHeight; fillImgHeight = nodeHeight;
} }
var node = raphael.rect(nodeX,nodeY,nodeWidth,fillImgHeight).attr({stroke: "#FFFFFF",'stroke-width':0.1,title:'${nodeGroup.groupName}',text:'${nodeGroup.alramInfo}', fill: "url("+fillImg+")"}); var node = raphael.rect(nodeX,nodeY,nodeWidth,fillImgHeight).attr({stroke: "#FFFFFF",'stroke-width':0.1,title:'${nodeGroup.groupName}',text:'${nodeGroup.alramInfo}', fill: "url("+fillImg+")"});
node.id = '${nodeGroup.groupId}'; node.id = '${nodeGroup.groupId}';
nodes['${nodeGroup.groupId}']=node; nodes['${nodeGroup.groupId}']=node;
$("body").append("<input type='hidden' id='${nodeGroup.groupId}' value=''>"); $("body").append("<input type='hidden' id='${nodeGroup.groupId}' value=''>");
$("input[id='${nodeGroup.groupId}']").val('${nodeGroup.alramInfo}'); $("input[id='${nodeGroup.groupId}']").val('${nodeGroup.alramInfo}');
//点击查看节点组下的机房 //点击查看节点组下的机房
node.click(function(){ node.click(function(){
clearSelectImg(); clearSelectImg();
var imgUrl = this.attr("fill"); var imgUrl = this.attr("fill");
imgUrl = imgUrl.replace(".png","_select.png"); imgUrl = imgUrl.replace(".png","_select.png");
this.attr({ fill: imgUrl}); this.attr({ fill: imgUrl});
getNodeRoom('${nodeGroup.groupId}'); getNodeRoom('${nodeGroup.groupId}');
}).mousemove(function(event){ }).mousemove(function(event){
this.animate({"fill-opacity":.8},800); this.animate({"fill-opacity":.8},800);
// var alramInfo = this.attr("text"); // var alramInfo = this.attr("text");
var nodeid = this.id; var nodeid = this.id;
var selector = "#"+nodeid; var selector = "#"+nodeid;
var alramInfo = $(selector).val(); var alramInfo = $(selector).val();
showMsg(alramInfo,event); showMsg(alramInfo,event);
}).mouseout(function(){ }).mouseout(function(){
this.animate({"fill-opacity":1},800); this.animate({"fill-opacity":1},800);
hideMsg(); hideMsg();
}) })
</c:forEach> </c:forEach>
//初始化机房展示 //初始化机房展示
$("#I2").attr("src","<c:url value='/nodePosition/topoShow.do?action=getNodeRoom&groupId="+firstGroupId+"&nodeBoxId=${nodeBoxId}&nodeBoxIspn=${nodeBoxIspn}'/>"); $("#I2").attr("src","<c:url value='/nodePosition/topoShow.do?action=getNodeRoom&groupId="+firstGroupId+"&nodeBoxId=${nodeBoxId}&nodeBoxIspn=${nodeBoxIspn}'/>");
var imgUrl = nodes[firstGroupId].attr("fill"); var imgUrl = nodes[firstGroupId].attr("fill");
imgUrl = imgUrl.replace(".png","_select.png"); imgUrl = imgUrl.replace(".png","_select.png");
nodes[firstGroupId].attr({ fill: imgUrl}); nodes[firstGroupId].attr({ fill: imgUrl});
}) })
function getNodeRoom(groupId){ function getNodeRoom(groupId){
$("#I2").attr("src","<c:url value='/nodePosition/topoShow.do?action=getNodeRoom&groupId="+groupId+"'/>"); $("#I2").attr("src","<c:url value='/nodePosition/topoShow.do?action=getNodeRoom&groupId="+groupId+"'/>");
} }
function clearSelectImg(){ function clearSelectImg(){
for(key in nodes){ for(key in nodes){
var node = raphael.getById(key); var node = raphael.getById(key);
var fillUrl = node.attr("fill"); var fillUrl = node.attr("fill");
if(fillUrl.indexOf("_select") >0){ if(fillUrl.indexOf("_select") >0){
fillUrl = fillUrl.replace("_select",""); fillUrl = fillUrl.replace("_select","");
node.attr({fill:fillUrl}); node.attr({fill:fillUrl});
} }
} }
} }
function showMsg(alramInfo,event){ function showMsg(alramInfo,event){
var oSon = window.document.getElementById("hint"); var oSon = window.document.getElementById("hint");
var infos = alramInfo.split("|"); var infos = alramInfo.split("|");
var info=""; var info="";
for(key in infos){ for(key in infos){
if(key == 0){ if(key == 0){
var inf=""; var inf="";
var a = infos[key]; var a = infos[key];
if(a.length>13){ if(a.length>13){
for(var i = 0 ;i <a.length;i++){ for(var i = 0 ;i <a.length;i++){
if(i%13==0&&i!=0){ if(i%13==0&&i!=0){
inf = inf + "<br/>"; inf = inf + "<br/>";
} }
inf = inf + a.charAt(i); inf = inf + a.charAt(i);
} }
}else{ }else{
inf =infos[key]; inf =infos[key];
} }
info+="<span style='font-weight: bold;'>"+inf+"</span><br/><br/>"; info+="<span style='font-weight: bold;'>"+inf+"</span><br/><br/>";
}else{ }else{
info+=infos[key]+"<br/>"; info+=infos[key]+"<br/>";
} }
} }
with (oSon){ with (oSon){
innerHTML = info; innerHTML = info;
style.display = "block"; style.display = "block";
if(navigator.userAgent.indexOf("MSIE")>0) { if(navigator.userAgent.indexOf("MSIE")>0) {
style.pixelLeft = window.event.clientX + window.document.body.scrollLeft-200 ; style.pixelLeft = window.event.clientX + window.document.body.scrollLeft-200 ;
style.pixelTop = window.event.clientY + window.document.body.scrollTop-50; style.pixelTop = window.event.clientY + window.document.body.scrollTop-50;
}else if(isFirefox=navigator.userAgent.indexOf("Firefox")>0){ }else if(isFirefox=navigator.userAgent.indexOf("Firefox")>0){
var e = event ? event : window.event; var e = event ? event : window.event;
x = e.clientX; x = e.clientX;
y = e.clientY; y = e.clientY;
style.left = x + window.document.body.scrollLeft-200 ; style.left = x + window.document.body.scrollLeft-200 ;
style.top = y + window.document.body.scrollTop-50; style.top = y + window.document.body.scrollTop-50;
} }
} }
} }
function hideMsg(){ function hideMsg(){
$("#hint").hide(); $("#hint").hide();
} }
$(function(){ $(function(){
$("#prev").click(function(){ $("#prev").click(function(){
var ctopVal = Number($("#nodegroups").children().css("top").replace("px","")); var ctopVal = Number($("#nodegroups").children().css("top").replace("px",""));
var pageHeight = Number($("#nodegroups").css("height").replace("px","")); var pageHeight = Number($("#nodegroups").css("height").replace("px",""));
pageHeight = ctopVal>=0?pageHeight:0; pageHeight = ctopVal>=0?pageHeight:0;
ctopVal = ctopVal>=0?ctopVal:-ctopVal; ctopVal = ctopVal>=0?ctopVal:-ctopVal;
//alert(ctopVal+"--"+pageHeight); //alert(ctopVal+"--"+pageHeight);
if(ctopVal<=pageHeight){ if(ctopVal<=pageHeight){
alert("i18n_sr.message.isFirst_n81i"); alert("i18n_sr.message.isFirst_n81i");
return; return;
} }
var topVal = Number($("#nodegroups").children().css("top").replace("px",""))+(nodeHeight+Ygap); var topVal = Number($("#nodegroups").children().css("top").replace("px",""))+(nodeHeight+Ygap);
$("#nodegroups").children().animate({top:topVal},{queue:false,duration:500}); $("#nodegroups").children().animate({top:topVal},{queue:false,duration:500});
}) })
$("#next").click(function(){ $("#next").click(function(){
var ctopVal = Number($("#nodegroups").children().css("top").replace("px","")); var ctopVal = Number($("#nodegroups").children().css("top").replace("px",""));
var pageHeight = Number($("#nodegroups").css("height").replace("px","")); var pageHeight = Number($("#nodegroups").css("height").replace("px",""));
if((-ctopVal+pageHeight) >= nodegroupsHeight){ if((-ctopVal+pageHeight) >= nodegroupsHeight){
alert("i18n_sr.message.isLast_n81i"); alert("i18n_sr.message.isLast_n81i");
return; return;
} }
var topVal = Number($("#nodegroups").children().css("top").replace("px",""))-(nodeHeight+Ygap); var topVal = Number($("#nodegroups").children().css("top").replace("px",""))-(nodeHeight+Ygap);
//alert(ctopVal+"--"+nodegroupsHeight+"--"+topVal+"--"+$("#nodegroups").css("height")); //alert(ctopVal+"--"+nodegroupsHeight+"--"+topVal+"--"+$("#nodegroups").css("height"));
$("#nodegroups").children().animate({top:topVal},{queue:false,duration:500}); $("#nodegroups").children().animate({top:topVal},{queue:false,duration:500});
}) })
/*if(navigator.userAgent.indexOf("MSIE")>0) { /*if(navigator.userAgent.indexOf("MSIE")>0) {
$("#I2").css("height","100%"); $("#I2").css("height","100%");
}else if(isFirefox=navigator.userAgent.indexOf("Firefox")>0){ }else if(isFirefox=navigator.userAgent.indexOf("Firefox")>0){
$("#I2").css("height","870px"); $("#I2").css("height","870px");
}*/ }*/
resizeIframe('I2'); resizeIframe('I2');
}) })
function resizeIframe(obj) { function resizeIframe(obj) {
var Iframe = document.getElementById(obj); var Iframe = document.getElementById(obj);
if (Iframe){ if (Iframe){
if (Iframe.contentDocument){//ff if (Iframe.contentDocument){//ff
Iframe.style.height = Iframe.contentDocument.body.scrollHeight +80+'px'; Iframe.style.height = Iframe.contentDocument.body.scrollHeight +80+'px';
} }
else if(Iframe.document && Iframe.document.body.scrollHeight){//ie else if(Iframe.document && Iframe.document.body.scrollHeight){//ie
Iframe.style.height = iframe.document.body.scrollHeight + 40 + 'px'; Iframe.style.height = iframe.document.body.scrollHeight + 40 + 'px';
} }
} }
} }
</script> </script>
</head> </head>
<body style="overflow-y: hidden"> <body style="overflow-y: hidden">
<div> <div>
<iframe id="I2" name="I2" height="100%" width="100%" border="0" <iframe id="I2" name="I2" height="100%" width="100%" border="0"
frameborder="0" src="" scrolling="auto"> frameborder="0" src="" scrolling="auto">
i18n_sr.message.frame_n81i i18n_sr.message.frame_n81i
</iframe> </iframe>
</div> </div>
<!-- 节点组画布 --> <!-- 节点组画布 -->
<div <div
style="position: absolute; top: 22px; right: 20px; z-index: 2; width: 70px; overflow: hidden; border-left: #cccccc 1px solid;" style="position: absolute; top: 22px; right: 20px; z-index: 2; width: 70px; overflow: hidden; border-left: #cccccc 1px solid;"
id="nodegroups"> id="nodegroups">
</div> </div>
<div id="prev" <div id="prev"
style="position: absolute; top: 2px; right: 2px; z-index: 2; width: 70px; height: 22px; background-repeat: no-repeat; background-image: url('../images/prev_v.png');"> style="position: absolute; top: 2px; right: 2px; z-index: 2; width: 70px; height: 22px; background-repeat: no-repeat; background-image: url('../images/prev_v.png');">
</div> </div>
<div id="next" <div id="next"
style="position: absolute; bottom: 2px; right: 2px; z-index: 2; width: 70px; height: 22px; background-repeat: no-repeat; background-image: url('../images/next_v.png');"> style="position: absolute; bottom: 2px; right: 2px; z-index: 2; width: 70px; height: 22px; background-repeat: no-repeat; background-image: url('../images/next_v.png');">
</div> </div>
<div id="hint" style="display: none;" mousemove="showMsg()" <div id="hint" style="display: none;" mousemove="showMsg()"
onmouseout="hideMsg()"></div> onmouseout="hideMsg()"></div>
</body> </body>
</html> </html>

View File

@@ -1,270 +1,270 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="/jstl/c"%> <%@ taglib prefix="c" uri="/jstl/c"%>
<%@ taglib prefix="fn" uri="/jstl/fn"%> <%@ taglib prefix="fn" uri="/jstl/fn"%>
<%@ taglib prefix="fmt" uri="/jstl/fmt"%> <%@ taglib prefix="fmt" uri="/jstl/fmt"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%> %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html> <html>
<head> <head>
<base href="<%=basePath%>"> <base href="<%=basePath%>">
<title>i18n_sm.message.title_n81i</title> <title>i18n_sm.message.title_n81i</title>
<script type="text/javascript" src="<%=path%>/js/jquery-1.4.2.min.js"></script> <script type="text/javascript" src="<%=path%>/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="<%=path%>/js/jquery.processing.plugin.js"></script> <script type="text/javascript" src="<%=path%>/js/jquery.processing.plugin.js"></script>
<script type="text/javascript" src="<%=path%>/js/ui/jquery-ui.min.js"></script> <script type="text/javascript" src="<%=path%>/js/ui/jquery-ui.min.js"></script>
<script src="<%=path %>/js/jquery.topology-2.0.js"></script> <script src="<%=path %>/js/jquery.topology-2.0.js"></script>
<script src="<%=path %>/js/jquery.contextmenu.r2.js"></script> <script src="<%=path %>/js/jquery.contextmenu.r2.js"></script>
<link href="<%=path%>/css/themes/base/jquery.ui.all.css" rel="stylesheet" type="text/css"></link> <link href="<%=path%>/css/themes/base/jquery.ui.all.css" rel="stylesheet" type="text/css"></link>
<link href="<%=path%>/css/show/topology.css" rel="stylesheet" type="text/css"></link> <link href="<%=path%>/css/show/topology.css" rel="stylesheet" type="text/css"></link>
<script type="text/javascript"> <script type="text/javascript">
jQuery(function(){ jQuery(function(){
$(document).progressDialog.showDialog("i18n_sm.message.loading_n81i..."); $(document).progressDialog.showDialog("i18n_sm.message.loading_n81i...");
}); });
</script> </script>
</head> </head>
<body oncontextmenu="event.returnValue=false"> <body oncontextmenu="event.returnValue=false">
<div id="border_Div"> <div id="border_Div">
<div id="board" class="board"> <div id="board" class="board">
<!-- 图片修改窗口 --> <!-- 图片修改窗口 -->
<div id="imageBox" class="imageBox"> <div id="imageBox" class="imageBox">
<div id="imgList"> <div id="imgList">
</div> </div>
<span style="vertical-align:bottom;float: right;"><input type='button' value='i18n_sm.button.ok_n81i' id="apply" /><input type='button' value='i18n_sm.button.cancle_n81i' id="cancel" /></span> <span style="vertical-align:bottom;float: right;"><input type='button' value='i18n_sm.button.ok_n81i' id="apply" /><input type='button' value='i18n_sm.button.cancle_n81i' id="cancel" /></span>
</div> </div>
<!-- 右侧菜单列表 --> <!-- 右侧菜单列表 -->
<div style="position: absolute; height: 100%; right: 0;"> <div style="position: absolute; height: 100%; right: 0;">
<div id="rightMenuFlag" <div id="rightMenuFlag"
style="float: left;width: 20px;text-align: center;"> style="float: left;width: 20px;text-align: center;">
<img src="<%=path%>/images/show/anniu_1.png" border="0" /> <img src="<%=path%>/images/show/anniu_1.png" border="0" />
</div> </div>
<ul id="rightMenuContent" <ul id="rightMenuContent"
style="width: 150px; height: 50%;list-style-type: none;margin:0px;display: none;" style="width: 150px; height: 50%;list-style-type: none;margin:0px;display: none;"
class="menucenter"> class="menucenter">
</ul> </ul>
</div> </div>
<!-- 操作信息窗口 --> <!-- 操作信息窗口 -->
<div id="action_info" class="actionInfo"> <div id="action_info" class="actionInfo">
</div> </div>
<input type="hidden" id="gid" value="${groupId }"/> <input type="hidden" id="gid" value="${groupId }"/>
<input type="hidden" id="sysNpId" value="${sysPositionId }"/> <input type="hidden" id="sysNpId" value="${sysPositionId }"/>
<input id= "del_Npids" type="hidden" value=""/> <input id= "del_Npids" type="hidden" value=""/>
<input id= "del_Nodeids" type="hidden" value=""/> <input id= "del_Nodeids" type="hidden" value=""/>
</div> </div>
</div> </div>
<script > <script >
jQuery(function(){ jQuery(function(){
//加载"修改图片" 用图片url //加载"修改图片" 用图片url
jQuery.post("<%=path %>/nodePosition/nodePosition.do?action=loadImg", jQuery.post("<%=path %>/nodePosition/nodePosition.do?action=loadImg",
{},function(data){ {},function(data){
if(data.length>0){ if(data.length>0){
$.each(data, function(i, imgUrl) { $.each(data, function(i, imgUrl) {
var thisSrc = "<%=path%>"+imgUrl; var thisSrc = "<%=path%>"+imgUrl;
var $icon = $("<img border='0' width = '24' height = '24' onclick='javaScript:mouseclickF()' checkVal='0' onmouseout='javaScript:mouseoutF(this)' onmouseover='javaScript:mouseoverF(this)'/>"); var $icon = $("<img border='0' width = '24' height = '24' onclick='javaScript:mouseclickF()' checkVal='0' onmouseout='javaScript:mouseoutF(this)' onmouseover='javaScript:mouseoverF(this)'/>");
$icon.attr('src',thisSrc).attr('style','margin: 1px'); $icon.attr('src',thisSrc).attr('style','margin: 1px');
$("#imgList").append($icon); $("#imgList").append($icon);
}); });
} }
}); });
//发送请求,载入节点及关联关系 //发送请求,载入节点及关联关系
$('#board').editTopology("<%=path %>/nodePosition/nodePosition.do?action=getIconModules"); $('#board').editTopology("<%=path %>/nodePosition/nodePosition.do?action=getIconModules");
//新右键菜单 //新右键菜单
$('#board').contextMenu('menu1',{ $('#board').contextMenu('menu1',{
onShowMenu: function(e,menu){ onShowMenu: function(e,menu){
//获取触发点的图标对象 //获取触发点的图标对象
var $a_obj = $(e.srcElement).closest('A'); var $a_obj = $(e.srcElement).closest('A');
if($a_obj.size()>0){ //存在保存 if($a_obj.size()>0){ //存在保存
$('#board').data('active_obj',$a_obj); $('#board').data('active_obj',$a_obj);
} }
//事件对象判断 //事件对象判断
var $Obj = $(e.srcElement); var $Obj = $(e.srcElement);
if($a_obj.size()>0 ){//当前对象是图标 if($a_obj.size()>0 ){//当前对象是图标
$("li[ltype!='node']",menu).hide(); $("li[ltype!='node']",menu).hide();
var data = $a_obj.data('data'); var data = $a_obj.data('data');
if(data.nodeType == 'system'){//要是系统先把删除干掉 if(data.nodeType == 'system'){//要是系统先把删除干掉
$("li[ltype='node'][lvalue='del']",menu).hide(); $("li[ltype='node'][lvalue='del']",menu).hide();
$("li[ltype='node'][lvalue='1']",menu).hide(); $("li[ltype='node'][lvalue='1']",menu).hide();
}else{ }else{
if(data.id == '0'){//先保存再就行节点组机柜编辑 if(data.id == '0'){//先保存再就行节点组机柜编辑
$("ul li[ltype!='normal'][lvalue='1']",menu).hide(); $("ul li[ltype!='normal'][lvalue='1']",menu).hide();
}else if(data.viewType == '1'){//节点组 }else if(data.viewType == '1'){//节点组
//$("li[lvalue]",menu).hide(); //$("li[lvalue]",menu).hide();
$("li[ltype='node'][lvalue='1']",menu).show(); $("li[ltype='node'][lvalue='1']",menu).show();
} }
} }
}else if($Obj[0].tagName == 'DIV' && $Obj.attr('divType') == 'line'){//线 }else if($Obj[0].tagName == 'DIV' && $Obj.attr('divType') == 'line'){//线
//$("ul li[ltype!='line']",menu).hide(); //$("ul li[ltype!='line']",menu).hide();
$("ul[id='menuList']",menu).hide(); $("ul[id='menuList']",menu).hide();
}else{//桌面 }else{//桌面
$("ul li[ltype!='normal']",menu).hide(); $("ul li[ltype!='normal']",menu).hide();
} }
return menu; return menu;
}, },
bindings : { bindings : {
save : function(){//保存操作 save : function(){//保存操作
if($("#del_Npids").val()!=""){ if($("#del_Npids").val()!=""){
var resu = deleteNode("<%=path %>/nodePosition/nodePosition.do?action=deleteNodes",$('#del_Npids').val(),$('#del_Nodeids').val()); var resu = deleteNode("<%=path %>/nodePosition/nodePosition.do?action=deleteNodes",$('#del_Npids').val(),$('#del_Nodeids').val());
if(resu==true){ if(resu==true){
saveNode("<%=path %>/nodePosition/nodePosition.do?action=updateNodes",0); saveNode("<%=path %>/nodePosition/nodePosition.do?action=updateNodes",0);
} }
}else{ }else{
saveNode("<%=path %>/nodePosition/nodePosition.do?action=updateNodes",0); saveNode("<%=path %>/nodePosition/nodePosition.do?action=updateNodes",0);
} }
}, },
reset : function(){//页面重置 reset : function(){//页面重置
document.location.reload(); document.location.reload();
}, },
link : function(){//开始创建关联关系 link : function(){//开始创建关联关系
$('#board').data('action_flag',true);//事件标志对象——开始 $('#board').data('action_flag',true);//事件标志对象——开始
var $fromNode = $('#board').data('active_obj'); var $fromNode = $('#board').data('active_obj');
var nl1 = $fromNode.data('data'); var nl1 = $fromNode.data('data');
if(!nl1){alert("i18n_sm.message.data_n81i");return;} if(!nl1){alert("i18n_sm.message.data_n81i");return;}
var node_id1 = $fromNode.data('node_id'); var node_id1 = $fromNode.data('node_id');
$("#action_info").html("<input type='button' value='i18n_sm.button.cancle_n81i' id='exitLink'><br/>i18n_sm.message.actionInfo_n81i<br/>"+ nl1.nodeName).show(); $("#action_info").html("<input type='button' value='i18n_sm.button.cancle_n81i' id='exitLink'><br/>i18n_sm.message.actionInfo_n81i<br/>"+ nl1.nodeName).show();
$("#board A[divType='node']").bind('click',function(){if($('#board').data('action_flag'))addLinkInPage(); else return; }); $("#board A[divType='node']").bind('click',function(){if($('#board').data('action_flag'))addLinkInPage(); else return; });
$("#exitLink").live('click',function(){ $("#exitLink").live('click',function(){
$('#board').data('action_flag',false);//事件标志对象——结束 $('#board').data('action_flag',false);//事件标志对象——结束
$("#action_info").hide(); $("#action_info").hide();
}); });
}, },
//cancel : function(){//取消关联 //cancel : function(){//取消关联
// $('#board').data('action_flag',false);//事件标志对象——结束 // $('#board').data('action_flag',false);//事件标志对象——结束
// $("#action_info").hide(); // $("#action_info").hide();
//}, //},
unLink : function(){//删除关联关系或节点 unLink : function(){//删除关联关系或节点
//var nodesSize = $("a[divType='node'][active='1']").size(); //var nodesSize = $("a[divType='node'][active='1']").size();
//var lineSize = $("div[divType='line'][active='1'][id*='_x_']").size(); //var lineSize = $("div[divType='line'][active='1'][id*='_x_']").size();
deleteNodesInPage(0); deleteNodesInPage(0);
//deleteLinesInPage(0); //deleteLinesInPage(0);
}, },
changeImg : function(){//修改图标、图片 changeImg : function(){//修改图标、图片
$("#imageBox").show(function(){ $("#imageBox").show(function(){
var $icon = $('#board').data('active_obj'); var $icon = $('#board').data('active_obj');
var nl = $icon.data('data'); var nl = $icon.data('data');
var nodePosition ={top: nl.positionY+70,left: nl.positionX+70}; var nodePosition ={top: nl.positionY+70,left: nl.positionX+70};
$(this).css('top',nodePosition.top+'px').css('left',nodePosition.left+'px'); $(this).css('top',nodePosition.top+'px').css('left',nodePosition.left+'px');
}).find("#apply").click(function(){ }).find("#apply").click(function(){
var $icon = $('#board').data('active_obj'); var $icon = $('#board').data('active_obj');
var nsrc = $("#imageBox img[checkVal='1']").attr('src'); var nsrc = $("#imageBox img[checkVal='1']").attr('src');
$icon.find('img').attr("src",nsrc); $icon.find('img').attr("src",nsrc);
var nl = $icon.data('data'); var nl = $icon.data('data');
nl.imageUrl = nsrc; nl.imageUrl = nsrc;
$icon.data('data',nl); $icon.data('data',nl);
$("#imageBox").hide(); $("#imageBox").hide();
}); });
$("#imageBox #cancel").click(function(){ $("#imageBox #cancel").click(function(){
$("#imageBox").hide(); $("#imageBox").hide();
}); });
}, },
openTopology : function(){ //打开拓扑页面 openTopology : function(){ //打开拓扑页面
var icon = $('#board').data('active_obj'); var icon = $('#board').data('active_obj');
var data=icon.data("data"); var data=icon.data("data");
//alert(data.nodeId); //alert(data.nodeId);
//$("#gid").value=data.nodeId; //$("#gid").value=data.nodeId;
var url; var url;
if(data.childNum >0){//有子节点组 if(data.childNum >0){//有子节点组
url = "<%=path %>/nodePosition/nodePosition.do?action=getChildNg&gid="+data.nodeId+"&npGroupId="+data.id+"&from=edit"; url = "<%=path %>/nodePosition/nodePosition.do?action=getChildNg&gid="+data.nodeId+"&npGroupId="+data.id+"&from=edit";
}else{ }else{
url = "<%=path %>/nodePosition/nodePosition.do?action=editMap&gid="+data.nodeId+"&npGroupId="+data.id; url = "<%=path %>/nodePosition/nodePosition.do?action=editMap&gid="+data.nodeId+"&npGroupId="+data.id;
} }
url = encodeURI(url); url = encodeURI(url);
url = encodeURI(url); url = encodeURI(url);
window.location.href=url; window.location.href=url;
} }
} }
}); });
//右边菜单 //右边菜单
var $content=$("#rightMenuContent"); var $content=$("#rightMenuContent");
var initWidth=$content.width(); var initWidth=$content.width();
//菜单触发事件(隐藏、显示右边菜单) //菜单触发事件(隐藏、显示右边菜单)
$("#rightMenuFlag").click(function(){ $("#rightMenuFlag").click(function(){
$content.stop(true,true); $content.stop(true,true);
if(!$content.is(":hidden")){ if(!$content.is(":hidden")){
$content.children().hide(); $content.children().hide();
$content.animate({width:0},function(){$(this).hide()}); $content.animate({width:0},function(){$(this).hide()});
}else{ }else{
$content.show().animate({width:initWidth},function(){ $content.show().animate({width:initWidth},function(){
$(this).children().fadeIn(300); $(this).children().fadeIn(300);
}) })
} }
}); });
//从桌面拖到菜单事件 //从桌面拖到菜单事件
$content.droppable({ $content.droppable({
greedy : true, greedy : true,
drop:function(event,ui){ drop:function(event,ui){
var icon=ui.draggable; var icon=ui.draggable;
if(icon[0].tagName=='A' || icon[0].tagName=='SPAN'){ if(icon[0].tagName=='A' || icon[0].tagName=='SPAN'){
icon.fadeOut(300,function(){ icon.fadeOut(300,function(){
//创建列表节点并保存信息 //创建列表节点并保存信息
var data=icon.data("data"); var data=icon.data("data");
var node_id=icon.data("node_id"); var node_id=icon.data("node_id");
$content.createLiNode(node_id,data); $content.createLiNode(node_id,data);
//$("#"+node_id).draggable({ //$("#"+node_id).draggable({
// cursorAt : {cursor :"move"}, // cursorAt : {cursor :"move"},
// revert:false // revert:false
//}); //});
//删除桌面展示关系线 //删除桌面展示关系线
$('#board').find("div[divType='line'][id*='"+node_id+"']").attr('action','delete').hide(); $('#board').find("div[divType='line'][id*='"+node_id+"']").attr('action','delete').hide();
icon.hide(500,function(){ icon.hide(500,function(){
icon.remove(); icon.remove();
}); });
}); });
}else{ }else{
} }
} }
}); });
//从菜单拖到桌面事件 //从菜单拖到桌面事件
$('#board').droppable({ $('#board').droppable({
greedy : true, greedy : true,
drop:function(event,ui){ drop:function(event,ui){
//添加桌面展示图标 //添加桌面展示图标
var icon=ui.draggable; var icon=ui.draggable;
//alert(icon[0].tagName); //alert(icon[0].tagName);
if(icon[0].tagName=='LI' || icon[0].tagName=='SPAN'){ if(icon[0].tagName=='LI' || icon[0].tagName=='SPAN'){
var node_id = icon.data("node_id"); var node_id = icon.data("node_id");
$('#board').createIconNode(node_id,icon.data("data")); $('#board').createIconNode(node_id,icon.data("data"));
$("a[divType='node'][id='"+node_id+"']") $("a[divType='node'][id='"+node_id+"']")
.attr('action','update') .attr('action','update')
.css('top',(event.clientY>10 ? (event.clientY-10) : 1)+'px') .css('top',(event.clientY>10 ? (event.clientY-10) : 1)+'px')
.css('left',(event.clientX>10 ? (event.clientX-10) : 1)+'px'); .css('left',(event.clientX>10 ? (event.clientX-10) : 1)+'px');
$("a[divType='node'][id='"+node_id+"']").bind('move',function(){ $("a[divType='node'][id='"+node_id+"']").bind('move',function(){
$(this).attr('action','update').resetLine(); $(this).attr('action','update').resetLine();
}); });
window.setTimeout(function(){$("a[divType='node'][id='"+node_id+"']").trigger('move')},100); window.setTimeout(function(){$("a[divType='node'][id='"+node_id+"']").trigger('move')},100);
//删除列表节点并保存信息 //删除列表节点并保存信息
icon.hide(500,function(){ icon.hide(500,function(){
icon.remove(); icon.remove();
}); });
} }
} }
}) })
}) })
</script> </script>
<div id='menu1'style="display: none;"> <div id='menu1'style="display: none;">
<ul id='menuList'> <ul id='menuList'>
<li id='save' ltype='normal'>i18n_sm.menu.save_n81i</li> <li id='save' ltype='normal'>i18n_sm.menu.save_n81i</li>
<li id='reset' ltype='normal'>i18n_sm.menu.reset_n81i</li> <li id='reset' ltype='normal'>i18n_sm.menu.reset_n81i</li>
<li id='unLink' ltype='line'>i18n_sm.menu.unLink_n81i</li> <li id='unLink' ltype='line'>i18n_sm.menu.unLink_n81i</li>
<li id='link' ltype='node'>i18n_sm.menu.link_n81i</li> <li id='link' ltype='node'>i18n_sm.menu.link_n81i</li>
<!-- <li id='cancel' ltype='node'>取消操作</li> --> <!-- <li id='cancel' ltype='node'>取消操作</li> -->
<li id='unLink' ltype='node' lvalue='del'>i18n_sm.menu.unNode_n81i</li> <li id='unLink' ltype='node' lvalue='del'>i18n_sm.menu.unNode_n81i</li>
<li id='changeImg' ltype='node'>i18n_sm.menu.changeImg_n81i</li> <li id='changeImg' ltype='node'>i18n_sm.menu.changeImg_n81i</li>
<li id='openTopology' ltype='node' lvalue='1'>i18n_sm.menu.openTopology_n81i</li> <li id='openTopology' ltype='node' lvalue='1'>i18n_sm.menu.openTopology_n81i</li>
</ul> </ul>
</div> </div>
</body> </body>
</html> </html>

View File

@@ -1,166 +1,166 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/common/taglib.jsp"%> <%@ include file="/common/taglib.jsp"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":" String basePath = request.getScheme() + "://" + request.getServerName() + ":"
+ request.getServerPort() + path + "/"; + request.getServerPort() + path + "/";
%> %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html> <html>
<head> <head>
<base href="<%=basePath%>"> <base href="<%=basePath%>">
<title>i18n_sn.message.title_n81i</title> <title>i18n_sn.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" <link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script> src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script> src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/raphael.js'/>"></script> src="<c:url value='/js/raphael.js'/>"></script>
<script type="text/javascript"> <script type="text/javascript">
var raphael; var raphael;
var top = 100; var top = 100;
var left = 200; var left = 200;
var Xgap = 200; var Xgap = 200;
var Ygap = 80; var Ygap = 80;
var nodeWidth = 120; var nodeWidth = 120;
var nodeHeight = 80; var nodeHeight = 80;
var textOffset = 8; var textOffset = 8;
var nodes = new Array(); var nodes = new Array();
$(function(){ $(function(){
var height = document.body.clientHeight; var height = document.body.clientHeight;
var width = document.body.clientWidth-5; var width = document.body.clientWidth-5;
//alert(height+" "+width); //alert(height+" "+width);
raphael = Raphael(0,0, width,height); raphael = Raphael(0,0, width,height);
//raphael.rect(0,0,width,height).attr({'stroke-width':1,stroke: "#FFFFFF", fill: "#FBFBEA"}); //raphael.rect(0,0,width,height).attr({'stroke-width':1,stroke: "#FFFFFF", fill: "#FBFBEA"});
//画节点图间的关系 //画节点图间的关系
draw(); draw();
//节点间关系 //节点间关系
drawLine(); drawLine();
}) })
//var serverImg = raphael.rect(serverImgX,y,serverImgWidth,serverImgHeight).attr({stroke: "#FFFFFF", fill: "url("+serverImgUrl+")"}); //var serverImg = raphael.rect(serverImgX,y,serverImgWidth,serverImgHeight).attr({stroke: "#FFFFFF", fill: "url("+serverImgUrl+")"});
function draw(){ function draw(){
for(var i = 0;i < 9; i++){ for(var i = 0;i < 9; i++){
var nodeX = left + i%3*(nodeWidth+Xgap); var nodeX = left + i%3*(nodeWidth+Xgap);
var nodeY = top + parseInt(i/3)*(nodeHeight+Ygap); var nodeY = top + parseInt(i/3)*(nodeHeight+Ygap);
var node = raphael.rect(nodeX,nodeY,nodeWidth,nodeHeight).attr({stroke: "#FFFFFF", fill: "#990000"}); var node = raphael.rect(nodeX,nodeY,nodeWidth,nodeHeight).attr({stroke: "#FFFFFF", fill: "#990000"});
node.id = "node"+i; node.id = "node"+i;
nodes[i] = node; nodes[i] = node;
} }
} }
function drawLine(){ function drawLine(){
for(key in nodes){ for(key in nodes){
if(key%3 == 1){ if(key%3 == 1){
var previousNode = nodes[key-1]; var previousNode = nodes[key-1];
var previousNodeAttr = raphael.getById("node"+(key-1)).attr(); var previousNodeAttr = raphael.getById("node"+(key-1)).attr();
var preNodeX = previousNodeAttr["x"]+previousNodeAttr["width"]; var preNodeX = previousNodeAttr["x"]+previousNodeAttr["width"];
var preNodeY = previousNodeAttr["y"]+previousNodeAttr["height"]/2 ; var preNodeY = previousNodeAttr["y"]+previousNodeAttr["height"]/2 ;
//var preNodeY1 = previousNodeAttr["y"]+previousNodeAttr["height"]*2/3 ; //var preNodeY1 = previousNodeAttr["y"]+previousNodeAttr["height"]*2/3 ;
var currentNode = nodes[key]; var currentNode = nodes[key];
var currentNodeAttr = raphael.getById("node"+key).attr(); var currentNodeAttr = raphael.getById("node"+key).attr();
var curNodeX = currentNodeAttr["x"]; var curNodeX = currentNodeAttr["x"];
var curNodeY = currentNodeAttr["y"]+currentNodeAttr["height"]/2; var curNodeY = currentNodeAttr["y"]+currentNodeAttr["height"]/2;
//var curNodeY1 = currentNodeAttr["y"]+currentNodeAttr["height"]*2/3; //var curNodeY1 = currentNodeAttr["y"]+currentNodeAttr["height"]*2/3;
//画带箭头的线 //画带箭头的线
var arrorPath = getArr(preNodeX, preNodeY,curNodeX,curNodeY,8); var arrorPath = getArr(preNodeX, preNodeY,curNodeX,curNodeY,8);
//var arrorPath1 = getArr(curNodeX,curNodeY1,preNodeX, preNodeY1,8); //var arrorPath1 = getArr(curNodeX,curNodeY1,preNodeX, preNodeY1,8);
raphael.path(arrorPath).attr({'stroke-width':1,stroke: "#000000"}); raphael.path(arrorPath).attr({'stroke-width':1,stroke: "#000000"});
//raphael.path(arrorPath1).attr({'stroke-width':1,stroke: "#FF0000"}); //raphael.path(arrorPath1).attr({'stroke-width':1,stroke: "#FF0000"});
//写内容 //写内容
var rot = Raphael.angle(curNodeX, curNodeY,preNodeX,preNodeY); var rot = Raphael.angle(curNodeX, curNodeY,preNodeX,preNodeY);
var contentX = preNodeX+(curNodeX-preNodeX)/2+(((curNodeX-preNodeX)>0) && ((curNodeY-preNodeY)<0)?-textOffset:textOffset); var contentX = preNodeX+(curNodeX-preNodeX)/2+(((curNodeX-preNodeX)>0) && ((curNodeY-preNodeY)<0)?-textOffset:textOffset);
var contentY = preNodeY+(curNodeY-preNodeY)/2-textOffset; var contentY = preNodeY+(curNodeY-preNodeY)/2-textOffset;
raphael.text(contentX,contentY,"i18n_sn.message.content_n81i"+key).attr({'stroke-width':0.1,stroke: "#333333", fill: "#333333",transform:"r"+rot}); raphael.text(contentX,contentY,"i18n_sn.message.content_n81i"+key).attr({'stroke-width':0.1,stroke: "#333333", fill: "#333333",transform:"r"+rot});
}else if(key%3 == 2){ }else if(key%3 == 2){
var previousNode = nodes[key-1]; var previousNode = nodes[key-1];
var previousNodeAttr = raphael.getById("node"+(key-1)).attr(); var previousNodeAttr = raphael.getById("node"+(key-1)).attr();
var preNodeX = previousNodeAttr["x"]+previousNodeAttr["width"]; var preNodeX = previousNodeAttr["x"]+previousNodeAttr["width"];
var preNodeY = previousNodeAttr["y"]+previousNodeAttr["height"]/3 ; var preNodeY = previousNodeAttr["y"]+previousNodeAttr["height"]/3 ;
var preNodeY1 = previousNodeAttr["y"]+previousNodeAttr["height"]*2/3 ; var preNodeY1 = previousNodeAttr["y"]+previousNodeAttr["height"]*2/3 ;
var currentNode = nodes[key]; var currentNode = nodes[key];
var currentNodeAttr = raphael.getById("node"+key).attr(); var currentNodeAttr = raphael.getById("node"+key).attr();
var curNodeX = currentNodeAttr["x"]; var curNodeX = currentNodeAttr["x"];
var curNodeY = currentNodeAttr["y"]+currentNodeAttr["height"]/3; var curNodeY = currentNodeAttr["y"]+currentNodeAttr["height"]/3;
var curNodeY1 = currentNodeAttr["y"]+currentNodeAttr["height"]*2/3; var curNodeY1 = currentNodeAttr["y"]+currentNodeAttr["height"]*2/3;
//画带箭头的线 //画带箭头的线
var arrorPath = getArr(preNodeX, preNodeY,curNodeX,curNodeY,8); var arrorPath = getArr(preNodeX, preNodeY,curNodeX,curNodeY,8);
var arrorPath1 = getArr(curNodeX,curNodeY1,preNodeX, preNodeY1,8); var arrorPath1 = getArr(curNodeX,curNodeY1,preNodeX, preNodeY1,8);
raphael.path(arrorPath).attr({'stroke-width':1.3,stroke: "#000000"}); raphael.path(arrorPath).attr({'stroke-width':1.3,stroke: "#000000"});
raphael.path(arrorPath1).attr({'stroke-width':1.5,stroke: "#000000"}); raphael.path(arrorPath1).attr({'stroke-width':1.5,stroke: "#000000"});
//写内容 //写内容
var rot = Raphael.angle(curNodeX, curNodeY,preNodeX,preNodeY); var rot = Raphael.angle(curNodeX, curNodeY,preNodeX,preNodeY);
var contentX = preNodeX+(curNodeX-preNodeX)/2+(((curNodeX-preNodeX)>0) && ((curNodeY-preNodeY)<0)?-textOffset:textOffset); var contentX = preNodeX+(curNodeX-preNodeX)/2+(((curNodeX-preNodeX)>0) && ((curNodeY-preNodeY)<0)?-textOffset:textOffset);
var contentY = preNodeY+(curNodeY-preNodeY)/2-textOffset; var contentY = preNodeY+(curNodeY-preNodeY)/2-textOffset;
raphael.text(contentX,contentY,"i18n_sn.message.content_n81i"+key+"1").attr({'stroke-width':0.1,stroke: "#333333", fill: "#333333",transform:"r"+rot}); raphael.text(contentX,contentY,"i18n_sn.message.content_n81i"+key+"1").attr({'stroke-width':0.1,stroke: "#333333", fill: "#333333",transform:"r"+rot});
var contentX1 = preNodeX+(curNodeX-preNodeX)/2+(((curNodeX-preNodeX)>0) && ((curNodeY1-preNodeY1)<0)?-textOffset:textOffset); var contentX1 = preNodeX+(curNodeX-preNodeX)/2+(((curNodeX-preNodeX)>0) && ((curNodeY1-preNodeY1)<0)?-textOffset:textOffset);
var contentY1 = preNodeY1+(curNodeY1-preNodeY1)/2-textOffset; var contentY1 = preNodeY1+(curNodeY1-preNodeY1)/2-textOffset;
raphael.text(contentX1,contentY1,"i18n_sn.message.content_n81i"+key+"2").attr({'stroke-width':0.1,stroke: "#333333", fill: "#333333",transform:"r"+rot}); raphael.text(contentX1,contentY1,"i18n_sn.message.content_n81i"+key+"2").attr({'stroke-width':0.1,stroke: "#333333", fill: "#333333",transform:"r"+rot});
}else if(key == 3){ }else if(key == 3){
var currentNode = nodes[key]; var currentNode = nodes[key];
var currentNodeAttr = raphael.getById("node"+key).attr(); var currentNodeAttr = raphael.getById("node"+key).attr();
var curNodeX = currentNodeAttr["x"]+previousNodeAttr["width"]; var curNodeX = currentNodeAttr["x"]+previousNodeAttr["width"];
var curNodeY = currentNodeAttr["y"]+currentNodeAttr["height"]/2; var curNodeY = currentNodeAttr["y"]+currentNodeAttr["height"]/2;
var nextNodeX = curNodeX+Xgap; var nextNodeX = curNodeX+Xgap;
var nextNodeY = currentNodeAttr["y"] - Ygap - nodeHeight/3; var nextNodeY = currentNodeAttr["y"] - Ygap - nodeHeight/3;
var nextNodeY1 = currentNodeAttr["y"] + currentNodeAttr["height"] + Ygap + nodeHeight/3; var nextNodeY1 = currentNodeAttr["y"] + currentNodeAttr["height"] + Ygap + nodeHeight/3;
var arrorPath = getArr(curNodeX, curNodeY,nextNodeX,nextNodeY,8); var arrorPath = getArr(curNodeX, curNodeY,nextNodeX,nextNodeY,8);
var arrorPath1 = getArr(curNodeX,curNodeY,nextNodeX, nextNodeY1,8); var arrorPath1 = getArr(curNodeX,curNodeY,nextNodeX, nextNodeY1,8);
raphael.path(arrorPath).attr({'stroke-width':1.2,stroke: "#000000"}); raphael.path(arrorPath).attr({'stroke-width':1.2,stroke: "#000000"});
raphael.path(arrorPath1).attr({'stroke-width':1.2,stroke: "#000000"}); raphael.path(arrorPath1).attr({'stroke-width':1.2,stroke: "#000000"});
var rot = Raphael.angle(nextNodeX,nextNodeY,curNodeX, curNodeY); var rot = Raphael.angle(nextNodeX,nextNodeY,curNodeX, curNodeY);
var contentX = curNodeX+(nextNodeX-curNodeX)/2+(((nextNodeX-curNodeX)>0) && ((nextNodeY-curNodeY)<0)?-textOffset:textOffset); var contentX = curNodeX+(nextNodeX-curNodeX)/2+(((nextNodeX-curNodeX)>0) && ((nextNodeY-curNodeY)<0)?-textOffset:textOffset);
var contentY = curNodeY+(nextNodeY-curNodeY)/2-textOffset; var contentY = curNodeY+(nextNodeY-curNodeY)/2-textOffset;
raphael.text(contentX,contentY,"i18n_sn.message.content_n81i"+key+"1").attr({'stroke-width':0.1,stroke: "#333333", fill: "#333333",transform:"r"+rot}); raphael.text(contentX,contentY,"i18n_sn.message.content_n81i"+key+"1").attr({'stroke-width':0.1,stroke: "#333333", fill: "#333333",transform:"r"+rot});
var rot1 = Raphael.angle(nextNodeX,nextNodeY1,curNodeX, curNodeY); var rot1 = Raphael.angle(nextNodeX,nextNodeY1,curNodeX, curNodeY);
var contentX1 = curNodeX+(nextNodeX-curNodeX)/2+(((nextNodeX-curNodeX)>0) && ((nextNodeY1-curNodeY)<0)?-textOffset:textOffset); var contentX1 = curNodeX+(nextNodeX-curNodeX)/2+(((nextNodeX-curNodeX)>0) && ((nextNodeY1-curNodeY)<0)?-textOffset:textOffset);
var contentY1 = curNodeY+(nextNodeY1-curNodeY)/2-textOffset; var contentY1 = curNodeY+(nextNodeY1-curNodeY)/2-textOffset;
raphael.text(contentX1,contentY1,"i18n_sn.message.content_n81i"+key+"1").attr({'stroke-width':0.1,stroke: "#333333", fill: "#333333",transform:"r"+rot1}); raphael.text(contentX1,contentY1,"i18n_sn.message.content_n81i"+key+"1").attr({'stroke-width':0.1,stroke: "#333333", fill: "#333333",transform:"r"+rot1});
} }
} }
} }
//画带箭头的线 //画带箭头的线
//var arrorPath = getArr(resPos.x, resPos.y,desPos.x,desPos.y,imgStep); //var arrorPath = getArr(resPos.x, resPos.y,desPos.x,desPos.y,imgStep);
//raphael.path(arrorPath).attr({'stroke-width':1,stroke: "#FF0000"}); //raphael.path(arrorPath).attr({'stroke-width':1,stroke: "#FF0000"});
//获取组成箭头的三条线段的路径 //获取组成箭头的三条线段的路径
function getArr(x1, y1, x2, y2, size) { function getArr(x1, y1, x2, y2, size) {
var angle = Raphael.angle(x1, y1, x2, y2);//得到两点之间的角度 var angle = Raphael.angle(x1, y1, x2, y2);//得到两点之间的角度
var a45 = Raphael.rad(angle - 45);//角度转换成弧度 var a45 = Raphael.rad(angle - 45);//角度转换成弧度
var a45m = Raphael.rad(angle + 45); var a45m = Raphael.rad(angle + 45);
var x2a = x2 + Math.cos(a45) * size; var x2a = x2 + Math.cos(a45) * size;
var y2a = y2 + Math.sin(a45) * size; var y2a = y2 + Math.sin(a45) * size;
var x2b = x2 + Math.cos(a45m) * size; var x2b = x2 + Math.cos(a45m) * size;
var y2b = y2 + Math.sin(a45m) * size; var y2b = y2 + Math.sin(a45m) * size;
var result = ["M", x1, y1, "L", x2, y2, "L", x2a, y2a, "M", x2, y2, "L", x2b, y2b,"Z"]; var result = ["M", x1, y1, "L", x2, y2, "L", x2a, y2a, "M", x2, y2, "L", x2b, y2b,"Z"];
return result; return result;
} }
</script> </script>
</head> </head>
<body> <body>
</body> </body>
</html> </html>

View File

@@ -1,364 +1,374 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/common/taglib.jsp"%> <%@ include file="/common/taglib.jsp"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":" String basePath = request.getScheme() + "://" + request.getServerName() + ":"
+ request.getServerPort() + path + "/"; + request.getServerPort() + path + "/";
%> %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html> <html>
<head> <head>
<title>i18n_snr.message.title_n81i</title> <title>i18n_snr.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" <link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script> src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script> src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/raphael.js'/>"></script> src="<c:url value='/js/layer.js'/>"></script>
<link rel="stylesheet" <script language="javascript" type="text/javascript"
href="<c:url value='/js/jquery-easyui-1.1.2/themes/default/easyui.css'/>" src="<c:url value='/js/raphael.js'/>"></script>
type="text/css"></link> <link rel="stylesheet"
<script type="text/javascript" href="<c:url value='/js/jquery-easyui-1.1.2/themes/default/easyui.css'/>"
src="<c:url value='/js/jquery-easyui-1.1.2/jquery.easyui.min.js' />"></script> type="text/css"></link>
<style> <script type="text/javascript"
body { src="<c:url value='/js/jquery-easyui-1.1.2/jquery.easyui.min.js' />"></script>
background-image: url("${pageContext.request.contextPath}/images/show/bg.jpg"); <style>
background-repeat: no-repeat; body {
background-position: center; background-image: url("${pageContext.request.contextPath}/images/show/bg.jpg");
scrollbar-face-color: #EEF0ED; //滚动条凸出部分的颜色 background-repeat: no-repeat;
scrollbar-highlight-color: #E7E8EA; //滚动条空白部分的颜色 background-position: center;
scrollbar-shadow-color: #EEF0ED; //立体滚动条阴影的颜色 scrollbar-face-color: #EEF0ED; //滚动条凸出部分的颜色
scrollbar-3dlight-color: #EEF0ED; //滚动条亮边的颜色 scrollbar-highlight-color: #E7E8EA; //滚动条空白部分的颜色
scrollbar-arrow-color: #E1E3E0; //上下按钮上三角箭头的颜色 scrollbar-shadow-color: #EEF0ED; //立体滚动条阴影的颜色
scrollbar-track-color: #EEF0ED; //滚动条的背景颜色 scrollbar-3dlight-color: #EEF0ED; //滚动条亮边的颜色
scrollbar-darkshadow-color: #CCCCCC; //滚动条强阴影的颜色 scrollbar-arrow-color: #E1E3E0; //上下按钮上三角箭头的颜色
scrollbar-base-color: #EEF0ED //滚动条的基本颜色 scrollbar-track-color: #EEF0ED; //滚动条的背景颜色
} scrollbar-darkshadow-color: #CCCCCC; //滚动条强阴影的颜色
</style> scrollbar-base-color: #EEF0ED //滚动条的基本颜色
}
<script type="text/javascript"> </style>
var raphael;
var nodes = new Array(); <script type="text/javascript">
var roomStartX =100; var raphael;
var roomStartY = 30; var nodes = new Array();
var roomTitleHeight = 30; var roomStartX =100;
var roomTitleGap = 15; var roomStartY = 30;
var allY = 0; var roomTitleHeight = 30;
var gap = 10;//同一机房的X,Y间距 var roomTitleGap = 15;
var roomGap = 50;//机房Y轴的间距 var allY = 0;
var roomWidth=100; var gap = 10;//同一机房的X,Y间距
var roomHeight=200; var roomGap = 50;//机房Y轴的间距
var roomWidth=100;
var minboxLeft = 50; var roomHeight=200;
var minboxWidth=140;
var minboxHeight=200; var minboxLeft = 50;
var minboxWidth=140;
var boxWidth=206; var minboxHeight=200;
var boxHeight=540;
var boxWidth=206;
var titleImg = "${pageContext.request.contextPath}/images/topo3d/grayline.jpg"; var boxHeight=540;
var boxTopImg = "${pageContext.request.contextPath}/images/topo3d/box_top.png";
var boxFootImg = "${pageContext.request.contextPath}/images/topo3d/box_foot.png"; var titleImg = "${pageContext.request.contextPath}/images/topo3d/grayline.jpg";
var boxLeftImg = "${pageContext.request.contextPath}/images/topo3d/box_left.png"; var boxTopImg = "${pageContext.request.contextPath}/images/topo3d/box_top.png";
var boxRightImg = "${pageContext.request.contextPath}/images/topo3d/box_right.png"; var boxFootImg = "${pageContext.request.contextPath}/images/topo3d/box_foot.png";
var boxLeftImg = "${pageContext.request.contextPath}/images/topo3d/box_left.png";
var boxImg="${pageContext.request.contextPath}/images/topo3d/box.png"; var boxRightImg = "${pageContext.request.contextPath}/images/topo3d/box_right.png";
var boxErrorImg="${pageContext.request.contextPath}/images/topo3d/boxError.png";
var rapheals = new Array(); var boxImg="${pageContext.request.contextPath}/images/topo3d/box.png";
var raphealsInd = 0; var boxErrorImg="${pageContext.request.contextPath}/images/topo3d/boxError.png";
var nodeIndexs = new Array(); var rapheals = new Array();
var raphealsInd = 0;
var idnum =1; var nodeIndexs = new Array();
$(function(){ var idnum =1;
var height = document.body.clientHeight;
var width = document.body.clientWidth-100; $(function(){
//计算画布高度 var height = document.body.clientHeight;
var raphaelHeight = roomGap; var width = document.body.clientWidth-100;
var raphaelWidth = roomGap; //计算画布高度
var maxRoomClos = 0; var raphaelHeight = roomGap;
<c:forEach items="${nodeRoomList}" var="nodeRoom" varStatus="index"> var raphaelWidth = roomGap;
var ind = ${index.index}; var maxRoomClos = 0;
var roomRows = ${nodeRoom.roomRows}; <c:forEach items="${nodeRoomList}" var="nodeRoom" varStatus="index">
var roomBJHeight = (ind+1)*roomTitleHeight+roomTitleGap*2+roomRows*roomHeight+(roomRows-1)*gap; var ind = ${index.index};
raphaelHeight+=roomBJHeight+roomGap; var roomRows = ${nodeRoom.roomRows};
var roomBJHeight = (ind+1)*roomTitleHeight+roomTitleGap*2+roomRows*roomHeight+(roomRows-1)*gap;
var roomCols = ${nodeRoom.roomCols}; raphaelHeight+=roomBJHeight+roomGap;
maxRoomClos = maxRoomClos >=roomCols?maxRoomClos:roomCols;
</c:forEach> var roomCols = ${nodeRoom.roomCols};
raphaelWidth= 2*roomStartX+maxRoomClos*(roomWidth+gap); maxRoomClos = maxRoomClos >=roomCols?maxRoomClos:roomCols;
</c:forEach>
if(height > raphaelHeight){ raphaelWidth= 2*roomStartX+maxRoomClos*(roomWidth+gap);
raphaelHeight=height;
} if(height > raphaelHeight){
if(width > raphaelWidth){ raphaelHeight=height;
raphaelWidth=width; }
} if(width > raphaelWidth){
raphael = Raphael("canvas",raphaelWidth,raphaelHeight); raphaelWidth=width;
//raphael.rect(0,0,width-100,height).attr({'stroke-width':1,stroke: "#FFFFFF", fill: "#FBFBEA"}); }
raphael = Raphael("canvas",raphaelWidth,raphaelHeight);
//机柜展示 //raphael.rect(0,0,width-100,height).attr({'stroke-width':1,stroke: "#FFFFFF", fill: "#FBFBEA"});
$("#nodeBox").dialog({
title:"i18n_snr.text.nodeBox_n81i", //机柜展示
resizable:true, $("#nodeBox").dialog({
width:220, title:"i18n_snr.text.nodeBox_n81i",
height:578 resizable:true,
}); width:220,
height:578
//告警信息列表 });
$("#alarmInfo").dialog({
title:"i18n_snr.text.alarmInfo_n81i", //告警信息列表
resizable:true, $("#alarmInfo").dialog({
width:width-120, title:"i18n_snr.text.alarmInfo_n81i",
height:height-20 resizable:true,
}); width:width-120,
height:height-20
$("#alarmInfo").dialog({ });
onClose:function(){
$("#I3").html(""); $("#alarmInfo").dialog({
$("#I3").removeAttr("src"); onClose:function(){
} $("#I3").html("");
}); $("#I3").removeAttr("src");
<c:forEach items="${nodeRoomList}" var="nodeRoom" varStatus="index"> }
});
var ind = ${index.index}; <c:forEach items="${nodeRoomList}" var="nodeRoom" varStatus="index">
//画机房
var roomRows = ${nodeRoom.roomRows}; var ind = ${index.index};
var roomCols = ${nodeRoom.roomCols}; //画机房
var roomRows = ${nodeRoom.roomRows};
//var roomStartX = (width-(roomRows*roomWidth))/2; var roomCols = ${nodeRoom.roomCols};
//画整个机房的背景
var roomBJWidth = roomCols*roomWidth+(roomCols-1)*gap+2*roomTitleGap; //var roomStartX = (width-(roomRows*roomWidth))/2;
var roomBJHeight = roomTitleHeight+roomTitleGap*2+roomRows*roomHeight+(roomRows-1)*gap; //画整个机房的背景
var roomBJY = allY + roomGap; var roomBJWidth = roomCols*roomWidth+(roomCols-1)*gap+2*roomTitleGap;
allY += roomBJHeight + roomGap; var roomBJHeight = roomTitleHeight+roomTitleGap*2+roomRows*roomHeight+(roomRows-1)*gap;
raphael.rect(roomStartX-roomTitleGap,roomBJY,roomBJWidth,roomBJHeight).attr({stroke: "#000000",'stroke-width':1,title:'${nodeGroup.groupName}', fill: "#FFFFFF"}); var roomBJY = allY + roomGap;
allY += roomBJHeight + roomGap;
//画title图片 raphael.rect(roomStartX-roomTitleGap,roomBJY,roomBJWidth,roomBJHeight).attr({stroke: "#000000",'stroke-width':1,title:'${nodeGroup.groupName}', fill: "#FFFFFF"});
var titleTtext = "i18n_snr.text.titleTtext.nodeGroup_n81i${nodegroupTable.groupName} i18n_snr.text.titleTtext.roomId_n81i${nodeRoom.roomIspn}"
raphael.rect(roomStartX-roomTitleGap,roomBJY,roomBJWidth,roomTitleHeight).attr({stroke: "#CBD1D9",'stroke-width':1,title:titleTtext, fill: "url("+titleImg+")"}); //画title图片
<c:choose> var titleTtext = "i18n_snr.text.titleTtext.nodeGroup_n81i${nodegroupTable.groupName} i18n_snr.text.titleTtext.roomId_n81i${nodeRoom.roomIspn}"
<c:when test="${session.i18n_lang == 'ru_RU'}"> raphael.rect(roomStartX-roomTitleGap,roomBJY,roomBJWidth,roomTitleHeight).attr({stroke: "#CBD1D9",'stroke-width':1,title:titleTtext, fill: "url("+titleImg+")"});
raphael.text(roomStartX+220,roomBJY+roomTitleGap,titleTtext).attr({'font-size':12,fill:"#000000"}); <c:choose>
</c:when> <c:when test="${session.i18n_lang == 'ru_RU'}">
<c:when test="${session.i18n_lang == 'zh_CN'}"> raphael.text(roomStartX+220,roomBJY+roomTitleGap,titleTtext).attr({'font-size':12,fill:"#000000"});
raphael.text(roomStartX+120,roomBJY+roomTitleGap,titleTtext).attr({'font-size':12,fill:"#000000"}); </c:when>
</c:when> <c:when test="${session.i18n_lang == 'zh_CN'}">
<c:when test="${session.i18n_lang == 'en_US'}"> raphael.text(roomStartX+120,roomBJY+roomTitleGap,titleTtext).attr({'font-size':12,fill:"#000000"});
raphael.text(roomStartX+150,roomBJY+roomTitleGap,titleTtext).attr({'font-size':12,fill:"#000000"}); </c:when>
</c:when> <c:when test="${session.i18n_lang == 'en_US'}">
</c:choose> raphael.text(roomStartX+150,roomBJY+roomTitleGap,titleTtext).attr({'font-size':12,fill:"#000000"});
//raphael.text(roomStartX+120,roomBJY+roomTitleGap,titleTtext).attr({'font-size':12,fill:"#000000"}); </c:when>
//该机房的所有机柜信息 </c:choose>
var nodeBoxs=$.parseJSON('${nodeRoom.nodeBoxInfo}'); //raphael.text(roomStartX+120,roomBJY+roomTitleGap,titleTtext).attr({'font-size':12,fill:"#000000"});
for(var row = 1;row <=roomRows; row++){ //该机房的所有机柜信息
for(var col = 1;col <=roomCols; col++){ var nodeBoxs=$.parseJSON('${nodeRoom.nodeBoxInfo}');
//机房的位置上是否存在机柜 for(var row = 1;row <=roomRows; row++){
var position = row+""+col; for(var col = 1;col <=roomCols; col++){
var roomColor = "#CCCCCC"; //机房的位置上是否存在机柜
var boxBgImg = boxImg;//机柜背景图片 var position = row+""+col;
var boxTitle = "i18n_snr.message.boxTitle1 _n81i"; var roomColor = "#CCCCCC";
if(nodeBoxs[position]!=undefined){ var boxBgImg = boxImg;//机柜背景图片
roomColor = "#A3C09F";//机柜正常常绿色 var boxTitle = "i18n_snr.message.boxTitle1 _n81i";
if(nodeBoxs[position].alarm){ if(nodeBoxs[position]!=undefined){
roomColor = "#E64F42";//机柜异常红 roomColor = "#A3C09F";//机柜正常常绿
boxBgImg = boxErrorImg;//机柜背景图片异常 if(nodeBoxs[position].alarm){
roomColor = "#E64F42";//机柜异常红色
} boxBgImg = boxErrorImg;//机柜背景图片异常
if(nodeBoxs[position].hasNode){
roomColor = "#5589D7";//机柜有该节点组下节点 }
boxTitle = "i18n_snr.message.boxTitle2_n81i"; if(nodeBoxs[position].hasNode){
if(nodeBoxs[position].alarm){ roomColor = "#5589D7";//机柜有该节点组下节点
boxTitle = "i18n_snr.message.boxTitle3_n81i"; boxTitle = "i18n_snr.message.boxTitle2_n81i";
} if(nodeBoxs[position].alarm){
} boxTitle = "i18n_snr.message.boxTitle3_n81i";
}
} }
var title=row+"i18n_snr.message.title.row_n81i"+col+"i18n_snr.message.title.column_n81i";
var roomX = roomStartX+(col-1)*(roomWidth+gap); }
//画图的Y开始点+每个机房的TitleY+每行的高 var title=row+"i18n_snr.message.title.row_n81i"+col+"i18n_snr.message.title.column_n81i";
var roomY = roomBJY+(roomTitleHeight+roomTitleGap)+(row-1)*(roomHeight+gap); var roomX = roomStartX+(col-1)*(roomWidth+gap);
raphael.rect(roomX,roomY,roomWidth,roomHeight).attr({stroke: "#000000",'stroke-width':1,title:title, fill: roomColor}); //画图的Y开始点+每个机房的TitleY+每行的高
if(nodeBoxs[position]!=undefined){ var roomY = roomBJY+(roomTitleHeight+roomTitleGap)+(row-1)*(roomHeight+gap);
//raphael.text(roomX+40,roomY+40,nodeBoxs[position].descinfo).attr({'font-size':12,fill:"#000000"}); raphael.rect(roomX,roomY,roomWidth,roomHeight).attr({stroke: "#000000",'stroke-width':1,title:title, fill: roomColor});
var param = "&groupId="+'${nodegroupTable.groupId}'+"&nodeBoxId="+nodeBoxs[position].nodeBoxId+",i18n_snr.message.room_n81i:"+'${nodeRoom.roomIspn}'+" "+title+" i18n_snr.text.nodeBox_n81i:"+nodeBoxs[position].ispn; if(nodeBoxs[position]!=undefined){
var node = raphael.image(boxBgImg,roomX-20,roomY,minboxWidth,minboxHeight).attr({title:boxTitle,text:param}); //raphael.text(roomX+40,roomY+40,nodeBoxs[position].descinfo).attr({'font-size':12,fill:"#000000"});
node.id = idnum; var param = "&groupId="+'${nodegroupTable.groupId}'+"&nodeBoxId="+nodeBoxs[position].nodeBoxId+",i18n_snr.message.room_n81i:"+'${nodeRoom.roomIspn}'+" "+title+" i18n_snr.text.nodeBox_n81i:"+nodeBoxs[position].ispn;
$("body").append("<input type='hidden' id="+idnum+" value=''>"); var node = raphael.image(boxBgImg,roomX-20,roomY,minboxWidth,minboxHeight).attr({title:boxTitle,text:param});
$("input[id="+idnum+"]").val(param); node.id = idnum;
idnum++; $("body").append("<input type='hidden' id="+idnum+" value=''>");
node.click(function(){ $("input[id="+idnum+"]").val(param);
// var param = this.attr("text"); idnum++;
var nodeid = this.id; node.click(function(){
var selector = "#"+nodeid; // var param = this.attr("text");
var param = $(selector).val(); var nodeid = this.id;
getNodeBox(param); var selector = "#"+nodeid;
}); var param = $(selector).val();
} getNodeBox(param);
//设置行列信息 });
raphael.text(roomX+50,roomY+50,title).attr({'font-size':12,fill:"#000000"}); }
} //设置行列信息
} raphael.text(roomX+50,roomY+50,title).attr({'font-size':12,fill:"#000000"});
</c:forEach> }
}
if('${groupId}' != "" &&'${nodeBoxId}'!= "" &&'${nodeBoxIspn}' != ""){ </c:forEach>
var param = "&groupId="+'${groupId}'+"&nodeBoxId="+'${nodeBoxId}'+","+'${nodeBoxIspn}';
getNodeBox(param); if('${groupId}' != "" &&'${nodeBoxId}'!= "" &&'${nodeBoxIspn}' != ""){
} var param = "&groupId="+'${groupId}'+"&nodeBoxId="+'${nodeBoxId}'+","+'${nodeBoxIspn}';
}) getNodeBox(param);
}
function getNodeBox(param){ })
var params=param.split(",");
$.ajax({ function getNodeBox(param){
type:"post", var params=param.split(",");
dataType:'json', $.ajax({
url:"<c:url value='/nodePosition/topoShow.do?action=getNodeBox'/>", type:"post",
data:params[0], dataType:'json',
async:true, url:"<c:url value='/nodePosition/topoShow.do?action=getNodeBox'/>",
success:function (data,textStatus){ data:params[0],
if(textStatus == "success" && (data!= null && data!= "" )){ async:true,
$("#nodeBoxs").html(""); success:function (data,textStatus){
var t =$("#nodeBox").dialog("options").title; if(textStatus == "success" && (data!= null && data!= "" )){
$("#nodeBox").dialog("setTitle", params[1]); $("#nodeBoxs").html("");
$("#nodeBox").dialog("open"); // var t =$("#nodeBox").dialog("options").title;
var length = $(data).length; /* $("#nodeBox").dialog("setTitle", params[1]);
var raphaelBox = Raphael("nodeBoxs",boxWidth,boxHeight); $("#nodeBox").dialog("open"); */
//raphaelBox.rect(0,0,boxWidth,boxHeight).attr({'stroke-width':1,stroke: "#FFFFFF", fill: "#FBFBEA"}); window.top.layer.open({
//边框设置 title:params[1],
var subBoxStartX=20; type:1,
var subBoxStartY=10; content:$("#nodeBox"),
var footHeight = 30; shade:0.3
var subBoxGap = 3; });
raphaelBox.image(boxTopImg,0,0,204,subBoxStartY);
raphaelBox.image(boxLeftImg,0,subBoxStartY,subBoxStartX,boxHeight); var length = $(data).length;
raphaelBox.image(boxRightImg,boxWidth-20,subBoxStartY,subBoxStartX,boxHeight); var raphaelBox = Raphael("nodeBoxs",boxWidth,boxHeight);
raphaelBox.image(boxFootImg,0,boxHeight-footHeight,204,footHeight); //raphaelBox.rect(0,0,boxWidth,boxHeight).attr({'stroke-width':1,stroke: "#FFFFFF", fill: "#FBFBEA"});
//每个子U为的大小设置 //边框设置
var subHeight = (boxHeight-subBoxStartY-footHeight)/length-subBoxGap; var subBoxStartX=20;
var subWidth = boxWidth - 2*subBoxStartX; var subBoxStartY=10;
var index=-1;//控制占多个U位的处理 var footHeight = 30;
var nodeIndex=0;//在机柜展示中显示节点机所在的序号 var subBoxGap = 3;
$(data).each(function(i,item){ raphaelBox.image(boxTopImg,0,0,204,subBoxStartY);
if(index >= i){ raphaelBox.image(boxLeftImg,0,subBoxStartY,subBoxStartX,boxHeight);
return true; raphaelBox.image(boxRightImg,boxWidth-20,subBoxStartY,subBoxStartX,boxHeight);
} raphaelBox.image(boxFootImg,0,boxHeight-footHeight,204,footHeight);
//item.nodeposition //每个子U为的大小设置
var subBoxY = subBoxStartY+i*(subHeight+subBoxGap); var subHeight = (boxHeight-subBoxStartY-footHeight)/length-subBoxGap;
var newHeight = subHeight; var subWidth = boxWidth - 2*subBoxStartX;
if(item.nodeSeqId != "0" && item.nodeTable != null){ var index=-1;//控制占多个U位的处理
var nodeIndex=0;//在机柜展示中显示节点机所在的序号
var title="";//设置节点的提升信息 $(data).each(function(i,item){
var param="";//设置单击事件的传参 if(index >= i){
if(item.nodeTable != null){ return true;
title = "i18n_snr.message.nodeTableTitle.nodeIp_n81i"+item.nodeTable.nodeIp+"\ni18n_snr.message.nodeTableTitle.nodeName_n81i"+item.nodeTable.nodeName }
+"\ni18n_snr.message.nodeTableTitle.nodeU_n81i"+item.nodeTable.nodeUType+"\ni18n_snr.message.nodeTableTitle.startU_n81i"+item.nodeTable.nodeBeginUType; //item.nodeposition
param = "&seqList="+item.nodeTable.seqId; var subBoxY = subBoxStartY+i*(subHeight+subBoxGap);
var newHeight = subHeight;
//占多个U位的处理 if(item.nodeSeqId != "0" && item.nodeTable != null){
var UNum = Number(item.nodeTable.nodeUType);
if( UNum>1){ var title="";//设置节点的提升信息
newHeight = UNum*subHeight+(UNum-1)*subBoxGap; var param="";//设置单击事件的传参
index = i+UNum-1; if(item.nodeTable != null){
} title = "i18n_snr.message.nodeTableTitle.nodeIp_n81i"+item.nodeTable.nodeIp+"\ni18n_snr.message.nodeTableTitle.nodeName_n81i"+item.nodeTable.nodeName
} +"\ni18n_snr.message.nodeTableTitle.nodeU_n81i"+item.nodeTable.nodeUType+"\ni18n_snr.message.nodeTableTitle.startU_n81i"+item.nodeTable.nodeBeginUType;
//alert(item.nodeTable.nodeName+"------"+item.groupNode+"---"+item.nodeTable.alarm); param = "&seqList="+item.nodeTable.seqId;
var subColor="#80B167";//绿色
//是本节点组的显示红色or绿色 非本节点组显示灰色 //占多个U位的处理
if(item.groupNode){ var UNum = Number(item.nodeTable.nodeUType);
if(item.nodeTable.alarm){//节点如果异常则显示红色 if( UNum>1){
subColor="#FF0000"; newHeight = UNum*subHeight+(UNum-1)*subBoxGap;
} index = i+UNum-1;
}else{ }
subColor="#939393";//灰色 }
} //alert(item.nodeTable.nodeName+"------"+item.groupNode+"---"+item.nodeTable.alarm);
var subColor="#80B167";//绿色
//只有告警节点才可以单击显示告警信息 //是本节点组的显示红色or绿色 非本节点组显示灰色
if(item.groupNode &&item.nodeTable.alarm){ if(item.groupNode){
//节点如果异常则显示红色 if(item.nodeTable.alarm){//节点如果异常则显示红色
var node = raphaelBox.rect(subBoxStartX,subBoxY,subWidth,newHeight).attr({stroke: "#CEDBEF",'stroke-width':0.1,title:title,text:param, fill: subColor}); subColor="#FF0000";
node.id = "u"+i; }
$("#nodeBoxs").append("<input type='hidden' id="+node.id+" value=''>"); }else{
$("input[id="+node.id+"]").val(param); subColor="#939393";//灰色
node.click(function(){ }
// var param = this.attr("text");
var selector= "#"+this.id; //只有告警节点才可以单击显示告警信息
var param = $(selector).val(); if(item.groupNode &&item.nodeTable.alarm){
var nodeip = item.nodeTable.nodeIp; //节点如果异常则显示红色
var nodeType = item.nodeTable.nodeType; var node = raphaelBox.rect(subBoxStartX,subBoxY,subWidth,newHeight).attr({stroke: "#CEDBEF",'stroke-width':0.1,title:title,text:param, fill: subColor});
getAlarmInfo(param,nodeip,nodeType); node.id = "u"+i;
}).mouseover(function(){ $("#nodeBoxs").append("<input type='hidden' id="+node.id+" value=''>");
this.animate({"stroke-width":2},100); $("input[id="+node.id+"]").val(param);
}).mouseout(function(){ node.click(function(){
this.animate({"stroke-width":0.1},100); // var param = this.attr("text");
}); var selector= "#"+this.id;
}else{ var param = $(selector).val();
raphaelBox.rect(subBoxStartX,subBoxY,subWidth,newHeight).attr({stroke: "#CEDBEF",'stroke-width':0.1,title:title,text:param, fill: subColor}) var nodeip = item.nodeTable.nodeIp;
.mouseover(function(){ var nodeType = item.nodeTable.nodeType;
this.animate({"stroke-width":2},100); getAlarmInfo(param,nodeip,nodeType);
}).mouseout(function(){ }).mouseover(function(){
this.animate({"stroke-width":0.1},100); this.animate({"stroke-width":2},100);
}); }).mouseout(function(){
} this.animate({"stroke-width":0.1},100);
});
//写节点机在机柜中的序号,放入数组中 }else{
if(item.groupNode){ raphaelBox.rect(subBoxStartX,subBoxY,subWidth,newHeight).attr({stroke: "#CEDBEF",'stroke-width':0.1,title:title,text:param, fill: subColor})
nodeIndex++; .mouseover(function(){
nodeIndexs[nodeIndex]={"x":subBoxStartX-5,"y":subBoxY+5}; this.animate({"stroke-width":2},100);
} }).mouseout(function(){
}else{ this.animate({"stroke-width":0.1},100);
var title="i18n_snr.message.UBit_n81i"+item.nodeposition; });
raphaelBox.rect(subBoxStartX,subBoxY,subWidth,newHeight).attr({stroke: "#CEDBEF",'stroke-width':0.1,title:title, fill: "#ffffff"}) }
.mouseover(function(){
this.animate({"stroke-width":2},100); //写节点机在机柜中的序号,放入数组中
}).mouseout(function(){ if(item.groupNode){
this.animate({"stroke-width":0.1},100); nodeIndex++;
}); nodeIndexs[nodeIndex]={"x":subBoxStartX-5,"y":subBoxY+5};
} }
}); console.log("rephaelBox:"+raphaelBox);
}else{
//写节点机在机柜中的序号 var title="i18n_snr.message.UBit_n81i"+item.nodeposition;
var nodeShowInd = 0; raphaelBox.rect(subBoxStartX,subBoxY,subWidth,newHeight).attr({stroke: "#CEDBEF",'stroke-width':0.1,title:title, fill: "#ffffff"})
for(var i = 1;i<=nodeIndex;i++){ .mouseover(function(){
if(nodeIndexs[i] != null &&nodeIndexs[i] != ""){ this.animate({"stroke-width":2},100);
nodeShowInd++; }).mouseout(function(){
raphaelBox.text(nodeIndexs[i].x,nodeIndexs[i].y,nodeShowInd).attr({'font-size':12,fill:"#000000"}); this.animate({"stroke-width":0.1},100);
} });
} }
} });
}
}) //写节点机在机柜中的序号
} var nodeShowInd = 0;
for(var i = 1;i<=nodeIndex;i++){
if(nodeIndexs[i] != null &&nodeIndexs[i] != ""){
function getAlarmInfo(param,nodeip,nodeType){ nodeShowInd++;
if(nodeType== 0){ raphaelBox.text(nodeIndexs[i].x,nodeIndexs[i].y,nodeShowInd).attr({'font-size':12,fill:"#000000"});
var url ="<c:url value='/detection/detectionWarning.do?action=query&ip="+nodeip+"&levelAlarm=1"+param+"+&type=3Droom'/>"; }
}else if(nodeType == 1){ }
var url ="<c:url value='/detection/detectionWarning.do?action=queryNE&ip="+nodeip+"&levelAlarm=1"+param+"+&type=3Droom'/>"; }
} }
$("#I3").html(""); })
$("#I3").attr("src",url); }
$("#alarmInfo").dialog("open");
}
</script> function getAlarmInfo(param,nodeip,nodeType){
if(nodeType== 0){
</head> var url ="<c:url value='/detection/detectionWarning.do?action=query&ip="+nodeip+"&levelAlarm=1"+param+"+&type=3Droom'/>";
}else if(nodeType == 1){
<body> var url ="<c:url value='/detection/detectionWarning.do?action=queryNE&ip="+nodeip+"&levelAlarm=1"+param+"+&type=3Droom'/>";
<div }
style="width: 100%; height: 100%; overflow-x: auto; overflow-y: auto;" $("#I3").html("");
id="canvas"></div> $("#I3").attr("src",url);
<div id="nodeBox" closed="true"> $("#alarmInfo").dialog("open");
<div id="nodeBoxs"></div> }
</div> </script>
<div id="alarmInfo" closed="true">
<iframe id="I3" name="I3" height="100%" width="100%" border="0" </head>
style="background: #FFFFFF;" frameborder="0" src="" scrolling="auto">
i18n_snr.message.frame_n81i <body>
</iframe> <div
</div> style="width: 100%; height: 100%; overflow-x: auto; overflow-y: auto;"
</body> id="canvas"></div>
</html> <div id="nodeBox" closed="true">
<div id="nodeBoxs"></div>
</div>
<div id="alarmInfo" closed="true">
<iframe id="I3" name="I3" height="100%" width="100%" border="0"
style="background: #FFFFFF;" frameborder="0" src="" scrolling="auto">
i18n_snr.message.frame_n81i
</iframe>
</div>
</body>
</html>

View File

@@ -1,384 +1,384 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="/jstl/c"%> <%@ taglib prefix="c" uri="/jstl/c"%>
<%@ taglib prefix="fn" uri="/jstl/fn"%> <%@ taglib prefix="fn" uri="/jstl/fn"%>
<%@ taglib prefix="fmt" uri="/jstl/fmt"%> <%@ taglib prefix="fmt" uri="/jstl/fmt"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%> %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html> <html>
<head> <head>
<base href="<%=basePath%>"> <base href="<%=basePath%>">
<title>i18n_st.message.title_n81i</title> <title>i18n_st.message.title_n81i</title>
<script type="text/javascript" src="<%=path%>/js/jquery-1.4.2.min.js"></script> <script type="text/javascript" src="<%=path%>/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="<%=path%>/js/jquery.processing.plugin.js"></script> <script type="text/javascript" src="<%=path%>/js/jquery.processing.plugin.js"></script>
<script type="text/javascript" src="<%=path%>/js/ui/jquery-ui.min.js"></script> <script type="text/javascript" src="<%=path%>/js/ui/jquery-ui.min.js"></script>
<script src="<%=path %>/js/jquery.topology-2.0.js"></script> <script src="<%=path %>/js/jquery.topology-2.0.js"></script>
<script src="<%=path %>/js/jquery.contextmenu.r2.js"></script> <script src="<%=path %>/js/jquery.contextmenu.r2.js"></script>
<link href="<%=path%>/css/themes/base/jquery.ui.all.css" rel="stylesheet" type="text/css"/> <link href="<%=path%>/css/themes/base/jquery.ui.all.css" rel="stylesheet" type="text/css"/>
<link href="<%=path%>/css/show/topology.css" rel="stylesheet" type="text/css"/> <link href="<%=path%>/css/show/topology.css" rel="stylesheet" type="text/css"/>
<style type="text/css"> <style type="text/css">
#demo-ul * { padding:0; margin:0; list-style:none; font-size: 12px;} #demo-ul * { padding:0; margin:0; list-style:none; font-size: 12px;}
</style> </style>
<script type="text/javascript"> <script type="text/javascript">
$("#iconBox").hide(); $("#iconBox").hide();
jQuery(function(){ jQuery(function(){
$(document).progressDialog.showDialog("i18n_st.message.loading_n81i"); $(document).progressDialog.showDialog("i18n_st.message.loading_n81i");
}); });
function qry(para1) function qry(para1)
{ {
$('.td').find("span").remove(); $('.td').find("span").remove();
$("#iconBox").hide(); $("#iconBox").hide();
jQuery.post("<%=path %>/nodePosition/nodePosition.do?action=getWarNodeFromBox&boxId="+para1+"&ngId="+$('#gid').val(), jQuery.post("<%=path %>/nodePosition/nodePosition.do?action=getWarNodeFromBox&boxId="+para1+"&ngId="+$('#gid').val(),
{},function(data) {},function(data)
{ {
if(data.nodeInBoxList.length>0){ if(data.nodeInBoxList.length>0){
$("#iconBox").show(function(){ $("#iconBox").show(function(){
$("#iconBox").css('top','0px'); $("#iconBox").css('top','0px');
}); });
var nodes = data.nodeInBoxList; var nodes = data.nodeInBoxList;
$.each(nodes, function(i, node) { $.each(nodes, function(i, node) {
var node_Id = node.tableName+'_'+node.nodeType+'_'+node.nodeId; var node_Id = node.tableName+'_'+node.nodeType+'_'+node.nodeId;
var $icon = $("<span divType='node' class='icon-span'></span>"); var $icon = $("<span divType='node' class='icon-span'></span>");
$icon.attr('id',node_Id).attr('title',node.nodeIp+"_"+node.nodeName+"_"+node.nodeUType+"U"); $icon.attr('id',node_Id).attr('title',node.nodeIp+"_"+node.nodeName+"_"+node.nodeUType+"U");
if(node.seqId){ if(node.seqId){
$icon.attr('class','icon-span-red'); $icon.attr('class','icon-span-red');
}else{ }else{
$icon.attr('class','icon-span'); $icon.attr('class','icon-span');
} }
$icon.bind({ $icon.bind({
'mouseenter' : function() {//单引 'mouseenter' : function() {//单引
//$icon.addClass("hover"); //$icon.addClass("hover");
$("#spanIp2").text(node.nodeIp); $("#spanIp2").text(node.nodeIp);
$("#spanName2").text(node.nodeName); $("#spanName2").text(node.nodeName);
$("#spanUType2").text(node.nodeUType+"U"); $("#spanUType2").text(node.nodeUType+"U");
var iconBoxPosition = { var iconBoxPosition = {
top: $("#iconBox").css('top').replace("px","")*1, top: $("#iconBox").css('top').replace("px","")*1,
left: $("#iconBox").css('left').replace("px","")*1, left: $("#iconBox").css('left').replace("px","")*1,
width: $("#iconBox").css('width').replace("px","")*1, width: $("#iconBox").css('width').replace("px","")*1,
height: $("#iconBox").css('height').replace("px","")*1 height: $("#iconBox").css('height').replace("px","")*1
} }
var cPointY=0; var cPointY=0;
var cPointX=0; var cPointX=0;
var sumWidth = $("#board").css('width').replace("px","")*1; var sumWidth = $("#board").css('width').replace("px","")*1;
var sumheight = $("#board").css('height').replace("px","")*1; var sumheight = $("#board").css('height').replace("px","")*1;
var iconBoxLeft = parseInt(iconBoxPosition.left); var iconBoxLeft = parseInt(iconBoxPosition.left);
if(sumWidth-iconBoxLeft < parseInt(iconBoxPosition.width+200)){ if(sumWidth-iconBoxLeft < parseInt(iconBoxPosition.width+200)){
cPointY = parseInt(iconBoxPosition.left - iconBoxPosition.width); cPointY = parseInt(iconBoxPosition.left - iconBoxPosition.width);
}else{ }else{
cPointY = parseInt(iconBoxPosition.left + iconBoxPosition.width+10); cPointY = parseInt(iconBoxPosition.left + iconBoxPosition.width+10);
} }
cPointX = parseInt(iconBoxPosition.top + parseInt(node.latticePosition)*11+30); cPointX = parseInt(iconBoxPosition.top + parseInt(node.latticePosition)*11+30);
if(cPointX+100>sumheight){ if(cPointX+100>sumheight){
cPointX = sumheight-110; cPointX = sumheight-110;
} }
$("#span_info2") $("#span_info2")
.css('top',cPointX+'px') .css('top',cPointX+'px')
.css('left',cPointY+'px') .css('left',cPointY+'px')
.show(); .show();
}, },
'mouseleave' : function() { 'mouseleave' : function() {
$("#span_info2").hide(); $("#span_info2").hide();
$("#spanIp2").empty(); $("#spanIp2").empty();
$("#spanName2").empty(); $("#spanName2").empty();
$("#spanUType2").empty(); $("#spanUType2").empty();
} }
}); });
//添加到机柜显示 //添加到机柜显示
$("#spanTable").find('#'+node.latticePosition).append($icon); $("#spanTable").find('#'+node.latticePosition).append($icon);
//删除占位置的格子 //删除占位置的格子
if(node.nodeUType>1){ if(node.nodeUType>1){
var u = node.nodeUType; //U位 var u = node.nodeUType; //U位
var position = node.latticePosition; //位置 var position = node.latticePosition; //位置
var j; var j;
for(j=1;j<u;j++){ for(j=1;j<u;j++){
var thisTd = parseInt(position) + j; var thisTd = parseInt(position) + j;
$("#spanTable").find('#'+thisTd).parent().hide();//删除占位置的tr $("#spanTable").find('#'+thisTd).parent().hide();//删除占位置的tr
} }
} }
}); });
}else{ }else{
alert("i18n_st.message.spanTable_n81i"); alert("i18n_st.message.spanTable_n81i");
} }
}); });
} }
</script> </script>
</head> </head>
<body oncontextmenu="event.returnValue=false"> <body oncontextmenu="event.returnValue=false">
<div id="border_Div"> <div id="border_Div">
<div id="board" class="board" > <div id="board" class="board" >
<!--告警view--> <!--告警view-->
<div id="warningInfo" class="warningBgc"> <div id="warningInfo" class="warningBgc">
<div id="iconBoxHeader" class="window-headerForShow"> <div id="iconBoxHeader" class="window-headerForShow">
<table border="0" width="100%" align="center"> <table border="0" width="100%" align="center">
<tr> <tr>
<td align="left" width="100%"> <td align="left" width="100%">
<span id="Title" style="cursor: hand;font-size:10px;color:#FFFFFF;"></span> <span id="Title" style="cursor: hand;font-size:10px;color:#FFFFFF;"></span>
</td> </td>
<!-- <!--
<td align="right" width="10%"> <td align="right" width="10%">
<img src="<c:url value='/images/logo_2.png'/>" onclick="clo();" style="cursor: hand; background-color:#FFFFFF;"> <img src="<c:url value='/images/logo_2.png'/>" onclick="clo();" style="cursor: hand; background-color:#FFFFFF;">
</td> </td>
--> -->
</tr> </tr>
</table> </table>
</div> </div>
<div id="warningContent" class="iconBoxContent" style="width: 200px;height: 80px" align="left"> <div id="warningContent" class="iconBoxContent" style="width: 200px;height: 80px" align="left">
<ul id="demo-ul"> <ul id="demo-ul">
<li id="nodeSumNum"></li> <li id="nodeSumNum"></li>
<li id="trueNum"></li> <li id="trueNum"></li>
<li id="falseNum" style="color:#FF0000"></li> <li id="falseNum" style="color:#FF0000"></li>
</ul> </ul>
<!-- <!--
<span id="nodeSumNum"></span> <span id="nodeSumNum"></span>
<span id="trueNum"></span> <span id="trueNum"></span>
<span id="falseNum" style="color:#FF0000"></span> <span id="falseNum" style="color:#FF0000"></span>
--> -->
</div> </div>
</div> </div>
<!--打开后node列表--> <!--打开后node列表-->
<div id="iconBox" class="iconBoxBgc"> <div id="iconBox" class="iconBoxBgc">
<div id="iconBoxHeader" class="window-header"> <div id="iconBoxHeader" class="window-header">
<table border="0" width="100%" align="center"> <table border="0" width="100%" align="center">
<tr> <tr>
<td align="left" width="90%"> <td align="left" width="90%">
<span id="boxTitle" style="cursor: hand;font-size:10px;color:#000000;"></span> <span id="boxTitle" style="cursor: hand;font-size:10px;color:#000000;"></span>
</td> </td>
<td align="right" width="10%"> <td align="right" width="10%">
<img src="<c:url value='/images/logo_2.png'/>" onclick="$('#iconBox').hide();$('.td').find('span').remove();" style="cursor: hand; background-color:#FFFFFF;"> <img src="<c:url value='/images/logo_2.png'/>" onclick="$('#iconBox').hide();$('.td').find('span').remove();" style="cursor: hand; background-color:#FFFFFF;">
</td> </td>
</tr> </tr>
</table> </table>
<!-- <span type='close' class='ui-icon ui-icon-close' style="cursor: hand;background-color:#FFFFFF;" onclick="$('#iconBox').hide();$('.td').find('span').remove();"></span>--> <!-- <span type='close' class='ui-icon ui-icon-close' style="cursor: hand;background-color:#FFFFFF;" onclick="$('#iconBox').hide();$('.td').find('span').remove();"></span>-->
</div> </div>
<div id="iconNodeContent" class="iconBoxContent"> <div id="iconNodeContent" class="iconBoxContent">
<table id="spanTable1" class = "tableBox1" border="0" cellpadding="0" cellspacing="0" height="500"> <table id="spanTable1" class = "tableBox1" border="0" cellpadding="0" cellspacing="0" height="500">
<tr height="8"> <tr height="8">
<td <td
style="height: 8px; background-image:url(<%=path%>/images/show/top_1.jpg)"> style="height: 8px; background-image:url(<%=path%>/images/show/top_1.jpg)">
</td> </td>
<td <td
style="height: 8px; background-image:url(<%=path%>/images/show/top_2.jpg)"> style="height: 8px; background-image:url(<%=path%>/images/show/top_2.jpg)">
</td> </td>
<td <td
style="height: 8px; background-image:url(<%=path%>/images/show/top_3.jpg)"> style="height: 8px; background-image:url(<%=path%>/images/show/top_3.jpg)">
</td> </td>
</tr> </tr>
<tr class="tr"> <tr class="tr">
<td style=" background-image:url(<%=path%>/images/show/left.jpg)"> <td style=" background-image:url(<%=path%>/images/show/left.jpg)">
&nbsp; &nbsp;
</td> </td>
<td id="1" width="200"> <td id="1" width="200">
<table id="spanTable" class="tableBox"> <table id="spanTable" class="tableBox">
<tr><td id="1" class="td">1</td></tr> <tr><td id="1" class="td">1</td></tr>
<tr><td id="2" class="td">2</td></tr> <tr><td id="2" class="td">2</td></tr>
<tr><td id="3" class="td">3</td></tr> <tr><td id="3" class="td">3</td></tr>
<tr><td id="4" class="td">4</td></tr> <tr><td id="4" class="td">4</td></tr>
<tr><td id="5" class="td">5</td></tr> <tr><td id="5" class="td">5</td></tr>
<tr><td id="6" class="td">6</td></tr> <tr><td id="6" class="td">6</td></tr>
<tr><td id="7" class="td">7</td></tr> <tr><td id="7" class="td">7</td></tr>
<tr><td id="8" class="td">8</td></tr> <tr><td id="8" class="td">8</td></tr>
<tr><td id="9" class="td">9</td></tr> <tr><td id="9" class="td">9</td></tr>
<tr><td id="10" class="td">10</td></tr> <tr><td id="10" class="td">10</td></tr>
<tr><td id="11" class="td">11</td></tr> <tr><td id="11" class="td">11</td></tr>
<tr><td id="12" class="td">12</td></tr> <tr><td id="12" class="td">12</td></tr>
<tr><td id="13" class="td">13</td></tr> <tr><td id="13" class="td">13</td></tr>
<tr><td id="14" class="td">14</td></tr> <tr><td id="14" class="td">14</td></tr>
<tr><td id="15" class="td">15</td></tr> <tr><td id="15" class="td">15</td></tr>
<tr><td id="16" class="td">16</td></tr> <tr><td id="16" class="td">16</td></tr>
<tr><td id="17" class="td">17</td></tr> <tr><td id="17" class="td">17</td></tr>
<tr><td id="18" class="td">18</td></tr> <tr><td id="18" class="td">18</td></tr>
<tr><td id="19" class="td">19</td></tr> <tr><td id="19" class="td">19</td></tr>
<tr><td id="20" class="td">20</td></tr> <tr><td id="20" class="td">20</td></tr>
<tr><td id="21" class="td">21</td></tr> <tr><td id="21" class="td">21</td></tr>
<tr><td id="22" class="td">22</td></tr> <tr><td id="22" class="td">22</td></tr>
<tr><td id="23" class="td">23</td></tr> <tr><td id="23" class="td">23</td></tr>
<tr><td id="24" class="td">24</td></tr> <tr><td id="24" class="td">24</td></tr>
<tr><td id="25" class="td">25</td></tr> <tr><td id="25" class="td">25</td></tr>
<tr><td id="26" class="td">26</td></tr> <tr><td id="26" class="td">26</td></tr>
<tr><td id="27" class="td">27</td></tr> <tr><td id="27" class="td">27</td></tr>
<tr><td id="28" class="td">28</td></tr> <tr><td id="28" class="td">28</td></tr>
<tr><td id="29" class="td">29</td></tr> <tr><td id="29" class="td">29</td></tr>
<tr><td id="30" class="td">30</td></tr> <tr><td id="30" class="td">30</td></tr>
<tr><td id="31" class="td">31</td></tr> <tr><td id="31" class="td">31</td></tr>
<tr><td id="32" class="td">32</td></tr> <tr><td id="32" class="td">32</td></tr>
<tr><td id="33" class="td">33</td></tr> <tr><td id="33" class="td">33</td></tr>
<tr><td id="34" class="td">34</td></tr> <tr><td id="34" class="td">34</td></tr>
<tr><td id="35" class="td">35</td></tr> <tr><td id="35" class="td">35</td></tr>
<tr><td id="36" class="td">36</td></tr> <tr><td id="36" class="td">36</td></tr>
<tr><td id="37" class="td">37</td></tr> <tr><td id="37" class="td">37</td></tr>
<tr><td id="38" class="td">38</td></tr> <tr><td id="38" class="td">38</td></tr>
<tr><td id="39" class="td">39</td></tr> <tr><td id="39" class="td">39</td></tr>
<tr><td id="40" class="td">40</td></tr> <tr><td id="40" class="td">40</td></tr>
<tr><td id="41" class="td">41</td></tr> <tr><td id="41" class="td">41</td></tr>
<tr><td id="42" class="td">42</td></tr> <tr><td id="42" class="td">42</td></tr>
</table> </table>
</td> </td>
<td style=" background-image:url(<%=path%>/images/show/right.jpg)"> <td style=" background-image:url(<%=path%>/images/show/right.jpg)">
&nbsp; &nbsp;
</td> </td>
</tr> </tr>
<tr> <tr>
<td style=" background-image:url(<%=path%>/images/show/foot_1.jpg)"> <td style=" background-image:url(<%=path%>/images/show/foot_1.jpg)">
&nbsp; &nbsp;
</td> </td>
<td style=" background-image:url(<%=path%>/images/show/foot_2.jpg)"> <td style=" background-image:url(<%=path%>/images/show/foot_2.jpg)">
&nbsp; &nbsp;
</td> </td>
<td style=" background-image:url(<%=path%>/images/show/foot_3.jpg)"> <td style=" background-image:url(<%=path%>/images/show/foot_3.jpg)">
&nbsp; &nbsp;
</td> </td>
</tr> </tr>
</table> </table>
</div> </div>
</div> </div>
<!--右侧机柜列表 <!--右侧机柜列表
<div style="position: absolute; height: 100%; right: 0;"> <div style="position: absolute; height: 100%; right: 0;">
<div id="rightMenuFlag" <div id="rightMenuFlag"
style="float: left;width: 20px;text-align: center;"> style="float: left;width: 20px;text-align: center;">
<img src="<%=path%>/images/show/anniu_3.png" border="0" /> <img src="<%=path%>/images/show/anniu_3.png" border="0" />
</div> </div>
<ul id="rightBoxContent" <ul id="rightBoxContent"
style="width: 150px; height: 50%;list-style-type: none;margin:0px;display: none;" style="width: 150px; height: 50%;list-style-type: none;margin:0px;display: none;"
class="menucenter"> class="menucenter">
</ul> </ul>
</div> </div>
--> -->
<div id="span_info2" class="spanInfo"> <div id="span_info2" class="spanInfo">
<table id="span_info" > <table id="span_info" >
<tr><td>IP</td><td id="spanIp2"></td></tr> <tr><td>IP</td><td id="spanIp2"></td></tr>
<tr><td>i18n_st.text.spanName2_n81i</td><td id="spanName2"></td></tr> <tr><td>i18n_st.text.spanName2_n81i</td><td id="spanName2"></td></tr>
<tr><td>i18n_st.text.spanUType2_n81i</td><td id="spanUType2"></td></tr> <tr><td>i18n_st.text.spanUType2_n81i</td><td id="spanUType2"></td></tr>
</table> </table>
</div> </div>
</div> </div>
<input type="hidden" id="gid" value=""/> <input type="hidden" id="gid" value=""/>
</div> </div>
<script > <script >
jQuery(function(){ jQuery(function(){
$("#warningInfo").hide(); $("#warningInfo").hide();
$("#iconBox").hide(); $("#iconBox").hide();
$("#span_info2").hide(); $("#span_info2").hide();
//节点UI的拖动 //节点UI的拖动
$("#warningInfo").draggable( { $("#warningInfo").draggable( {
cursorAt : {cursor :"move"}, cursorAt : {cursor :"move"},
revert:false, revert:false,
handle:'#iconBoxHeader', handle:'#iconBoxHeader',
containment:$("#board") containment:$("#board")
}); });
$("#iconBox").draggable( { $("#iconBox").draggable( {
cursorAt : {cursor :"move"}, cursorAt : {cursor :"move"},
revert:false, revert:false,
handle:'#iconBoxHeader', handle:'#iconBoxHeader',
containment:$("#board") containment:$("#board")
}); });
//发送请求,载入节点及关联关系 //发送请求,载入节点及关联关系
$('#board').showTopology("<%=path %>/nodePosition/nodePosition.do?action=getIconModules"); $('#board').showTopology("<%=path %>/nodePosition/nodePosition.do?action=getIconModules");
//绑定右键菜单将点击右键时的event srcElement事件放入data缓存 //绑定右键菜单将点击右键时的event srcElement事件放入data缓存
$('#board').bind('contextmenu', function(e) { $('#board').bind('contextmenu', function(e) {
var $a_obj = $(event.srcElement); var $a_obj = $(event.srcElement);
if($a_obj[0].tagName != 'A'){ if($a_obj[0].tagName != 'A'){
$a_obj = $a_obj.parent(); $a_obj = $a_obj.parent();
} }
$('#board').data('active_obj',$a_obj); $('#board').data('active_obj',$a_obj);
}); });
//右边菜单 UL //右边菜单 UL
var $content=$("#rightBoxContent"); var $content=$("#rightBoxContent");
var initWidth=$content.width(); var initWidth=$content.width();
//菜单触发事件(隐藏、显示右边菜单) //菜单触发事件(隐藏、显示右边菜单)
$("#rightMenuFlag").click(function(){ $("#rightMenuFlag").click(function(){
$content.stop(true,true); $content.stop(true,true);
if(!$content.is(":hidden")){ if(!$content.is(":hidden")){
$content.children().hide(); $content.children().hide();
$content.animate({width:0},function(){$(this).hide()}); $content.animate({width:0},function(){$(this).hide()});
}else{ }else{
$content.show().animate({width:initWidth},function(){ $content.show().animate({width:initWidth},function(){
$(this).children().fadeIn(300); $(this).children().fadeIn(300);
}) })
} }
}); });
//新右键菜单 //新右键菜单
$(document.body).contextMenu('menu1',{ $(document.body).contextMenu('menu1',{
onShowMenu: function(e,menu){ onShowMenu: function(e,menu){
//获取触发点的图标对象 //获取触发点的图标对象
var $a_obj = $(e.srcElement).closest('A'); var $a_obj = $(e.srcElement).closest('A');
if($a_obj.size()>0){ //存在保存 if($a_obj.size()>0){ //存在保存
$('#board').data('active_obj',$a_obj); $('#board').data('active_obj',$a_obj);
} }
//事件对象判断 //事件对象判断
var $Obj = $(e.srcElement); var $Obj = $(e.srcElement);
if($a_obj.size()>0 ){//当前对象是图标 if($a_obj.size()>0 ){//当前对象是图标
var data = $a_obj.data('data'); var data = $a_obj.data('data');
$("li[ltype='node'][lvalue='1']",menu).hide(); $("li[ltype='node'][lvalue='1']",menu).hide();
$("li[id='getChildNg'][ltype='nodeGroup']",menu).hide(); $("li[id='getChildNg'][ltype='nodeGroup']",menu).hide();
if(data.viewType == '1'){//节点组 if(data.viewType == '1'){//节点组
if(data.childNum >0){ if(data.childNum >0){
$("li[id='getChildNg'][ltype='nodeGroup']",menu).show(); $("li[id='getChildNg'][ltype='nodeGroup']",menu).show();
}else{ }else{
$("li[ltype='node'][lvalue='1']",menu).show(); $("li[ltype='node'][lvalue='1']",menu).show();
} }
}else{ }else{
$("ul[id=list1]",menu).hide(); $("ul[id=list1]",menu).hide();
} }
}else if($Obj[0].tagName == 'DIV' && $Obj.attr('divType') == 'line'){//线 }else if($Obj[0].tagName == 'DIV' && $Obj.attr('divType') == 'line'){//线
$("ul[id=list1]",menu).hide(); $("ul[id=list1]",menu).hide();
}else{//桌面 }else{//桌面
$("ul[id=list1]",menu).hide(); $("ul[id=list1]",menu).hide();
} }
return menu; return menu;
}, },
bindings : { bindings : {
getBox : function(){ //查看机柜 getBox : function(){ //查看机柜
$("#rightBoxContent").empty(); $("#rightBoxContent").empty();
var icon = $('#board').data('active_obj'); var icon = $('#board').data('active_obj');
var data=icon.data("data"); var data=icon.data("data");
$("#gid").val(data.nodeId); $("#gid").val(data.nodeId);
//var url = "<%=path %>/nodePosition/nodePosition.do?action=getBoxByGroup&npGId="+data.id+"&groupId="+data.nodeId; //var url = "<%=path %>/nodePosition/nodePosition.do?action=getBoxByGroup&npGId="+data.id+"&groupId="+data.nodeId;
//getBoxByGroup(data,url); //getBoxByGroup(data,url);
//$("#rightMenuFlag").trigger('click'); //$("#rightMenuFlag").trigger('click');
var url = "<%=path %>/nodePosition/nodePosition.do?action=editMap&from=show&gid="+data.nodeId+"&npGroupId="+data.id; var url = "<%=path %>/nodePosition/nodePosition.do?action=editMap&from=show&gid="+data.nodeId+"&npGroupId="+data.id;
url = encodeURI(url); url = encodeURI(url);
window.location.href=url; window.location.href=url;
}, },
getChildNg : function(){ getChildNg : function(){
var icon = $('#board').data('active_obj'); var icon = $('#board').data('active_obj');
var data=icon.data("data"); var data=icon.data("data");
//alert(data.nodeId); //alert(data.nodeId);
//$("#gid").value=data.nodeId; //$("#gid").value=data.nodeId;
var url = "<%=path %>/nodePosition/nodePosition.do?action=getChildNg&gid="+data.nodeId+"&npGroupId="+data.id+"&from=show"; var url = "<%=path %>/nodePosition/nodePosition.do?action=getChildNg&gid="+data.nodeId+"&npGroupId="+data.id+"&from=show";
url = encodeURI(url); url = encodeURI(url);
window.location.href=url; window.location.href=url;
} }
} }
}); });
}) })
</script> </script>
<div id='menu1'style="display: none;"> <div id='menu1'style="display: none;">
<ul id="list1"> <ul id="list1">
<!--<li id='save' ltype='normal'>保存</li>--> <!--<li id='save' ltype='normal'>保存</li>-->
<!--<li id='reset' ltype='normal'>重置</li>--> <!--<li id='reset' ltype='normal'>重置</li>-->
<li id='getBox' ltype='node' lvalue='1'>i18n_st.text.getBox_n81i</li> <li id='getBox' ltype='node' lvalue='1'>i18n_st.text.getBox_n81i</li>
<li id='getChildNg' ltype='nodeGroup'>i18n_st.text.getChildNg_n81i</li> <li id='getChildNg' ltype='nodeGroup'>i18n_st.text.getChildNg_n81i</li>
<!-- <li id='openTopology' ltype='node' lvalue='1'>查看告警数据</li> --> <!-- <li id='openTopology' ltype='node' lvalue='1'>查看告警数据</li> -->
</ul> </ul>
</div> </div>
</body> </body>
</html> </html>

View File

@@ -1,460 +1,460 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="/jstl/c"%> <%@ taglib prefix="c" uri="/jstl/c"%>
<%@ taglib prefix="fn" uri="/jstl/fn"%> <%@ taglib prefix="fn" uri="/jstl/fn"%>
<%@ taglib prefix="fmt" uri="/jstl/fmt"%> <%@ taglib prefix="fmt" uri="/jstl/fmt"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%> %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html> <html>
<head> <head>
<base href="<%=basePath%>"> <base href="<%=basePath%>">
<title>i18n_sts.message.title_n81i</title> <title>i18n_sts.message.title_n81i</title>
<script type="text/javascript" src="<%=path%>/js/jquery-1.4.2.min.js"></script> <script type="text/javascript" src="<%=path%>/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="<%=path%>/js/ui/jquery-ui.min.js"></script> <script type="text/javascript" src="<%=path%>/js/ui/jquery-ui.min.js"></script>
<script src="<%=path %>/js/jquery.topology-2.0.js"></script> <script src="<%=path %>/js/jquery.topology-2.0.js"></script>
<script src="<%=path %>/js/jquery.contextmenu.r2.js"></script> <script src="<%=path %>/js/jquery.contextmenu.r2.js"></script>
<link href="<%=path%>/css/themes/base/jquery.ui.all.css" rel="stylesheet" type="text/css"/> <link href="<%=path%>/css/themes/base/jquery.ui.all.css" rel="stylesheet" type="text/css"/>
<link href="<%=path%>/css/show/topology.css" rel="stylesheet" type="text/css"/> <link href="<%=path%>/css/show/topology.css" rel="stylesheet" type="text/css"/>
<style type="text/css"> <style type="text/css">
#demo-ul * { padding:0; margin:0; list-style:none; font-size: 12px;} #demo-ul * { padding:0; margin:0; list-style:none; font-size: 12px;}
</style> </style>
<script type="text/javascript"> <script type="text/javascript">
function qry(para1) function qry(para1)
{ {
$('.td').find("span").remove(); $('.td').find("span").remove();
$("#iconBox").hide(); $("#iconBox").hide();
jQuery.post("<%=path %>/nodePosition/nodePosition.do?action=getWarNodeFromBox&boxId="+para1+"&ngId="+$('#gid').val(), jQuery.post("<%=path %>/nodePosition/nodePosition.do?action=getWarNodeFromBox&boxId="+para1+"&ngId="+$('#gid').val(),
{},function(data) {},function(data)
{ {
if(data.nodeInBoxList.length>0){ if(data.nodeInBoxList.length>0){
$("#iconBox").show(function(){ $("#iconBox").show(function(){
$("#iconBox").css('top','0px'); $("#iconBox").css('top','0px');
}); });
var nodes = data.nodeInBoxList; var nodes = data.nodeInBoxList;
$.each(nodes, function(i, node) { $.each(nodes, function(i, node) {
var node_Id = node.tableName+'_'+node.nodeType+'_'+node.nodeId; var node_Id = node.tableName+'_'+node.nodeType+'_'+node.nodeId;
var $icon = $("<span divType='node' class='icon-span'></span>"); var $icon = $("<span divType='node' class='icon-span'></span>");
$icon.attr('id',node_Id).attr('title',node.nodeIp+"_"+node.nodeName+"_"+node.nodeUType+"U"); $icon.attr('id',node_Id).attr('title',node.nodeIp+"_"+node.nodeName+"_"+node.nodeUType+"U");
if(node.seqId){ if(node.seqId){
$icon.attr('class','icon-span-red'); $icon.attr('class','icon-span-red');
}else{ }else{
$icon.attr('class','icon-span'); $icon.attr('class','icon-span');
} }
$icon.bind({ $icon.bind({
'mouseenter' : function() {//单引 'mouseenter' : function() {//单引
//$icon.addClass("hover"); //$icon.addClass("hover");
$("#spanIp2").text(node.nodeIp); $("#spanIp2").text(node.nodeIp);
$("#spanName2").text(node.nodeName); $("#spanName2").text(node.nodeName);
$("#spanUType2").text(node.nodeUType+"U"); $("#spanUType2").text(node.nodeUType+"U");
var iconBoxPosition = { var iconBoxPosition = {
top: $("#iconBox").css('top').replace("px","")*1, top: $("#iconBox").css('top').replace("px","")*1,
left: $("#iconBox").css('left').replace("px","")*1, left: $("#iconBox").css('left').replace("px","")*1,
width: $("#iconBox").css('width').replace("px","")*1, width: $("#iconBox").css('width').replace("px","")*1,
height: $("#iconBox").css('height').replace("px","")*1 height: $("#iconBox").css('height').replace("px","")*1
} }
var cPointY=0; var cPointY=0;
var cPointX=0; var cPointX=0;
var sumWidth = $("#board").css('width').replace("px","")*1; var sumWidth = $("#board").css('width').replace("px","")*1;
var sumheight = $("#board").css('height').replace("px","")*1; var sumheight = $("#board").css('height').replace("px","")*1;
var iconBoxLeft = parseInt(iconBoxPosition.left); var iconBoxLeft = parseInt(iconBoxPosition.left);
if(sumWidth-iconBoxLeft < parseInt(iconBoxPosition.width+200)){ if(sumWidth-iconBoxLeft < parseInt(iconBoxPosition.width+200)){
cPointY = parseInt(iconBoxPosition.left - iconBoxPosition.width); cPointY = parseInt(iconBoxPosition.left - iconBoxPosition.width);
}else{ }else{
cPointY = parseInt(iconBoxPosition.left + iconBoxPosition.width+10); cPointY = parseInt(iconBoxPosition.left + iconBoxPosition.width+10);
} }
cPointX = parseInt(iconBoxPosition.top + parseInt(node.latticePosition)*11+30); cPointX = parseInt(iconBoxPosition.top + parseInt(node.latticePosition)*11+30);
if(cPointX+100>sumheight){ if(cPointX+100>sumheight){
cPointX = sumheight-110; cPointX = sumheight-110;
} }
$("#span_info2") $("#span_info2")
.css('top',cPointX+'px') .css('top',cPointX+'px')
.css('left',cPointY+'px') .css('left',cPointY+'px')
.show(); .show();
}, },
'mouseleave' : function() { 'mouseleave' : function() {
$("#span_info2").hide(); $("#span_info2").hide();
$("#spanIp2").empty(); $("#spanIp2").empty();
$("#spanName2").empty(); $("#spanName2").empty();
$("#spanUType2").empty(); $("#spanUType2").empty();
} }
}); });
//添加到机柜显示 //添加到机柜显示
$("#spanTable").find('#'+node.latticePosition).append($icon); $("#spanTable").find('#'+node.latticePosition).append($icon);
//删除占位置的格子 //删除占位置的格子
if(node.nodeUType>1){ if(node.nodeUType>1){
var u = node.nodeUType; //U位 var u = node.nodeUType; //U位
var position = node.latticePosition; //位置 var position = node.latticePosition; //位置
var j; var j;
for(j=1;j<u;j++){ for(j=1;j<u;j++){
var thisTd = parseInt(position) + j; var thisTd = parseInt(position) + j;
$("#spanTable").find('#'+thisTd).parent().hide();//删除占位置的tr $("#spanTable").find('#'+thisTd).parent().hide();//删除占位置的tr
} }
} }
}); });
}else{ }else{
alert("i18n_sts.message.spanTable_n81i"); alert("i18n_sts.message.spanTable_n81i");
} }
}); });
} }
</script> </script>
</head> </head>
<body oncontextmenu="event.returnValue=false"> <body oncontextmenu="event.returnValue=false">
<div id="border_Div"> <div id="border_Div">
<input id="from" type="hidden" value="${from}"/> <input id="from" type="hidden" value="${from}"/>
<div id="board" class="board" > <div id="board" class="board" >
<!-- 图片修改窗口 --> <!-- 图片修改窗口 -->
<div id="imageBox" class="imageBox"> <div id="imageBox" class="imageBox">
<div id="imgList"> <div id="imgList">
</div> </div>
<span style="vertical-align:bottom;float: right;"><input type='button' value='i18n_sts.button.ok_n81i' id="apply" /><input type='button' value='i18n_sts.button.cancle_n81i' id="cancel" /></span> <span style="vertical-align:bottom;float: right;"><input type='button' value='i18n_sts.button.ok_n81i' id="apply" /><input type='button' value='i18n_sts.button.cancle_n81i' id="cancel" /></span>
</div> </div>
<!--打开后node列表--> <!--打开后node列表-->
<div id="iconBox" class="iconBoxBgc"> <div id="iconBox" class="iconBoxBgc">
<div id="iconBoxHeader" class="window-header"> <div id="iconBoxHeader" class="window-header">
<table border="0" width="100%" align="center"> <table border="0" width="100%" align="center">
<tr> <tr>
<td align="left" width="90%"> <td align="left" width="90%">
<span id="boxTitle" style="cursor: hand;font-size:10px;color:#000000;"></span> <span id="boxTitle" style="cursor: hand;font-size:10px;color:#000000;"></span>
</td> </td>
<td align="right" width="10%"> <td align="right" width="10%">
<img src="<c:url value='/images/logo_2.png'/>" onclick="$('#iconBox').hide();$('.td').find('span').remove();" style="cursor: hand; background-color:#FFFFFF;"> <img src="<c:url value='/images/logo_2.png'/>" onclick="$('#iconBox').hide();$('.td').find('span').remove();" style="cursor: hand; background-color:#FFFFFF;">
</td> </td>
</tr> </tr>
</table> </table>
<!-- <span type='close' class='ui-icon ui-icon-close' style="cursor: hand;background-color:#FFFFFF;" onclick="$('#iconBox').hide();$('.td').find('span').remove();"></span>--> <!-- <span type='close' class='ui-icon ui-icon-close' style="cursor: hand;background-color:#FFFFFF;" onclick="$('#iconBox').hide();$('.td').find('span').remove();"></span>-->
</div> </div>
<div id="iconNodeContent" class="iconBoxContent"> <div id="iconNodeContent" class="iconBoxContent">
<table id="spanTable1" class = "tableBox1" border="0" cellpadding="0" cellspacing="0" height="500"> <table id="spanTable1" class = "tableBox1" border="0" cellpadding="0" cellspacing="0" height="500">
<tr height="8"> <tr height="8">
<td <td
style="height: 8px; background-image:url(<%=path%>/images/show/top_1.jpg)"> style="height: 8px; background-image:url(<%=path%>/images/show/top_1.jpg)">
</td> </td>
<td <td
style="height: 8px; background-image:url(<%=path%>/images/show/top_2.jpg)"> style="height: 8px; background-image:url(<%=path%>/images/show/top_2.jpg)">
</td> </td>
<td <td
style="height: 8px; background-image:url(<%=path%>/images/show/top_3.jpg)"> style="height: 8px; background-image:url(<%=path%>/images/show/top_3.jpg)">
</td> </td>
</tr> </tr>
<tr class="tr"> <tr class="tr">
<td style=" background-image:url(<%=path%>/images/show/left.jpg)"> <td style=" background-image:url(<%=path%>/images/show/left.jpg)">
&nbsp; &nbsp;
</td> </td>
<td id="1" width="200"> <td id="1" width="200">
<table id="spanTable" class="tableBox"> <table id="spanTable" class="tableBox">
<tr><td id="1" class="td">1</td></tr> <tr><td id="1" class="td">1</td></tr>
<tr><td id="2" class="td">2</td></tr> <tr><td id="2" class="td">2</td></tr>
<tr><td id="3" class="td">3</td></tr> <tr><td id="3" class="td">3</td></tr>
<tr><td id="4" class="td">4</td></tr> <tr><td id="4" class="td">4</td></tr>
<tr><td id="5" class="td">5</td></tr> <tr><td id="5" class="td">5</td></tr>
<tr><td id="6" class="td">6</td></tr> <tr><td id="6" class="td">6</td></tr>
<tr><td id="7" class="td">7</td></tr> <tr><td id="7" class="td">7</td></tr>
<tr><td id="8" class="td">8</td></tr> <tr><td id="8" class="td">8</td></tr>
<tr><td id="9" class="td">9</td></tr> <tr><td id="9" class="td">9</td></tr>
<tr><td id="10" class="td">10</td></tr> <tr><td id="10" class="td">10</td></tr>
<tr><td id="11" class="td">11</td></tr> <tr><td id="11" class="td">11</td></tr>
<tr><td id="12" class="td">12</td></tr> <tr><td id="12" class="td">12</td></tr>
<tr><td id="13" class="td">13</td></tr> <tr><td id="13" class="td">13</td></tr>
<tr><td id="14" class="td">14</td></tr> <tr><td id="14" class="td">14</td></tr>
<tr><td id="15" class="td">15</td></tr> <tr><td id="15" class="td">15</td></tr>
<tr><td id="16" class="td">16</td></tr> <tr><td id="16" class="td">16</td></tr>
<tr><td id="17" class="td">17</td></tr> <tr><td id="17" class="td">17</td></tr>
<tr><td id="18" class="td">18</td></tr> <tr><td id="18" class="td">18</td></tr>
<tr><td id="19" class="td">19</td></tr> <tr><td id="19" class="td">19</td></tr>
<tr><td id="20" class="td">20</td></tr> <tr><td id="20" class="td">20</td></tr>
<tr><td id="21" class="td">21</td></tr> <tr><td id="21" class="td">21</td></tr>
<tr><td id="22" class="td">22</td></tr> <tr><td id="22" class="td">22</td></tr>
<tr><td id="23" class="td">23</td></tr> <tr><td id="23" class="td">23</td></tr>
<tr><td id="24" class="td">24</td></tr> <tr><td id="24" class="td">24</td></tr>
<tr><td id="25" class="td">25</td></tr> <tr><td id="25" class="td">25</td></tr>
<tr><td id="26" class="td">26</td></tr> <tr><td id="26" class="td">26</td></tr>
<tr><td id="27" class="td">27</td></tr> <tr><td id="27" class="td">27</td></tr>
<tr><td id="28" class="td">28</td></tr> <tr><td id="28" class="td">28</td></tr>
<tr><td id="29" class="td">29</td></tr> <tr><td id="29" class="td">29</td></tr>
<tr><td id="30" class="td">30</td></tr> <tr><td id="30" class="td">30</td></tr>
<tr><td id="31" class="td">31</td></tr> <tr><td id="31" class="td">31</td></tr>
<tr><td id="32" class="td">32</td></tr> <tr><td id="32" class="td">32</td></tr>
<tr><td id="33" class="td">33</td></tr> <tr><td id="33" class="td">33</td></tr>
<tr><td id="34" class="td">34</td></tr> <tr><td id="34" class="td">34</td></tr>
<tr><td id="35" class="td">35</td></tr> <tr><td id="35" class="td">35</td></tr>
<tr><td id="36" class="td">36</td></tr> <tr><td id="36" class="td">36</td></tr>
<tr><td id="37" class="td">37</td></tr> <tr><td id="37" class="td">37</td></tr>
<tr><td id="38" class="td">38</td></tr> <tr><td id="38" class="td">38</td></tr>
<tr><td id="39" class="td">39</td></tr> <tr><td id="39" class="td">39</td></tr>
<tr><td id="40" class="td">40</td></tr> <tr><td id="40" class="td">40</td></tr>
<tr><td id="41" class="td">41</td></tr> <tr><td id="41" class="td">41</td></tr>
<tr><td id="42" class="td">42</td></tr> <tr><td id="42" class="td">42</td></tr>
</table> </table>
</td> </td>
<td style=" background-image:url(<%=path%>/images/show/right.jpg)"> <td style=" background-image:url(<%=path%>/images/show/right.jpg)">
&nbsp; &nbsp;
</td> </td>
</tr> </tr>
<tr> <tr>
<td style=" background-image:url(<%=path%>/images/show/foot_1.jpg)"> <td style=" background-image:url(<%=path%>/images/show/foot_1.jpg)">
&nbsp; &nbsp;
</td> </td>
<td style=" background-image:url(<%=path%>/images/show/foot_2.jpg)"> <td style=" background-image:url(<%=path%>/images/show/foot_2.jpg)">
&nbsp; &nbsp;
</td> </td>
<td style=" background-image:url(<%=path%>/images/show/foot_3.jpg)"> <td style=" background-image:url(<%=path%>/images/show/foot_3.jpg)">
&nbsp; &nbsp;
</td> </td>
</tr> </tr>
</table> </table>
</div> </div>
</div> </div>
<c:if test="${from=='show'}"><!--如果从拓扑展示过来 则显示下面内容 --> <c:if test="${from=='show'}"><!--如果从拓扑展示过来 则显示下面内容 -->
<!--告警view--> <!--告警view-->
<div id="warningInfo" class="warningBgc"> <div id="warningInfo" class="warningBgc">
<div id="iconBoxHeader" class="window-headerForShow"> <div id="iconBoxHeader" class="window-headerForShow">
<table border="0" width="100%" align="center"> <table border="0" width="100%" align="center">
<tr> <tr>
<td align="left" width="100%"> <td align="left" width="100%">
<span id="Title" style="cursor: hand;font-size:10px;color:#FFFFFF;"></span> <span id="Title" style="cursor: hand;font-size:10px;color:#FFFFFF;"></span>
</td> </td>
<!-- <!--
<td align="right" width="10%"> <td align="right" width="10%">
<img src="<c:url value='/images/logo_2.png'/>" onclick="clo();" style="cursor: hand; background-color:#FFFFFF;"> <img src="<c:url value='/images/logo_2.png'/>" onclick="clo();" style="cursor: hand; background-color:#FFFFFF;">
</td> </td>
--> -->
</tr> </tr>
</table> </table>
</div> </div>
<div id="warningContent" class="iconBoxContent" style="width: 200px;height: 80px"> <div id="warningContent" class="iconBoxContent" style="width: 200px;height: 80px">
<ul id="demo-ul"> <ul id="demo-ul">
<li id="nodeSumNum"></li> <li id="nodeSumNum"></li>
<li id="trueNum"></li> <li id="trueNum"></li>
<li id="falseNum" style="color:#FF0000"></li> <li id="falseNum" style="color:#FF0000"></li>
</ul> </ul>
</div> </div>
</div> </div>
<!--右侧机柜列表 <!--右侧机柜列表
<div style="position: absolute; height: 100%; right: 0;"> <div style="position: absolute; height: 100%; right: 0;">
<div id="rightMenuFlag" <div id="rightMenuFlag"
style="float: left;width: 20px;text-align: center;"> style="float: left;width: 20px;text-align: center;">
<img src="<%=path%>/images/show/anniu_3.png" border="0" /> <img src="<%=path%>/images/show/anniu_3.png" border="0" />
</div> </div>
<ul id="rightBoxContent" <ul id="rightBoxContent"
style="width: 150px; height: 50%;list-style-type: none;margin:0px;display: none;" style="width: 150px; height: 50%;list-style-type: none;margin:0px;display: none;"
class="menucenter"> class="menucenter">
</ul> </ul>
</div> </div>
--> -->
</c:if> </c:if>
<div id="span_info2" class="spanInfo"> <div id="span_info2" class="spanInfo">
<table id="span_info" > <table id="span_info" >
<tr><td>IP</td><td id="spanIp2"></td></tr> <tr><td>IP</td><td id="spanIp2"></td></tr>
<tr><td>i18n_sts.text.spanName2_n81i</td><td id="spanName2"></td></tr> <tr><td>i18n_sts.text.spanName2_n81i</td><td id="spanName2"></td></tr>
<tr><td>i18n_sts.text.spanUType2_n81i</td><td id="spanUType2"></td></tr> <tr><td>i18n_sts.text.spanUType2_n81i</td><td id="spanUType2"></td></tr>
</table> </table>
</div> </div>
</div> </div>
<input id= "gid" type="hidden" value="${groupId }"/> <input id= "gid" type="hidden" value="${groupId }"/>
<input id= "groupNpId" type="hidden" value="${groupNpId }"/> <input id= "groupNpId" type="hidden" value="${groupNpId }"/>
<input id= "groudid" type="hidden" value="${groupId }"/> <input id= "groudid" type="hidden" value="${groupId }"/>
</div> </div>
<script > <script >
jQuery(function(){ jQuery(function(){
$("#warningInfo").hide(); $("#warningInfo").hide();
$("#iconBox").hide(); $("#iconBox").hide();
$("#span_info2").hide(); $("#span_info2").hide();
//加载"修改图片" 用图片url //加载"修改图片" 用图片url
jQuery.post("<%=path %>/nodePosition/nodePosition.do?action=loadImg", jQuery.post("<%=path %>/nodePosition/nodePosition.do?action=loadImg",
{},function(data){ {},function(data){
if(data.length>0){ if(data.length>0){
$.each(data, function(i, imgUrl) { $.each(data, function(i, imgUrl) {
var thisSrc = "<%=path%>"+imgUrl; var thisSrc = "<%=path%>"+imgUrl;
var $icon = $("<img border='0' width = '24' height = '24' onclick='javaScript:mouseclickF()' checkVal='0' onmouseout='javaScript:mouseoutF(this)' onmouseover='javaScript:mouseoverF(this)'/>"); var $icon = $("<img border='0' width = '24' height = '24' onclick='javaScript:mouseclickF()' checkVal='0' onmouseout='javaScript:mouseoutF(this)' onmouseover='javaScript:mouseoverF(this)'/>");
$icon.attr('src',thisSrc).attr('style','margin: 1px'); $icon.attr('src',thisSrc).attr('style','margin: 1px');
$("#imgList").append($icon); $("#imgList").append($icon);
}); });
} }
}); });
//节点UI的拖动 //节点UI的拖动
$("#warningInfo").draggable( { $("#warningInfo").draggable( {
cursorAt : {cursor :"move"}, cursorAt : {cursor :"move"},
revert:false, revert:false,
handle:'#iconBoxHeader', handle:'#iconBoxHeader',
containment:$("#board") containment:$("#board")
}); });
$("#iconBox").draggable( { $("#iconBox").draggable( {
cursorAt : {cursor :"move"}, cursorAt : {cursor :"move"},
revert:false, revert:false,
handle:'#iconBoxHeader', handle:'#iconBoxHeader',
containment:$("#board") containment:$("#board")
}); });
//发送请求,载入节点及关联关系 //发送请求,载入节点及关联关系
$('#board').showTopology("<%=path %>/nodePosition/nodePosition.do?action=getNodeModules&gid="+$('#gid').val()+"&npGroupId="+$('#groupNpId').val(),1); $('#board').showTopology("<%=path %>/nodePosition/nodePosition.do?action=getNodeModules&gid="+$('#gid').val()+"&npGroupId="+$('#groupNpId').val(),1);
//绑定右键菜单将点击右键时的event srcElement事件放入data缓存 //绑定右键菜单将点击右键时的event srcElement事件放入data缓存
$('#board').bind('contextmenu', function(e) { $('#board').bind('contextmenu', function(e) {
var $a_obj = $(event.srcElement); var $a_obj = $(event.srcElement);
if($a_obj[0].tagName != 'A'){ if($a_obj[0].tagName != 'A'){
$a_obj = $a_obj.parent(); $a_obj = $a_obj.parent();
} }
$('#board').data('active_obj',$a_obj); $('#board').data('active_obj',$a_obj);
}); });
//右边菜单 UL //右边菜单 UL
var $content=$("#rightBoxContent"); var $content=$("#rightBoxContent");
var initWidth=$content.width(); var initWidth=$content.width();
//菜单触发事件(隐藏、显示右边菜单) //菜单触发事件(隐藏、显示右边菜单)
$("#rightMenuFlag").click(function(){ $("#rightMenuFlag").click(function(){
$content.stop(true,true); $content.stop(true,true);
if(!$content.is(":hidden")){ if(!$content.is(":hidden")){
$content.children().hide(); $content.children().hide();
$content.animate({width:0},function(){$(this).hide()}); $content.animate({width:0},function(){$(this).hide()});
}else{ }else{
$content.show().animate({width:initWidth},function(){ $content.show().animate({width:initWidth},function(){
$(this).children().fadeIn(300); $(this).children().fadeIn(300);
}) })
} }
}); });
//新右键菜单 //新右键菜单
$(document.body).contextMenu('menu1',{ $(document.body).contextMenu('menu1',{
onShowMenu: function(e,menu){ onShowMenu: function(e,menu){
//获取触发点的图标对象 //获取触发点的图标对象
var $a_obj = $(e.srcElement).closest('A'); var $a_obj = $(e.srcElement).closest('A');
if($a_obj.size()>0){ //存在保存 if($a_obj.size()>0){ //存在保存
$('#board').data('active_obj',$a_obj); $('#board').data('active_obj',$a_obj);
} }
//事件对象判断 //事件对象判断
var $Obj = $(e.srcElement); var $Obj = $(e.srcElement);
if($a_obj.size()>0 ){//当前对象是图标 if($a_obj.size()>0 ){//当前对象是图标
var data = $a_obj.data('data'); var data = $a_obj.data('data');
$("li[id='getBox'][ltype='node']",menu).hide(); $("li[id='getBox'][ltype='node']",menu).hide();
$("li[id='getChildNg'][ltype='nodeGroup']",menu).hide(); $("li[id='getChildNg'][ltype='nodeGroup']",menu).hide();
$("li[id='openTopology'][ltype='node']",menu).hide(); $("li[id='openTopology'][ltype='node']",menu).hide();
$("li[id='changeImg'][ltype='node']",menu).hide(); $("li[id='changeImg'][ltype='node']",menu).hide();
$("li[ltype='normal']",menu).hide(); $("li[ltype='normal']",menu).hide();
if(data.viewType == '1'){//节点组 if(data.viewType == '1'){//节点组
if(data.childNum >0 && data.nodeId!=$("#groudid").val()){ if(data.childNum >0 && data.nodeId!=$("#groudid").val()){
$("li[id='getChildNg'][ltype='nodeGroup']",menu).show(); $("li[id='getChildNg'][ltype='nodeGroup']",menu).show();
if($("#from").val()=='edit'){//从展示图编辑过来so存在修改图片 if($("#from").val()=='edit'){//从展示图编辑过来so存在修改图片
$("li[id='changeImg'][ltype='node']",menu).show(); $("li[id='changeImg'][ltype='node']",menu).show();
} }
}else{//叶子节点组 }else{//叶子节点组
if($("#from").val()=='edit'){//从展示图编辑过来so存在打开页面 if($("#from").val()=='edit'){//从展示图编辑过来so存在打开页面
if(data.nodeId!=$("#groudid").val()){ if(data.nodeId!=$("#groudid").val()){
$("li[id='openTopology'][ltype='node']",menu).show(); $("li[id='openTopology'][ltype='node']",menu).show();
} }
$("li[id='changeImg'][ltype='node']",menu).show(); $("li[id='changeImg'][ltype='node']",menu).show();
}else{ }else{
if(data.id !=$("#groupNpId").val()){ if(data.id !=$("#groupNpId").val()){
$("li[id='getBox'][ltype='node']",menu).show(); $("li[id='getBox'][ltype='node']",menu).show();
}else{ }else{
$("ul[id='list1']",menu).hide(); $("ul[id='list1']",menu).hide();
} }
} }
} }
} }
}else if($Obj[0].tagName == 'DIV' && $Obj.attr('divType') == 'line'){//线 }else if($Obj[0].tagName == 'DIV' && $Obj.attr('divType') == 'line'){//线
//不作任何操作$("ul li[ltype!='line']",menu).hide(); //不作任何操作$("ul li[ltype!='line']",menu).hide();
$("ul[id='list1']",menu).hide(); $("ul[id='list1']",menu).hide();
}else{//桌面 }else{//桌面
if($("#from").val()=='edit'){ if($("#from").val()=='edit'){
$("ul li[ltype!='normal']",menu).hide(); $("ul li[ltype!='normal']",menu).hide();
}else{ }else{
$("ul[id='list1']",menu).hide(); $("ul[id='list1']",menu).hide();
} }
} }
return menu; return menu;
}, },
bindings : { bindings : {
save : function(){//保存操作 save : function(){//保存操作
saveNode("<%=path %>/nodePosition/nodePosition.do?action=updateNodes",0); saveNode("<%=path %>/nodePosition/nodePosition.do?action=updateNodes",0);
}, },
reset : function(){//页面重置 reset : function(){//页面重置
document.location.reload(); document.location.reload();
}, },
getBox : function(){ //查看机柜 getBox : function(){ //查看机柜
$("#rightBoxContent").empty(); $("#rightBoxContent").empty();
var icon = $('#board').data('active_obj'); var icon = $('#board').data('active_obj');
var data=icon.data("data"); var data=icon.data("data");
$("#gid").val(data.nodeId); $("#gid").val(data.nodeId);
//var url = "<%=path %>/nodePosition/nodePosition.do?action=getBoxByGroup&npGId="+data.id+"&groupId="+data.nodeId; //var url = "<%=path %>/nodePosition/nodePosition.do?action=getBoxByGroup&npGId="+data.id+"&groupId="+data.nodeId;
//getBoxByGroup(data,url); //getBoxByGroup(data,url);
//$("#rightMenuFlag").trigger('click'); //$("#rightMenuFlag").trigger('click');
var url = "<%=path %>/nodePosition/nodePosition.do?action=editMap&from=show&gid="+data.nodeId+"&npGroupId="+data.id; var url = "<%=path %>/nodePosition/nodePosition.do?action=editMap&from=show&gid="+data.nodeId+"&npGroupId="+data.id;
url = encodeURI(url); url = encodeURI(url);
window.location.href=url; window.location.href=url;
}, },
getChildNg : function(){ getChildNg : function(){
var icon = $('#board').data('active_obj'); var icon = $('#board').data('active_obj');
var data=icon.data("data"); var data=icon.data("data");
//alert(data.nodeId); //alert(data.nodeId);
//$("#gid").value=data.nodeId; //$("#gid").value=data.nodeId;
var url = "<%=path %>/nodePosition/nodePosition.do?action=getChildNg&gid="+data.nodeId+"&npGroupId="+data.id+"&from="+$('#from').val(); var url = "<%=path %>/nodePosition/nodePosition.do?action=getChildNg&gid="+data.nodeId+"&npGroupId="+data.id+"&from="+$('#from').val();
url = encodeURI(url); url = encodeURI(url);
url = encodeURI(url); url = encodeURI(url);
window.location.href=url; window.location.href=url;
}, },
changeImg : function(){//修改图标、图片 changeImg : function(){//修改图标、图片
$("#imageBox").show(function(){ $("#imageBox").show(function(){
var $icon = $('#board').data('active_obj'); var $icon = $('#board').data('active_obj');
var nl = $icon.data('data'); var nl = $icon.data('data');
var nodePosition ={top: nl.positionY+70,left: nl.positionX+70}; var nodePosition ={top: nl.positionY+70,left: nl.positionX+70};
$(this).css('top',nodePosition.top+'px').css('left',nodePosition.left+'px'); $(this).css('top',nodePosition.top+'px').css('left',nodePosition.left+'px');
}).find("#apply").click(function(){ }).find("#apply").click(function(){
var $icon = $('#board').data('active_obj'); var $icon = $('#board').data('active_obj');
var nsrc = $("#imageBox img[checkVal='1']").attr('src'); var nsrc = $("#imageBox img[checkVal='1']").attr('src');
$icon.find('img').attr("src",nsrc); $icon.find('img').attr("src",nsrc);
var nl = $icon.data('data'); var nl = $icon.data('data');
nl.imageUrl = nsrc; nl.imageUrl = nsrc;
$icon.data('data',nl); $icon.data('data',nl);
$("#imageBox").hide(); $("#imageBox").hide();
}); });
$("#imageBox #cancel").click(function(){ $("#imageBox #cancel").click(function(){
$("#imageBox").hide(); $("#imageBox").hide();
}); });
}, },
openTopology : function(){ //查看告警数据 openTopology : function(){ //查看告警数据
var icon = $('#board').data('active_obj'); var icon = $('#board').data('active_obj');
var data=icon.data("data"); var data=icon.data("data");
//alert(data.nodeId); //alert(data.nodeId);
//$("#gid").value=data.nodeId; //$("#gid").value=data.nodeId;
var url= "<%=path %>/nodePosition/nodePosition.do?action=editMap&gid="+data.nodeId+"&npGroupId="+data.id; var url= "<%=path %>/nodePosition/nodePosition.do?action=editMap&gid="+data.nodeId+"&npGroupId="+data.id;
url = encodeURI(url); url = encodeURI(url);
url = encodeURI(url); url = encodeURI(url);
window.location.href=url; window.location.href=url;
} }
} }
}); });
}) })
</script> </script>
<div id='menu1'style="display: none;"> <div id='menu1'style="display: none;">
<ul id="list1"> <ul id="list1">
<li id='save' ltype='normal'>i18n_sts.menu.save_n81i</li> <li id='save' ltype='normal'>i18n_sts.menu.save_n81i</li>
<li id='reset' ltype='normal'>i18n_sts.menu.reset_n81i</li> <li id='reset' ltype='normal'>i18n_sts.menu.reset_n81i</li>
<li id='changeImg' ltype='node'>i18n_sts.menu.changeImg_n81i</li> <li id='changeImg' ltype='node'>i18n_sts.menu.changeImg_n81i</li>
<li id='getBox' ltype='node' lvalue='1'>i18n_sts.menu.getBox_n81i</li> <li id='getBox' ltype='node' lvalue='1'>i18n_sts.menu.getBox_n81i</li>
<li id='getChildNg' ltype='nodeGroup'>i18n_sts.menu.getChildNg_n81i</li> <li id='getChildNg' ltype='nodeGroup'>i18n_sts.menu.getChildNg_n81i</li>
<li id='openTopology' ltype='node' lvalue='1'>i18n_sts.menu.openTopology_n81i</li> <li id='openTopology' ltype='node' lvalue='1'>i18n_sts.menu.openTopology_n81i</li>
<!-- <li id='openTopology' ltype='node' lvalue='1'>查看告警数据</li> --> <!-- <li id='openTopology' ltype='node' lvalue='1'>查看告警数据</li> -->
</ul> </ul>
</div> </div>
</body> </body>
</html> </html>

View File

@@ -1,160 +1,160 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%> <%@ taglib uri="/jstl/c" prefix="c"%>
<%@ include file="/common/taglib.jsp"%> <%@ include file="/common/taglib.jsp"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
%> %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!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"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>i18n_adepti.message.title_n81i</title> <title>i18n_adepti.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" <link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<link href="<c:url value='/js//dtree/css/dtree.css'/>" <link href="<c:url value='/js//dtree/css/dtree.css'/>"
rel="stylesheet" type="text/css" /> rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script> src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script> src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/dtree/js/dtree_checkbox.js'/>"></script> src="<c:url value='/js/dtree/js/dtree_checkbox.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.tools.js'/>"></script> src="<c:url value='/js/jquery.tools.js'/>"></script>
<script type="text/javascript" <script type="text/javascript"
src="<c:url value='/js/WebCalendar.js' />"></script> src="<c:url value='/js/WebCalendar.js' />"></script>
<script type="text/javascript"> <script type="text/javascript">
function $(name){ function $(name){
return document.getElementById(name); return document.getElementById(name);
} }
function add(){ function add(){
if($id("deptname","","i18n_adepti.text.deptname_n81i")){ if($id("deptname","","i18n_adepti.text.deptname_n81i")){
for(var i = 0 ;i<document.all.deptlayer.length;i++){ for(var i = 0 ;i<document.all.deptlayer.length;i++){
if(document.all.deptlayer[i].checked){ if(document.all.deptlayer[i].checked){
if((document.all.deptlayer[i].value==1 || document.all.deptlayer[i].value==2 ) && document.getElementById("upperlayer").value==-1){ if((document.all.deptlayer[i].value==1 || document.all.deptlayer[i].value==2 ) && document.getElementById("upperlayer").value==-1){
alert('i18n_adepti.message.deptname_n81i'); alert('i18n_adepti.message.deptname_n81i');
return false; return false;
}else{ }else{
//判断此部门名称是否已经存在,不允许同一个上级的部门重名 //判断此部门名称是否已经存在,不允许同一个上级的部门重名
var deptName = document.getElementById("deptname").value; var deptName = document.getElementById("deptname").value;
var upper = jQuery("#upperlayer >option:selected").val(); var upper = jQuery("#upperlayer >option:selected").val();
jQuery.post("<c:url value='/'/>sysManage/sysPopedomManage!checkDeptIsExisted.do",{deptName:deptName,upper:upper},function(datas){checkDeptIsExisted(datas);},"json"); jQuery.post("<c:url value='/'/>sysManage/sysPopedomManage!checkDeptIsExisted.do",{deptName:deptName,upper:upper},function(datas){checkDeptIsExisted(datas);},"json");
} }
break; break;
} }
} }
} }
} }
//判断角色名是否已存在,不存在再提交 //判断角色名是否已存在,不存在再提交
function checkDeptIsExisted(datas) { function checkDeptIsExisted(datas) {
if(datas!=null) { if(datas!=null) {
if(datas.hasExisted=="false") { if(datas.hasExisted=="false") {
document.yhForm.action="<%=path%>/sysManage/sysPopedomManage!execute.do?action=addDeptInfo"; document.yhForm.action="<%=path%>/sysManage/sysPopedomManage!execute.do?action=addDeptInfo";
document.yhForm.submit(); document.yhForm.submit();
} else { } else {
alert("i18n_adepti.message.deptnameExists_n81i"); alert("i18n_adepti.message.deptnameExists_n81i");
jQuery("#deptname").focus(); jQuery("#deptname").focus();
return; return;
} }
} }
} }
function goBack(){ function goBack(){
document.yhForm.action="<%=path%>/sysManage/sysPopedomManage!execute.do?action=queryDeptInfo"; document.yhForm.action="<%=path%>/sysManage/sysPopedomManage!execute.do?action=queryDeptInfo";
document.yhForm.submit(); document.yhForm.submit();
} }
</script> </script>
</head> </head>
<body> <body>
<div class="middle_list" > <div class="middle_list" >
<form action="" name="yhForm" method="post"> <form action="" name="yhForm" method="post">
<div style="clear: both"></div> <div style="clear: both"></div>
<table border="0" cellpadding="0" cellspacing="0" class="table"> <table border="0" cellpadding="0" cellspacing="0" class="table">
<tr> <tr>
<td colspan="4" class="color_8"> <td colspan="4" class="color_8">
<strong>i18n_adepti.text.title_n81i</strong> <strong>i18n_adepti.text.title_n81i</strong>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" width="25%" align="right"> <td class="color_1" width="25%" align="right">
i18n_adepti.text.deptname_n81i i18n_adepti.text.deptname_n81i
</td> </td>
<td class="color_3" width="25%" align="left"> <td class="color_3" width="25%" align="left">
<input type="text" name="dept.deptname" id="deptname"/> <input type="text" name="dept.deptname" id="deptname"/>
</td> </td>
<td class="color_1" width="25%" align="right"> <td class="color_1" width="25%" align="right">
i18n_adepti.text.upperlayer_n81i i18n_adepti.text.upperlayer_n81i
</td> </td>
<td class="color_3" align="left" width="25%"> <td class="color_3" align="left" width="25%">
<select name="dept.upperlayer" id="upperlayer"> <select name="dept.upperlayer" id="upperlayer">
<option value="0" selected> <option value="0" selected>
i18n_adepti.message.selectDefault_n81i i18n_adepti.message.selectDefault_n81i
</option> </option>
<c:forEach items="${listDeptInfo}" var="deptInfo"> <c:forEach items="${listDeptInfo}" var="deptInfo">
<option value="${deptInfo.deptid}"> <option value="${deptInfo.deptid}">
${deptInfo.deptname} ${deptInfo.deptname}
</option> </option>
</c:forEach> </c:forEach>
</select> </select>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" width="20%" align="right"> <td class="color_1" width="20%" align="right">
i18n_adepti.text.deptlayer_n81i i18n_adepti.text.deptlayer_n81i
</td> </td>
<td class="color_3" width="25%" align="left" colspan="3"> <td class="color_3" width="25%" align="left" colspan="3">
<input type="radio" name="dept.deptlayer" id="deptlayer" value="0" checked="checked" />i18n_adepti.message.deptlayer0_n81i <input type="radio" name="dept.deptlayer" id="deptlayer" value="0" checked="checked" />i18n_adepti.message.deptlayer0_n81i
<input type="radio" name="dept.deptlayer" id="deptlayer" value="1" />i18n_adepti.message.deptlayer1_n81i <input type="radio" name="dept.deptlayer" id="deptlayer" value="1" />i18n_adepti.message.deptlayer1_n81i
<input type="radio" name="dept.deptlayer" id="deptlayer" value="2" />i18n_adepti.message.deptlayer2 <input type="radio" name="dept.deptlayer" id="deptlayer" value="2" />i18n_adepti.message.deptlayer2
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_7" colspan="4" align="right"> <td class="color_7" colspan="4" align="right">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onclick="add()" onmouseup="this.className='btn3_mouseup'" onclick="add()"
value="i18n_adepti.button.submit_n81i"/> value="i18n_adepti.button.submit_n81i"/>
&nbsp; &nbsp;
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="javascript:document.forms['yhForm'].reset()" onclick="javascript:document.forms['yhForm'].reset()"
value="i18n_adepti.button.reset_n81i"/> value="i18n_adepti.button.reset_n81i"/>
&nbsp; &nbsp;
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="goBack()" value="i18n_adepti.button.back_n81i"/> onclick="goBack()" value="i18n_adepti.button.back_n81i"/>
&nbsp; &nbsp;
</td> </td>
</tr> </tr>
</table> </table>
</form> </form>
</div> </div>
</body> </body>
</html> </html>
<script> <script>
function selectUpper(opt){ function selectUpper(opt){
if(opt==0){ if(opt==0){
document.getElementById("upperlayer").options[document.getElementById("upperlayer").selectedIndex].value="-1"; document.getElementById("upperlayer").options[document.getElementById("upperlayer").selectedIndex].value="-1";
document.getElementById("upperlayer").options[document.getElementById("upperlayer").selectedIndex].text="i18n_adepti.message.selectDefault_n81i"; document.getElementById("upperlayer").options[document.getElementById("upperlayer").selectedIndex].text="i18n_adepti.message.selectDefault_n81i";
document.getElementById("upperlayer").disabled=true; document.getElementById("upperlayer").disabled=true;
//alert(document.getElementById("upperlayer").value); //alert(document.getElementById("upperlayer").value);
}else{ }else{
document.getElementById("upperlayer").disabled=false; document.getElementById("upperlayer").disabled=false;
} }
} }
</script> </script>

View File

@@ -1,165 +1,165 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%> <%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib uri="/jstl/fn" prefix="fn"%> <%@ taglib uri="/jstl/fn" prefix="fn"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
%> %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!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"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_aei.message.title_n81i</title> <title>i18n_aei.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" <link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<link href="<c:url value='/js//dtree/css/dtree.css'/>" <link href="<c:url value='/js//dtree/css/dtree.css'/>"
rel="stylesheet" type="text/css" /> rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script> src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script> src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/dtree/js/dtree_checkbox.js'/>"></script> src="<c:url value='/js/dtree/js/dtree_checkbox.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.tools.js'/>"></script> src="<c:url value='/js/jquery.tools.js'/>"></script>
<script type="text/javascript" <script type="text/javascript"
src="<c:url value='/js/WebCalendar.js' />"></script> src="<c:url value='/js/WebCalendar.js' />"></script>
</head> </head>
<script language="javascript" type="text/javascript"> <script language="javascript" type="text/javascript">
function add(){ function add(){
if($id("troubleCode","sz","i18n_aei.text.troubleCode_n81i")&& $id("troubleInfo","","i18n_aei.text.troubleInfo_n81i")){ if($id("troubleCode","sz","i18n_aei.text.troubleCode_n81i")&& $id("troubleInfo","","i18n_aei.text.troubleInfo_n81i")){
<c:if test="${ADMFlag eq true}" > <c:if test="${ADMFlag eq true}" >
if($("#sysid").val()==''){ if($("#sysid").val()==''){
$('#group_red').html("i18n_aei.message.selectSystem_n81i"); $('#group_red').html("i18n_aei.message.selectSystem_n81i");
return; return;
} }
</c:if> </c:if>
if(checkAjax()){ if(checkAjax()){
document.Mkform.action = "<%=path%>/sysManage/sysErrorManage.do?action=addErrorInfo"; document.Mkform.action = "<%=path%>/sysManage/sysErrorManage.do?action=addErrorInfo";
document.Mkform.submit(); document.Mkform.submit();
} }
} }
} }
function checkAjax(){ function checkAjax(){
var type; var type;
$.ajax({ $.ajax({
url:"<%=path%>/sysManage/sysErrorManage.do?action=checkAjax", url:"<%=path%>/sysManage/sysErrorManage.do?action=checkAjax",
type : "POST", type : "POST",
async:false, async:false,
data:$('#Mkform').serialize(), data:$('#Mkform').serialize(),
success : function(data) { success : function(data) {
if(data == "error"){ if(data == "error"){
alert("i18n_aei.message.MkformError_n81i"); alert("i18n_aei.message.MkformError_n81i");
$("#troubleCode").focus(); $("#troubleCode").focus();
type = false; type = false;
}else if(data == "exception"){ }else if(data == "exception"){
alert("i18n_aei.message.MkformException_n81i"); alert("i18n_aei.message.MkformException_n81i");
type = false; type = false;
}else if(data =="success"){ }else if(data =="success"){
type = true; type = true;
} }
} }
}); });
return type; return type;
} }
function goBack(){ function goBack(){
window.location="<%=path%>/sysManage/sysErrorManage!execute.do?action=queryError"; window.location="<%=path%>/sysManage/sysErrorManage!execute.do?action=queryError";
} }
</script> </script>
<body> <body>
<div class="middle_list" > <div class="middle_list" >
<div class="box_2"> <div class="box_2">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="goBack()" value="i18n_aei.button.back_n81i"/> onclick="goBack()" value="i18n_aei.button.back_n81i"/>
</div> </div>
<form action="" name="Mkform" method="post" id="Mkform"> <form action="" name="Mkform" method="post" id="Mkform">
<input type="hidden" name="pageNo" value="${pageNo }" /> <input type="hidden" name="pageNo" value="${pageNo }" />
<input type="hidden" name="pageSize" value="${pageSize }" /> <input type="hidden" name="pageSize" value="${pageSize }" />
<div style="clear: both"></div> <div style="clear: both"></div>
<table border="0" cellpadding="0" cellspacing="0" class="table"> <table border="0" cellpadding="0" cellspacing="0" class="table">
<tr> <tr>
<td colspan="4" class="color_8"> <td colspan="4" class="color_8">
<strong>i18n_aei.text.title_n81i</strong> <strong>i18n_aei.text.title_n81i</strong>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" width="20%" align="right" nowrap="nowrap"> <td class="color_1" width="20%" align="right" nowrap="nowrap">
i18n_aei.text.troubleCode_n81i i18n_aei.text.troubleCode_n81i
</td> </td>
<td class="color_3" width="30%" align="left"> <td class="color_3" width="30%" align="left">
<input type="text" name="troubleState.troubleCode" id="troubleCode"/> <input type="text" name="troubleState.troubleCode" id="troubleCode"/>
<font color="red">*</font> <font color="red">*</font>
</td> </td>
<td class="color_1" width="20%" align="right" nowrap="nowrap"> <td class="color_1" width="20%" align="right" nowrap="nowrap">
i18n_aei.text.troubleInfo_n81i i18n_aei.text.troubleInfo_n81i
</td> </td>
<td class="color_3" width="30%" align="left"> <td class="color_3" width="30%" align="left">
<input type="text" name="troubleState.troubleInfo" <input type="text" name="troubleState.troubleInfo"
id="troubleInfo"/> id="troubleInfo"/>
<font color="red">*</font> <font color="red">*</font>
</td> </td>
</tr> </tr>
<c:if test="${ADMFlag }"> <c:if test="${ADMFlag }">
<tr id="adm" > <tr id="adm" >
<td class="color_1" width="20%" align="right" valign="top" > <td class="color_1" width="20%" align="right" valign="top" >
i18n_aei.text.systeId_n81i i18n_aei.text.systeId_n81i
</td> </td>
<td class="color_3" width="30%" align="left" valign="top" colspan="3"> <td class="color_3" width="30%" align="left" valign="top" colspan="3">
<select name="troubleState.system.systemId" id="sysid"> <select name="troubleState.system.systemId" id="sysid">
<option selected="selected" value=""> <option selected="selected" value="">
i18n_aei.message.systeId_n81i i18n_aei.message.systeId_n81i
</option> </option>
<c:forEach items="${sysList}" var="sys"> <c:forEach items="${sysList}" var="sys">
<option value="${sys.systemId}"> <option value="${sys.systemId}">
${sys.systemName} ${sys.systemName}
</option> </option>
</c:forEach> </c:forEach>
</select> </select>
<font color="red" id="group_red">* </font> <font color="red" id="group_red">* </font>
</td> </td>
</tr> </tr>
</c:if> </c:if>
<tr> <tr>
<td class="color_1" align="right" valign="top" nowrap="nowrap"> <td class="color_1" align="right" valign="top" nowrap="nowrap">
i18n_aei.text.troubleDescr_n81i i18n_aei.text.troubleDescr_n81i
</td> </td>
<td class="color_3" align="left" colspan="3"> <td class="color_3" align="left" colspan="3">
<textarea rows="3" cols="50" name="troubleState.troubleDescr" id="troubleDescr"></textarea> <textarea rows="3" cols="50" name="troubleState.troubleDescr" id="troubleDescr"></textarea>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_7" colspan="4" align="right"> <td class="color_7" colspan="4" align="right">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onclick="add()" onmouseup="this.className='btn3_mouseup'" onclick="add()"
value="i18n_aei.button.submit_n81i"/> value="i18n_aei.button.submit_n81i"/>
&nbsp; &nbsp;
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="javascript:document.forms['Mkform'].reset()" onclick="javascript:document.forms['Mkform'].reset()"
value="i18n_aei.button.reset_n81i"/> value="i18n_aei.button.reset_n81i"/>
</td> </td>
</tr> </tr>
</table> </table>
</form> </form>
</div> </div>
</body> </body>
</html> </html>

View File

@@ -1,169 +1,169 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="nis.nms.core.*"%> <%@ page import="nis.nms.core.*"%>
<%@ include file="/common/taglib.jsp"%> <%@ include file="/common/taglib.jsp"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
%> %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!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"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>i18n_aji.message.title_n81i</title> <title>i18n_aji.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" <link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<link href="<c:url value='/js//dtree/css/dtree.css'/>" <link href="<c:url value='/js//dtree/css/dtree.css'/>"
rel="stylesheet" type="text/css" /> rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script> src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script> src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/dtree/js/dtree_checkbox.js'/>"></script> src="<c:url value='/js/dtree/js/dtree_checkbox.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.tools.js'/>"></script> src="<c:url value='/js/jquery.tools.js'/>"></script>
<script type="text/javascript"> <script type="text/javascript">
function add(){ function add(){
if($id("jsmc","","i18n_aji.text.jsmc_n81i")){ if($id("jsmc","","i18n_aji.text.jsmc_n81i")){
if(checkSpecial($("#jsmc").val())){ if(checkSpecial($("#jsmc").val())){
$("#jsmc").next().html("i18n_aji.message.jsmc_n81i"); $("#jsmc").next().html("i18n_aji.message.jsmc_n81i");
return; return;
} }
var values=document.getElementsByName("mkid"); var values=document.getElementsByName("mkid");
var checkedValues=''; var checkedValues='';
for( var i = 0; i < values.length; i++ ){ for( var i = 0; i < values.length; i++ ){
if (values[i].checked==true ){ if (values[i].checked==true ){
checkedValues +=values[i].value+","; checkedValues +=values[i].value+",";
} }
} }
if(checkedValues==''){ if(checkedValues==''){
$('#mk').html("i18n_aji.message.mk_n81i"); $('#mk').html("i18n_aji.message.mk_n81i");
return ; return ;
} }
//判断此角色名是否已经存在,不允许角色重名 //判断此角色名是否已经存在,不允许角色重名
$.post("<c:url value='/'/>sysManage/sysPopedomManage!checkRoleIsExisted.do",{roleName:$("#jsmc").val()},function(datas){checkRoleIsExisted(datas);},"json"); $.post("<c:url value='/'/>sysManage/sysPopedomManage!checkRoleIsExisted.do",{roleName:$("#jsmc").val()},function(datas){checkRoleIsExisted(datas);},"json");
} }
} }
//判断角色名是否已存在,不存在再提交 //判断角色名是否已存在,不存在再提交
function checkRoleIsExisted(datas) { function checkRoleIsExisted(datas) {
if(datas.hasExisted=="false") { if(datas.hasExisted=="false") {
document.jsForm.action="<%=path%>/sysManage/sysPopedomManage!execute.do?action=addJsInfo"; document.jsForm.action="<%=path%>/sysManage/sysPopedomManage!execute.do?action=addJsInfo";
document.jsForm.submit(); document.jsForm.submit();
} else { } else {
$("#jsmc").next().html("i18n_aji.message.jsmcInput_n81i"); $("#jsmc").next().html("i18n_aji.message.jsmcInput_n81i");
$("#jsmc").focus(); $("#jsmc").focus();
return; return;
} }
} }
function goBack(){ function goBack(){
document.jsForm.action="<%=path%>/sysManage/sysPopedomManage!execute.do?action=queryJsInfo"; document.jsForm.action="<%=path%>/sysManage/sysPopedomManage!execute.do?action=queryJsInfo";
document.jsForm.submit(); document.jsForm.submit();
} }
</script> </script>
</head> </head>
<body> <body>
<div class="box_2"> <div class="box_2">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onclick="goBack()" value="i18n_aji.button.back_n81i"/> onmouseup="this.className='btn3_mouseup'" onclick="goBack()" value="i18n_aji.button.back_n81i"/>
</div> </div>
<div class="middle_list"> <div class="middle_list">
<form action="" name="jsForm" method="post"> <form action="" name="jsForm" method="post">
<input type="hidden" name="pageNo" value="${pageNo }" /> <input type="hidden" name="pageNo" value="${pageNo }" />
<input type="hidden" name="pageSize" value="${pageSize }" /> <input type="hidden" name="pageSize" value="${pageSize }" />
<!-- <div class="box_1"> <!-- <div class="box_1">
<img src="<c:url value='/images/sanjiao.png'/>" class="img_middle" /> <img src="<c:url value='/images/sanjiao.png'/>" class="img_middle" />
&nbsp;你现在所在的位置是: 系统配置 —> 角色管理 —> 新增角色信息 &nbsp;你现在所在的位置是: 系统配置 —> 角色管理 —> 新增角色信息
</div> </div>
<div style="clear: both"></div> --> <div style="clear: both"></div> -->
<table border="0" cellpadding="0" cellspacing="0" class="table"> <table border="0" cellpadding="0" cellspacing="0" class="table">
<tr> <tr>
<td colspan="2" class="color_8"> <td colspan="2" class="color_8">
<strong>i18n_aji.text.title_n81i</strong> <strong>i18n_aji.text.title_n81i</strong>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" width="20%" align="right"> <td class="color_1" width="20%" align="right">
i18n_aji.text.jsmc_n81i i18n_aji.text.jsmc_n81i
</td> </td>
<td class="color_6" width="50%" align="left"> <td class="color_6" width="50%" align="left">
<input type="text" name="role.jsmc" id="jsmc"/> <input type="text" name="role.jsmc" id="jsmc"/>
<font color="red">*</font> <font color="red">*</font>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right"> <td class="color_1" align="right">
i18n_aji.text.jsms_n81i i18n_aji.text.jsms_n81i
</td> </td>
<td class="color_6" align="left"> <td class="color_6" align="left">
<textarea rows="4" cols="40" name="role.jsms" id="jsms" <textarea rows="4" cols="40" name="role.jsms" id="jsms"
></textarea> ></textarea>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right"> <td class="color_1" align="right">
i18n_aji.text.state_n81i i18n_aji.text.state_n81i
</td> </td>
<td class="color_6" align="left"> <td class="color_6" align="left">
i18n_aji.text.using_n81i i18n_aji.text.using_n81i
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right" valign="top"> <td class="color_1" align="right" valign="top">
i18n_aji.message.selectMk_n81i i18n_aji.message.selectMk_n81i
</td> </td>
<td class="color_6" align="left"> <td class="color_6" align="left">
<font color="red" id="mk"></font> <font color="red" id="mk"></font>
<div id="tree" name="tree" <div id="tree" name="tree"
style="OVERFLOW-Y: auto; width: 100%;"> style="OVERFLOW-Y: auto; width: 100%;">
<script type="text/javascript"> <script type="text/javascript">
d = new dTree('d'); d = new dTree('d');
d.add('0','-1','i18n_aji.message.mkMenu_n81i<font color="red">*</font>'); d.add('0','-1','i18n_aji.message.mkMenu_n81i<font color="red">*</font>');
<% <%
List treeList = (List)request.getAttribute("treeList"); List treeList = (List)request.getAttribute("treeList");
List list = MakeTree.getAllResourceList(treeList); List list = MakeTree.getAllResourceList(treeList);
if(list != null && list.size() > 0){ if(list != null && list.size() > 0){
Resource resource = new Resource(); Resource resource = new Resource();
for( int i = 0 ; i < list.size() ; i++ ){ for( int i = 0 ; i < list.size() ; i++ ){
resource = (Resource) list.get(i); resource = (Resource) list.get(i);
%> %>
d.add('<%=resource.getRsCode()%>','<%=resource.getParRsCode()%>','<%=resource.getRsname()%>',''); d.add('<%=resource.getRsCode()%>','<%=resource.getParRsCode()%>','<%=resource.getRsname()%>','');
<% <%
} }
} }
%> %>
document.write(d); document.write(d);
</script> </script>
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_7" colspan="2" align="right"> <td class="color_7" colspan="2" align="right">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onclick="add()" value="i18n_aji.button.submit_n81i"/> onmouseup="this.className='btn3_mouseup'" onclick="add()" value="i18n_aji.button.submit_n81i"/>
&nbsp; &nbsp;
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="javascript:document.forms['jsForm'].reset()" value="i18n_aji.button.reset_n81i"/> onclick="javascript:document.forms['jsForm'].reset()" value="i18n_aji.button.reset_n81i"/>
</td> </td>
</tr> </tr>
</table> </table>
</form> </form>
</div> </div>
</body> </body>
</html> </html>

View File

@@ -1,168 +1,168 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%> <%@ taglib uri="/jstl/c" prefix="c"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
%> %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_amki.message.title_n81i</title> <title>i18n_amki.message.title_n81i</title>
<link href="<c:url value='/desktop/css/index${userBgColor }.css'/>" rel="stylesheet" <link href="<c:url value='/desktop/css/index${userBgColor }.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<script src="<c:url value='/js/onmouse${userBgColor }.js'/>" type="text/javascript"></script> <script src="<c:url value='/js/onmouse${userBgColor }.js'/>" type="text/javascript"></script>
<link href="<c:url value='/css/styles.css'/>" rel="stylesheet" <link href="<c:url value='/css/styles.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<link href="<c:url value='/css/k.css'/>" rel="stylesheet" type="text/css" /> <link href="<c:url value='/css/k.css'/>" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="<c:url value='/js/datepicker/WdatePicker.js'/>"></script> <script language="javascript" type="text/javascript" src="<c:url value='/js/datepicker/WdatePicker.js'/>"></script>
<script type="text/javascript" src="<%=path%>/templates/js/object.js"></script> <script type="text/javascript" src="<%=path%>/templates/js/object.js"></script>
</head> </head>
<script language="javascript" type="text/javascript"> <script language="javascript" type="text/javascript">
function $(name){ function $(name){
return document.getElementById(name); return document.getElementById(name);
} }
function add(){ function add(){
if($id("mkmc","","i18n_amki.text.mkjbxx_n81i")){ if($id("mkmc","","i18n_amki.text.mkjbxx_n81i")){
document.Mkform.action="<%=path%>/sysManage/sysPopedomManage!execute.do?action=addMkInfo"; document.Mkform.action="<%=path%>/sysManage/sysPopedomManage!execute.do?action=addMkInfo";
document.Mkform.submit(); document.Mkform.submit();
} }
} }
function goBack(){ function goBack(){
document.Mkform.action="<%=path%>/sysManage/sysPopedomManage!execute.do?action=queryMkInfo"; document.Mkform.action="<%=path%>/sysManage/sysPopedomManage!execute.do?action=queryMkInfo";
document.Mkform.submit(); document.Mkform.submit();
} }
</script> </script>
<body> <body>
<input type="hidden" name="position" value="${position }" /> <input type="hidden" name="position" value="${position }" />
<table width="80%" align="center" border="0" cellpadding="0" <table width="80%" align="center" border="0" cellpadding="0"
cellspacing="1" class="ta_color"> cellspacing="1" class="ta_color">
<div style="height: 3px; width: 100%; margin: 0px auto; padding: 0px;"></div> <div style="height: 3px; width: 100%; margin: 0px auto; padding: 0px;"></div>
<tr> <tr>
<td height="20" class="td_color"> <td height="20" class="td_color">
<span class="STYLE1">&nbsp;&nbsp;&nbsp;<strong>i18n_amki.text.mkjbxx_n81i</strong></span> <span class="STYLE1">&nbsp;&nbsp;&nbsp;<strong>i18n_amki.text.mkjbxx_n81i</strong></span>
</td> </td>
</tr> </tr>
<tr> <tr>
<td width="18%" bgcolor="#ffffff" align="center"> <td width="18%" bgcolor="#ffffff" align="center">
<div style="height: 5px; width: 100%; margin: 0px auto; padding: 0px;"></div> <div style="height: 5px; width: 100%; margin: 0px auto; padding: 0px;"></div>
<form action="" name="Mkform" method="post"> <form action="" name="Mkform" method="post">
<table width="100%" align="center" border="0" cellpadding="0" cellspacing="1"> <table width="100%" align="center" border="0" cellpadding="0" cellspacing="1">
<input type="hidden" name="module.pid" value="${pid }"> <input type="hidden" name="module.pid" value="${pid }">
<!--<tr> <!--<tr>
<td bgcolor="#FFFFFF"> <td bgcolor="#FFFFFF">
<div align="right"> <div align="right">
<span class="STYLE1">模块编号:</span> <span class="STYLE1">模块编号:</span>
</div> </div>
</td> </td>
<td height="20" bgcolor="#FFFFFF"> <td height="20" bgcolor="#FFFFFF">
<div align="left"> <div align="left">
<input type="text" name="module.mkbh" id="mkbh" <input type="text" name="module.mkbh" id="mkbh"
style="width: 155px; background-color: #fff; border: solid 1px #77abc4; font-size: 12px; color: #000000" /> style="width: 155px; background-color: #fff; border: solid 1px #77abc4; font-size: 12px; color: #000000" />
</div> </div>
</td> </td>
</tr> --> </tr> -->
<tr> <tr>
<td bgcolor="#FFFFFF" width="40%"> <td bgcolor="#FFFFFF" width="40%">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_amki.text.mkmc_n81i</span> <span class="STYLE1">i18n_amki.text.mkmc_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left"> <div align="left">
<input type="text" name="module.mkmc" id="mkmc" <input type="text" name="module.mkmc" id="mkmc"
style="width: 155px; background-color: #fff; border: solid 1px #77abc4; font-size: 12px; color: #000000" /> style="width: 155px; background-color: #fff; border: solid 1px #77abc4; font-size: 12px; color: #000000" />
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td bgcolor="#FFFFFF"> <td bgcolor="#FFFFFF">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_amki.text.mkurl_n81i</span> <span class="STYLE1">i18n_amki.text.mkurl_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left"> <div align="left">
<input type="text" name="module.mkurl" id="mkurl" <input type="text" name="module.mkurl" id="mkurl"
style="width: 155px; background-color: #fff; border: solid 1px #77abc4; font-size: 12px; color: #000000" /> style="width: 155px; background-color: #fff; border: solid 1px #77abc4; font-size: 12px; color: #000000" />
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td bgcolor="#FFFFFF"> <td bgcolor="#FFFFFF">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_amki.text.mkms_n81i</span> <span class="STYLE1">i18n_amki.text.mkms_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left"> <div align="left">
<textarea rows="4" cols="40" name="module.mkms" id="mkms" <textarea rows="4" cols="40" name="module.mkms" id="mkms"
style="width: 155px; height: 30px; background-color: #fff; border: solid 1px #77abc4; font-size: 12px; color: #000000"></textarea> style="width: 155px; height: 30px; background-color: #fff; border: solid 1px #77abc4; font-size: 12px; color: #000000"></textarea>
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td bgcolor="#FFFFFF"> <td bgcolor="#FFFFFF">
<div align="right"> <div align="right">
<span class="STYLE1">i18n_amki.text.state_n81i</span> <span class="STYLE1">i18n_amki.text.state_n81i</span>
</div> </div>
</td> </td>
<td height="28" bgcolor="#FFFFFF"> <td height="28" bgcolor="#FFFFFF">
<div align="left"> <div align="left">
<input type="radio" name="module.zxbz" value="0" checked="checked" /><font size=2>i18n_amki.message.state0_n81i&nbsp;</font> <input type="radio" name="module.zxbz" value="0" checked="checked" /><font size=2>i18n_amki.message.state0_n81i&nbsp;</font>
<input type="radio" name="module.zxbz" value="1" ${ZXBZ==1?"checked='checked'":"" }/><font size=2>i18n_amki.message.state1_n81i&nbsp; <input type="radio" name="module.zxbz" value="1" ${ZXBZ==1?"checked='checked'":"" }/><font size=2>i18n_amki.message.state1_n81i&nbsp;
<div> <div>
</td> </td>
</tr> </tr>
</table> </table>
</form> </form>
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td height="20" class="td_color"> <td height="20" class="td_color">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="td_color"> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="td_color">
<tr> <tr>
<td width="92%" align=right> <td width="92%" align=right>
<img onclick="add()" src="<c:url value='/desktop/images/anniu/a_12${userBgColor }.gif'/>" <img onclick="add()" src="<c:url value='/desktop/images/anniu/a_12${userBgColor }.gif'/>"
border="0" align="middle" />&nbsp; border="0" align="middle" />&nbsp;
</td> </td>
<td align=left> <td align=left>
<img src="<c:url value='/desktop/images/anniu/a_39${userBgColor }.gif'/>" <img src="<c:url value='/desktop/images/anniu/a_39${userBgColor }.gif'/>"
border="0" align="middle" border="0" align="middle"
onclick="javascript:document.forms['Mkform'].reset()" />&nbsp; onclick="javascript:document.forms['Mkform'].reset()" />&nbsp;
</td> </td>
<td align=left> <td align=left>
<img src="<c:url value='/desktop/images/anniu/a_21${userBgColor }.gif'/>" <img src="<c:url value='/desktop/images/anniu/a_21${userBgColor }.gif'/>"
border="0" align="middle" border="0" align="middle"
onclick="goBack()" />&nbsp; onclick="goBack()" />&nbsp;
</td> </td>
</tr> </tr>
</table> </table>
</td> </td>
</tr> </tr>
</table> </table>
<br/> <br/>
</body> </body>
</html> </html>

View File

@@ -1,466 +1,466 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="nis.nms.core.*"%> <%@ page import="nis.nms.core.*"%>
<%@ include file="/common/taglib.jsp"%> <%@ include file="/common/taglib.jsp"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
%> %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!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"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>i18n_au.message.title_n81i</title> <title>i18n_au.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" <link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<link href="<c:url value='/js/dtree/css/dtree.css'/>" <link href="<c:url value='/js/dtree/css/dtree.css'/>"
rel="stylesheet" type="text/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-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/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/dtree/js/dtree_checkbox.js'/>"></script> src="<c:url value='/js/dtree/js/dtree_checkbox.js'/>"></script>
<link href="<c:url value='/js/flag/css/bootstrap.min.css'/>" rel="stylesheet" type="text/css"></link> <link href="<c:url value='/js/flag/css/bootstrap.min.css'/>" rel="stylesheet" type="text/css"></link>
<link href="<c:url value='/js/flag/css/flags.css'/>" rel="stylesheet" type="text/css"></link> <link href="<c:url value='/js/flag/css/flags.css'/>" rel="stylesheet" type="text/css"></link>
<script src="<c:url value='/js/flag/js/jquery-1.11.0.min.js'/>"></script> <script src="<c:url value='/js/flag/js/jquery-1.11.0.min.js'/>"></script>
<script src="<c:url value='/js/flag/js/bootstrap.min.js'/>"></script> <script src="<c:url value='/js/flag/js/bootstrap.min.js'/>"></script>
<script src="<c:url value='/js/flag/js/jquery.flagstrap.js'/>"></script> <script src="<c:url value='/js/flag/js/jquery.flagstrap.js'/>"></script>
<script type="text/javascript"> <script type="text/javascript">
function checkusername(){ function checkusername(){
var yhbhValue = $("#yhbh").val(); var yhbhValue = $("#yhbh").val();
var result = false; var result = false;
if(yhbhValue != ""){ if(yhbhValue != ""){
$.ajax({ $.ajax({
url:"<%=path%>/sysManage/sysPopedomManage.do?action=checkUserName", url:"<%=path%>/sysManage/sysPopedomManage.do?action=checkUserName",
type : "POST", type : "POST",
async:false, async:false,
dataType : "text", dataType : "text",
data:{'yhbhValue':yhbhValue}, data:{'yhbhValue':yhbhValue},
success : function(data) { success : function(data) {
if(data == "1"){ if(data == "1"){
alert("i18n_au.message.yhbh1_n81i"); alert("i18n_au.message.yhbh1_n81i");
document.getElementById("yhbh").focus(); document.getElementById("yhbh").focus();
$("input[name=user.yhbh]").next().html("*i18n_au.message.yhbh1_n81i"); $("input[name=user.yhbh]").next().html("*i18n_au.message.yhbh1_n81i");
}else{ }else{
result = true; result = true;
} }
} }
}); });
return result; return result;
}else{ }else{
return result; return result;
} }
} }
var isCommited = false; var isCommited = false;
function add(){ function add(){
if(isCommited==false) { if(isCommited==false) {
isComited = true; isComited = true;
}else { }else {
return; return;
} }
$("#js").html('*'); $("#js").html('*');
$("#yhz").html('*'); $("#yhz").html('*');
$("#bm").html('*'); $("#bm").html('*');
if(!$id("yhbh","","i18n_au.text.yhbh_n81i")){ if(!$id("yhbh","","i18n_au.text.yhbh_n81i")){
return false; return false;
} }
if(containSpecial($("#yhbh").val())){ if(containSpecial($("#yhbh").val())){
$("#yhbh").next().html('i18n_au.message.hasSpecialChar_n81i'); $("#yhbh").next().html('i18n_au.message.hasSpecialChar_n81i');
return false; return false;
} }
if(!checkZW($("#yhbh").val())){ if(!checkZW($("#yhbh").val())){
$("#yhbh").next().html('i18n_au.message.hasZH_n81i'); $("#yhbh").next().html('i18n_au.message.hasZH_n81i');
return false; return false;
} }
if(checkNum($("#yhbh").val())){ if(checkNum($("#yhbh").val())){
$("#yhbh").next().html('i18n_au.message.onlyNumber_n81i'); $("#yhbh").next().html('i18n_au.message.onlyNumber_n81i');
return false; return false;
} }
if(!checkusername()){ if(!checkusername()){
return false; return false;
} }
if(!$id("yhmc","","i18n_au.text.yhmc_n81i")){ if(!$id("yhmc","","i18n_au.text.yhmc_n81i")){
return false; return false;
} }
/*2018-08-30是否启用邮件功能*/ /*2018-08-30是否启用邮件功能*/
var emailFlag=${session.emailFlag==0} var emailFlag=${session.emailFlag==0}
if(emailFlag&&!$id("email","","E-mail")){ if(emailFlag&&!$id("email","","E-mail")){
return false; return false;
} }
if(emailFlag&&yhForm.email.value!=""){ if(emailFlag&&yhForm.email.value!=""){
if(!checkEmail(yhForm.email.value.toLowerCase())){ if(!checkEmail(yhForm.email.value.toLowerCase())){
$("#email").next().html('i18n_au.message.email_n81i'); $("#email").next().html('i18n_au.message.email_n81i');
yhForm.email.focus(); yhForm.email.focus();
return false; return false;
} }
} }
if(!isRigthCheck("urole", "remove")){ if(!isRigthCheck("urole", "remove")){
$("#js").html("<br>i18n_au.message.js_n81i"); $("#js").html("<br>i18n_au.message.js_n81i");
return false; return false;
}else{ }else{
if(!isRigthCheck("group", "remove")){ if(!isRigthCheck("group", "remove")){
$("#yhz").html("<br>i18n_au.message.yhz_n81i"); $("#yhz").html("<br>i18n_au.message.yhz_n81i");
return; return;
} }
//获取选择的用户组信息 //获取选择的用户组信息
var values=document.getElementsByName("group"); var values=document.getElementsByName("group");
var checkedGroupValues=''; var checkedGroupValues='';
for( var i = 0; i < values.length; i++ ){ for( var i = 0; i < values.length; i++ ){
if (values[i].checked==true ){ if (values[i].checked==true ){
checkedGroupValues +=values[i].value+","; checkedGroupValues +=values[i].value+",";
} }
} }
checkedGroupValues = checkedGroupValues.substr(0,checkedGroupValues.length-1); checkedGroupValues = checkedGroupValues.substr(0,checkedGroupValues.length-1);
document.getElementById("yhzbh").value = checkedGroupValues; document.getElementById("yhzbh").value = checkedGroupValues;
//获取选择的角色信息 //获取选择的角色信息
var values=document.getElementsByName("urole"); var values=document.getElementsByName("urole");
var checkedRoleValues=''; var checkedRoleValues='';
for( var i = 0; i < values.length; i++ ){ for( var i = 0; i < values.length; i++ ){
if (values[i].checked==true ){ if (values[i].checked==true ){
checkedRoleValues +=values[i].value+","; checkedRoleValues +=values[i].value+",";
} }
} }
checkedRoleValues = checkedRoleValues.substr(0,checkedRoleValues.length-1); checkedRoleValues = checkedRoleValues.substr(0,checkedRoleValues.length-1);
document.getElementById("jsbh").value = checkedRoleValues; document.getElementById("jsbh").value = checkedRoleValues;
var deptFlag=${session.deptFlag }; var deptFlag=${session.deptFlag };
//获取选择的部门信息 //获取选择的部门信息
if(deptFlag==0){ if(deptFlag==0){
var values=document.getElementsByName("mkid"); var values=document.getElementsByName("mkid");
var checkedDeptValues=''; var checkedDeptValues='';
for( var i = 0; i < values.length; i++ ){ for( var i = 0; i < values.length; i++ ){
if (values[i].checked==true ){ if (values[i].checked==true ){
checkedDeptValues +=values[i].value+","; checkedDeptValues +=values[i].value+",";
} }
} }
checkedDeptValues = checkedDeptValues.substr(0,checkedDeptValues.length-1); checkedDeptValues = checkedDeptValues.substr(0,checkedDeptValues.length-1);
document.getElementById("deptid").value = checkedDeptValues; document.getElementById("deptid").value = checkedDeptValues;
} }
if(deptFlag==0&&checkedDeptValues==''){ if(deptFlag==0&&checkedDeptValues==''){
$("#bm").html("<br>i18n_au.message.bm_n81i"); $("#bm").html("<br>i18n_au.message.bm_n81i");
return false; return false;
}else{ }else{
document.yhForm.action="<%=path%>/sysManage/sysPopedomManage.do?action=doaddUserInfo"; document.yhForm.action="<%=path%>/sysManage/sysPopedomManage.do?action=doaddUserInfo";
document.yhForm.submit(); document.yhForm.submit();
} }
} }
} }
function goBack(){ function goBack(){
document.yhForm.action="<%=path%>/sysManage/sysPopedomManage.do?action=queryUserInfo"; document.yhForm.action="<%=path%>/sysManage/sysPopedomManage.do?action=queryUserInfo";
document.yhForm.submit(); document.yhForm.submit();
} }
//验证非中文 //验证非中文
function checkZW(s) function checkZW(s)
{ {
var cs = /^\w+$/; var cs = /^\w+$/;
resu = cs.test(s); resu = cs.test(s);
return (cs.test(s)); return (cs.test(s));
} }
//验证纯数字 //验证纯数字
function checkNum(s) function checkNum(s)
{ {
var cs = /^\d+$/; var cs = /^\d+$/;
resu = cs.test(s); resu = cs.test(s);
return (cs.test(s)); return (cs.test(s));
} }
$(document).ready(function() {//选择国家插件初始化函数 $(document).ready(function() {//选择国家插件初始化函数
$('#flagstrap').flagStrap({ $('#flagstrap').flagStrap({
placeholder: { placeholder: {
value: "", value: "",
text: "--i18n_adepti.message.selectDefault_n81i--" text: "--i18n_adepti.message.selectDefault_n81i--"
}, },
countries: {//添加国家 ps:左边的值与flags.css中的国家值不对应需到css中修改 如 zh_CN 默认为CN css文件中为cn 需改为zh_cn countries: {//添加国家 ps:左边的值与flags.css中的国家值不对应需到css中修改 如 zh_CN 默认为CN css文件中为cn 需改为zh_cn
"": "",//不要删除插件bug第一个选项value为空 "": "",//不要删除插件bug第一个选项value为空
"en_US": "United States", "en_US": "United States",
"zh_CN": "Chinese", "zh_CN": "Chinese",
}, },
buttonSize: "btn-sm", buttonSize: "btn-sm",
buttonType: "btn-info", buttonType: "btn-info",
labelMargin: "10px", labelMargin: "10px",
scrollable: true, scrollable: true,
scrollableHeight: "350px", scrollableHeight: "350px",
}); });
}); });
$(function(){ $(function(){
var nationRole=${session.nationRole};//配置文件中获取 var nationRole=${session.nationRole};//配置文件中获取
if(nationRole==null||nationRole=="-1"){ if(nationRole==null||nationRole=="-1"){
$("input[type='button']").attr("disabled","disabled"); $("input[type='button']").attr("disabled","disabled");
alert("please add or modify 'myconfig.properties' ,there need a parameter 'nation.role.jsbh'"); alert("please add or modify 'myconfig.properties' ,there need a parameter 'nation.role.jsbh'");
return ; return ;
} }
var urole=document.getElementsByName("urole"); var urole=document.getElementsByName("urole");
var group=document.getElementsByName("group"); var group=document.getElementsByName("group");
for(var i=0 ;i <urole.length;i++){ for(var i=0 ;i <urole.length;i++){
if(urole[i].value != nationRole){ if(urole[i].value != nationRole){
$(urole[i]).prop("checked","checked"); $(urole[i]).prop("checked","checked");
$(group).click(function(){ $(group).click(function(){
if(this.checked||this.checked=="checked"){ if(this.checked||this.checked=="checked"){
$(group).removeProp("checked"); $(group).removeProp("checked");
$(this).prop("checked","checked"); $(this).prop("checked","checked");
} }
}); });
} }
} }
$(urole).click(function(){ $(urole).click(function(){
var uroleVal=this.value; var uroleVal=this.value;
$(group).unbind("click"); $(group).unbind("click");
if(uroleVal!=null&&uroleVal!=""&&uroleVal==nationRole){//角色选择为 nation role ,选择所有用户组,不允许修改 if(uroleVal!=null&&uroleVal!=""&&uroleVal==nationRole){//角色选择为 nation role ,选择所有用户组,不允许修改
$(group).prop("checked","checked"); $(group).prop("checked","checked");
$(group).prop("disabled","disabled"); $(group).prop("disabled","disabled");
}else{ }else{
$(group).removeProp("disabled"); $(group).removeProp("disabled");
$(group).removeProp("checked"); $(group).removeProp("checked");
$(group).click(function(){ $(group).click(function(){
if(this.checked||this.checked=="checked"){ if(this.checked||this.checked=="checked"){
$(group).removeProp("checked"); $(group).removeProp("checked");
$(this).prop("checked","checked"); $(this).prop("checked","checked");
} }
}); });
} }
}); });
}); });
</script> </script>
</head> </head>
<body> <body>
<div class="middle_list"> <div class="middle_list">
<div class="box_2"> <div class="box_2">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="goBack()" value="i18n_au.button.back_n81i"/> onclick="goBack()" value="i18n_au.button.back_n81i"/>
</div> </div>
<form action="" name="yhForm" method="post"> <form action="" name="yhForm" method="post">
<input type="hidden" name="position" value="${position }" /> <input type="hidden" name="position" value="${position }" />
<input type="hidden" name="jsbh" id="jsbh" /> <input type="hidden" name="jsbh" id="jsbh" />
<input type="hidden" name="yhzbh" id="yhzbh" /> <input type="hidden" name="yhzbh" id="yhzbh" />
<input type="hidden" name="deptid" id="deptid" /> <input type="hidden" name="deptid" id="deptid" />
<input type="hidden" name="pageNo" value="${pageNo }" /> <input type="hidden" name="pageNo" value="${pageNo }" />
<input type="hidden" name="pageSize" value="${pageSize }" /> <input type="hidden" name="pageSize" value="${pageSize }" />
<div style="clear: both"></div> <div style="clear: both"></div>
<table border="0" cellpadding="0" cellspacing="0" class="table"> <table border="0" cellpadding="0" cellspacing="0" class="table">
<tr> <tr>
<td colspan="3" class="color_8">i18n_au.text.title_n81i</td> <td colspan="3" class="color_8">i18n_au.text.title_n81i</td>
</tr> </tr>
<tr> <tr>
<td class="color_1" width="25%">i18n_au.text.yhjbxx_n81i</td> <td class="color_1" width="25%">i18n_au.text.yhjbxx_n81i</td>
<td colspan="2"> <td colspan="2">
<table border="0" cellpadding="0" cellspacing="0" class="table1" width="100%"> <table border="0" cellpadding="0" cellspacing="0" class="table1" width="100%">
<tr> <tr>
<td class="color_3" width="15%" align="right"> <td class="color_3" width="15%" align="right">
i18n_au.text.yhbh_n81i i18n_au.text.yhbh_n81i
</td> </td>
<td class="color_6" width="50%" align="left"> <td class="color_6" width="50%" align="left">
<input type="text" name="user.yhbh" id="yhbh"/> <input type="text" name="user.yhbh" id="yhbh"/>
<font color="red">*i18n_au.message.cannotHasZH_n81i</font> <font color="red">*i18n_au.message.cannotHasZH_n81i</font>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_3" align="right"> <td class="color_3" align="right">
i18n_au.text.yhmc_n81i i18n_au.text.yhmc_n81i
</td> </td>
<td class="color_6" align="left"> <td class="color_6" align="left">
<input type="text" name="user.yhmc" id="yhmc"/> <input type="text" name="user.yhmc" id="yhmc"/>
<font color="red">*</font> <font color="red">*</font>
</td> </td>
</tr> </tr>
<!-- <!--
<tr> <tr>
<td class="color_3" align="right"> <td class="color_3" align="right">
用户密码: 用户密码:
</td> </td>
<td class="color_6" align="left"> <td class="color_6" align="left">
<input type="password" name="user.yhmm" id="yhmm" /> <input type="password" name="user.yhmm" id="yhmm" />
<font color="red">*</font> <font color="red">*</font>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_3" align="right"> <td class="color_3" align="right">
确认密码: 确认密码:
</td> </td>
<td class="color_6" align="left"> <td class="color_6" align="left">
<input type="password" name="confirm" id="confirm" /> <input type="password" name="confirm" id="confirm" />
<font color="red">*</font> <font color="red">*</font>
</td> </td>
</tr> </tr>
--> -->
<c:if test="${session.emailFlag==0 }"> <c:if test="${session.emailFlag==0 }">
<tr> <tr>
<td class="color_3" align="right"> <td class="color_3" align="right">
E-mail E-mail
</td> </td>
<td class="color_6" align="left"> <td class="color_6" align="left">
<input type="text" name="email" id="email" /> <input type="text" name="email" id="email" />
<font color="red">*</font> <font color="red">*</font>
</td> </td>
</tr> </tr>
</c:if> </c:if>
<tr> <tr>
<td class="color_3" align="right"> <td class="color_3" align="right">
i18n_au.text.state_n81i i18n_au.text.state_n81i
</td> </td>
<td class="color_6" align="left"> <td class="color_6" align="left">
i18n_au.text.using_n81i i18n_au.text.using_n81i
</td> </td>
</tr> </tr>
<c:if test="${session.emailFlag==0 }"> <c:if test="${session.emailFlag==0 }">
<tr> <tr>
<td class="color_3" align="right"> <td class="color_3" align="right">
i18n_au.text.reciveEmail_n81i i18n_au.text.reciveEmail_n81i
</td> </td>
<td class="color_6" align="left"> <td class="color_6" align="left">
<input type="radio" name="user.isReceiveEmail" value="0" checked="checked"/> <input type="radio" name="user.isReceiveEmail" value="0" checked="checked"/>
i18n_au.message.Y_n81i i18n_au.message.Y_n81i
<input type="radio" name="user.isReceiveEmail" value="1"/> <input type="radio" name="user.isReceiveEmail" value="1"/>
i18n_au.message.N_n81i i18n_au.message.N_n81i
</td> </td>
</tr> </tr>
</c:if> </c:if>
<tr> <tr>
<td class="color_3" align="right"> <td class="color_3" align="right">
i18n_au.text.language_n81i i18n_au.text.language_n81i
</td> </td>
<td class="color_6" align="left"> <td class="color_6" align="left">
<select name="user.language"> <select name="user.language">
<option value="">--i18n_adepti.message.selectDefault_n81i--</option> <option value="">--i18n_adepti.message.selectDefault_n81i--</option>
<option value="en_US">ENGLISH</option> <option value="en_US">ENGLISH</option>
<option value="zh_CN">简体中文</option> <option value="zh_CN">简体中文</option>
<option value="ru_RU">русский язык</option> <option value="ru_RU">русский язык</option>
</select> </select>
<!-- <div id="flagstrap" data-input-name="user.language" ></div> 带有国旗的下拉选--> <!-- <div id="flagstrap" data-input-name="user.language" ></div> 带有国旗的下拉选-->
</td> </td>
</tr> </tr>
</table> </table>
</td> </td>
</tr> </tr>
<tr> <tr>
<td colspan="3"> <td colspan="3">
<table border="0" cellpadding="0" cellspacing="0" class="table1" width="100%"> <table border="0" cellpadding="0" cellspacing="0" class="table1" width="100%">
<tr> <tr>
<td class="color_1" width="8%"> <td class="color_1" width="8%">
i18n_au.text.xzjs_n81i<font color="red" id="js">*</font> i18n_au.text.xzjs_n81i<font color="red" id="js">*</font>
</td> </td>
<td class="color_6" valign="top"> <td class="color_6" valign="top">
<table > <table >
<tr> <tr>
<td class="color_1" width="6%"> <td class="color_1" width="6%">
<strong>i18n_au.text.select_n81i</strong> <strong>i18n_au.text.select_n81i</strong>
</td> </td>
<td class="color_1" width="10%"> <td class="color_1" width="10%">
<strong>i18n_au.text.selectUser_n81i</strong> <strong>i18n_au.text.selectUser_n81i</strong>
</td> </td>
</tr> </tr>
<c:forEach var="lji" items="${allJsInfo}"> <c:forEach var="lji" items="${allJsInfo}">
<%-- <tr> <%-- <tr>
<td class="color_3"> <td class="color_3">
<input type="checkbox" name="urole" value="${lji.jsbh }" /> <input type="checkbox" name="urole" value="${lji.jsbh }" />
</td> </td>
<td class="color_3"> <td class="color_3">
${lji.jsmc } ${lji.jsmc }
</td> </td>
</tr> --%> </tr> --%>
<tr> <tr>
<td class="color_3"> <td class="color_3">
<input type="radio" name="urole" value="${lji.jsbh }" /> <input type="radio" name="urole" value="${lji.jsbh }" />
</td> </td>
<td class="color_3" nowrap="nowrap"> <td class="color_3" nowrap="nowrap">
${lji.jsmc } ${lji.jsmc }
</td> </td>
</tr> </tr>
</c:forEach> </c:forEach>
</table> </table>
</td> </td>
<td class="color_1" width="8%">i18n_au.text.selectUserGroup_n81i<font color="red" id="yhz">*</font></td> <td class="color_1" width="8%">i18n_au.text.selectUserGroup_n81i<font color="red" id="yhz">*</font></td>
<td class="color_6" valign="top"> <td class="color_6" valign="top">
<table > <table >
<tr> <tr>
<td class="color_1" width="6%"> <td class="color_1" width="6%">
<strong>i18n_au.text.select_n81i</strong> <strong>i18n_au.text.select_n81i</strong>
</td> </td>
<td class="color_1" width="8%"> <td class="color_1" width="8%">
<strong>i18n_au.text.userGroup_n81i</strong> <strong>i18n_au.text.userGroup_n81i</strong>
</td> </td>
</tr> </tr>
<c:forEach var="aji" items="${yhzList}"> <c:forEach var="aji" items="${yhzList}">
<tr> <tr>
<td class="color_3"> <td class="color_3">
<input type="checkbox" name="group" value="${aji.jsbh }" /> <input type="checkbox" name="group" value="${aji.jsbh }" />
<input type="hidden" name="type" value="${aji.type}" /> <input type="hidden" name="type" value="${aji.type}" />
</td> </td>
<td class="color_3" nowrap="nowrap"> <td class="color_3" nowrap="nowrap">
${aji.jsmc } ${aji.jsmc }
</td> </td>
</tr> </tr>
</c:forEach> </c:forEach>
</table> </table>
</td> </td>
<c:if test="${session.deptFlag==0 }"> <c:if test="${session.deptFlag==0 }">
<td class="color_1" width="8%">i18n_au.text.selectDept_n81i<font color="red" id="bm">*</font></td> <td class="color_1" width="8%">i18n_au.text.selectDept_n81i<font color="red" id="bm">*</font></td>
<td class="color_6" valign="top" align="left"> <td class="color_6" valign="top" align="left">
<script type="text/javascript"> <script type="text/javascript">
d = new dTree('d'); d = new dTree('d');
d.add('1','-1','i18n_au.message.deptMenu_n81i'); d.add('1','-1','i18n_au.message.deptMenu_n81i');
<% <%
List list = (List)request.getAttribute("treeList"); List list = (List)request.getAttribute("treeList");
//List treeList = (List)request.getAttribute("treeList"); //List treeList = (List)request.getAttribute("treeList");
//List list = MakeTree.getAllResourceList(treeList); //List list = MakeTree.getAllResourceList(treeList);
if(list != null && list.size() > 0){ if(list != null && list.size() > 0){
Resource resource = new Resource(); Resource resource = new Resource();
for( int i = 0 ; i < list.size() ; i++ ){ for( int i = 0 ; i < list.size() ; i++ ){
resource = (Resource) list.get(i); resource = (Resource) list.get(i);
%> %>
d.add('<%=resource.getRsCode()%>','<%=resource.getParRsCode()%>','<%=resource.getRsname()%>',''); d.add('<%=resource.getRsCode()%>','<%=resource.getParRsCode()%>','<%=resource.getRsname()%>','');
<% <%
} }
} }
%> %>
document.write(d); document.write(d);
</script> </script>
</td> </td>
</c:if> </c:if>
</tr> </tr>
</table> </table>
</td> </td>
</tr> </tr>
<tr> <tr>
<td colspan="3" class="color_7" align="right"> <td colspan="3" class="color_7" align="right">
&nbsp; &nbsp;
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="add()" value="i18n_au.button.submit_n81i"/> onclick="add()" value="i18n_au.button.submit_n81i"/>
&nbsp; &nbsp;
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="javascript:document.forms['yhForm'].reset()" value="i18n_au.button.reset_n81i"/> onclick="javascript:document.forms['yhForm'].reset()" value="i18n_au.button.reset_n81i"/>
</td> </td>
</tr> </tr>
</table> </table>
</form> </form>
</div> </div>
</body> </body>
</html> </html>

View File

@@ -1,277 +1,277 @@
<%@ page language="java" pageEncoding="UTF-8"%> <%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/common/taglib.jsp"%> <%@ include file="/common/taglib.jsp"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
%> %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!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"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>i18n_aui.message.title_n81i</title> <title>i18n_aui.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" <link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script> src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script> src="<c:url value='/js/onmouse.js'/>"></script>
<script type="text/javascript"> <script type="text/javascript">
function add(){ function add(){
if($id("yhmc","","i18n_aui.text.yhmc_n81i")&&$id("yhbh","","i18n_aui.text.yhbh_n81i")&&$id("yhmm","","i18n_aui.text.yhmm_n81i")&&$id("confirm","","i18n_aui.text.confirm_n81i")&&$id("email","","E-mail")){ if($id("yhmc","","i18n_aui.text.yhmc_n81i")&&$id("yhbh","","i18n_aui.text.yhbh_n81i")&&$id("yhmm","","i18n_aui.text.yhmm_n81i")&&$id("confirm","","i18n_aui.text.confirm_n81i")&&$id("email","","E-mail")){
if(yhForm.email.value!=""){ if(yhForm.email.value!=""){
if(!checkEmail(yhForm.email.value.toLowerCase())){ if(!checkEmail(yhForm.email.value.toLowerCase())){
alert('i18n_aui.message.email_n81i'); alert('i18n_aui.message.email_n81i');
yhForm.email.focus(); yhForm.email.focus();
return false; return false;
} }
} }
if(!isRigthCheck("jsbh", "remove")){ if(!isRigthCheck("jsbh", "remove")){
alert("i18n_aui.message.jsbh_n81i"); alert("i18n_aui.message.jsbh_n81i");
return; return;
}else{ }else{
if(!isRigthCheck("deptid", "remove")){ if(!isRigthCheck("deptid", "remove")){
alert("i18n_aui.message.deptid_n81i"); alert("i18n_aui.message.deptid_n81i");
return; return;
}else{ }else{
var yhmm = document.getElementById("yhmm").value; var yhmm = document.getElementById("yhmm").value;
var confirm = document.getElementById("confirm").value; var confirm = document.getElementById("confirm").value;
if(yhmm!=confirm){ if(yhmm!=confirm){
alert('i18n_aui.message.confirm_n81i'); alert('i18n_aui.message.confirm_n81i');
}else{ }else{
document.yhForm.action="<%=path%>/sysManage/sysPopedomManage!execute.do?action=addUserInfo"; document.yhForm.action="<%=path%>/sysManage/sysPopedomManage!execute.do?action=addUserInfo";
document.yhForm.submit(); document.yhForm.submit();
} }
} }
} }
} }
} }
function goBack(){ function goBack(){
document.yhForm.action="<%=path%>/sysManage/sysPopedomManage!execute.do?action=queryUserInfo"; document.yhForm.action="<%=path%>/sysManage/sysPopedomManage!execute.do?action=queryUserInfo";
document.yhForm.submit(); document.yhForm.submit();
} }
function checkZF(id){ function checkZF(id){
if(containSpecial($("#"+id).val())){ if(containSpecial($("#"+id).val())){
alert('i18n_aui.message.inputInfo_n81i'); alert('i18n_aui.message.inputInfo_n81i');
$("#"+id).val(''); $("#"+id).val('');
return; return;
} }
} }
</script> </script>
</head> </head>
<body> <body>
<div class="middle_list"> <div class="middle_list">
<form action="" name="yhForm" method="post"> <form action="" name="yhForm" method="post">
<input type="hidden" name="position" value="${position }" /> <input type="hidden" name="position" value="${position }" />
<!-- <div class="box_1"> <!-- <div class="box_1">
<img src="<c:url value='/images/sanjiao.png'/>" class="img_middle" /> <img src="<c:url value='/images/sanjiao.png'/>" class="img_middle" />
&nbsp;你现在所在的位置是: 系统配置 —> 用户管理 —> 添加用户信息 &nbsp;你现在所在的位置是: 系统配置 —> 用户管理 —> 添加用户信息
</div> --> </div> -->
<div style="clear: both"></div> <div style="clear: both"></div>
<table border="0" cellpadding="0" cellspacing="0" class="table"> <table border="0" cellpadding="0" cellspacing="0" class="table">
<tr> <tr>
<td colspan="4" class="color_8"> <td colspan="4" class="color_8">
<strong>i18n_aui.text.title_n81i</strong> <strong>i18n_aui.text.title_n81i</strong>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" width="15%"> <td class="color_1" width="15%">
<strong>i18n_aui.text.baseInfo_n81i</strong> <strong>i18n_aui.text.baseInfo_n81i</strong>
</td> </td>
<td class="color_6"> <td class="color_6">
<table border="0" cellpadding="0" cellspacing="0" class="table1"> <table border="0" cellpadding="0" cellspacing="0" class="table1">
<tr> <tr>
<td class="color_3" width="15%" align="right"> <td class="color_3" width="15%" align="right">
i18n_aui.text.yhbh_n81i i18n_aui.text.yhbh_n81i
</td> </td>
<td class="color_6" width="50%" align="left"> <td class="color_6" width="50%" align="left">
<input type="text" name="user.yhbh" id="yhbh" /> <input type="text" name="user.yhbh" id="yhbh" />
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_3" align="right"> <td class="color_3" align="right">
i18n_aui.text.yhmc_n81i i18n_aui.text.yhmc_n81i
</td> </td>
<td class="color_6" align="left"> <td class="color_6" align="left">
<input type="text" name="user.yhmc" id="yhmc" /> <input type="text" name="user.yhmc" id="yhmc" />
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_3" align="right"> <td class="color_3" align="right">
i18n_aui.text.yhmm_n81i i18n_aui.text.yhmm_n81i
</td> </td>
<td class="color_6" align="left"> <td class="color_6" align="left">
<input type="password" name="user.yhmm" id="yhmm" /> <input type="password" name="user.yhmm" id="yhmm" />
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_3" align="right"> <td class="color_3" align="right">
i18n_aui.text.confirm_n81i i18n_aui.text.confirm_n81i
</td> </td>
<td class="color_6" align="left"> <td class="color_6" align="left">
<input type="password" name="confirm" id="confirm" /> <input type="password" name="confirm" id="confirm" />
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_3" align="right"> <td class="color_3" align="right">
E-mail E-mail
</td> </td>
<td class="color_6" align="left"> <td class="color_6" align="left">
<input type="text" name="email" id="email" /> <input type="text" name="email" id="email" />
</td> </td>
</tr> </tr>
</table> </table>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1"> <td class="color_1">
<strong>i18n_aui.text.selectDept_n81i</strong> <strong>i18n_aui.text.selectDept_n81i</strong>
</td> </td>
<td class="color_6"> <td class="color_6">
<table border="0" cellpadding="0" cellspacing="0" class="table1"> <table border="0" cellpadding="0" cellspacing="0" class="table1">
<tr> <tr>
<td class="color_1" width="6%"> <td class="color_1" width="6%">
<strong>i18n_aui.text.select_n81i</strong> <strong>i18n_aui.text.select_n81i</strong>
</td> </td>
<td class="color_7" width="38%"> <td class="color_7" width="38%">
<strong>i18n_aui.text.dept_n81i</strong> <strong>i18n_aui.text.dept_n81i</strong>
</td> </td>
</tr> </tr>
<c:forEach var="dept" items="${listDeptInfo}"> <c:forEach var="dept" items="${listDeptInfo}">
<tr> <tr>
<td class="color_3"> <td class="color_3">
<input type="checkbox" name="deptid" value="${dept.deptid }" /> <input type="checkbox" name="deptid" value="${dept.deptid }" />
</td> </td>
<td class="color_6"> <td class="color_6">
${dept.deptname} ${dept.deptname}
</td> </td>
</tr> </tr>
</c:forEach> </c:forEach>
</table> </table>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1"> <td class="color_1">
<strong>i18n_aui.text.selectJs_n81i</strong> <strong>i18n_aui.text.selectJs_n81i</strong>
</td> </td>
<td class="color_6"> <td class="color_6">
<table border="0" cellpadding="0" cellspacing="0" class="table1"> <table border="0" cellpadding="0" cellspacing="0" class="table1">
<tr> <tr>
<td class="color_1" width="6%"> <td class="color_1" width="6%">
<strong>i18n_aui.text.select_n81i</strong> <strong>i18n_aui.text.select_n81i</strong>
</td> </td>
<td class="color_1" width="15%"> <td class="color_1" width="15%">
<strong>i18n_aui.text.jsbh_n81i</strong> <strong>i18n_aui.text.jsbh_n81i</strong>
</td> </td>
<td class="color_1" width="15%"> <td class="color_1" width="15%">
<strong>i18n_aui.text.jsmc_n81i</strong> <strong>i18n_aui.text.jsmc_n81i</strong>
</td> </td>
<td class="color_7" width="8%"> <td class="color_7" width="8%">
<strong>i18n_aui.text.state_n81i</strong> <strong>i18n_aui.text.state_n81i</strong>
</td> </td>
</tr> </tr>
<c:forEach var="lji" items="${allJsInfo}"> <c:forEach var="lji" items="${allJsInfo}">
<tr> <tr>
<td class="color_3"> <td class="color_3">
<input type="checkbox" name="jsbh" value="${lji.jsbh }" /> <input type="checkbox" name="jsbh" value="${lji.jsbh }" />
</td> </td>
<td class="color_3"> <td class="color_3">
${lji.jsbh } ${lji.jsbh }
</td> </td>
<td class="color_3"> <td class="color_3">
${lji.jsmc } ${lji.jsmc }
</td> </td>
<td class="color_6"> <td class="color_6">
<c:if test="${lji.zxbz==0}"> <c:if test="${lji.zxbz==0}">
i18n_aui.message.state0_n81i i18n_aui.message.state0_n81i
</c:if> </c:if>
<c:if test="${lji.zxbz==1}"> <c:if test="${lji.zxbz==1}">
<font color="red">i18n_aui.message.state1_n81i</font> <font color="red">i18n_aui.message.state1_n81i</font>
</c:if> </c:if>
</td> </td>
</tr> </tr>
</c:forEach> </c:forEach>
</table> </table>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1"> <td class="color_1">
<strong>i18n_aui.text.selectUserGroup_n81i</strong> <strong>i18n_aui.text.selectUserGroup_n81i</strong>
</td> </td>
<td class="color_6"> <td class="color_6">
<table border="0" cellpadding="0" cellspacing="0" class="table1"> <table border="0" cellpadding="0" cellspacing="0" class="table1">
<tr> <tr>
<td class="color_1" width="6%"> <td class="color_1" width="6%">
<strong>i18n_aui.text.select_n81i</strong> <strong>i18n_aui.text.select_n81i</strong>
</td> </td>
<td class="color_1" width="15%"> <td class="color_1" width="15%">
<strong>i18n_aui.text.userGroupId_n81i</strong> <strong>i18n_aui.text.userGroupId_n81i</strong>
</td> </td>
<td class="color_1" width="15%"> <td class="color_1" width="15%">
<strong>i18n_aui.text.userGroup_n81i</strong> <strong>i18n_aui.text.userGroup_n81i</strong>
</td> </td>
<td class="color_7" width="8%"> <td class="color_7" width="8%">
<strong>i18n_aui.text.state_n81i</strong> <strong>i18n_aui.text.state_n81i</strong>
</td> </td>
</tr> </tr>
<c:forEach var="aji" items="${yhzList}"> <c:forEach var="aji" items="${yhzList}">
<tr> <tr>
<td class="color_3"> <td class="color_3">
<input type="checkbox" name="yhzbh" value="${aji.jsbh }" /> <input type="checkbox" name="yhzbh" value="${aji.jsbh }" />
<input type="hidden" name="type" value="${aji.type}" /> <input type="hidden" name="type" value="${aji.type}" />
</td> </td>
<td class="color_3"> <td class="color_3">
${aji.jsbh } ${aji.jsbh }
</td> </td>
<td class="color_3"> <td class="color_3">
${aji.jsmc } ${aji.jsmc }
</td> </td>
<td class="color_6"> <td class="color_6">
<c:if test="${aji.zxbz==0}"> <c:if test="${aji.zxbz==0}">
i18n_aui.message.state0_n81i i18n_aui.message.state0_n81i
</c:if> </c:if>
<c:if test="${aji.zxbz==1}"> <c:if test="${aji.zxbz==1}">
<font color="red">i18n_aui.message.state1_n81i</font> <font color="red">i18n_aui.message.state1_n81i</font>
</c:if> </c:if>
</td> </td>
</tr> </tr>
</c:forEach> </c:forEach>
</table> </table>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_7" colspan="4" align="right"> <td class="color_7" colspan="4" align="right">
&nbsp; &nbsp;
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="add()" value="i18n_aui.button.submit_n81i"/> onclick="add()" value="i18n_aui.button.submit_n81i"/>
&nbsp; &nbsp;
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="javascript:document.forms['yhForm'].reset()" value="i18n_aui.button.reset_n81i"/> onclick="javascript:document.forms['yhForm'].reset()" value="i18n_aui.button.reset_n81i"/>
&nbsp; &nbsp;
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="goBack()" value="i18n_aui.button.back_n81i"/> onclick="goBack()" value="i18n_aui.button.back_n81i"/>
&nbsp; &nbsp;
</td> </td>
</tr> </tr>
</table> </table>
</form> </form>
</div> </div>
</body> </body>
</html> </html>

View File

@@ -1,117 +1,117 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%> <%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib uri="/jstl/fn" prefix="fn"%> <%@ taglib uri="/jstl/fn" prefix="fn"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
%> %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!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"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_abi.message.title_n81i</title> <title>i18n_abi.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" <link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<link href="<c:url value='/js//dtree/css/dtree.css'/>" <link href="<c:url value='/js//dtree/css/dtree.css'/>"
rel="stylesheet" type="text/css" /> rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script> src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script> src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/dtree/js/dtree_checkbox.js'/>"></script> src="<c:url value='/js/dtree/js/dtree_checkbox.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.tools.js'/>"></script> src="<c:url value='/js/jquery.tools.js'/>"></script>
<script type="text/javascript" <script type="text/javascript"
src="<c:url value='/js/WebCalendar.js' />"></script> src="<c:url value='/js/WebCalendar.js' />"></script>
</head> </head>
<script language="javascript" type="text/javascript"> <script language="javascript" type="text/javascript">
function add(){ function add(){
if($id("brandName","","i18n_abi.text.brandName_n81i")){ if($id("brandName","","i18n_abi.text.brandName_n81i")){
document.Brandform.action="<%=path%>/sysManage/brandManage!executeAction.do?action=addBrand"; document.Brandform.action="<%=path%>/sysManage/brandManage!executeAction.do?action=addBrand";
document.Brandform.submit(); document.Brandform.submit();
} }
} }
function goBack(){ function goBack(){
document.Brandform.action="<%=path%>/sysManage/brandManage.do?action=queryBrandInfo"; document.Brandform.action="<%=path%>/sysManage/brandManage.do?action=queryBrandInfo";
document.Brandform.submit(); document.Brandform.submit();
} }
//检查是否包含特殊字符 //检查是否包含特殊字符
function containSpecial(s) function containSpecial(s)
{ {
var cs = /^\w+$/; var cs = /^\w+$/;
resu = cs.test(s); resu = cs.test(s);
return (cs.test(s)); return (cs.test(s));
} }
</script> </script>
<body> <body>
<div class="middle_list" > <div class="middle_list" >
<form action="" name="Brandform" method="post"> <form action="" name="Brandform" method="post">
<input type="hidden" name="brandNameForSearch" id="brandNameForSearch" value="${brandNameForSearch}" /> <input type="hidden" name="brandNameForSearch" id="brandNameForSearch" value="${brandNameForSearch}" />
<div style="clear: both"></div> <div style="clear: both"></div>
<table border="0" cellpadding="0" cellspacing="0" class="table"> <table border="0" cellpadding="0" cellspacing="0" class="table">
<tr> <tr>
<td colspan="4" class="color_8"> <td colspan="4" class="color_8">
<strong>i18n_abi.text.title_n81i</strong> <strong>i18n_abi.text.title_n81i</strong>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" width="15%" align="right" nowrap="nowrap"> <td class="color_1" width="15%" align="right" nowrap="nowrap">
i18n_abi.text.brandName_n81i i18n_abi.text.brandName_n81i
</td> </td>
<td class="color_3" width="30%" align="left" > <td class="color_3" width="30%" align="left" >
<input type="text" name="brand.brandName" id="brandName" size="30" /> <input type="text" name="brand.brandName" id="brandName" size="30" />
<font id = "ctypeName"color="red">*</font> <font id = "ctypeName"color="red">*</font>
</td> </td>
<td class="color_1" width="15%" align="right" nowrap="nowrap"> <td class="color_1" width="15%" align="right" nowrap="nowrap">
i18n_abi.text.brandOid_n81i i18n_abi.text.brandOid_n81i
</td> </td>
<td class="color_3" align="left"> <td class="color_3" align="left">
<input type="text" name="brand.brandOid" id="brandOid" value="" size="30"/> <input type="text" name="brand.brandOid" id="brandOid" value="" size="30"/>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right" valign="top" nowrap="nowrap"> <td class="color_1" align="right" valign="top" nowrap="nowrap">
i18n_abi.text.brandDesc_n81i i18n_abi.text.brandDesc_n81i
</td> </td>
<td class="color_3" align="left" colspan="3"> <td class="color_3" align="left" colspan="3">
<textarea type="text" name="brand.brandDesc" id="brandDesc" rows="3" cols="50"></textarea> <textarea type="text" name="brand.brandDesc" id="brandDesc" rows="3" cols="50"></textarea>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_7" colspan="4" align="right"> <td class="color_7" colspan="4" align="right">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onclick="add()" onmouseup="this.className='btn3_mouseup'" onclick="add()"
value="i18n_abi.button.submit_n81i"/> value="i18n_abi.button.submit_n81i"/>
&nbsp; &nbsp;
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="javascript:document.forms['Brandform'].reset()" onclick="javascript:document.forms['Brandform'].reset()"
value="i18n_abi.button.reset_n81i"/> value="i18n_abi.button.reset_n81i"/>
&nbsp; &nbsp;
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="goBack()" value="i18n_abi.button.back_n81i"/> onclick="goBack()" value="i18n_abi.button.back_n81i"/>
&nbsp; &nbsp;
</td> </td>
</tr> </tr>
</table> </table>
</form> </form>
</div> </div>
</body> </body>
</html> </html>

View File

@@ -1,145 +1,145 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="/jstl/c"%> <%@ taglib prefix="c" uri="/jstl/c"%>
<%@ taglib prefix="fn" uri="/jstl/fn"%> <%@ taglib prefix="fn" uri="/jstl/fn"%>
<%@ taglib prefix="fmt" uri="/jstl/fmt"%> <%@ taglib prefix="fmt" uri="/jstl/fmt"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
%> %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_bril.message.title_n81i</title> <title>i18n_bril.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" type="text/css" /> <link href="<c:url value='/css/nms.css'/>" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script> src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script> src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.suggest.js'/>"></script> src="<c:url value='/js/jquery.suggest.js'/>"></script>
</head> </head>
<script language="javascript" type="text/javascript"> <script language="javascript" type="text/javascript">
var msg = '${MSG}'; var msg = '${MSG}';
if(msg=='1'){ if(msg=='1'){
alert("i18n_bril.message.success_n81i"); alert("i18n_bril.message.success_n81i");
}else if(msg=='2'){ }else if(msg=='2'){
alert("i18n_bril.message.faild_n81i"); alert("i18n_bril.message.faild_n81i");
} }
//新增品牌信息 //新增品牌信息
function toAddBrand() { function toAddBrand() {
document.form3.action = "<%=path%>/sysManage/brandManage!executeAction.do?action=toAddBrand"; document.form3.action = "<%=path%>/sysManage/brandManage!executeAction.do?action=toAddBrand";
document.form3.submit(); document.form3.submit();
}; };
//修改品牌信息 //修改品牌信息
function toUpdateBrand() { function toUpdateBrand() {
if(!isRigthCheck("ids", "edit")){ if(!isRigthCheck("ids", "edit")){
alert("i18n_bril.message.selectOne_n81i"); alert("i18n_bril.message.selectOne_n81i");
}else{ }else{
//获取选择的品牌信息 //获取选择的品牌信息
document.form3.action = "<%=path%>/sysManage/brandManage!executeAction.do?action=toUpdateBrand"; document.form3.action = "<%=path%>/sysManage/brandManage!executeAction.do?action=toUpdateBrand";
document.form3.submit(); document.form3.submit();
} }
}; };
//查询记录 //查询记录
function qry(){ function qry(){
document.form3.action = "<%=path%>/sysManage/brandManage.do?action=queryBrandInfo"; document.form3.action = "<%=path%>/sysManage/brandManage.do?action=queryBrandInfo";
document.form3.submit(); document.form3.submit();
} }
//品牌详细信息 //品牌详细信息
function detail(brandId) { function detail(brandId) {
document.form3.action = "<%=path%>/sysManage/brandManage.do?action=detailBrand&brandId="+brandId; document.form3.action = "<%=path%>/sysManage/brandManage.do?action=detailBrand&brandId="+brandId;
document.form3.submit(); document.form3.submit();
} }
//删除品牌信息 //删除品牌信息
function deleteBrand() { function deleteBrand() {
if(!isRigthCheck("ids", "remove")){ if(!isRigthCheck("ids", "remove")){
alert("i18n_bril.message.selectOne_n81i"); alert("i18n_bril.message.selectOne_n81i");
}else if(confirm("i18n_bril.message.delete_n81i")){ }else if(confirm("i18n_bril.message.delete_n81i")){
document.form3.action = "<%=path%>/sysManage/brandManage.do?action=deleteBrand"; document.form3.action = "<%=path%>/sysManage/brandManage.do?action=deleteBrand";
document.form3.submit(); document.form3.submit();
} }
}; };
</script> </script>
<body> <body>
<div class="middle_list"> <div class="middle_list">
<form name="form3" id="frmArticleType" <form name="form3" id="frmArticleType"
action="<c:url value='/sysManage/brandManage.do?action=queryBrandInfo'/>" method="post"> action="<c:url value='/sysManage/brandManage.do?action=queryBrandInfo'/>" method="post">
<div class="box_1"> <div class="box_1">
<label class="divTopText"><font class="selectText">i18n_bril.text.brandName_n81i</font> <label class="divTopText"><font class="selectText">i18n_bril.text.brandName_n81i</font>
<input style="width:140px;" name="brandNameForSearch" id="brandNameForSearch" value="${brandNameForSearch}"></label> <input style="width:140px;" name="brandNameForSearch" id="brandNameForSearch" value="${brandNameForSearch}"></label>
<img src="<c:url value='/images/button_chaxun.png'/>" <img src="<c:url value='/images/button_chaxun.png'/>"
class="img_middle" onclick="javascript:qry();" /> class="img_middle" onclick="javascript:qry();" />
</div> </div>
<div class="box_2"><jsp:include page="/include/include.jsp" /></div> <div class="box_2"><jsp:include page="/include/include.jsp" /></div>
<table border="0" cellpadding="0" cellspacing="0" class="table"> <table border="0" cellpadding="0" cellspacing="0" class="table">
<tr> <tr>
<td width="6%" class="color_top"> <td width="6%" class="color_top">
<input type="checkbox" name="checkbox62" value="checkbox" onClick="checkAll(this)" />i18n_bril.text.index_n81i <input type="checkbox" name="checkbox62" value="checkbox" onClick="checkAll(this)" />i18n_bril.text.index_n81i
</td> </td>
<td width="12%" class="color_top"> <td width="12%" class="color_top">
i18n_bril.text.brandName_n81i i18n_bril.text.brandName_n81i
</td> </td>
<td width="10%" class="color_top"> <td width="10%" class="color_top">
i18n_bril.text.brandDesc_n81i i18n_bril.text.brandDesc_n81i
</td> </td>
<td width="10%" class="color_8"> <td width="10%" class="color_8">
i18n_bril.text.brandOid_n81i i18n_bril.text.brandOid_n81i
</td> </td>
</tr> </tr>
<c:set var="index" value="${1}" /> <c:set var="index" value="${1}" />
<c:choose> <c:choose>
<c:when test="${fn:length(brandListInfo) > 0}"> <c:when test="${fn:length(brandListInfo) > 0}">
<c:forEach items="${brandListInfo}" var="brand" varStatus="vs"> <c:forEach items="${brandListInfo}" var="brand" varStatus="vs">
<c:set var="color" value="color_1"/> <c:set var="color" value="color_1"/>
<c:set var="color_end" value="color_7"/> <c:set var="color_end" value="color_7"/>
<c:if test="${vs.count%2!=0 }"> <c:if test="${vs.count%2!=0 }">
<c:set var="color" value="color_3"/> <c:set var="color" value="color_3"/>
<c:set var="color_end" value="color_6"/> <c:set var="color_end" value="color_6"/>
</c:if> </c:if>
<tr > <tr >
<td class="${color }"> <td class="${color }">
<input type="checkbox" name="ids" id="ids" value="${brand.id}" />${index+(pageNo-1)*pageSize} <input type="checkbox" name="ids" id="ids" value="${brand.id}" />${index+(pageNo-1)*pageSize}
</td> </td>
<td class="${color }"> <td class="${color }">
<a href="javascript:detail('${brand.id}');">${brand.brandName}</a> <a href="javascript:detail('${brand.id}');">${brand.brandName}</a>
</td> </td>
<td class="${color }"> <td class="${color }">
${brand.brandDesc} ${brand.brandDesc}
</td> </td>
<td class="${color_end }"> <td class="${color_end }">
${brand.brandOid} ${brand.brandOid}
</td> </td>
</tr> </tr>
<c:set var="index" value="${index + 1}" /> <c:set var="index" value="${index + 1}" />
</c:forEach> </c:forEach>
</c:when> </c:when>
<c:otherwise> <c:otherwise>
<tr> <tr>
<td colspan="6" align="center" class="color_6"> <td colspan="6" align="center" class="color_6">
i18n_bril.text.noRecord_n81i i18n_bril.text.noRecord_n81i
</td> </td>
</tr> </tr>
</c:otherwise> </c:otherwise>
</c:choose> </c:choose>
</table> </table>
<c:if test="${!empty brandListInfo}"> <c:if test="${!empty brandListInfo}">
<jsp:include page="/common/page.jsp" /> <jsp:include page="/common/page.jsp" />
</c:if> </c:if>
</form> </form>
</div> </div>
</body> </body>
</html> </html>

View File

@@ -1,90 +1,90 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%> <%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib uri="/jstl/fn" prefix="fn"%> <%@ taglib uri="/jstl/fn" prefix="fn"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
%> %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!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"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_dbi.message.title_n81i</title> <title>i18n_dbi.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" <link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<link href="<c:url value='/js//dtree/css/dtree.css'/>" <link href="<c:url value='/js//dtree/css/dtree.css'/>"
rel="stylesheet" type="text/css" /> rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script> src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script> src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/dtree/js/dtree_checkbox.js'/>"></script> src="<c:url value='/js/dtree/js/dtree_checkbox.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.tools.js'/>"></script> src="<c:url value='/js/jquery.tools.js'/>"></script>
<script type="text/javascript" <script type="text/javascript"
src="<c:url value='/js/WebCalendar.js' />"></script> src="<c:url value='/js/WebCalendar.js' />"></script>
</head> </head>
<script language="javascript" type="text/javascript"> <script language="javascript" type="text/javascript">
function goBack(){ function goBack(){
document.Brandform.action="<%=path%>/sysManage/brandManage.do?action=queryBrandInfo"; document.Brandform.action="<%=path%>/sysManage/brandManage.do?action=queryBrandInfo";
document.Brandform.submit(); document.Brandform.submit();
} }
</script> </script>
<body> <body>
<div class="middle_list" > <div class="middle_list" >
<form action="" name="Brandform" method="post"> <form action="" name="Brandform" method="post">
<input type="hidden" name="brand.id" id="brandId" value="${brand.id}" /> <input type="hidden" name="brand.id" id="brandId" value="${brand.id}" />
<input type="hidden" name="brandNameForSearch" id="brandNameForSearch" value="${brandNameForSearch}" /> <input type="hidden" name="brandNameForSearch" id="brandNameForSearch" value="${brandNameForSearch}" />
<jsp:include page="/common/transferHiddenParameter.jsp" /> <jsp:include page="/common/transferHiddenParameter.jsp" />
<div style="clear: both"></div> <div style="clear: both"></div>
<table border="0" cellpadding="0" cellspacing="0" class="table"> <table border="0" cellpadding="0" cellspacing="0" class="table">
<tr> <tr>
<td colspan="4" class="color_8"> <td colspan="4" class="color_8">
<strong>i18n_dbi.text.title_n81i</strong> <strong>i18n_dbi.text.title_n81i</strong>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" width="15%" align="right" nowrap="nowrap"> <td class="color_1" width="15%" align="right" nowrap="nowrap">
i18n_dbi.text.brandName_n81i i18n_dbi.text.brandName_n81i
</td> </td>
<td class="color_3" width="30%" align="left" > <td class="color_3" width="30%" align="left" >
${brand.brandName} ${brand.brandName}
</td> </td>
<td class="color_1" width="15%" align="right" nowrap="nowrap"> <td class="color_1" width="15%" align="right" nowrap="nowrap">
i18n_dbi.text.brandOid_n81i i18n_dbi.text.brandOid_n81i
</td> </td>
<td class="color_3" align="left"> <td class="color_3" align="left">
${brand.brandOid} ${brand.brandOid}
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right" valign="top" nowrap="nowrap"> <td class="color_1" align="right" valign="top" nowrap="nowrap">
i18n_dbi.text.brandDesc_n81i i18n_dbi.text.brandDesc_n81i
</td> </td>
<td class="color_3" align="left" colspan="3"> <td class="color_3" align="left" colspan="3">
${brand.brandDesc} ${brand.brandDesc}
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_7" colspan="4" align="right"> <td class="color_7" colspan="4" align="right">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="goBack()" value="i18n_dbi.button.back_n81i"/> onclick="goBack()" value="i18n_dbi.button.back_n81i"/>
&nbsp; &nbsp;
</td> </td>
</tr> </tr>
</table> </table>
</form> </form>
</div> </div>
</body> </body>
</html> </html>

View File

@@ -1,113 +1,113 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/jstl/c" prefix="c"%> <%@ taglib uri="/jstl/c" prefix="c"%>
<%@ taglib uri="/jstl/fn" prefix="fn"%> <%@ taglib uri="/jstl/fn" prefix="fn"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
%> %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!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"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_ubi.message.title_n81i</title> <title>i18n_ubi.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" <link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<link href="<c:url value='/js//dtree/css/dtree.css'/>" <link href="<c:url value='/js//dtree/css/dtree.css'/>"
rel="stylesheet" type="text/css" /> rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script> src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script> src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/dtree/js/dtree_checkbox.js'/>"></script> src="<c:url value='/js/dtree/js/dtree_checkbox.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.tools.js'/>"></script> src="<c:url value='/js/jquery.tools.js'/>"></script>
<script type="text/javascript" <script type="text/javascript"
src="<c:url value='/js/WebCalendar.js' />"></script> src="<c:url value='/js/WebCalendar.js' />"></script>
</head> </head>
<script language="javascript" type="text/javascript"> <script language="javascript" type="text/javascript">
function update(){ function update(){
if($id("brandName","","i18n_ubi.text.brandName_n81i")){ if($id("brandName","","i18n_ubi.text.brandName_n81i")){
document.Brandform.action="<%=path%>/sysManage/brandManage.do?action=updateBrand"; document.Brandform.action="<%=path%>/sysManage/brandManage.do?action=updateBrand";
document.Brandform.submit(); document.Brandform.submit();
} }
} }
function goBack(){ function goBack(){
document.Brandform.action="<%=path%>/sysManage/brandManage.do?action=queryBrandInfo"; document.Brandform.action="<%=path%>/sysManage/brandManage.do?action=queryBrandInfo";
document.Brandform.submit(); document.Brandform.submit();
} }
</script> </script>
<body> <body>
<div class="middle_list" > <div class="middle_list" >
<form action="" name="Brandform" method="post"> <form action="" name="Brandform" method="post">
<input type="hidden" name="brand.id" id="brandId" value="${brand.id}" /> <input type="hidden" name="brand.id" id="brandId" value="${brand.id}" />
<input type="hidden" name="brandNameForSearch" id="brandNameForSearch" value="${brandNameForSearch}" /> <input type="hidden" name="brandNameForSearch" id="brandNameForSearch" value="${brandNameForSearch}" />
<jsp:include page="/common/transferHiddenParameter.jsp" /> <jsp:include page="/common/transferHiddenParameter.jsp" />
<div style="clear: both"></div> <div style="clear: both"></div>
<table border="0" cellpadding="0" cellspacing="0" class="table"> <table border="0" cellpadding="0" cellspacing="0" class="table">
<tr> <tr>
<td colspan="4" class="color_8"> <td colspan="4" class="color_8">
<strong>i18n_ubi.text.title_n81i</strong> <strong>i18n_ubi.text.title_n81i</strong>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" width="15%" align="right" nowrap="nowrap"> <td class="color_1" width="15%" align="right" nowrap="nowrap">
i18n_ubi.text.brandName_n81i i18n_ubi.text.brandName_n81i
</td> </td>
<td class="color_3" width="30%" align="left" > <td class="color_3" width="30%" align="left" >
<input type="text" name="brand.brandName" id="brandName" size="30" value="${brand.brandName}"/> <input type="text" name="brand.brandName" id="brandName" size="30" value="${brand.brandName}"/>
<font id = "ctypeName"color="red">*</font> <font id = "ctypeName"color="red">*</font>
</td> </td>
<td class="color_1" width="15%" align="right" nowrap="nowrap"> <td class="color_1" width="15%" align="right" nowrap="nowrap">
i18n_ubi.text.brandOid_n81i i18n_ubi.text.brandOid_n81i
</td> </td>
<td class="color_3" align="left"> <td class="color_3" align="left">
<input type="text" name="brand.brandOid" id="brandOid" value="${brand.brandOid}" size="30"/> <input type="text" name="brand.brandOid" id="brandOid" value="${brand.brandOid}" size="30"/>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_1" align="right" valign="top" nowrap="nowrap"> <td class="color_1" align="right" valign="top" nowrap="nowrap">
i18n_ubi.text.brandDesc_n81i i18n_ubi.text.brandDesc_n81i
</td> </td>
<td class="color_3" align="left" colspan="3"> <td class="color_3" align="left" colspan="3">
<textarea type="text" name="brand.brandDesc" id="brandDesc" rows="3" cols="50">${brand.brandDesc}</textarea> <textarea type="text" name="brand.brandDesc" id="brandDesc" rows="3" cols="50">${brand.brandDesc}</textarea>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="color_7" colspan="4" align="right"> <td class="color_7" colspan="4" align="right">
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onclick="update()" onmouseup="this.className='btn3_mouseup'" onclick="update()"
value="i18n_ubi.button.submit_n81i"/> value="i18n_ubi.button.submit_n81i"/>
&nbsp; &nbsp;
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="javascript:document.forms['Brandform'].reset()" onclick="javascript:document.forms['Brandform'].reset()"
value="i18n_ubi.button.reset_n81i"/> value="i18n_ubi.button.reset_n81i"/>
&nbsp; &nbsp;
<input type="button" class=btn3_mouseout <input type="button" class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="goBack()" value="i18n_ubi.button.back_n81i"/> onclick="goBack()" value="i18n_ubi.button.back_n81i"/>
&nbsp; &nbsp;
</td> </td>
</tr> </tr>
</table> </table>
</form> </form>
</div> </div>
</body> </body>
</html> </html>

View File

@@ -1,114 +1,114 @@
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="/jstl/c"%> <%@ taglib prefix="c" uri="/jstl/c"%>
<%@ taglib prefix="fn" uri="/jstl/fn"%> <%@ taglib prefix="fn" uri="/jstl/fn"%>
<%@ taglib prefix="fmt" uri="/jstl/fmt"%> <%@ taglib prefix="fmt" uri="/jstl/fmt"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%> %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>i18n_cjsmkgi.message.title_n81i</title> <title>i18n_cjsmkgi.message.title_n81i</title>
<link href="<%=path%>/css/css.css" rel="stylesheet" type="text/css" /> <link href="<%=path%>/css/css.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=path%>/templates/js/object.js"></script> <script type="text/javascript" src="<%=path%>/templates/js/object.js"></script>
<link href="<c:url value='/desktop/css/index${userBgColor }.css'/>" rel="stylesheet" <link href="<c:url value='/desktop/css/index${userBgColor }.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<script src="<c:url value='/js/onmouse${userBgColor }.js'/>" type="text/javascript"></script> <script src="<c:url value='/js/onmouse${userBgColor }.js'/>" type="text/javascript"></script>
<link rel="StyleSheet" href="<%=path%>/js/dtree/css/dtree.css" type="text/css" /> <link rel="StyleSheet" href="<%=path%>/js/dtree/css/dtree.css" type="text/css" />
<script type="text/javascript"> <script type="text/javascript">
new alignWindowObject(window.opener.winObj.width,window.opener.winObj.height).alignCenter(); new alignWindowObject(window.opener.winObj.width,window.opener.winObj.height).alignCenter();
</script> </script>
</head> </head>
<body> <body>
<form action="" method="post"> <form action="" method="post">
<table width="100%" align="center" border="0" cellpadding="0" <table width="100%" align="center" border="0" cellpadding="0"
cellspacing="0" background="<%=path%>/templates/img/query_01.gif" style="font-size: 12px;"> cellspacing="0" background="<%=path%>/templates/img/query_01.gif" style="font-size: 12px;">
<tr> <tr>
<td height="20"></td> <td height="20"></td>
</tr> </tr>
<tr> <tr>
<td> <td>
<fieldset> <fieldset>
<legend> <legend>
i18n_cjsmkgi.text.baseInfo_n81i i18n_cjsmkgi.text.baseInfo_n81i
</legend> </legend>
<br/> <br/>
<table width="98%" align="center" border="1" cellpadding="0" <table width="98%" align="center" border="1" cellpadding="0"
cellspacing="0" class="blue-border" bordercolor="#CCCCCC"> cellspacing="0" class="blue-border" bordercolor="#CCCCCC">
<tr height="25" bgcolor="#F2F2F2" align="center"> <tr height="25" bgcolor="#F2F2F2" align="center">
<th nowrap="nowrap"> <th nowrap="nowrap">
i18n_cjsmkgi.text.jsbh_n81i i18n_cjsmkgi.text.jsbh_n81i
</th> </th>
<th nowrap="nowrap"> <th nowrap="nowrap">
i18n_cjsmkgi.text.jsmc_n81i i18n_cjsmkgi.text.jsmc_n81i
</th> </th>
<th nowrap="nowrap"> <th nowrap="nowrap">
i18n_cjsmkgi.text.state_n81i i18n_cjsmkgi.text.state_n81i
</th> </th>
</tr> </tr>
<tr height="25" align="center" > <tr height="25" align="center" >
<td nowrap="nowrap">${listJsInfo[0].jsbh }</td > <td nowrap="nowrap">${listJsInfo[0].jsbh }</td >
<td nowrap="nowrap">${listJsInfo[0].jsmc }</td > <td nowrap="nowrap">${listJsInfo[0].jsmc }</td >
<td nowrap="nowrap"> <td nowrap="nowrap">
<c:if test="${listJsInfo[0].ZXBZ==0}">i18n_cjsmkgi.message.state0_n81i</c:if> <c:if test="${listJsInfo[0].ZXBZ==0}">i18n_cjsmkgi.message.state0_n81i</c:if>
<c:if test="${listJsInfo[0].ZXBZ==1}"> <c:if test="${listJsInfo[0].ZXBZ==1}">
<font color="red">i18n_cjsmkgi.message.state1_n81i</font> <font color="red">i18n_cjsmkgi.message.state1_n81i</font>
</c:if> </c:if>
</td> </td>
</tr> </tr>
</table> </table>
<br/> <br/>
</fieldset> </fieldset>
</td> </td>
</tr> </tr>
</table> </table>
<br/> <br/>
<fieldset> <fieldset>
<legend> <legend>
i18n_cjsmkgi.text.mkpromission_n81i i18n_cjsmkgi.text.mkpromission_n81i
</legend> </legend>
<br/> <br/>
<table width="98%" height="350px" align="center" border="1" <table width="98%" height="350px" align="center" border="1"
cellpadding="0" cellspacing="0" class="blue-border" bordercolor="#CCCCCC"> cellpadding="0" cellspacing="0" class="blue-border" bordercolor="#CCCCCC">
<tr align="center"> <tr align="center">
<td valign="top" align="left" width="200px;"> <td valign="top" align="left" width="200px;">
<div class="dtree" style="text-align: center;"> <div class="dtree" style="text-align: center;">
<a href="javascript: d.openAll();">i18n_cjsmkgi.message.openAll_n81i</a> | <a href="javascript: d.openAll();">i18n_cjsmkgi.message.openAll_n81i</a> |
<a href="javascript: d.closeAll();">i18n_cjsmkgi.message.closeAll_n81i</a> <a href="javascript: d.closeAll();">i18n_cjsmkgi.message.closeAll_n81i</a>
<br/> <br/>
</div> </div>
<div id="treeList" style="height:360px;OVERFLOW-Y:auto;WIDTH:200px;TEXT-ALIGN:left;"> <div id="treeList" style="height:360px;OVERFLOW-Y:auto;WIDTH:200px;TEXT-ALIGN:left;">
</div> </div>
</td> </td>
<td valign="top" height="350px;" width="600px;" style="font-size: 12px;" align="left" > <td valign="top" height="350px;" width="600px;" style="font-size: 12px;" align="left" >
<iframe style=" width:100%;height: 100%" frameborder=0 name="jsMkGnFrame" id="jsMkGnFrame" src="<%=path%>/back.jsp"></iframe> <iframe style=" width:100%;height: 100%" frameborder=0 name="jsMkGnFrame" id="jsMkGnFrame" src="<%=path%>/back.jsp"></iframe>
</td> </td>
</tr> </tr>
</table> </table>
<!-- 模块权限结束 --> <!-- 模块权限结束 -->
</fieldset> </fieldset>
<input type="hidden" name="jsbh" value="${listJsInfo[0].jsbh }"/> <input type="hidden" name="jsbh" value="${listJsInfo[0].jsbh }"/>
</form> </form>
</body> </body>
<script type="text/javascript" src="<%=path%>/js/dtree/js/dtree.js"></script> <script type="text/javascript" src="<%=path%>/js/dtree/js/dtree.js"></script>
<script language="javascript"> <script language="javascript">
//显示左侧树 //显示左侧树
function showLeftTree(){ function showLeftTree(){
var treeObject = new createTreeObject("treeList"); var treeObject = new createTreeObject("treeList");
treeObject.loadXML("<%=path%>/SysPopedomManage!execute.do?action=configJsMkGnTreeXml&jsbh=${listJsInfo[0].jsbh}"); treeObject.loadXML("<%=path%>/SysPopedomManage!execute.do?action=configJsMkGnTreeXml&jsbh=${listJsInfo[0].jsbh}");
var list = treeObject.getNodesList(); var list = treeObject.getNodesList();
treeObject.setRootNode("i18n_cjsmkgi.text.mkList_n81i"); treeObject.setRootNode("i18n_cjsmkgi.text.mkList_n81i");
treeObject.addItems(treeObject,list); treeObject.addItems(treeObject,list);
treeObject.showTree(); treeObject.showTree();
} }
showLeftTree(); showLeftTree();
//根据模块编号查询功能信息 //根据模块编号查询功能信息
function queryMkGnInfo(mkbh){ function queryMkGnInfo(mkbh){
jsMkGnFrame.location="<%=path%>/SysPopedomManage!execute.do?action=configJsMkGnListInfo&mkbh="+mkbh+"&jsbh=${listJsInfo[0].jsbh }"; jsMkGnFrame.location="<%=path%>/SysPopedomManage!execute.do?action=configJsMkGnListInfo&mkbh="+mkbh+"&jsbh=${listJsInfo[0].jsbh }";
} }
</script> </script>
</html> </html>

View File

@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="/jstl/c"%> <%@ taglib prefix="c" uri="/jstl/c"%>
<%@ taglib prefix="fn" uri="/jstl/fn"%> <%@ taglib prefix="fn" uri="/jstl/fn"%>
<records> <records>
<c:forEach items="${listJsMkInfo}" var="jsMkInfo"> <c:forEach items="${listJsMkInfo}" var="jsMkInfo">
<record nodeId="${jsMkInfo.MKBH }" nodeType="0" nodePid="${jsMkInfo.PID }" nodeName="${jsMkInfo.MKMC }" url="javascript:queryMkGnInfo('${jsMkInfo.MKBH }')"/> <record nodeId="${jsMkInfo.MKBH }" nodeType="0" nodePid="${jsMkInfo.PID }" nodeName="${jsMkInfo.MKMC }" url="javascript:queryMkGnInfo('${jsMkInfo.MKBH }')"/>
</c:forEach> </c:forEach>
</records> </records>

View File

@@ -1,206 +1,206 @@
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="/common/taglib.jsp"%> <%@include file="/common/taglib.jsp"%>
<% <%
String path = request.getContextPath(); String path = request.getContextPath();
String basePath = request.getScheme() + "://" String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort() + request.getServerName() + ":" + request.getServerPort()
+ path + "/"; + path + "/";
%> %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!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"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>i18n_deptil.message.title_n81i</title> <title>i18n_deptil.message.title_n81i</title>
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet" <link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
type="text/css" /> type="text/css" />
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script> src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/onmouse.js'/>"></script> src="<c:url value='/js/onmouse.js'/>"></script>
<script language="javascript" type="text/javascript" <script language="javascript" type="text/javascript"
src="<c:url value='/js/jquery.suggest.js'/>"></script> src="<c:url value='/js/jquery.suggest.js'/>"></script>
<script type="text/javascript"> <script type="text/javascript">
var msg = '${MSG}'; var msg = '${MSG}';
if(msg=='1'){ if(msg=='1'){
alert("i18n_deptil.message.success_n81i"); alert("i18n_deptil.message.success_n81i");
}else if(msg=='2'){ }else if(msg=='2'){
alert("i18n_deptil.message.faild_n81i"); alert("i18n_deptil.message.faild_n81i");
} }
function addRecord(){ function addRecord(){
document.form1.action = "<%=path%>/sysManage/sysPopedomManage!execute.do?action=openAddDeptInfo"; document.form1.action = "<%=path%>/sysManage/sysPopedomManage!execute.do?action=openAddDeptInfo";
document.form1.submit(); document.form1.submit();
} }
function updateRecord(deptid){ function updateRecord(deptid){
document.form1.action = "<%=path%>/sysManage/sysPopedomManage!execute.do?action=openUpdateDeptPage&deptid="+deptid; document.form1.action = "<%=path%>/sysManage/sysPopedomManage!execute.do?action=openUpdateDeptPage&deptid="+deptid;
document.form1.submit(); document.form1.submit();
} }
function qry(){ function qry(){
document.form1.action = "<%=path%>/sysManage/sysPopedomManage!execute.do?action=queryDeptInfo"; document.form1.action = "<%=path%>/sysManage/sysPopedomManage!execute.do?action=queryDeptInfo";
document.form1.submit(); document.form1.submit();
} }
jQuery(function(){ jQuery(function(){
var ajaxProperties = "deptname"; var ajaxProperties = "deptname";
var ajaxTableName = "TableDepartment"; var ajaxTableName = "TableDepartment";
var ajaxType = "String"; var ajaxType = "String";
jQuery.post("<%=path%>/sysManage/sysPopedomManage!queryInfoForAjax.do", jQuery.post("<%=path%>/sysManage/sysPopedomManage!queryInfoForAjax.do",
{"ajaxProperties":ajaxProperties,"ajaxTableName":ajaxTableName,"ajaxType":ajaxType},function(data){ {"ajaxProperties":ajaxProperties,"ajaxTableName":ajaxTableName,"ajaxType":ajaxType},function(data){
var lianxiangList = new Array(jQuery(data).find("deptname").size()); var lianxiangList = new Array(jQuery(data).find("deptname").size());
var i = 0; var i = 0;
jQuery(data).find("filed").each(function(){ jQuery(data).find("filed").each(function(){
if(jQuery(this).find("deptname").is("deptname")){ if(jQuery(this).find("deptname").is("deptname")){
var lianxiang = jQuery(this).find("deptname").text(); var lianxiang = jQuery(this).find("deptname").text();
lianxiangList[i]=new Array('',lianxiang,getPY_str(lianxiang),''); lianxiangList[i]=new Array('',lianxiang,getPY_str(lianxiang),'');
i++; i++;
} }
}); });
jQuery("#deptname").suggest(lianxiangList,{hot_list:lianxiangList,attachObject:"#suggest"}); jQuery("#deptname").suggest(lianxiangList,{hot_list:lianxiangList,attachObject:"#suggest"});
}); });
}); });
var set_Id; var set_Id;
var ajaxProperties = ""; var ajaxProperties = "";
var ajaxTableName = ""; var ajaxTableName = "";
var ajaxType = ""; var ajaxType = "";
var id = ""; var id = "";
var returnDiv = ""; var returnDiv = "";
var ajaxValue = ""; var ajaxValue = "";
function lianxiangkeydown() { function lianxiangkeydown() {
clearTimeout(set_Id); clearTimeout(set_Id);
} }
function lianxiangkeyup(ajaxProperties1,ajaxTableName1,ajaxType1,id1,returnDiv1,ajaxValue1) { function lianxiangkeyup(ajaxProperties1,ajaxTableName1,ajaxType1,id1,returnDiv1,ajaxValue1) {
if(parent.document.getElementById("lianxiangStatus").value=="2") if(parent.document.getElementById("lianxiangStatus").value=="2")
{ {
if(jQuery.trim(ajaxValue1)=="") return false; if(jQuery.trim(ajaxValue1)=="") return false;
ajaxProperties = ajaxProperties1; ajaxProperties = ajaxProperties1;
ajaxTableName = ajaxTableName1; ajaxTableName = ajaxTableName1;
ajaxType = ajaxType1; ajaxType = ajaxType1;
id = id1; id = id1;
returnDiv = returnDiv1; returnDiv = returnDiv1;
if(!containSpecial(ajaxValue1)){ if(!containSpecial(ajaxValue1)){
ajaxValue = ajaxValue1; ajaxValue = ajaxValue1;
}else{ }else{
alert('i18n_deptil.message.inputInfo_n81i'); alert('i18n_deptil.message.inputInfo_n81i');
$("#"+id).val(''); $("#"+id).val('');
return; return;
} }
clearTimeout(set_Id); clearTimeout(set_Id);
set_Id = setTimeout(ajaxForLianxiang,500); set_Id = setTimeout(ajaxForLianxiang,500);
} }
} }
function ajaxForLianxiang() function ajaxForLianxiang()
{ {
jQuery.post("<%=path%>/sysManage/sysPopedomManage!queryInfoForAjax.do", jQuery.post("<%=path%>/sysManage/sysPopedomManage!queryInfoForAjax.do",
{"ajaxProperties":ajaxProperties,"ajaxTableName":ajaxTableName,"ajaxType":ajaxType,"ajaxValue":ajaxValue},function(data) {"ajaxProperties":ajaxProperties,"ajaxTableName":ajaxTableName,"ajaxType":ajaxType,"ajaxValue":ajaxValue},function(data)
{ {
var lianxiangList = data.split(","); var lianxiangList = data.split(",");
jQuery("#"+id).suggest(lianxiangList,{hot_list:lianxiangList,attachObject:"#"+returnDiv}); jQuery("#"+id).suggest(lianxiangList,{hot_list:lianxiangList,attachObject:"#"+returnDiv});
}); });
} }
</script> </script>
</head> </head>
<body> <body>
<div class="middle_list"> <div class="middle_list">
<!--中间部分右边开始--> <!--中间部分右边开始-->
<form name=form1 id="frmArticleType" <form name=form1 id="frmArticleType"
action="<c:url value='sysPopedomManage!queryDeptInfo.do'/>" action="<c:url value='sysPopedomManage!queryDeptInfo.do'/>"
method="post"> method="post">
<input type="hidden" name="position" value="${position }" /> <input type="hidden" name="position" value="${position }" />
<div class="box_1"> <div class="box_1">
<label class="divTopText"><font class="selectText">i18n_deptil.text.deptname_n81i</font> <label class="divTopText"><font class="selectText">i18n_deptil.text.deptname_n81i</font>
<input id="deptname" <input id="deptname"
onkeyup="lianxiangkeyup('deptname','TableDepartment','String','deptname','suggest1',this.value);" onkeyup="lianxiangkeyup('deptname','TableDepartment','String','deptname','suggest1',this.value);"
name="deptname" title="i18n_deptil.message.deptname_n81i" value="${deptname}"/> name="deptname" title="i18n_deptil.message.deptname_n81i" value="${deptname}"/>
<div id='suggest1' class="ac_results"></div></label> <div id='suggest1' class="ac_results"></div></label>
<img src="<c:url value='/images/button_chaxun.png'/>" <img src="<c:url value='/images/button_chaxun.png'/>"
class="img_middle" onclick="javascript:qry();" /> class="img_middle" onclick="javascript:qry();" />
</div> </div>
<div class="box_2"> <div class="box_2">
<button class=btn3_mouseout <button class=btn3_mouseout
onmouseover="this.className='btn3_mouseover'" onmouseover="this.className='btn3_mouseover'"
onmouseout="this.className='btn3_mouseout'" onmouseout="this.className='btn3_mouseout'"
onmousedown="this.className='btn3_mousedown'" onmousedown="this.className='btn3_mousedown'"
onmouseup="this.className='btn3_mouseup'" onmouseup="this.className='btn3_mouseup'"
onclick="javascript:addRecord();"> onclick="javascript:addRecord();">
i18n_deptil.button.add_n81i i18n_deptil.button.add_n81i
</button> </button>
</div> </div>
<table border="0" cellpadding="0" cellspacing="0" class="table"> <table border="0" cellpadding="0" cellspacing="0" class="table">
<tr> <tr>
<td class="color_top" width="4%"> <td class="color_top" width="4%">
i18n_deptil.text.index_n81i i18n_deptil.text.index_n81i
</td> </td>
<td class="color_top" width="15%"> <td class="color_top" width="15%">
i18n_deptil.text.deptname_n81i i18n_deptil.text.deptname_n81i
</td> </td>
<td class="color_top" width="15%"> <td class="color_top" width="15%">
i18n_deptil.text.deptLevel_n81i i18n_deptil.text.deptLevel_n81i
</td> </td>
<td class="color_8" width="6%"> <td class="color_8" width="6%">
i18n_deptil.text.option_n81i i18n_deptil.text.option_n81i
</td> </td>
</tr> </tr>
<c:set var="index" value="${1}" /> <c:set var="index" value="${1}" />
<c:choose> <c:choose>
<c:when test="${fn:length(listDeptInfo) > 0}"> <c:when test="${fn:length(listDeptInfo) > 0}">
<c:forEach items="${listDeptInfo}" var="aui" varStatus="vs"> <c:forEach items="${listDeptInfo}" var="aui" varStatus="vs">
<c:set var="color" value="color_1" /> <c:set var="color" value="color_1" />
<c:set var="color_end" value="color_7" /> <c:set var="color_end" value="color_7" />
<c:if test="${vs.count%2!=0 }"> <c:if test="${vs.count%2!=0 }">
<c:set var="color" value="color_3" /> <c:set var="color" value="color_3" />
<c:set var="color_end" value="color_6" /> <c:set var="color_end" value="color_6" />
</c:if> </c:if>
<tr> <tr>
<td class="${color }"> <td class="${color }">
${index+(pageNo-1)*pageSize} ${index+(pageNo-1)*pageSize}
</td> </td>
<td class="${color }"> <td class="${color }">
${aui.deptname} ${aui.deptname}
</td> </td>
<td class="${color }"> <td class="${color }">
<c:if test="${aui.deptlayer==0}">i18n_deptil.message.deptlayer0_n81i </c:if> <c:if test="${aui.deptlayer==0}">i18n_deptil.message.deptlayer0_n81i </c:if>
<c:if test="${aui.deptlayer==1}">i18n_deptil.message.deptlayer1_n81i </c:if> <c:if test="${aui.deptlayer==1}">i18n_deptil.message.deptlayer1_n81i </c:if>
<c:if test="${aui.deptlayer==2}">i18n_deptil.message.deptlayer2_n81i </c:if> <c:if test="${aui.deptlayer==2}">i18n_deptil.message.deptlayer2_n81i </c:if>
</td> </td>
<td class="${color_end }"> <td class="${color_end }">
<img src="<c:url value='/images/logo_1.png'/>" class="img_middle" />&nbsp; <img src="<c:url value='/images/logo_1.png'/>" class="img_middle" />&nbsp;
<a href="javascript:updateRecord('${aui.deptid}')">i18n_deptil.text.update_n81i</a> <a href="javascript:updateRecord('${aui.deptid}')">i18n_deptil.text.update_n81i</a>
</td> </td>
</tr> </tr>
<c:set var="index" value="${index + 1}" /> <c:set var="index" value="${index + 1}" />
</c:forEach> </c:forEach>
</c:when> </c:when>
<c:otherwise> <c:otherwise>
<tr> <tr>
<td colspan="4" height="35" class="color_6" align="center"> <td colspan="4" height="35" class="color_6" align="center">
i18n_deptil.text.noRecord_n81i i18n_deptil.text.noRecord_n81i
</td> </td>
</tr> </tr>
</c:otherwise> </c:otherwise>
</c:choose> </c:choose>
</table> </table>
<c:if test="${!empty listDeptInfo}"> <c:if test="${!empty listDeptInfo}">
<jsp:include page="/common/page.jsp" /> <jsp:include page="/common/page.jsp" />
</c:if> </c:if>
<!--中间部分右边结束--> <!--中间部分右边结束-->
</form> </form>
</div> </div>
</body> </body>
</html> </html>

Some files were not shown because too many files have changed in this diff Show More