|
|
|
|
<%@ page language="java" pageEncoding="UTF-8"%>
|
|
|
|
|
|
|
|
|
|
<%@ taglib uri="/struts-tags" prefix="s"%>
|
|
|
|
|
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
|
|
|
|
|
<%
|
|
|
|
|
String path = request.getContextPath();
|
|
|
|
|
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
|
|
|
|
%>
|
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html lang="en">
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
|
<title>公共租赁住房租赁管理系统</title>
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
|
|
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
|
|
|
|
|
|
|
|
<!-- App favicon -->
|
|
|
|
|
<link rel="shortcut icon" href="<%=basePath %>static/assets/images/favicon.ico">
|
|
|
|
|
|
|
|
|
|
<!-- plugins -->
|
|
|
|
|
<link href="<%=basePath %>static/assets/libs/flatpickr/flatpickr.min.css" rel="stylesheet" type="text/css" />
|
|
|
|
|
|
|
|
|
|
<!-- App css -->
|
|
|
|
|
<link href="<%=basePath %>static/assets/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
|
|
|
|
|
<link href="<%=basePath %>static/assets/css/icons.min.css" rel="stylesheet" type="text/css" />
|
|
|
|
|
<link href="<%=basePath %>static/assets/css/app.min.css" rel="stylesheet" type="text/css" />
|
|
|
|
|
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<body class="container_12">
|
|
|
|
|
<div class="box round first" style="margin:15px;">
|
|
|
|
|
|
|
|
|
|
<h2>更新数据</h2>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="block">
|
|
|
|
|
<form method="POST" action="<%=basePath%>admin/house/updatehouse.do" enctype="multipart/form-data">
|
|
|
|
|
|
|
|
|
|
<table class="form">
|
|
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
|
|
<td class="col1">
|
|
|
|
|
|
|
|
|
|
<label>
|
|
|
|
|
|
|
|
|
|
房源名称</label>
|
|
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td class="col3">
|
|
|
|
|
<input name="id" value="${model.id}" type="hidden"/>
|
|
|
|
|
<input name="num" value="1" type="hidden"/>
|
|
|
|
|
<input name="rooname" required value="${model.rooname}" type="text" class="medium" id="grumble">
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
|
|
<td class="col1">
|
|
|
|
|
|
|
|
|
|
<label>
|
|
|
|
|
|
|
|
|
|
房源大小</label>
|
|
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td class="col3">
|
|
|
|
|
|
|
|
|
|
<input name="size" required value="${model.size}" type="text" class="medium" id="grumble">
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<!-- 添加状态 strat -->
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
|
|
<td class="col1">
|
|
|
|
|
|
|
|
|
|
<label>
|
|
|
|
|
|
|
|
|
|
状态</label>
|
|
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td class="col3">
|
|
|
|
|
|
|
|
|
|
<select name="state" class="form-control">
|
|
|
|
|
<c:if test="${model.state==1 }">
|
|
|
|
|
<option value="1" selected="selected">闲置</option>
|
|
|
|
|
<option value="2">使用中</option>
|
|
|
|
|
</c:if>
|
|
|
|
|
<c:if test="${model.state==2 }">
|
|
|
|
|
<option value="1">闲置</option>
|
|
|
|
|
<option value="2" selected="selected">使用中</option>
|
|
|
|
|
</c:if>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
<!-- 添加状态 end -->
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
|
|
<td class="col1">
|
|
|
|
|
|
|
|
|
|
<label>
|
|
|
|
|
|
|
|
|
|
价格</label>
|
|
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td class="col3">
|
|
|
|
|
|
|
|
|
|
<input name="price" required value="${model.price}" type="text" class="medium" id="grumble">
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
|
|
<td class="col1">
|
|
|
|
|
|
|
|
|
|
<label>
|
|
|
|
|
|
|
|
|
|
详细地址</label>
|
|
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td class="col3">
|
|
|
|
|
|
|
|
|
|
<input name="address" required value="${model.address}" type="text" class="medium" id="grumble">
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
|
|
<td class="col1">
|
|
|
|
|
|
|
|
|
|
<label>
|
|
|
|
|
|
|
|
|
|
地址经纬度</label>
|
|
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td class="col3">
|
|
|
|
|
|
|
|
|
|
<input style="display:inline-block;width:45%;" name="lat" required value="${model.lat}" type="text" class="medium" id="lat">
|
|
|
|
|
<input style="display:inline-block;width:45%;" name="lng" required value="${model.lng}" type="text" class="medium" id="lng">
|
|
|
|
|
<div style="position:absolute;right:0px;top:0px; width:44%;width:800px;height:450px;" id="allmap"></div>
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
|
|
<td class="col1">
|
|
|
|
|
|
|
|
|
|
<label>
|
|
|
|
|
|
|
|
|
|
房源类型</label>
|
|
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td class="col3">
|
|
|
|
|
|
|
|
|
|
<input name="cate" required value="${model.cate}" type="text" class="medium" id="grumble">
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
|
|
<td class="col1">
|
|
|
|
|
|
|
|
|
|
<label>
|
|
|
|
|
|
|
|
|
|
图片</label>
|
|
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td class="col2">
|
|
|
|
|
<a href="<%=basePath%>${model.thunb}" target="_blank">
|
|
|
|
|
查看
|
|
|
|
|
</a>
|
|
|
|
|
<br/>
|
|
|
|
|
<input name="thunb" required value="${model.thunb}" type="text" id="attachfile">
|
|
|
|
|
<a href="javascript:;" class="uploadImg btn btn-default">点击上传</a>
|
|
|
|
|
</td>
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
|
|
<label>
|
|
|
|
|
|
|
|
|
|
简介</label>
|
|
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
<textarea name="description" required style="width:550px;height:80px;">
|
|
|
|
|
${model.description}</textarea>
|
|
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
|
|
<label>
|
|
|
|
|
|
|
|
|
|
详细描述</label>
|
|
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
<textarea name="content" required style="width:550px;height:80px;">
|
|
|
|
|
${model.content}</textarea>
|
|
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
<td></td>
|
|
|
|
|
<td colspan="">
|
|
|
|
|
<button type="submit" class="btn btn-blue">提交数据</button>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
</tbody></table>
|
|
|
|
|
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</body><script src="<%=basePath%>static/window.js"></script>
|
|
|
|
|
<script src="<%=basePath %>static/kindeditor-4.1.10/kindeditor-min.js"></script>
|
|
|
|
|
<script>
|
|
|
|
|
KindEditor.ready(function (K) {
|
|
|
|
|
editor = K.create('textarea[name="content"]', {
|
|
|
|
|
uploadJson: '<%=basePath %>resource/js/kindeditor-4.1.10/php/upload_json.php',
|
|
|
|
|
fileManagerJson: '<%=basePath %>resource/js/kindeditor-4.1.10/php/file_manager_json.php',
|
|
|
|
|
allowFileManager: true,
|
|
|
|
|
items : ['source',
|
|
|
|
|
'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
|
|
|
|
|
'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
|
|
|
|
|
'insertunorderedlist', '|', 'emoticons', 'image', 'link','fullscreen'],
|
|
|
|
|
afterBlur: function () {
|
|
|
|
|
this.sync();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=09f8b1d5821c8eeafb03b9bca378efd6 "></script>
|
|
|
|
|
|
|
|
|
|
<!-- Vendor js -->
|
|
|
|
|
<script src="<%=basePath %>static/assets/js/vendor.min.js"></script>
|
|
|
|
|
|
|
|
|
|
<!-- optional plugins -->
|
|
|
|
|
<script src="<%=basePath %>static/assets/libs/moment/moment.min.js"></script>
|
|
|
|
|
<script src="<%=basePath %>static/assets/libs/apexcharts/apexcharts.min.js"></script>
|
|
|
|
|
<script src="<%=basePath %>static/assets/libs/flatpickr/flatpickr.min.js"></script>
|
|
|
|
|
|
|
|
|
|
<!-- page js -->
|
|
|
|
|
<script src="<%=basePath %>static/assets/js/pages/dashboard.init.js"></script>
|
|
|
|
|
|
|
|
|
|
<!-- App js -->
|
|
|
|
|
<script src="<%=basePath %>static/assets/js/app.min.js"></script>
|
|
|
|
|
<script src="<%=basePath %>static/js.js"></script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
// 百度地图API功能
|
|
|
|
|
var map = new BMap.Map("allmap");
|
|
|
|
|
map.centerAndZoom("重庆",12);
|
|
|
|
|
//单击获取点击的经纬度
|
|
|
|
|
map.addEventListener("click",function(e){
|
|
|
|
|
//alert(e.point.lng + "," + e.point.lat);
|
|
|
|
|
$("#lat").val(e.point.lat);
|
|
|
|
|
$("#lng").val(e.point.lng);
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
<script>
|
|
|
|
|
$().ready(function(){
|
|
|
|
|
$(".uploadImg").click(function(){
|
|
|
|
|
openWindow("<%=basePath%>upload.jsp");
|
|
|
|
|
});
|
|
|
|
|
$("#thumb").on("input",function(){
|
|
|
|
|
$(".oldImg").attr("src","<%=basePath%>"+$("#thumb").val());
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<link href="<%=basePath %>static/toastr-master/toastr.min.css" rel="stylesheet" type="text/css" />
|
|
|
|
|
<script src="<%=basePath %>static/toastr-master/toastr.min.js"></script>
|
|
|
|
|
<script>
|
|
|
|
|
<c:if test="${!empty state }">
|
|
|
|
|
toastr.${state}('${message}', '提示');
|
|
|
|
|
setTimeout(function(){
|
|
|
|
|
window.location.href = "<%=basePath%>${url}";
|
|
|
|
|
},1500)
|
|
|
|
|
</c:if>
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
</html>
|
|
|
|
|
|
|
|
|
|
|