214 lines
7.8 KiB
Plaintext
214 lines
7.8 KiB
Plaintext
<%@ 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() {
|
|
$("#uploadSrc,#fileInfo").on('click', function() {
|
|
$("#file").trigger("click");
|
|
});
|
|
$("#file").on('change', function() {
|
|
$("#fileInfo").val($("#file").val());
|
|
});
|
|
$(".action").on("change", function() {
|
|
$("#serviceId").val($(this).attr("serviceId"));
|
|
});
|
|
$("#serviceId").val($(".action:checked").attr("serviceId"));
|
|
$("#cfgFrom").validate(
|
|
{
|
|
submitHandler : function(form) {
|
|
/* var srcFile = $("#srcFile").val();
|
|
var srcUrl = $("#srcUrl").val();
|
|
if((srcUrl==null||srcUrl=="") && (srcFile==null || srcFile=="")){
|
|
$("div[for='srcFile']").append("<label id='level-error' class='error' for='srcFile'><spring:message code='required'></spring:message></label>");
|
|
return false;
|
|
}else{
|
|
} */
|
|
loading('onloading...');
|
|
form.submit();
|
|
|
|
},
|
|
errorContainer : "#messageBox",
|
|
errorPlacement : function(error, element) {
|
|
$(element).parents(".form-group").find(
|
|
"div[for='" + element.attr("name") + "']")
|
|
.append(error);
|
|
},
|
|
});
|
|
});
|
|
</script>
|
|
</head>
|
|
<body>
|
|
|
|
<div class="page-content">
|
|
|
|
<h3 class="page-title">
|
|
<spring:message code="file_digest_control"></spring:message>
|
|
</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>
|
|
<c:if test="${empty _cfg.cfgId}">
|
|
<spring:message code="add"></spring:message>
|
|
</c:if>
|
|
<c:if test="${not empty _cfg.cfgId}">
|
|
<spring:message code="edit"></spring:message>
|
|
</c:if>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body form">
|
|
<!-- BEGIN FORM-->
|
|
<form id="cfgFrom"
|
|
action="${ctx}/ntc/fileTransfer/saveFileDigestCfg"
|
|
enctype="multipart/form-data" method="post"
|
|
class="form-horizontal">
|
|
<input type="hidden" name="cfgId" value="${_cfg.cfgId}">
|
|
<input type="hidden" name="compileId" value="${_cfg.compileId}">
|
|
<input type="hidden" name="functionId" value="${_cfg.functionId}">
|
|
<input type="hidden" id="serviceId" name="serviceId"
|
|
value="${_cfg.serviceId}">
|
|
<!-- 配置域类型 -->
|
|
<c:forEach items="${regionList}" var="region">
|
|
<c:if test="${_cfg.functionId eq region.functionId}">
|
|
<input type="hidden" name="cfgType"
|
|
value="${region.configRegionValue}">
|
|
<input type="hidden" name="cfgRegionCode"
|
|
value="${region.configRegionCode}">
|
|
</c:if>
|
|
</c:forEach>
|
|
<div class="form-body">
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<div class="form-group">
|
|
<label class="control-label col-md-3"><spring:message
|
|
code="config_describe" /></label>
|
|
<div class="col-md-6">
|
|
<input class="form-control" type="text" name="cfgDesc"
|
|
value="${_cfg.cfgDesc}">
|
|
</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="action" /></label>
|
|
<div class="col-md-6">
|
|
<c:forEach items="${serviceList}" var="service"
|
|
varStatus="satus">
|
|
<label class="radio-inline"> <c:if
|
|
test="${_cfg.functionId eq service.functionId}">
|
|
<input type="radio" name="action"
|
|
serviceId="${service.serviceId }"
|
|
protocolId="${service.protocolId }"
|
|
value="${service.action }" class="required action"
|
|
<c:if test="${_cfg.action==service.action || (_cfg.action==null && satus.index==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>
|
|
</div>
|
|
<div for="action"></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="file" /></label>
|
|
<div class="col-md-6">
|
|
<input id="file" name="file" type="file"
|
|
style="width: 330px; display: none" />
|
|
<div class="input-group">
|
|
<input id="fileInfo" name="fileInfo" readonly="readonly"
|
|
data-msg-required=""
|
|
placeholder="<spring:message code="select_file"/>"
|
|
class="required form-control"
|
|
style="background-color: transparent" aria-required="true"
|
|
type="text" value="${_cfg.digest }">
|
|
|
|
<div class="input-group-btn">
|
|
<a id="uploadSrc" class="btn btn-default btn-search"
|
|
href="javascript:" style=""><i class="fa fa-search"></i></a>
|
|
</div>
|
|
</div>
|
|
<input id="rawLen" name="rawLen" type="hidden"
|
|
value="${_cfg.rawLen }" />
|
|
</div>
|
|
<div for="fileInfo"></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="cfds_level" /></label>
|
|
<div class="col-md-6">
|
|
<input class="form-control required digits" type="text"
|
|
range="[1,10]" name="cfdsLevel" value="${_cfg.cfdsLevel}">
|
|
</div>
|
|
<div for="cfdsLevel"></div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<div class="form-group">
|
|
<label class="control-label col-md-3"><spring:message code="do_log" /></label>
|
|
<c:forEach items="${fns:getDictList('DO_LOG') }" var="dict">
|
|
<c:choose>
|
|
<c:when test="${dict.itemCode eq _cfg.doLog}">
|
|
<label class="radio-inline">
|
|
<input type="radio" name="doLog" checked value="${dict.itemCode}" ><spring:message code="${dict.itemValue}"/>
|
|
</label>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<label class="radio-inline">
|
|
<input type="radio" name="doLog" value="${dict.itemCode}" ><spring:message code="${dict.itemValue}"/>
|
|
</label>
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</c:forEach>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<%@include file="/WEB-INF/include/form/areaInfo.jsp"%>
|
|
<%@include file="/WEB-INF/include/form/basicInfo.jsp"%>
|
|
</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> |