44df221d7459259d6d223f2354998bca4431627f.svn-base
2.01 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<title>楼盘信息表管理</title>
<meta name="decorator" content="default"/>
<script type="text/javascript">
$(document).ready(function() {
$("#fileinp").change(function () {
var length = $("#fileinp")[0].files.length;
if(length<=0){
value = "请选择房屋分户图...";
}else{
value = "已选择"+length+"个文件";
}
$("#filetext").html(value);
})
});
function submitFht(){
var form = $("#searchForm");
if( $("#fileinp")[0].files.length <= 0){
alert("请上传合成后的分户图图片");
return;
}
form.attr("action","${ctx}/jy/fw/jyFw/batchUploadFhhct");
form.submit();
}
</script>
<style type="text/css">
#fileinp{
position: absolute;
left: 0;
top: 0;
visibility: hidden;
}
#btnFile{
cursor: pointer;
padding: 5px 10px;
background: #FFF;
color: #eea931;
border: solid 1px #eea931;
border-radius: 5px;
height: 31px;
width: 81px;
}
</style>
</head>
<body>
<ul class="nav nav-tabs">
<li class="active"><a href="#">合图上传</a></li>
</ul>
<label style="color: red;">${message}</label>
<form:form id="searchForm" modelAttribute="regBaseZrz" enctype="multipart/form-data" action="${ctx}/jy/fw/jyFw/uploadFht" method="post" class="breadcrumb form-search">
<div class="ul-form" style="margin: 10px 0px">
<label for="fileinp" style="line-height: 50px;">
<a id="btnFile"> 选择文件 </a><span id="filetext" style="padding-left: 10px;">请选择房屋分户图...</span>
<input type="file" multiple="multiple" id="fileinp" accept="image/*" name="fileinp">
</label>
</div>
<div class="ul-form">
<span style="padding: 5px 50px;">
<input id="btnCancel" class="btn btn-primary" type="button" value="确认" onclick="submitFht()"/>
</span>
</div>
</form:form>
<sys:message content="${message}"/>
</body>
</html>