grgw_old_java/heatsupply2/WebContent/webpage/modules/act/actProcessDeploy.jsp

75 lines
2.3 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(){
top.$.jBox.tip.mess = null;
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>
<sys:message content="${message}"/>
<div style="width:100%;height:100%;">
<form id="inputForm" action="${ctx}/act/process/deploy" method="post" enctype="multipart/form-data" class="form-horizontal">
<table class="table table-bordered table-condensed dataTables-example dataTable no-footer">
<tbody>
<tr>
<td class=" active" style="width: 70px"><label class="pull-right" style="width: 70px"><font color="red">*</font>流程分类:</label></td>
<td class="">
<select id="category" name="category" class="required form-control">
<c:forEach items="${fns:getDictList('act_category')}" var="dict">
<option value="${dict.value}">${dict.label}</option>
</c:forEach>
</select>
</td>
</tr>
<tr>
<td class=" active"><label class="pull-right"><font color="red">*</font>流程文件:</label></td>
<td class="">
<input type="file" id="file" name="file" style="height: 200%" class="required form-control"/>
<span class="help-inline">支持文件格式zip、bar、bpmn、bpmn20.xml</span>
</td>
</tr>
</tbody>
</table>
<!-- <div class="control-group"> -->
<!-- <label class="control-label"></label> -->
<!-- <div class="controls"> -->
<!-- </div> -->
<!-- </div> -->
</form>
</div>
</body>
</html>