file\on\off增加国际化
国际化修改CA为CN 增加音频/视频标志开关功能
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
<html>
|
||||
<head>
|
||||
<title><spring:message code="${cfgName}"></spring:message></title>
|
||||
<link href="${pageContext.request.contextPath}/static/global/plugins/bootstrap-switch/css/bootstrap-switch.css" rel="stylesheet" type="text/css" />
|
||||
<script src="${pageContext.request.contextPath}/static/global/plugins/bootstrap-switch/js/bootstrap-switch.min.js" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
switchIpType($("select[name$='ipType']"));
|
||||
|
||||
115
src/main/webapp/WEB-INF/views/cfg/av/switchSignSample.jsp
Normal file
115
src/main/webapp/WEB-INF/views/cfg/av/switchSignSample.jsp
Normal file
@@ -0,0 +1,115 @@
|
||||
<%@ 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(){
|
||||
$("input[type=checkbox]").bootstrapSwitch();
|
||||
$("input[type=checkbox]").each(function(){
|
||||
$(this).on("switchChange.bootstrapSwitch",function(event,state){
|
||||
if(state){
|
||||
$(this).val(1);
|
||||
}else{
|
||||
$(this).val(0);
|
||||
}
|
||||
})
|
||||
});
|
||||
$("#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",
|
||||
});
|
||||
$("#cancel").on("click",function(){
|
||||
window.history.back();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="page-content">
|
||||
<h3 class="page-title">
|
||||
<c:forEach items="${regionList}" var="region">
|
||||
<c:if test="${_cfg.functionId eq region.functionId}">
|
||||
<spring:message code="${region.configRegionValue}"></spring:message>
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
</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>
|
||||
<sys:message content="${message}" />
|
||||
<div class="portlet-body form">
|
||||
<!-- BEGIN FORM-->
|
||||
<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">
|
||||
<label class="control-label col-md-3">
|
||||
<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>
|
||||
</label>
|
||||
<input type="hidden" name="cfgs[${status.index }].cfgId" value="${_cfg.cfgId }">
|
||||
<input type="hidden" name="cfgs[${status.index }].serviceId" value="${_cfg.serviceId }">
|
||||
<input type="hidden" name="cfgs[${status.index }].compileId" value="${_cfg.compileId}">
|
||||
<input type="hidden" name="cfgs[${status.index }].isValidOld" value="${_cfg.isValid}">
|
||||
<div class="col-md-6">
|
||||
<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>
|
||||
</div>
|
||||
</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>
|
||||
@@ -5,7 +5,7 @@
|
||||
<title><spring:message code="${cfgName}"></spring:message></title>
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
$("#fileInfo").on('click',function(){
|
||||
$("#uploadSrc,#fileInfo").on('click',function(){
|
||||
$("#file").trigger("click");
|
||||
});
|
||||
$("#file").on('change',function(){
|
||||
|
||||
Reference in New Issue
Block a user