ZhiYeJianKang/职业健康平台后端/target/dzzyb/webpage/modules/sys/sysFileMagForm.jsp

86 lines
3.1 KiB
Plaintext
Raw Normal View History

2025-02-20 15:25:59 +08:00
<%@ 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() {
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>
<form:form id="inputForm" modelAttribute="sysFileMag" action="${ctx}/sys/sysFileMag/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"><font color="red">*</font>文件编号:</label></td>
<td class="width-35">
<form:input path="fileCd" htmlEscape="false" maxlength="20" class="form-control required"/>
</td>
<td class="width-15 active"><label class="pull-right"><font color="red">*</font>文件名:</label></td>
<td class="width-35">
<form:input path="fileNm" htmlEscape="false" maxlength="100" class="form-control required"/>
</td>
</tr>
<tr>
<td class="width-15 active"><label class="pull-right"><font color="red">*</font>文件类型:</label></td>
<td class="width-35">
<form:select path="fileType" class="form-control required">
<form:option value="" label=""/>
<form:options items="${fns:getDictList('file_type')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
</form:select>
</td>
<td class="width-15 active"><label class="pull-right"><font color="red">*</font>文件路径:</label></td>
<td class="width-35">
<form:input path="filePath" htmlEscape="false" maxlength="100" class="form-control required"/>
</td>
</tr>
<tr>
<td class="width-15 active"><label class="pull-right">文件扩展名:</label></td>
<td class="width-35">
<form:select path="fileExt" class="form-control required">
<form:option value="" label=""/>
<form:options items="${fns:getDictList('file_ext')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
</form:select>
</td>
<td class="width-15 active"><label class="pull-right">备注信息:</label></td>
<td class="width-35">
<form:textarea path="remarks" htmlEscape="false" rows="4" maxlength="255" class="form-control "/>
</td>
</tr>
</tbody>
</table>
</form:form>
</body>
</html>