|
|
<%@ 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+"/";
|
|
|
|
|
|
String usertype = session.getAttribute("userType")+"";
|
|
|
%>
|
|
|
<!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" />
|
|
|
<script src="<%=basePath %>static/bootstrap-4.4.1/js/bootstrap.min.js"></script>
|
|
|
|
|
|
<script>
|
|
|
function refuse(id) {
|
|
|
$('#refuseDialog input[name=id]').val(id)
|
|
|
$('#refuseDialog form').removeAttr("style").attr('action','<%=basePath%>admin/apply/pass.do')
|
|
|
}
|
|
|
</script>
|
|
|
</head>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<body class="container_12">
|
|
|
<form class="form-inline" role="form"
|
|
|
action="<%=basePath%>admin/apply/list2.do" method="post"
|
|
|
autocomplete="off">
|
|
|
<div class="form-group" style="margin-right: 10px">
|
|
|
<label for="applyname">申请人名称:</label> <input class="form-control"
|
|
|
name="applyname" type="text" placeholder="根据申请人名称搜索">
|
|
|
</div>
|
|
|
<div class="form-group" style="margin-right: 10px">
|
|
|
<button type="submit" class="btn btn-primary">查询</button>
|
|
|
</div>
|
|
|
</form>
|
|
|
<div class="box round first" style="margin:15px;">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="block">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<table id="example" class="data display datatable">
|
|
|
<thead>
|
|
|
<tr>
|
|
|
<%-- 申请人id、申请人姓名、申请社区、申请房源、申请资料--%>
|
|
|
|
|
|
<th>申请人id</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.userid}
|
|
|
<%-- ${item.hs.rooname}--%>
|
|
|
</td>
|
|
|
<td>${USERS_MAP[item.userid].username}</td>
|
|
|
<td>${item.name}</td>
|
|
|
<td>${item.cate}</td>
|
|
|
|
|
|
<td>
|
|
|
<%-- <a target="_blank" href="<%=basePath%>${item.attachfile}">--%>
|
|
|
<%-- 查看 --%>
|
|
|
<%-- </a> --%>
|
|
|
</td>
|
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
<c:if test="${item.state eq 2 }">
|
|
|
<a class="" href="<%=basePath%>admin/apply/pass.do?ret=list2&statex=5&id=${item.id}">
|
|
|
<i class="icon-pencil"></i>
|
|
|
通过
|
|
|
</a>
|
|
|
<a class="" data-toggle="modal" data-target="#refuseDialog" style="cursor:pointer" onclick="refuse(${item.id})">
|
|
|
<i class="icon-pencil"></i>
|
|
|
不通过
|
|
|
</a>
|
|
|
|
|
|
</c:if>
|
|
|
<c:if test="${item.state eq 5 }">
|
|
|
<a class="" data-toggle="modal" data-target="#refuseDialog"style="cursor:pointer" onclick="refuse(${item.id})">
|
|
|
<i class="icon-pencil"></i>
|
|
|
不通过
|
|
|
</a>
|
|
|
</c:if>
|
|
|
<c:if test="${item.state eq 6 }">
|
|
|
<a class="" href="<%=basePath%>admin/apply/pass.do?ret=list2&statex=5&id=${item.id}">
|
|
|
<i class="icon-pencil"></i>
|
|
|
通过
|
|
|
</a>
|
|
|
</c:if>
|
|
|
|
|
|
|
|
|
<a style="margin-left: 10px" class="" href="<%=basePath%>admin/apply/delete.do?ret=list2&id=${item.id}">
|
|
|
<i class="icon-pencil"></i>
|
|
|
删除
|
|
|
</a>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</td>
|
|
|
</tr>
|
|
|
|
|
|
</c:forEach>
|
|
|
|
|
|
</tbody>
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<!-- 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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<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>
|
|
|
<script>
|
|
|
$(document).ready(function(){
|
|
|
|
|
|
$(".bz").click(function(){
|
|
|
var txt = $(this).attr("txt");
|
|
|
toastr.success(txt, '提示');
|
|
|
});
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
</script>
|
|
|
<div class="modal fade" id="refuseDialog" tabindex="-1" role="dialog" aria-labelledby="refuseDialogTitle" aria-hidden="true">
|
|
|
<div class="modal-dialog " role="document">
|
|
|
<div class="modal-content">
|
|
|
<form method="post">
|
|
|
<input type="hidden" name="id"/>
|
|
|
<input type="hidden" name="ret" value="list2"/>
|
|
|
<input type="hidden" name="statex" value="6"/>
|
|
|
|
|
|
<div class="modal-header">
|
|
|
<h5 class="modal-title" id="refuseDialogTitle">不通过</h5>
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
|
<span aria-hidden="true">×</span>
|
|
|
</button>
|
|
|
</div>
|
|
|
<div class="modal-body">
|
|
|
|
|
|
|
|
|
<div class="input-group">
|
|
|
<div class="input-group-prepend">
|
|
|
<span class="input-group-text">理由</span>
|
|
|
</div>
|
|
|
<textarea class="form-control" name="content" aria-label="With textarea"></textarea>
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
<div class="modal-footer">
|
|
|
<button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
|
|
|
<button type="submit" class="btn btn-primary">提交</button>
|
|
|
</div>
|
|
|
</form>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</body>
|
|
|
|
|
|
</html>
|
|
|
|
|
|
|