|
|
|
|
<%@ 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">
|
|
|
|
|
<form class="form-inline" role="form"
|
|
|
|
|
action="<%=basePath%>admin/house/list.do" method="post"
|
|
|
|
|
autocomplete="off">
|
|
|
|
|
<div class="form-group" style="margin-right: 10px">
|
|
|
|
|
<label for="housename">房源名称:</label> <input class="form-control"
|
|
|
|
|
name="housename" type="text" placeholder="根据房源名称搜索">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group" style="margin-right: 10px">
|
|
|
|
|
<button type="submit" class="btn btn-primary">查询</button>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<body class="container_12">
|
|
|
|
|
<div class="box round first" style="margin:15px;">
|
|
|
|
|
|
|
|
|
|
<h2>数据列表</h2>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="block">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<a class="btn btn-primary" href="<%=basePath%>admin/house/add.do">新增房源</a>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<table id="example" class="data display datatable">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>房源名称</th>
|
|
|
|
|
<th>发布人</th>
|
|
|
|
|
<th>大小</th>
|
|
|
|
|
<th>位置</th> <th>价格</th>
|
|
|
|
|
|
|
|
|
|
<th>房源类型</th>
|
|
|
|
|
<th>状态</th>
|
|
|
|
|
<th style="width: 150px;">操作</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
|
|
|
|
|
<c:forEach items="${list}" var="item">
|
|
|
|
|
|
|
|
|
|
<tr class="even gradeA">
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
|
|
${item.rooname}</td> <td>${item.username}</td>
|
|
|
|
|
<td>${item.size}</td>
|
|
|
|
|
<td>${item.address}</td>
|
|
|
|
|
<td>${item.price}</td>
|
|
|
|
|
|
|
|
|
|
<td>${item.cate}</td>
|
|
|
|
|
<td>
|
|
|
|
|
<c:if test="${item.state==1 }">闲置</c:if>
|
|
|
|
|
<c:if test="${item.state==2 }">使用中</c:if>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a href="<%=basePath%>admin/house/edit.do?id=${item.id}">
|
|
|
|
|
<i class="icon-pencil"></i>
|
|
|
|
|
编辑
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a class="deletemodal" href="<%=basePath%>admin/house/delete.do?ret=mylist&id=${item.id}"><i class="icon-remove"></i>
|
|
|
|
|
移除
|
|
|
|
|
</a>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
</c:forEach>
|
|
|
|
|
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</body>
|
|
|
|
|
<!-- 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>
|
|
|
|
|
$(document).ready(function(){
|
|
|
|
|
loadRegion("province",1);
|
|
|
|
|
loadRegion("city",${user.pid});
|
|
|
|
|
loadRegion("area",${user.cid});
|
|
|
|
|
$("#province,#city,#area").change(function(){
|
|
|
|
|
sel = $(this).next("select").attr("id");
|
|
|
|
|
loadRegion(sel,$(this).val());
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
function loadRegion(sel,parentId)
|
|
|
|
|
{
|
|
|
|
|
//sel=="city"?$("#area").html(""):false
|
|
|
|
|
$("#"+sel).html("");
|
|
|
|
|
$.get("<%=basePath%>rg.sl?id="+parentId,function(e){
|
|
|
|
|
$("#"+sel).html(e);
|
|
|
|
|
sel=="city"?reload():false;
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
function reload()
|
|
|
|
|
{
|
|
|
|
|
sel = "area";
|
|
|
|
|
loadRegion(sel,$("#city").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>
|