fileUpload.jsp
2.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<%--
Created by IntelliJ IDEA.
User: kangmor
Date: 2015/12/1
Time: 23:56
--%>
<%@ include file="/common/taglibs.jsp" %>
<div class="modal fade" id="basic" tabindex="-1" role="basic" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
<h4 class="modal-title"><fmt:message key="file.title"/></h4>
</div>
<c:if test="${not empty fileUpload}">
<c:set var="fileType" value="${fileUpload.type}"/>
<c:set var="fileParam" value="${fileUpload.param}"/>
</c:if>
<div class="modal-body">
<form method="post" action="${ctx}/storage/fileupload?type=${fileType}¶m=${fileParam}"
enctype="multipart/form-data"
onsubmit="return validateFileUpload(this)" id="uploadForm" cssClass="well">
<%--<spring:bind path="fileUpload.name">--%>
<%--<spring:bind path="fileUpload.file">--%>
<div class="form-group${(not empty status.errorMessage) ? ' has-error' : ''}">
<%--</spring:bind>--%>
<label class="control-label col-md-2"><fmt:message key="uploadForm.file"/></label>
<input type="file" name="file" id="file" hidden/>
</div>
</div>
<div class="modal-footer">
<button type="submit" name="upload" class="btn btn-primary" onclick="bCancel=false">
<i class="icon-upload icon-white"></i> <fmt:message key="button.upload"/>
</button>
<%--<button type="submit" name="cancel" class="btn btn-default" onclick="bCancel=true">--%>
<%--<i class="icon-remove"></i> <fmt:message key="button.cancel"/>--%>
<%--</button>--%>
</div>
</form>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal-dialog -->
</div>