home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
61.19.244.139
/
61.19.244.139.zip
/
61.19.244.139
/
2015-02-19
/
views
/
upload-files.jsp
< prev
next >
Wrap
Text File
|
2015-02-19
|
2KB
|
58 lines
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div style="width:500px;padding:20px">
<form:form class="form-horizontal well" enctype="multipart/form-data" action="uploadMultipleFile" id="frmUploadFiles" method="POST" >
<div class="control-group">
<label class="control-label" for="input02"> เลือกไฟล์ :</label>
<div class="controls">
<input id="fileupload1" type="file" name="file">
</div>
</div>
<div class="control-group">
<label class="control-label" for="input02"> เลือกไฟล์ :</label>
<div class="controls">
<input id="fileupload2" type="file" name="file">
</div>
</div>
<div class="control-group">
<label class="control-label" for="input02"> เลือกไฟล์ :</label>
<div class="controls">
<input id="fileupload3" type="file" name="file">
</div>
</div>
<%
if (request.getParameter("policyNo") != null) {
%>
<input type="hidden" name="policyNo" value="<%=request.getParameter("policyNo")%>">
<%
}
%>
<button class="btn btn-success" name="saveBtn" id="saveBtn">อัพโหลด</button>
<a class="btn" id="cancelBtn" onClick="$('#tableFrm').dialog('close'); return false;">ยกเลิก/ปิด</a>
</form:form>
<br/>
<%
if (request.getParameter("policyNo") != null) {
request.setCharacterEncoding("TIS-620");
%>
ไฟล์แนบกรมธรรม์ <%=request.getParameter("policyNo")%><br />
<c:forEach var="listValue" items="${fileMetas}">
<a href="getAttachedFile?policyNo=<%=request.getParameter("policyNo")%>&fileName=${listValue.fileName}" target="_blank"> ${listValue.fileName} </a><br />
</c:forEach>
<%
}
%>
<table><tr><td>
<tr></table>
</div>