2018-07-18 11:23:46 +08:00
|
|
|
<%@ page contentType="text/html;charset=UTF-8"%>
|
|
|
|
|
<%@ include file="/WEB-INF/include/taglib.jsp"%>
|
|
|
|
|
<html>
|
|
|
|
|
<head>
|
|
|
|
|
<title><spring:message code="${cfgName}"></spring:message></title>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
$(function(){
|
2018-09-07 21:10:35 +08:00
|
|
|
/* $("input[type=checkbox]").bootstrapSwitch();
|
2018-07-18 11:23:46 +08:00
|
|
|
$("input[type=checkbox]").each(function(){
|
|
|
|
|
$(this).on("switchChange.bootstrapSwitch",function(event,state){
|
|
|
|
|
if(state){
|
|
|
|
|
$(this).val(1);
|
|
|
|
|
}else{
|
|
|
|
|
$(this).val(0);
|
|
|
|
|
}
|
|
|
|
|
})
|
2018-09-07 21:10:35 +08:00
|
|
|
}); */
|
|
|
|
|
if($("#oldAction").val()==1){
|
|
|
|
|
$("#level").show();
|
|
|
|
|
}else{
|
|
|
|
|
$("input[name$='level']").val("");
|
|
|
|
|
}
|
|
|
|
|
$(".action").on("change",function(){
|
|
|
|
|
$("#serviceId").val($(this).attr("serviceId"));
|
|
|
|
|
if($(".action:checked").val()==1){
|
|
|
|
|
$("#level").show();
|
|
|
|
|
}else{
|
|
|
|
|
$("#level").hide();
|
|
|
|
|
}
|
|
|
|
|
if($("#level").is(":hidden")){
|
|
|
|
|
$("input[name$='level']").val("");
|
|
|
|
|
}
|
2018-07-18 11:23:46 +08:00
|
|
|
});
|
2018-09-07 21:10:35 +08:00
|
|
|
$("#serviceId").val($(".action:checked").attr("serviceId"));
|
|
|
|
|
$("#save").click(function(){
|
|
|
|
|
if($(".action:checked").attr("id")=="actionOff"){
|
|
|
|
|
$("#isValid").val(0);
|
|
|
|
|
}
|
|
|
|
|
if($(".action:checked").attr("id")=="actionOn"){
|
|
|
|
|
$("#isValid").val(1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
})
|
2018-07-18 11:23:46 +08:00
|
|
|
$("#cfgFrom").validate({
|
|
|
|
|
errorPlacement: function(error,element){
|
|
|
|
|
$(element).parents(".form-group").find("div[for='"+element.attr("name")+"']").append(error);
|
|
|
|
|
},
|
|
|
|
|
submitHandler: function(form){
|
|
|
|
|
loading('onloading...');
|
|
|
|
|
form.submit();
|
|
|
|
|
},
|
|
|
|
|
errorContainer: "#messageBox",
|
|
|
|
|
});
|
2018-08-27 16:31:42 +08:00
|
|
|
|
2018-07-18 11:23:46 +08:00
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
|
|
|
|
|
<div class="page-content">
|
|
|
|
|
<h3 class="page-title">
|
2018-09-07 21:10:35 +08:00
|
|
|
<spring:message code="av_sample_video_porn_control"></spring:message>
|
|
|
|
|
<%-- <c:forEach items="${regionList}" var="region">
|
2018-07-18 11:23:46 +08:00
|
|
|
<c:if test="${_cfg.functionId eq region.functionId}">
|
|
|
|
|
</c:if>
|
2018-09-07 21:10:35 +08:00
|
|
|
</c:forEach> --%>
|
2018-07-18 11:23:46 +08:00
|
|
|
</h3>
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-md-12">
|
|
|
|
|
<div class="portlet box blue">
|
|
|
|
|
<div class="portlet-title">
|
|
|
|
|
<div class="caption">
|
|
|
|
|
<i class="fa fa-gift"></i>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2018-09-07 21:10:35 +08:00
|
|
|
<div class="portlet-body form ">
|
2018-07-26 10:05:10 +08:00
|
|
|
<sys:message content="${message}" />
|
2018-07-18 11:23:46 +08:00
|
|
|
<!-- BEGIN FORM-->
|
2018-09-07 21:10:35 +08:00
|
|
|
<div class="col-md-2">
|
|
|
|
|
<form id="presetFrom" action="${ctx}/ntc/av/sample/auditAvSignSample" method="get" class="form-horizontal">
|
|
|
|
|
<input type="hidden" name="functionId" value="${functionId }">
|
|
|
|
|
<input type="hidden" name="preset" value="1">
|
|
|
|
|
<div class="form-actions" style="background-color: #FFFFFF">
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-md-8">
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-md-offset-8 col-md-8">
|
|
|
|
|
<button id="preset" type="submit" class="btn-danger"><spring:message code="preset"/></button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
2018-07-18 11:23:46 +08:00
|
|
|
<form id="cfgFrom" action="${ctx}/ntc/av/sample/auditAvSignSample" method="post" class="form-horizontal">
|
|
|
|
|
<input type="hidden" name="functionId" value="${functionId }">
|
|
|
|
|
<div class="form-body">
|
|
|
|
|
<div class="row">
|
|
|
|
|
<c:forEach items="${cfgs}" var="_cfg"
|
|
|
|
|
varStatus="status">
|
|
|
|
|
<div class="col-md-6">
|
|
|
|
|
<div class="form-group">
|
2018-09-07 21:10:35 +08:00
|
|
|
<%-- <label class="control-label col-md-3">
|
2018-07-18 11:23:46 +08:00
|
|
|
<c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict">
|
|
|
|
|
<c:if test="${dict.itemCode eq _cfg.action }">
|
|
|
|
|
<spring:message code="${dict.itemValue }"/>
|
|
|
|
|
</c:if>
|
|
|
|
|
</c:forEach>
|
2018-09-07 21:10:35 +08:00
|
|
|
</label> --%>
|
2018-07-18 11:23:46 +08:00
|
|
|
<input type="hidden" name="cfgs[${status.index }].cfgId" value="${_cfg.cfgId }">
|
2018-09-07 21:10:35 +08:00
|
|
|
<input type="hidden" id="serviceId" name="cfgs[${status.index }].serviceId" value="${_cfg.serviceId }">
|
2018-07-18 11:23:46 +08:00
|
|
|
<input type="hidden" name="cfgs[${status.index }].compileId" value="${_cfg.compileId}">
|
|
|
|
|
<input type="hidden" name="cfgs[${status.index }].isValidOld" value="${_cfg.isValid}">
|
2018-09-07 21:10:35 +08:00
|
|
|
<input type="hidden" id="oldAction" name="cfgs[${status.index }].actionOld" value="${_cfg.action}">
|
|
|
|
|
<input type="hidden" id="isValid" name="cfgs[${status.index }].isValid" value="${_cfg.isValid}">
|
|
|
|
|
<%-- <div class="col-md-6">
|
2018-07-18 11:23:46 +08:00
|
|
|
<div class="bootstrap-switch">
|
|
|
|
|
<input type="checkbox" data-on="danger"
|
|
|
|
|
data-off="primary"
|
|
|
|
|
data-on-label="<spring:message code="on"/>"
|
|
|
|
|
data-off-label="<spring:message code="off"/>"
|
|
|
|
|
name="cfgs[${status.index }].isValid"
|
|
|
|
|
value="${_cfg.isValid }"
|
|
|
|
|
<c:if test="${_cfg.isValid eq 1}">
|
|
|
|
|
checked
|
|
|
|
|
</c:if>
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
2018-09-07 21:10:35 +08:00
|
|
|
</div> --%>
|
|
|
|
|
<div class="col-md-6">
|
|
|
|
|
<c:forEach items="${serviceList}" var="service"
|
|
|
|
|
varStatus="satus">
|
|
|
|
|
<label class="">
|
|
|
|
|
<c:if test="${_cfg.functionId eq service.functionId}">
|
|
|
|
|
<input id="actionOn" type="radio" name="action"
|
|
|
|
|
serviceId="${service.serviceId }"
|
|
|
|
|
isValid="${_cfg.isValid}"
|
|
|
|
|
value="${service.action }" class="required action radio-inline radio-on"
|
|
|
|
|
<c:if test="${(_cfg.action==service.action || (_cfg.action==null && satus.index==0))&&_cfg.isValid!=0}">checked</c:if>>
|
|
|
|
|
<c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict">
|
|
|
|
|
<c:if test="${dict.itemCode eq service.action }">
|
|
|
|
|
<spring:message code="${dict.itemValue }"/>
|
|
|
|
|
</c:if>
|
|
|
|
|
</c:forEach>
|
|
|
|
|
</c:if>
|
|
|
|
|
</label>
|
|
|
|
|
</c:forEach>
|
|
|
|
|
<input id="actionOff" serviceId="${_cfg.serviceId }"
|
|
|
|
|
isValid="${_cfg.isValid}"
|
|
|
|
|
type="radio" name="action" class="radio-inline action radio-off" value="0" <c:if test="${_cfg.isValid == 0}">checked</c:if>> <spring:message code="off"/>
|
|
|
|
|
</div>
|
|
|
|
|
<div for="action"></div>
|
|
|
|
|
|
|
|
|
|
<div class="col-md-6">
|
|
|
|
|
<div id="level" class="form-group" hidden="hidden">
|
|
|
|
|
<label class="control-label col-md-3"><font color="red">*</font><spring:message code="harm_level"/></label>
|
|
|
|
|
<div class="col-md-6">
|
|
|
|
|
<input class="form-control required number" range="[0,100]" type="text" name="cfgs[${status.index }].level" value="${_cfg.level }">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div for="cfgs[${status.index }].level"></div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2018-07-18 11:23:46 +08:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</c:forEach>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-actions">
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-md-6">
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-md-offset-3 col-md-8">
|
|
|
|
|
<button id="save" type="submit" class="btn green"><spring:message code="submit"/></button>
|
|
|
|
|
<button id="cancel" type="button" class="btn default"><spring:message code="cancel"/></button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-md-6"> </div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
<!-- END FORM-->
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|