ZhiYeJianKang/职业健康平台后端/target/dzzyb/webpage/modules/sys/sysTemplateMagViewForm.jsp
2025-02-20 15:25:59 +08:00

95 lines
3.5 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/webpage/include/taglib.jsp"%>
<html>
<head>
<title>模板管理</title>
<meta name="decorator" content="default"/>
<script type="text/javascript">
var validateForm;
function doSubmit(){//回调函数,在编辑和保存动作时,供openDialog调用提交表单。
if(validateForm.form()){
$("#inputForm").submit();
return true;
}
return false;
}
$(document).ready(function() {
$("#templatePathFilePath").attr("value","${templatePathPath}");
$("#templatePathFileName").attr("value","${templatePathNm}");
$("#templatePathFileNm").attr("value","${templatePathPath}"+"${templatePathNm}");
validateForm = $("#inputForm").validate({
submitHandler: function(form){
loading('正在提交,请稍等...');
form.submit();
},
errorContainer: "#messageBox",
errorPlacement: function(error, element) {
$("#messageBox").text("输入有误,请先更正。");
if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
error.appendTo(element.parent().parent());
} else {
error.insertAfter(element);
}
}
});
});
</script>
</head>
<body>
</br>
<form:form id="inputForm" modelAttribute="sysTemplateMag" action="${ctx}/sys/sysTemplateMag/save" method="post" class="form-horizontal">
<form:hidden path="id"/>
<sys:message content="${message}"/>
<table class="table table-bordered table-condensed dataTables-example dataTable no-footer">
<tbody>
<tr>
<td class="width-15 active"><label class="pull-right">模板名称:</label></td>
<td class="width-35">
<form:input path="templateNm" htmlEscape="false" class="form-control required"/>
</td>
<td class="width-15 active"><label class="pull-right">模板类型:</label></td>
<td class="width-35">
<form:select path="templateType" class="form-control required">
<form:option value="" label=""/>
<form:options items="${fns:getDictList('template_type')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
</form:select>
</td>
</tr>
<tr>
<td class="width-15 active"><label class="pull-right">上传者:</label></td>
<td class="width-35">
<form:input path="name" htmlEscape="false" class="form-control"/>
</td>
<td class="width-15 active"><label class="pull-right">所属部门:</label></td>
<td class="width-35">
<form:input path="office" htmlEscape="false" class="form-control"/>
</td>
</tr>
<tr>
<td class="width-15 active"><label class="pull-right">电话:</label></td>
<td class="width-35">
<form:input path="phone" htmlEscape="false" class="form-control"/>
</td>
<td class="width-15 active"><label class="pull-right">备注:</label></td>
<td class="width-35">
<form:textarea path="remarks" htmlEscape="false" class="form-control"/>
</td>
</tr>
<tr>
<td class="width-15 active"><label class="pull-right">所属节点:</label></td>
<td class="width-35">
<form:input path="treeNode" htmlEscape="false" class="form-control"/>
</td>
<td class="width-15 active"><label class="pull-right">附件:</label></td>
<td class="width-85" colspan="3">
<form:hidden id="templatePath" path="templatePath" htmlEscape="false" maxlength="2000" class="form-control"/>
<sys:webuploader prefixid = "templatePath" inputwidth = "65%" inputDisabled = "" btnUpDisplay = "block" ftpfilepath="sys/sysTemplateMag/"/>
</td>
</tr>
</tbody>
</table>
</form:form>
</body>
</html>