This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
k18-ntcs-web-ntc/src/main/webapp/WEB-INF/views/cfg/complexCfgForm.jsp

137 lines
5.3 KiB
Plaintext
Raw Normal View History

<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/include/taglib.jsp"%>
<html>
<head>
<title></title>
<script type="text/javascript">
$(function(){
});
</script>
</head>
<c:forEach items="${regionList}" var="regionDistrict">
<c:if
test="${_cfg.functionId eq regionDistrict.functionId
and regionDistrict.regionType eq 3
and regionValue eq regionDistrict.configRegionValue}">
<!-- regionDistrict.regionType==3表示增强字符串类配置 -->
<input type="hidden" name="${cfgName}[${status.index }].cfgType" value="${regionDistrict.configRegionValue }">
<input type="hidden" name="${cfgName}[${status.index }].cfgRegionCode" value="${regionDistrict.configRegionCode }">
</c:if>
</c:forEach>
<div class="row">
<div class="pull-right">
<span class="glyphicon glyphicon-remove pull-right" title="remove"
onClick="delContent('${tabName}${status.index}','${tabName}Add');" />
</div>
</div>
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label class="control-label col-md-3"><font color="red">*</font>
<spring:message code="district" /></label>
<div class="col-md-6">
<select name="${cfgName}[${status.index }].district"
class="selectpicker show-tick form-control required">
<c:forEach items="${regionList}" var="regionDistrict">
<c:if
test="${_cfg.functionId eq regionDistrict.functionId and regionValue eq regionDistrict.configRegionValue}">
<c:forEach items="${fn:split(regionDistrict.configDistrict,',')}"
var="_district">
<option value="${_district }"
<c:if test="${complexCfg.district==_district || complexCfg.district==null}">selected</c:if>>${_district }</option>
</c:forEach>
</c:if>
</c:forEach>
</select>
</div>
<div for="${cfgName}[${status.index }].district"></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="keywords" /></label>
<div class="col-md-6">
<input class="form-control required" type="text"
name="${cfgName}[${status.index }].cfgKeywords"
value="${complexCfg.cfgKeywords}">
</div>
<div for="${cfgName}[${status.index }].cfgKeywords"></div>
</div>
</div>
</div>
<div class="row">
<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">
<label class="radio-inline"> <input type="radio"
name="${cfgName}[${status.index }].exprType" value="1"
class="required"
<c:if test="${complexCfg.exprType==1}">checked</c:if>> <spring:message
code="and" />
</label> <label class="radio-inline"> <input type="radio"
name="${cfgName}[${status.index }].exprType" value="0"
class="required"
<c:if test="${complexCfg.exprType==0 || complexCfg.exprType==null}">checked</c:if>>
<spring:message code="null" />
</label>
</div>
<div for="${cfgName}[${status.index }].exprType"></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_method" /></label>
<div class="col-md-6">
<select name="${cfgName}[${status.index }].matchMethod"
class="selectpicker select2 form-control required">
<option value=""><spring:message code="select" /></option>
<option value="0"
<c:if test="${complexCfg.matchMethod==0 || complexCfg.matchMethod==null }">selected</c:if>><spring:message
code="substring_match"></spring:message></option>
<option value="1"
<c:if test="${complexCfg.matchMethod==1 }">selected</c:if>><spring:message
code="right_match"></spring:message></option>
<option value="2"
<c:if test="${complexCfg.matchMethod==2 }">selected</c:if>><spring:message
code="left_match"></spring:message></option>
<option value="3"
<c:if test="${complexCfg.matchMethod==3 || complexCfg.matchMethod==null}">selected</c:if>><spring:message
code="exactly_match"></spring:message></option>
</select>
</div>
<div for="${cfgName}[${status.index }].matchMethod"></div>
</div>
</div>
</div>
<div class="row">
<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">
<select name="${cfgName}[${status.index }].isHexbin"
class="selectpicker select2 form-control required">
<option value=""><spring:message code="select" /></option>
<option value="0"
<c:if test="${complexCfg.isHexbin==0 || complexCfg.isHexbin==null}">selected</c:if>><spring:message
code="case_insensitive_nohex"></spring:message></option>
<option value="1"
<c:if test="${complexCfg.isHexbin==1 }">selected</c:if>><spring:message
code="hex_binary"></spring:message></option>
<option value="2"
<c:if test="${complexCfg.isHexbin==2 }">selected</c:if>><spring:message
code="case_sensitive_nohex"></spring:message></option>
</select>
</div>
<div for="${cfgName}[${status.index }].isHexbin"></div>
</div>
</div>
</div>
</html>