hbfhtForm.jsp 2.01 KB
<%@ 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>