2018-02-27 15:31:30 +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-04-09 16:38:45 +08:00
|
|
|
switchIpType($("select[name$='ipType']"));
|
|
|
|
|
areaControlInit();
|
|
|
|
|
$("input[name='isAreaEffective']").on('change',function(){
|
|
|
|
|
var val=$(this).val();
|
|
|
|
|
if(val==1){
|
|
|
|
|
$(".areaType").removeClass("hidden");
|
|
|
|
|
if($("input[name='areaType']:checked").val()==1){//areaISP
|
|
|
|
|
$("#areaIsp").removeClass("hidden");
|
|
|
|
|
}else if($("input[name='areaType']:checked").val()==0){//areaIp
|
|
|
|
|
$("#areaIp").removeClass("hidden");
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|
$(".areaType").addClass("hidden");
|
|
|
|
|
$("#areaIp").addClass("hidden");
|
|
|
|
|
$("#areaIsp").addClass("hidden");
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
$("input[name='areaType']").on('change',function(){
|
|
|
|
|
var val=$(this).val();
|
|
|
|
|
if($(this).is(":visible")){
|
|
|
|
|
if(val==0){
|
|
|
|
|
$("#areaIp").removeClass("hidden");
|
|
|
|
|
$("#areaIsp").addClass("hidden");
|
|
|
|
|
}else{
|
|
|
|
|
$("#areaIsp").removeClass("hidden");
|
|
|
|
|
$("#areaIp").addClass("hidden");
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|
$("#areaIsp").addClass("hidden");
|
|
|
|
|
$("#areaIp").addClass("hidden");
|
|
|
|
|
}
|
|
|
|
|
});
|
2018-03-13 10:03:01 +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-04-09 16:38:45 +08:00
|
|
|
$("select[name$='ipType']").on("change",function(){
|
|
|
|
|
switchIpType($(this));
|
|
|
|
|
});
|
2018-02-27 15:31:30 +08:00
|
|
|
$("#cancel").on("click",function(){
|
|
|
|
|
window.history.back();
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
|
|
|
|
|
<div class="page-content">
|
|
|
|
|
|
|
|
|
|
<h3 class="page-title">
|
|
|
|
|
<spring:message code="${cfgName}"></spring:message>
|
|
|
|
|
</h3>
|
|
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-md-12">
|
|
|
|
|
<div class="portlet box blue">
|
|
|
|
|
<div class="portlet-title">
|
|
|
|
|
<div class="caption">
|
2018-03-05 16:30:16 +08:00
|
|
|
<i class="fa fa-gift"></i>
|
2018-03-07 13:36:16 +08:00
|
|
|
<c:if test="${empty _cfg.cfgId}"><spring:message code="add"></spring:message></c:if>
|
2018-03-05 16:30:16 +08:00
|
|
|
<c:if test="${not empty _cfg.cfgId}"><spring:message code="edit"></spring:message></c:if>
|
2018-02-27 15:31:30 +08:00
|
|
|
</div>
|
|
|
|
|
<!-- <div class="tools">
|
|
|
|
|
<a href="javascript:;" class="collapse" data-original-title="" title=""> </a>
|
|
|
|
|
<a href="#portlet-config" data-toggle="modal" class="config" data-original-title="" title=""> </a>
|
|
|
|
|
<a href="javascript:;" class="reload" data-original-title="" title=""> </a>
|
|
|
|
|
<a href="javascript:;" class="remove" data-original-title="" title=""> </a>
|
|
|
|
|
</div> -->
|
|
|
|
|
</div>
|
|
|
|
|
<div class="portlet-body form">
|
|
|
|
|
<!-- BEGIN FORM-->
|
2018-04-09 16:38:45 +08:00
|
|
|
<form id="cfgFrom" action="${ctx}/cfg/string/saveOrUpdateCfg" method="post" class="form-horizontal">
|
2018-02-27 15:31:30 +08:00
|
|
|
<div class="form-body">
|
|
|
|
|
<%@include file="/WEB-INF/include/form/stringInfo.jsp" %>
|
|
|
|
|
<c:if test="${not empty _cfg.cfgId}">
|
|
|
|
|
<input type="hidden" name="cfgId" value="${_cfg.cfgId}">
|
|
|
|
|
</c:if>
|
2018-04-08 16:15:06 +08:00
|
|
|
<c:if test="${not empty _cfg.compileId}">
|
|
|
|
|
<input type="hidden" name="compileId" value="${_cfg.compileId}">
|
|
|
|
|
</c:if>
|
2018-03-07 17:47:30 +08:00
|
|
|
<input id="audit" name="audit" type="hidden" value="${audit}"/>
|
2018-03-19 15:54:15 +08:00
|
|
|
<input id="action" name="action" type="hidden" value="${action}"/>
|
2018-02-27 15:31:30 +08:00
|
|
|
<input type="hidden" name="tableName" value="${_cfg.tableName}">
|
|
|
|
|
<input type="hidden" name="serviceId" value="${_cfg.serviceId}">
|
|
|
|
|
<input type="hidden" name="cfgName" value="${cfgName}">
|
2018-03-19 15:54:15 +08:00
|
|
|
<c:choose>
|
|
|
|
|
<c:when test="${action!=5 and action!=8}">
|
2018-04-08 16:15:06 +08:00
|
|
|
<%@include file="/WEB-INF/include/form/areaInfo.jsp" %>
|
2018-03-19 15:54:15 +08:00
|
|
|
<%@include file="/WEB-INF/include/form/basicInfo.jsp" %>
|
|
|
|
|
</c:when>
|
|
|
|
|
<c:otherwise>
|
|
|
|
|
<input type="hidden" name=requestId value="0">
|
|
|
|
|
</c:otherwise>
|
|
|
|
|
</c:choose>
|
2018-02-27 15:31:30 +08:00
|
|
|
</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">
|
2018-03-07 13:36:16 +08:00
|
|
|
<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>
|
2018-02-27 15:31:30 +08:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-md-6"> </div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
<!-- END FORM-->
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|