多域配置审核调整,多个maat_table进行分割
This commit is contained in:
153
src/main/webapp/WEB-INF/include/form/multiple/numInfo.jsp
Normal file
153
src/main/webapp/WEB-INF/include/form/multiple/numInfo.jsp
Normal file
@@ -0,0 +1,153 @@
|
||||
<%@ page contentType="text/html;charset=UTF-8"%>
|
||||
<%@ include file="/WEB-INF/include/taglib.jsp"%>
|
||||
<h3 class="form-section">数值<spring:message code="block_config"/><small><span class="glyphicon glyphicon-chevron-down" data-toggle="collapse" data-target=".numCfg" title="add"></span></small></h3>
|
||||
<div class="row numCfg collapse">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-3"><spring:message code="config_describe"/></label>
|
||||
<div class="col-md-6">
|
||||
<c:choose>
|
||||
<c:when test="${mainTableType eq '3' and otherTable==null}">
|
||||
<input name="numCfg[${mainTable}].cfgDesc" type="text" class="form-control" value="${_cfg.numCfg[mainTable].cfgDesc}"/>
|
||||
</c:when>
|
||||
<c:when test="${otherTable!=null and otherTable.tableType eq '3'}">
|
||||
<input name="numCfg[${otherTable.tableName}].cfgDesc" type="text" class="form-control" value="${_cfg.numCfg[otherTable.tableName].cfgDesc}"/>
|
||||
</c:when>
|
||||
</c:choose>
|
||||
</div>
|
||||
<div for="cfgDesc"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group ">
|
||||
<label class="control-label col-md-3"><font color="red">*</font><spring:message code="match_area"/></label>
|
||||
<div class="col-md-6">
|
||||
<c:choose>
|
||||
<c:when test="${mainTableType eq '3' and otherTable==null}">
|
||||
<input type="text" name="numCfg[${mainTable}].lowBounadry" value="${_cfg.numCfg[mainTable].lowBounadry}">
|
||||
</c:when>
|
||||
<c:when test="${otherTable!=null and otherTable.tableType eq '3'}">
|
||||
<input type="text" name="numCfg[${otherTable.tableName}].lowBounadry" value="${_cfg.numCfg[otherTable.tableName].lowBounadry}">
|
||||
</c:when>
|
||||
</c:choose>
|
||||
</div>
|
||||
<div for="district"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row numCfg collapse">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group ">
|
||||
<label class="control-label col-md-3"><font color="red">*</font><spring:message code="key_word"/></label>
|
||||
<div class="col-md-6">
|
||||
<c:choose>
|
||||
<c:when test="${mainTableType eq '3' and otherTable==null}">
|
||||
<input type="text" name="numCfg[${mainTable}].upBounadry" value="${_cfg.numCfg[mainTable].upBounadry}">
|
||||
</c:when>
|
||||
<c:when test="${otherTable!=null and otherTable.tableType eq '3'}">
|
||||
<input type="text" name="numCfg[${otherTable.tableName}].upBounadry" value="${_cfg.numCfg[otherTable.tableName].upBounadry}">
|
||||
</c:when>
|
||||
</c:choose>
|
||||
</div>
|
||||
<div for="keywords"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-3"><font color="red">*</font><spring:message code="expression_type"/></label>
|
||||
<div class="col-md-6">
|
||||
<c:choose>
|
||||
<c:when test="${mainTableType eq '3' and otherTable==null}">
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="numCfg[${mainTable}].exprType" value="1"
|
||||
<c:if test="${_cfg.numCfg[mainTable].exprType==1}">checked</c:if>
|
||||
><spring:message code="and"/>
|
||||
</label>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="numCfg[${mainTable}].exprType" value="0"
|
||||
<c:if test="${_cfg.numCfg[mainTable].exprType==0}">checked</c:if>
|
||||
><spring:message code="null"/>
|
||||
</label>
|
||||
</c:when>
|
||||
<c:when test="${otherTable!=null and otherTable.tableType eq '3'}">
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="numCfg[${otherTable.tableName}].exprType" value="1"
|
||||
<c:if test="${_cfg.numCfg[otherTable.tableName].exprType==1}">checked</c:if>
|
||||
><spring:message code="and"/>
|
||||
</label>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="numCfg[${otherTable.tableName}].exprType" value="0"
|
||||
<c:if test="${_cfg.numCfg[otherTable.tableName].exprType==0}">checked</c:if>
|
||||
><spring:message code="null"/>
|
||||
</label>
|
||||
</c:when>
|
||||
</c:choose>
|
||||
</div>
|
||||
<div for="isAreaEffective"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row numCfg collapse">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group ">
|
||||
<label class="control-label col-md-3"><font color="red">*</font><spring:message code="match_method"/></label>
|
||||
<div class="col-md-6">
|
||||
<c:choose>
|
||||
<c:when test="${mainTableType eq '3' and otherTable==null}">
|
||||
<select name="numCfg[${mainTable}].matchMethod" class="selectpicker select2 form-control" >
|
||||
<option value="" ><spring:message code="select"/></option>
|
||||
<option value="0" <c:if test="${_cfg.numCfg[mainTable].matchMethod==0 }">selected</c:if>><spring:message code="substring_match"></spring:message></option>
|
||||
<option value="1" <c:if test="${_cfg.numCfg[mainTable].matchMethod==1 }">selected</c:if>><spring:message code="right_match"></spring:message></option>
|
||||
<option value="2" <c:if test="${_cfg.numCfg[mainTable].matchMethod==2 }">selected</c:if>><spring:message code="left_match"></spring:message></option>
|
||||
<option value="3" <c:if test="${_cfg.numCfg[mainTable].matchMethod==3 }">selected</c:if>><spring:message code="exactly_match"></spring:message></option>
|
||||
</select>
|
||||
</c:when>
|
||||
<c:when test="${otherTable!=null and otherTable.tableType eq '3'}">
|
||||
<select name="numCfg[${otherTable.tableName}].matchMethod" class="selectpicker select2 form-control" >
|
||||
<option value="" ><spring:message code="select"/></option>
|
||||
<option value="0" <c:if test="${_cfg.numCfg[otherTable.tableName].matchMethod==0 }">selected</c:if>><spring:message code="substring_match"></spring:message></option>
|
||||
<option value="1" <c:if test="${_cfg.numCfg[otherTable.tableName].matchMethod==1 }">selected</c:if>><spring:message code="right_match"></spring:message></option>
|
||||
<option value="2" <c:if test="${_cfg.numCfg[otherTable.tableName].matchMethod==2 }">selected</c:if>><spring:message code="left_match"></spring:message></option>
|
||||
<option value="3" <c:if test="${_cfg.numCfg[otherTable.tableName].matchMethod==3 }">selected</c:if>><spring:message code="exactly_match"></spring:message></option>
|
||||
</select>
|
||||
</c:when>
|
||||
</c:choose>
|
||||
</div>
|
||||
<div for="matchMethod"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-3"><font color="red">*</font><spring:message code="whether_hexbinary"/></label>
|
||||
<div class="col-md-6">
|
||||
<c:choose>
|
||||
<c:when test="${mainTableType eq '3' and otherTable==null}">
|
||||
<select name="numCfg[${mainTable}].isHexbin" class="selectpicker select2 form-control" >
|
||||
<option value="" ><spring:message code="select"/></option>
|
||||
<option value="0" <c:if test="${_cfg.numCfg[mainTable].isHexbin==0 }">selected</c:if>><spring:message code="case_insensitive_nohex"></spring:message></option>
|
||||
<option value="1" <c:if test="${_cfg.numCfg[mainTable].isHexbin==1 }">selected</c:if>><spring:message code="hex_binary"></spring:message></option>
|
||||
<option value="2" <c:if test="${_cfg.numCfg[mainTable].isHexbin==2 }">selected</c:if>><spring:message code="case_sensitive_nohex"></spring:message></option>
|
||||
</select>
|
||||
</c:when>
|
||||
<c:when test="${otherTable!=null and otherTable.tableType eq '3'}">
|
||||
<select name="numCfg[${otherTable.tableName}].isHexbin" class="selectpicker select2 form-control" >
|
||||
<option value="" ><spring:message code="select"/></option>
|
||||
<option value="0" <c:if test="${_cfg.numCfg[otherTable.tableName].isHexbin==0 }">selected</c:if>><spring:message code="case_insensitive_nohex"></spring:message></option>
|
||||
<option value="1" <c:if test="${_cfg.numCfg[otherTable.tableName].isHexbin==1 }">selected</c:if>><spring:message code="hex_binary"></spring:message></option>
|
||||
<option value="2" <c:if test="${_cfg.numCfg[otherTable.tableName].isHexbin==2 }">selected</c:if>><spring:message code="case_sensitive_nohex"></spring:message></option>
|
||||
</select>
|
||||
</c:when>
|
||||
</c:choose>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<c:choose>
|
||||
<c:when test="${mainTableType eq '3' and otherTable==null}">
|
||||
<input name="numCfg[${mainTable}].cfgId" type="hidden" value="${_cfg.numCfg[mainTable].cfgId}"/>
|
||||
</c:when>
|
||||
<c:when test="${otherTable!=null and otherTable.tableType eq '3'}">
|
||||
<input name="numCfg[${otherTable.tableName}].cfgId" type="hidden" value="${_cfg.numCfg[otherTable.tableName].cfgId}"/>
|
||||
</c:when>
|
||||
</c:choose>
|
||||
</div>
|
||||
<!--/row-->
|
||||
@@ -60,7 +60,7 @@ $(function(){
|
||||
if(4==type){
|
||||
if(!$("input[name='"+tableName+".srcIpMask']").val()){
|
||||
$("input[name='"+tableName+".srcIpMask']").val("255.255.255.255");
|
||||
}else if($("input[name='"+tableName+"srcIpMask']").val()=="FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF"){
|
||||
}else if($("input[name='"+tableName+".srcIpMask']").val()=="FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF"){
|
||||
$("input[name='"+tableName+".srcIpMask']").val("255.255.255.255");
|
||||
}
|
||||
if(!$("input[name='"+tableName+".dstIpMask']").val()){
|
||||
@@ -169,6 +169,7 @@ $(function(){
|
||||
<%@include file="/WEB-INF/include/form/multiple/complexInfo.jsp" %>
|
||||
</c:when>
|
||||
<c:when test="${_cfg.mainTableType eq '3'}">
|
||||
<%@include file="/WEB-INF/include/form/multiple/numInfo.jsp" %>
|
||||
</c:when>
|
||||
<c:when test="${_cfg.mainTableType eq '2'}">
|
||||
<%@include file="/WEB-INF/include/form/multiple/stringInfo.jsp" %>
|
||||
@@ -183,6 +184,7 @@ $(function(){
|
||||
<%@include file="/WEB-INF/include/form/multiple/complexInfo.jsp" %>
|
||||
</c:when>
|
||||
<c:when test="${otherTable.tableType eq '3'}">
|
||||
<%@include file="/WEB-INF/include/form/multiple/numInfo.jsp" %>
|
||||
</c:when>
|
||||
<c:when test="${otherTable.tableType eq '2'}">
|
||||
<%@include file="/WEB-INF/include/form/multiple/stringInfo.jsp" %>
|
||||
|
||||
@@ -111,9 +111,7 @@
|
||||
</form:select>
|
||||
|
||||
</div>
|
||||
|
||||
<input id="intype" class="form-control input-medium" type="text" value="">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="pull-left">
|
||||
@@ -277,6 +275,9 @@
|
||||
</c:when>
|
||||
<%--数值 --%>
|
||||
<c:when test="${mainTableType eq '3'}">
|
||||
<th><spring:message code="${mainTable}"/><spring:message code="config_describe"/></th>
|
||||
<th><spring:message code="数值下界"/></th>
|
||||
<th><spring:message code="数值上界"/></th>
|
||||
</c:when>
|
||||
<%--字符串 --%>
|
||||
<c:when test="${mainTableType eq '2'}">
|
||||
@@ -308,6 +309,9 @@
|
||||
<th><spring:message code="key_word"/></th>
|
||||
</c:if>
|
||||
<c:if test="${other.tableType eq '3'}">
|
||||
<th><spring:message code="${other.tableName}"/><spring:message code="config_describe"/></th>
|
||||
<th><spring:message code="数值下界"/></th>
|
||||
<th><spring:message code="数值上界"/></th>
|
||||
</c:if>
|
||||
<c:if test="${other.tableType eq'2'}">
|
||||
<th>字符串<spring:message code="config_describe"/></th>
|
||||
@@ -360,6 +364,9 @@
|
||||
</c:when>
|
||||
<%--数值 --%>
|
||||
<c:when test="${mainTableType eq '3'}">
|
||||
<td>${bean.numCfg[mainTable].cfgDesc }</td>
|
||||
<td>${bean.numCfg[mainTable].lowBounadry}</td>
|
||||
<td>${bean.numCfg[mainTable].upBounadry }</td>
|
||||
</c:when>
|
||||
<%--字符串 --%>
|
||||
<c:when test="${mainTableType eq '2'}">
|
||||
@@ -405,8 +412,11 @@
|
||||
<c:if test="${other.tableType eq '3'}">
|
||||
<c:choose>
|
||||
<c:when test="${bean.numCfg[other.tableName]!=null}">
|
||||
<td>${bean.numCfg[other.tableName].cfgDesc }</td>
|
||||
<td>${bean.numCfg[other.tableName].lowBounadry}</td>
|
||||
<td>${bean.numCfg[other.tableName].upBounadry }</td>
|
||||
</c:when>
|
||||
<c:otherwise></c:otherwise>
|
||||
<c:otherwise><td></td><td></td><td></td></c:otherwise>
|
||||
</c:choose>
|
||||
</c:if>
|
||||
<c:if test="${other.tableType eq '2'}">
|
||||
@@ -518,7 +528,7 @@
|
||||
</c:when>
|
||||
<c:when test="${bean.isAudit eq '0'}">
|
||||
<li><a href="${ctx}/cfg/multiple/updateForm?serviceId=${bean.serviceId}&action=${bean.action}&compileId=${bean.compileId}&cfgName=${cfgName}&mainTable=${mainTable}&mainTableType=${mainTableType}" onclick="javascript:return confirm('sure?', this.href)"><spring:message code="edit"></spring:message></a></li>
|
||||
<li><a href="${ctx}/cfg/multiple/deleteCfg?serviceId=${bean.serviceId}&action=${bean.action}&compileId=${bean.compileId}&cfgName=${cfgName}" onclick="return confirm('sure?', this.href)"><spring:message code="delete"></spring:message></a></li>
|
||||
<li><a href="${ctx}/cfg/multiple/deleteCfg?serviceId=${bean.serviceId}&action=${bean.action}&compileId=${bean.compileId}&cfgName=${cfgName}&mainTable=${mainTable}&mainTableType=${mainTableType}" onclick="return confirm('sure?', this.href)"><spring:message code="delete"></spring:message></a></li>
|
||||
</c:when>
|
||||
</c:choose>
|
||||
</c:if>
|
||||
|
||||
Reference in New Issue
Block a user