2018-02-28 12:15:52 +08:00
|
|
|
<%@ page contentType="text/html;charset=UTF-8"%>
|
|
|
|
|
<%@ include file="/WEB-INF/include/taglib.jsp"%>
|
|
|
|
|
<html>
|
|
|
|
|
<head>
|
2018-05-25 13:25:21 +08:00
|
|
|
<title></title>
|
2018-06-04 14:31:26 +08:00
|
|
|
|
2018-02-28 12:15:52 +08:00
|
|
|
</head>
|
2018-06-06 09:57:26 +08:00
|
|
|
<%-- <c:forEach items="${regionList}" var="regionDistrict">
|
2018-05-25 13:25:21 +08:00
|
|
|
<c:if
|
2018-08-19 15:55:27 +08:00
|
|
|
test="${cfg.functionId eq regionDistrict.functionId
|
2018-05-25 13:25:21 +08:00
|
|
|
and regionDistrict.regionType eq 3
|
2018-06-06 09:57:26 +08:00
|
|
|
and regionValue eq regionDistrict.configRegionValue}"> --%>
|
2018-05-25 13:25:21 +08:00
|
|
|
<!-- regionDistrict.regionType==3表示增强字符串类配置 -->
|
2018-06-06 09:57:26 +08:00
|
|
|
<input type="hidden" name="${cfgName}.cfgType" value="${region.configRegionValue }">
|
2018-08-28 17:16:49 +08:00
|
|
|
<input type="hidden" name="${cfgName}.cfgRegionCode" serviceType="${region.configServiceType }" value="${region.configRegionCode }">
|
|
|
|
|
<input type="hidden" name="${cfgName}.configMultiKeywords" value="${region.configMultiKeywords }">
|
2018-08-21 13:38:26 +08:00
|
|
|
<input type="hidden" name="${cfgName}.configServiceType" value="${region.configServiceType }">
|
2018-08-24 19:47:32 +08:00
|
|
|
<input type="hidden" name="${cfgName}.configHex" value="${region.configHex }">
|
2018-06-06 09:57:26 +08:00
|
|
|
<%-- </c:if>
|
|
|
|
|
</c:forEach> --%>
|
2018-02-28 12:15:52 +08:00
|
|
|
|
2018-05-25 13:25:21 +08:00
|
|
|
<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>
|
2018-08-31 13:02:25 +08:00
|
|
|
<br>
|
2018-08-18 20:47:32 +08:00
|
|
|
<c:if test="${!empty region.configDistrict }">
|
|
|
|
|
<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}.district"
|
|
|
|
|
class="selectpicker show-tick form-control required district" onchange="changeDistrict($(this))">
|
|
|
|
|
<c:forEach items="${fn:split(region.configDistrict,',')}"
|
|
|
|
|
var="_district">
|
|
|
|
|
<option value="${_district }"
|
2018-08-19 15:55:27 +08:00
|
|
|
<c:if test="${cfg.district==_district}">selected</c:if>>${_district }</option>
|
2018-08-18 20:47:32 +08:00
|
|
|
</c:forEach>
|
|
|
|
|
</select>
|
2018-10-19 14:34:34 +08:00
|
|
|
<input type="hidden" name="${cfgName}.districtShowName" maxlength="64" placeholder="<spring:message code='please_input'/> <spring:message code='custom_region'/>" class="otherValue form-control invisibleChar" value="${cfg.district}"/>
|
2018-08-18 20:47:32 +08:00
|
|
|
</div>
|
2018-10-17 10:05:56 +08:00
|
|
|
<div for="${cfgName}.districtShowName"></div>
|
2018-08-18 20:47:32 +08:00
|
|
|
<div for="${cfgName}.district"></div>
|
2018-05-25 13:25:21 +08:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2018-08-18 20:47:32 +08:00
|
|
|
</c:if>
|
|
|
|
|
<div class="row">
|
2018-08-19 18:00:08 +08:00
|
|
|
<c:if test="${isP2pHashCfg}">
|
|
|
|
|
<div class="col-md-6">
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="control-label col-md-3"><spring:message code="p2p_hash_type"/></label>
|
|
|
|
|
<div class="col-md-6">
|
|
|
|
|
<select name="userRegion2" class="selectpicker show-tick form-control">
|
|
|
|
|
<option value=""><spring:message code="select"/></option>
|
|
|
|
|
<c:forEach items="${fns:getDictList('P2P_HASH_TYPE')}" var="hashType">
|
|
|
|
|
<option value="${hashType.itemCode}" <c:if test="${cfg.userRegion1==hashType.itemCode}">selected</c:if> ><spring:message code="${hashType.itemValue}"/></option>
|
|
|
|
|
</c:forEach>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
<div for="userRegion2"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</c:if>
|
2018-05-25 13:25:21 +08:00
|
|
|
<div class="col-md-6">
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="control-label col-md-3"><font color="red">*</font>
|
2018-08-29 10:50:40 +08:00
|
|
|
<c:choose>
|
|
|
|
|
<c:when test="${fn:containsIgnoreCase(region.configServiceType,'domain') }">
|
|
|
|
|
<spring:message code="domain" />
|
|
|
|
|
</c:when>
|
|
|
|
|
<c:when test="${fn:containsIgnoreCase(region.configServiceType,'url') }">
|
|
|
|
|
<spring:message code="URL" />
|
|
|
|
|
</c:when>
|
|
|
|
|
<c:otherwise>
|
|
|
|
|
<spring:message code="keywords" />
|
|
|
|
|
</c:otherwise>
|
|
|
|
|
</c:choose>
|
|
|
|
|
</label>
|
|
|
|
|
|
2018-08-18 20:47:32 +08:00
|
|
|
<!-- 此配置的关键词可以输入多个关键词 -->
|
|
|
|
|
<c:if test="${region.configMultiKeywords eq 1}">
|
|
|
|
|
<div class="col-md-6">
|
|
|
|
|
<input class="form-control required tags" type="text" id="tags_${tabName}"
|
|
|
|
|
name="${cfgName}.cfgKeywords"
|
2018-08-19 15:55:27 +08:00
|
|
|
value="${cfg.cfgKeywords}">
|
2018-08-18 20:47:32 +08:00
|
|
|
</div>
|
|
|
|
|
</c:if>
|
|
|
|
|
<!-- 此配置的关键词不允许输入多个关键词 -->
|
|
|
|
|
<c:if test="${(region.configMultiKeywords eq 0) or (empty region.configMultiKeywords)}">
|
|
|
|
|
<div class="col-md-6">
|
2018-08-23 15:21:50 +08:00
|
|
|
|
|
|
|
|
<input class="form-control required invisibleChar
|
2018-08-29 10:50:40 +08:00
|
|
|
<c:if test="${fn:containsIgnoreCase(region.configServiceType,'domain') }"> domainCheck </c:if>
|
2018-08-23 15:21:50 +08:00
|
|
|
"
|
|
|
|
|
type="text"
|
2018-08-18 20:47:32 +08:00
|
|
|
name="${cfgName}.cfgKeywords"
|
2018-08-19 15:55:27 +08:00
|
|
|
value="${cfg.cfgKeywords}">
|
2018-08-18 20:47:32 +08:00
|
|
|
</div>
|
|
|
|
|
</c:if>
|
|
|
|
|
|
2018-05-31 17:07:26 +08:00
|
|
|
<div for="${cfgName}.cfgKeywords"></div>
|
2018-05-25 13:25:21 +08:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2018-08-19 18:00:08 +08:00
|
|
|
|
2018-05-25 13:25:21 +08:00
|
|
|
</div>
|
|
|
|
|
<div class="row">
|
2018-08-18 20:47:32 +08:00
|
|
|
<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:if test="${!empty region.configExprType}">
|
2018-10-18 18:41:36 +08:00
|
|
|
<c:forEach var="exprType" items="${fn:split(region.configExprType,',')}" varStatus="stat" >
|
|
|
|
|
<c:forEach items="${fns:getDictList('EXPRESSION_TYPE')}" var="exprTypeC" >
|
2018-08-18 20:47:32 +08:00
|
|
|
<c:if test="${exprTypeC.itemCode eq exprType}">
|
|
|
|
|
<label class="radio-inline">
|
|
|
|
|
<input type="radio"
|
|
|
|
|
name="${cfgName}.exprType" value="${exprType }"
|
|
|
|
|
class="required"
|
2018-10-18 18:41:36 +08:00
|
|
|
<c:if test="${stat.index == 0 }"> checked </c:if>
|
2018-08-18 20:47:32 +08:00
|
|
|
>
|
|
|
|
|
<spring:message code="${exprTypeC.itemValue }" />
|
|
|
|
|
</label>
|
|
|
|
|
</c:if>
|
|
|
|
|
</c:forEach>
|
|
|
|
|
</c:forEach>
|
|
|
|
|
</c:if>
|
|
|
|
|
<c:if test="${empty region.configExprType}">
|
|
|
|
|
<c:forEach items="${fns:getDictList('EXPRESSION_TYPE')}" var="exprTypeC">
|
|
|
|
|
<c:if test="${exprTypeC.itemCode eq 0}">
|
|
|
|
|
<label class="radio-inline">
|
|
|
|
|
<input type="radio"
|
2018-08-19 15:55:27 +08:00
|
|
|
name="${cfgName}.exprType" value="${exprTypeC.itemCode }"
|
2018-08-18 20:47:32 +08:00
|
|
|
class="required" checked >
|
|
|
|
|
<spring:message code="${exprTypeC.itemValue }" />
|
|
|
|
|
</label>
|
|
|
|
|
</c:if>
|
|
|
|
|
</c:forEach>
|
|
|
|
|
</c:if>
|
|
|
|
|
</div>
|
|
|
|
|
<div for="${cfgName}.exprType"></div>
|
|
|
|
|
|
2018-05-25 13:25:21 +08:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2018-08-18 20:47:32 +08:00
|
|
|
|
|
|
|
|
<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}.matchMethod"
|
|
|
|
|
class="selectpicker select2 form-control required">
|
|
|
|
|
<c:if test="${!empty region.configMatchMethod}">
|
|
|
|
|
<c:forEach var="matchMethod" items="${fn:split(region.configMatchMethod,',')}">
|
|
|
|
|
<c:forEach items="${fns:getDictList('MATCH_METHOD')}" var="matchMethodC">
|
|
|
|
|
<c:if test="${matchMethodC.itemCode eq matchMethod}">
|
|
|
|
|
<option value="${matchMethodC.itemCode}"
|
2018-08-19 15:55:27 +08:00
|
|
|
<c:if test="${cfg.matchMethod eq matchMethod || (empty cfg.matchMethod && matchMethod eq 0)}">
|
2018-08-18 20:47:32 +08:00
|
|
|
selected
|
|
|
|
|
</c:if>
|
|
|
|
|
>
|
|
|
|
|
<spring:message code="${matchMethodC.itemValue}"/>
|
|
|
|
|
</option>
|
|
|
|
|
</c:if>
|
|
|
|
|
|
|
|
|
|
</c:forEach>
|
|
|
|
|
</c:forEach>
|
|
|
|
|
</c:if>
|
|
|
|
|
<c:if test="${empty region.configMatchMethod}">
|
|
|
|
|
<c:forEach items="${fns:getDictList('MATCH_METHOD')}" var="matchMethodC">
|
|
|
|
|
<c:if test="${matchMethodC.itemCode eq 0}">
|
|
|
|
|
<option value="${matchMethodC.itemCode}"
|
|
|
|
|
selected
|
|
|
|
|
>
|
|
|
|
|
<spring:message code="${matchMethodC.itemValue}"/>
|
|
|
|
|
</option>
|
|
|
|
|
</c:if>
|
|
|
|
|
|
|
|
|
|
</c:forEach>
|
|
|
|
|
</c:if>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
<div for="${cfgName}.matchMethod"></div>
|
2018-05-25 13:25:21 +08:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="row">
|
2018-08-18 20:47:32 +08:00
|
|
|
<c:if test="${!empty region.configHex}">
|
|
|
|
|
<div class="col-md-6">
|
|
|
|
|
<div class="form-group ">
|
|
|
|
|
<label class="control-label col-md-3"><font color="red">*</font><spring:message code="is_hex"/></label>
|
|
|
|
|
<div class="col-md-6">
|
2018-08-19 18:00:08 +08:00
|
|
|
<!-- isP2pHashCfg: P2PHash配置只能是十六进制字符 -->
|
2018-08-18 20:47:32 +08:00
|
|
|
<label class="radio-inline">
|
|
|
|
|
<input type="radio" name="${cfgName}.isHex" value="1" class="required"
|
|
|
|
|
><spring:message code="hex"/>
|
|
|
|
|
</label>
|
|
|
|
|
<label class="radio-inline">
|
|
|
|
|
<input type="radio" name="${cfgName}.isHex" value="0" class="required"
|
|
|
|
|
><spring:message code="not_hex"/>
|
|
|
|
|
</label>
|
|
|
|
|
</div>
|
|
|
|
|
<div for="${cfgName}.isHex"></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="is_case_insenstive"/></label>
|
|
|
|
|
<div class="col-md-6">
|
|
|
|
|
<label class="radio-inline">
|
|
|
|
|
<input type="radio" name="${cfgName}.isCaseSenstive" value="1" class="required"
|
|
|
|
|
><spring:message code="case_senstive"/>
|
|
|
|
|
</label>
|
|
|
|
|
<label class="radio-inline">
|
|
|
|
|
<input type="radio" name="${cfgName}.isCaseSenstive" value="0" class="required"
|
|
|
|
|
><spring:message code="case_insenstive"/>
|
|
|
|
|
</label>
|
|
|
|
|
</div>
|
|
|
|
|
<div for="${cfgName}.isCaseInsenstive"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</c:if>
|
|
|
|
|
<c:if test="${empty region.configHex}">
|
|
|
|
|
<div class="col-md-6">
|
|
|
|
|
<div class="form-group ">
|
|
|
|
|
<label class="control-label col-md-3"><font color="red">*</font><spring:message code="is_hex"/></label>
|
|
|
|
|
<div class="col-md-6">
|
|
|
|
|
<label class="radio-inline">
|
|
|
|
|
<input type="radio" name="${cfgName}.isHex" value="0" class="required" checked
|
|
|
|
|
><spring:message code="not_hex"/>
|
|
|
|
|
</label>
|
|
|
|
|
</div>
|
|
|
|
|
<div for="${cfgName}.isHex"></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="is_case_insenstive"/></label>
|
|
|
|
|
<div class="col-md-6">
|
|
|
|
|
<label class="radio-inline">
|
|
|
|
|
<input type="radio" name="${cfgName}.isCaseSenstive" value="0" class="required"
|
|
|
|
|
checked
|
|
|
|
|
><spring:message code="case_insenstive"/>
|
|
|
|
|
</label>
|
|
|
|
|
</div>
|
|
|
|
|
<div for="${cfgName}.isCaseInsenstive"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</c:if>
|
|
|
|
|
</div>
|
2018-08-16 15:13:18 +08:00
|
|
|
<div class="row hidden">
|
2018-05-25 13:25:21 +08:00
|
|
|
<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">
|
2018-05-31 17:07:26 +08:00
|
|
|
<select name="${cfgName}.isHexbin"
|
2018-05-25 13:25:21 +08:00
|
|
|
class="selectpicker select2 form-control required">
|
2018-08-18 20:47:32 +08:00
|
|
|
<c:if test="${!empty region.configHex}">
|
|
|
|
|
<c:forEach var="isHexbin" items="${fn:split(region.configHex,',')}">
|
|
|
|
|
<c:forEach items="${fns:getDictList('WHETHER_HEXBINARY')}" var="isHexbinC">
|
|
|
|
|
<c:if test="${isHexbinC.itemCode eq isHexbin}">
|
|
|
|
|
<option value="${isHexbinC.itemCode}"
|
2018-08-19 15:55:27 +08:00
|
|
|
<c:if test="${cfg.isHexbin eq isHexbin || (empty isHexbin && isHexbin eq 0)}">
|
2018-08-18 20:47:32 +08:00
|
|
|
selected
|
|
|
|
|
</c:if>
|
|
|
|
|
>
|
|
|
|
|
<spring:message code="${isHexbinC.itemValue}"/>
|
|
|
|
|
</option>
|
|
|
|
|
</c:if>
|
|
|
|
|
|
|
|
|
|
</c:forEach>
|
|
|
|
|
</c:forEach>
|
|
|
|
|
</c:if>
|
2018-08-19 15:55:27 +08:00
|
|
|
<c:if test="${empty region.configHex}">
|
2018-08-18 20:47:32 +08:00
|
|
|
|
|
|
|
|
<c:forEach items="${fns:getDictList('WHETHER_HEXBINARY')}" var="isHexbinC">
|
|
|
|
|
<c:if test="${isHexbinC.itemCode eq 0}">
|
|
|
|
|
<option value="${isHexbinC.itemCode}" selected >
|
|
|
|
|
<spring:message code="${isHexbinC.itemValue}"/>
|
|
|
|
|
</option>
|
|
|
|
|
</c:if>
|
|
|
|
|
</c:forEach>
|
|
|
|
|
|
|
|
|
|
</c:if>
|
2018-05-25 13:25:21 +08:00
|
|
|
</select>
|
|
|
|
|
</div>
|
2018-05-31 17:07:26 +08:00
|
|
|
<div for="${cfgName}.isHexbin"></div>
|
2018-02-28 12:15:52 +08:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2018-06-04 14:31:26 +08:00
|
|
|
</html>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
function changeDistrict(obj){
|
|
|
|
|
if("others"==obj.val()){
|
|
|
|
|
obj.parent().siblings(".otherValue").prop("type","text");
|
2018-08-01 09:32:20 +08:00
|
|
|
}else{
|
|
|
|
|
obj.parent().siblings(".otherValue").prop("type","hidden");
|
2018-06-04 14:31:26 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|