master
pan 4 years ago
commit f23586a50d
  1. 103
      .gitignore
  2. 3
      WebRoot/META-INF/MANIFEST.MF
  3. 64
      WebRoot/WEB-INF/web.xml
  4. 143
      WebRoot/admin/adsadd.jsp
  5. 152
      WebRoot/admin/adsedit.jsp
  6. 156
      WebRoot/admin/adslist.jsp
  7. 180
      WebRoot/admin/applylist.jsp
  8. 219
      WebRoot/admin/applylist1.jsp
  9. 216
      WebRoot/admin/applylist2.jsp
  10. 178
      WebRoot/admin/baseinfo.jsp
  11. 222
      WebRoot/admin/catesadd.jsp
  12. 194
      WebRoot/admin/catesedit.jsp
  13. 157
      WebRoot/admin/cateslist.jsp
  14. 173
      WebRoot/admin/communityadd.jsp
  15. 174
      WebRoot/admin/communityedit.jsp
  16. 133
      WebRoot/admin/communitylist.jsp
  17. 312
      WebRoot/admin/houseadd.jsp
  18. 348
      WebRoot/admin/houseedit.jsp
  19. 180
      WebRoot/admin/houselist.jsp
  20. 383
      WebRoot/admin/index.jsp
  21. 132
      WebRoot/admin/jblist.jsp
  22. 147
      WebRoot/admin/login.jsp
  23. 180
      WebRoot/admin/myhouselist.jsp
  24. 267
      WebRoot/admin/newsadd.jsp
  25. 262
      WebRoot/admin/newsedit.jsp
  26. 167
      WebRoot/admin/newslist.jsp
  27. 196
      WebRoot/admin/newslist1.jsp
  28. 154
      WebRoot/admin/password.jsp
  29. 274
      WebRoot/admin/profile.jsp
  30. 152
      WebRoot/admin/report.jsp
  31. 154
      WebRoot/admin/signup.jsp
  32. 312
      WebRoot/admin/usersadd.jsp
  33. 187
      WebRoot/admin/userslist.jsp
  34. 48
      WebRoot/head.jsp
  35. 8
      WebRoot/index.jsp
  36. 13
      WebRoot/logout.jsp
  37. 35
      WebRoot/message.jsp
  38. BIN
      WebRoot/static/M.png
  39. 2836
      WebRoot/static/assets/css/app-dark.css
  40. 9
      WebRoot/static/assets/css/app-dark.min.css
  41. 1
      WebRoot/static/assets/css/app-dark.min.css.map
  42. 4991
      WebRoot/static/assets/css/app-rtl.css
  43. 9
      WebRoot/static/assets/css/app-rtl.min.css
  44. 1
      WebRoot/static/assets/css/app-rtl.min.css.map
  45. 2836
      WebRoot/static/assets/css/app.css
  46. 9
      WebRoot/static/assets/css/app.min.css
  47. 1
      WebRoot/static/assets/css/app.min.css.map
  48. 8918
      WebRoot/static/assets/css/bootstrap-dark.css
  49. 7
      WebRoot/static/assets/css/bootstrap-dark.min.css
  50. 1
      WebRoot/static/assets/css/bootstrap-dark.min.css.map
  51. 9013
      WebRoot/static/assets/css/bootstrap.css
  52. 7
      WebRoot/static/assets/css/bootstrap.min.css
  53. 1
      WebRoot/static/assets/css/bootstrap.min.css.map
  54. 4510
      WebRoot/static/assets/css/icons.css
  55. 2
      WebRoot/static/assets/css/icons.min.css
  56. 1
      WebRoot/static/assets/css/icons.min.css.map
  57. BIN
      WebRoot/static/assets/fonts/cerebrisans-bold.eot
  58. 2155
      WebRoot/static/assets/fonts/cerebrisans-bold.svg
  59. BIN
      WebRoot/static/assets/fonts/cerebrisans-bold.ttf
  60. BIN
      WebRoot/static/assets/fonts/cerebrisans-bold.woff
  61. BIN
      WebRoot/static/assets/fonts/cerebrisans-bold.woff2
  62. BIN
      WebRoot/static/assets/fonts/cerebrisans-light.eot
  63. 2158
      WebRoot/static/assets/fonts/cerebrisans-light.svg
  64. BIN
      WebRoot/static/assets/fonts/cerebrisans-light.ttf
  65. BIN
      WebRoot/static/assets/fonts/cerebrisans-light.woff
  66. BIN
      WebRoot/static/assets/fonts/cerebrisans-light.woff2
  67. BIN
      WebRoot/static/assets/fonts/cerebrisans-medium.eot
  68. 2160
      WebRoot/static/assets/fonts/cerebrisans-medium.svg
  69. BIN
      WebRoot/static/assets/fonts/cerebrisans-medium.ttf
  70. BIN
      WebRoot/static/assets/fonts/cerebrisans-medium.woff
  71. BIN
      WebRoot/static/assets/fonts/cerebrisans-medium.woff2
  72. BIN
      WebRoot/static/assets/fonts/cerebrisans-regular.eot
  73. 2165
      WebRoot/static/assets/fonts/cerebrisans-regular.svg
  74. BIN
      WebRoot/static/assets/fonts/cerebrisans-regular.ttf
  75. BIN
      WebRoot/static/assets/fonts/cerebrisans-regular.woff
  76. BIN
      WebRoot/static/assets/fonts/cerebrisans-regular.woff2
  77. BIN
      WebRoot/static/assets/fonts/cerebrisans-semibold.eot
  78. 2157
      WebRoot/static/assets/fonts/cerebrisans-semibold.svg
  79. BIN
      WebRoot/static/assets/fonts/cerebrisans-semibold.ttf
  80. BIN
      WebRoot/static/assets/fonts/cerebrisans-semibold.woff
  81. BIN
      WebRoot/static/assets/fonts/cerebrisans-semibold.woff2
  82. BIN
      WebRoot/static/assets/fonts/summernote.eot
  83. BIN
      WebRoot/static/assets/fonts/summernote.ttf
  84. BIN
      WebRoot/static/assets/fonts/summernote.woff
  85. BIN
      WebRoot/static/assets/fonts/unicons.eot
  86. 2238
      WebRoot/static/assets/fonts/unicons.svg
  87. BIN
      WebRoot/static/assets/fonts/unicons.ttf
  88. BIN
      WebRoot/static/assets/fonts/unicons.woff
  89. BIN
      WebRoot/static/assets/fonts/unicons.woff2
  90. BIN
      WebRoot/static/assets/images/attached-files/img-1.jpg
  91. BIN
      WebRoot/static/assets/images/attached-files/img-2.jpg
  92. BIN
      WebRoot/static/assets/images/attached-files/img-3.jpg
  93. BIN
      WebRoot/static/assets/images/auth-bg.jpg
  94. BIN
      WebRoot/static/assets/images/brands/angular.png
  95. BIN
      WebRoot/static/assets/images/brands/bootstrap.png
  96. BIN
      WebRoot/static/assets/images/brands/css3.png
  97. BIN
      WebRoot/static/assets/images/brands/gulp.png
  98. BIN
      WebRoot/static/assets/images/brands/html5.png
  99. BIN
      WebRoot/static/assets/images/brands/jquery.png
  100. BIN
      WebRoot/static/assets/images/brands/laravel.png
  101. Some files were not shown because too many files have changed in this diff Show More

103
.gitignore vendored

@ -0,0 +1,103 @@
# Created by .ignore support plugin (hsz.mobi)
### JetBrains template
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf
# Generated files
.idea/**/contentModel.xml
# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml
# Gradle
.idea/**/gradle.xml
.idea/**/libraries
# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
# auto-import.
# .idea/artifacts
# .idea/compiler.xml
# .idea/jarRepositories.xml
# .idea/modules.xml
# .idea/*.iml
# .idea/modules
# *.iml
# *.ipr
# CMake
cmake-build-*/
# Mongo Explorer plugin
.idea/**/mongoSettings.xml
# File-based project format
*.iws
# IntelliJ
out/
# mpeltonen/sbt-idea plugin
.idea_modules/
# JIRA plugin
atlassian-ide-plugin.xml
# Cursive Clojure plugin
.idea/replstate.xml
# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties
# Editor-based Rest Client
.idea/httpRequests
# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser
### Java template
# Compiled class file
*.class
# Log file
*.log
# BlueJ files
*.ctxt
# Mobile Tools for Java (J2ME)
.mtj.tmp/
# Package Files #
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
.idea
/WebRoot/uploadFile/
/WebRoot/WEB-INF/classes/
*.iml

@ -0,0 +1,3 @@
Manifest-Version: 1.0
Class-Path:

@ -0,0 +1,64 @@
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<!-- 指定spring的配置文件,默认从web根目录寻找配置文件,我们可以通过spring提供的classpath:前缀指定从类路径下寻找 -->
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:beans.xml</param-value>
</context-param>
<!-- 对Spring容器进行实例化 -->
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<!-- 日志参数-->
<context-param>
<param-name>log4jConfigLocation</param-name>
<param-value>classpath:log4j-config.properties</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
</listener>
<servlet>
<description>This is the description of my J2EE component</description>
<display-name>This is the display name of my J2EE component</display-name>
<servlet-name>RegionServlet</servlet-name>
<servlet-class>com.app.servlet.RegionServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>RegionServlet</servlet-name>
<url-pattern>/rg.sl</url-pattern>
</servlet-mapping>
<servlet>
<description>This is the description of my J2EE component</description>
<display-name>This is the display name of my J2EE component</display-name>
<servlet-name>FileUploadServlet</servlet-name>
<servlet-class>com.app.servlet.FileUploadServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>FileUploadServlet</servlet-name>
<url-pattern>/upfile</url-pattern>
</servlet-mapping>
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>*.do</url-pattern>
</filter-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>

@ -0,0 +1,143 @@
<%@ page language="java" import="java.sql.ResultSet" pageEncoding="UTF-8"%>
<%@ page language="java" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
ResultSet rs = (ResultSet)request.getAttribute("list");
Object message = request.getAttribute("message");
%>
<!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>
<form enctype="multipart/form-data" action="<%=basePath %>admin/ads/addads.do" class="form" method="post" style="width:50%;">
<div class="box">
<h2>新增滚播图</h2>
<fieldset>
<div class="widget">
<div class="formRow">
<label>滚播图名称:</label>
<div class="formRight">
<input name="title" type="text" required value="">
</div>
<div class="clear"></div>
</div>
<div class="formRow">
<label>URL:</label>
<div class="formRight">
<input name="url" type="text" required value="">
</div>
<div class="clear"></div>
</div>
<div class="formRow">
<label>大图:</label>
<div class="formRight">
<input name="file" type="file" required value="">
</div>
<div class="clear"></div>
</div>
<div class="formRow">
<% if(message!=null){ %>
<div class="nNote nInformation hideit">
<p>
<strong>SUCCESS: </strong><%=message %>.
</p>
</div>
<% } %>
<br/>
<input type="submit" value="提交数据" class="dredB ">
</div>
</div>
</fieldset>
</div>
</form>
</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>

@ -0,0 +1,152 @@
<%@ page language="java" import="com.app.utils.DB" pageEncoding="UTF-8"%>
<%@ page language="java" import="java.sql.ResultSet" %>
<%@ page language="java" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
Object message = request.getAttribute("message");
DB db = new DB();
db.open();
ResultSet rs = db.executeQuery("SELECT * FROM ads where id="+request.getParameter("id"));
%>
<!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>
<form enctype="multipart/form-data" action="<%=basePath %>admin/ads/updateads.do" class="form" method="post" style="width:50%;">
<div class="box">
<h2>修改滚播图</h2>
<% if(rs.next()){ %>
<fieldset>
<div class="widget">
<div class="formRow">
<label>广告名称:</label>
<div class="formRight">
<input name="title" type="text" required value="<%=rs.getString("title")%>">
<input name="id" type="hidden" value="<%=rs.getString("id")%>"/>
</div>
<div class="clear"></div>
</div>
<div class="formRow">
<label>URL:</label>
<div class="formRight">
<input name="url" type="text" required value="<%=rs.getString("url")%>">
</div>
<div class="clear"></div>
</div>
<div class="formRow">
<label>大图:</label>
<div class="formRight">
<a target="_blank" href="<%=basePath%><%=rs.getString("thumb") %>">
<img src="<%=basePath%><%=rs.getString("thumb") %>" style="width:100px;height:80px;"/>
</a> <br/>
<input name="file" type="file" value="">
<input name="oldThumb" type="hidden" value="<%=rs.getString("thumb")%>">
</div>
<div class="clear"></div>
</div>
<div class="formRow">
<% if(message!=null){ %>
<div class="nNote nInformation hideit">
<p>
<strong>SUCCESS: </strong><%=message %>.
</p>
</div>
<% } %>
<br/>
<input type="submit" value="提交数据" class="dredB ">
</div>
</div>
</fieldset>
<% } %>
</div>
</form>
</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>

@ -0,0 +1,156 @@
<%@ page language="java" import="com.app.utils.DB" pageEncoding="UTF-8"%>
<%@ page language="java" import="java.sql.ResultSet" %>
<%@ page language="java" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
DB db = new DB();
db.open();
ResultSet rs = db.executeQuery("SELECT * FROM ads");
Object message = request.getAttribute("message");
%>
<!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>
<div class="box">
<h2>滚播图管理</h2>
<% if(message!=null){ %>
<div class="nNote nInformation hideit">
<p>
<strong>SUCCESS: </strong><%=message %>.
</p>
</div>
<% } %>
<div class="widget">
<table cellpadding="0" cellspacing="0" width="100%" class="sTable">
<thead>
<tr>
<td>编号</td>
<td>广告名称</td>
<td>广告URL</td>
<td>图片</td>
<td>添加时间</td>
<td>操作</td>
</tr>
</thead>
<tbody>
<%
while(rs.next())
{
%>
<tr>
<td><%=rs.getString("id") %></td>
<td><%=rs.getString("title") %></td>
<td><%=rs.getString("URL") %></td>
<td>
<a target="_blank" href="<%=basePath%><%=rs.getString("thumb") %>">
查看
</a>
</td>
<td><%=rs.getString("created") %></td>
<td>
<a href="<%=basePath%>admin/ads/edit.do?id=<%=rs.getString("id")%>">
更新
</a>
<a href="<%=basePath%>admin/ads/delete.do?id=<%=rs.getString("id")%>">
删除
</a>
</td>
</tr>
<% } %>
</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>
<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>
</body>
</html>

@ -0,0 +1,180 @@
<%@ 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" />
</head>
<body class="container_12">
<form class="form-inline" role="form"
action="<%=basePath%>admin/apply/list.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>
<th>房源</th>
<th>大小</th>
<th>类型</th>
<th>价格</th>
<th>申请人</th>
<th>上传资料</th>
<th>备注</th>
<th>申请时间</th>
<th>状态</th>
</tr>
</thead>
<tbody>
<c:forEach items="${list}" var="item">
<tr class="even gradeA">
<td>
${item.hs.rooname}
</td>
<td>${item.hs.size} </td>
<td>${item.hs.cate} </td>
<td>${item.hs.price}元/月 </td>
<td>
${item.user.username}/
${item.user.realname}</td>
<td>
<a target="_blank" href="<%=basePath%>${item.attachfile}">
查看
</a>
</td>
<td>
<span class="bz badge badge-info" txt="${item.message }">查看</span>
</td>
<td>${item.created}</td>
<td>
<c:if test="${item.state eq '1' }">
<span class="badge badge-warning">待街道审核</span>
</c:if>
<c:if test="${item.state eq '2' }">
<span class="badge badge-success">街道审核通过</span>
</c:if>
<c:if test="${item.state eq '3' }">
<span class="badge badge-danger">街道审核不通过</span>
</c:if>
<c:if test="${item.state eq '4' }">
<span class="badge badge-warning">待市级审核</span>
</c:if>
<c:if test="${item.state eq '5' }">
<span class="badge badge-success">市级审核通过</span>
</c:if>
<c:if test="${item.state eq '6' }">
<span class="badge badge-danger">市级审核不通过</span>
</c:if>
</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>
</html>
</body>
</html>

@ -0,0 +1,219 @@
<%@ 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" />
</head>
<body class="container_12">
<form class="form-inline" role="form"
action="<%=basePath%>admin/apply/list1.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>
<th>房源</th>
<th>大小</th>
<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.hs.rooname}
</td>
<td>${item.hs.size} </td>
<td>${item.hs.cate} </td>
<td>${item.hs.price}元/月 </td>
<td>
${item.user.username}/
${item.user.realname}</td>
<td>
<a target="_blank" href="<%=basePath%>${item.attachfile}">
查看
</a>
</td>
<td>
<span class="bz badge badge-info" txt="${item.message }">查看</span>
</td>
<td>${item.created}</td>
<td>
<c:if test="${item.state eq '1' }">
<span class="badge badge-warning">待街道审核</span>
</c:if>
<c:if test="${item.state eq '2' }">
<span class="badge badge-success">街道审核通过</span>
</c:if>
<c:if test="${item.state eq '3' }">
<span class="badge badge-danger">街道审核不通过</span>
</c:if>
<c:if test="${item.state eq '4' }">
<span class="badge badge-warning">待市级审核</span>
</c:if>
<c:if test="${item.state eq '5' }">
<span class="badge badge-success">市级审核通过</span>
</c:if>
<c:if test="${item.state eq '6' }">
<span class="badge badge-danger">市级审核不通过</span>
</c:if>
</td>
<td>
<c:if test="${item.state eq '1' }">
<a class="" href="<%=basePath%>admin/apply/pass.do?ret=list1&statex=2&id=${item.id}">
<i class="icon-pencil"></i>
通过
</a>
<a class="" href="<%=basePath%>admin/apply/pass.do?ret=list1&statex=3&id=${item.id}">
<i class="icon-pencil"></i>
不通过
</a>
</c:if>
<c:if test="${item.state eq '2' }">
<a class="" href="<%=basePath%>admin/apply/pass.do?ret=list1&statex=3&id=${item.id}">
<i class="icon-pencil"></i>
不通过
</a>
</c:if>
<c:if test="${item.state eq '3' }">
<a class="" href="<%=basePath%>admin/apply/pass.do?ret=list1&statex=2&id=${item.id}">
<i class="icon-pencil"></i>
通过
</a>
</c:if>
<a style="margin-left: 10px" class="" href="<%=basePath%>admin/apply/delete.do?ret=list1&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>
</html>
</body>
</html>

@ -0,0 +1,216 @@
<%@ 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" />
</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>
<th>房源</th>
<th>大小</th>
<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.hs.rooname}
</td>
<td>${item.hs.size} </td>
<td>${item.hs.cate} </td>
<td>${item.hs.price}元/月 </td>
<td>
${item.user.username}/
${item.user.realname}</td>
<td>
<a target="_blank" href="<%=basePath%>${item.attachfile}">
查看
</a>
</td>
<td>
<span class="bz badge badge-info" txt="${item.message }">查看</span>
</td>
<td>${item.created}</td>
<td>
<c:if test="${item.state eq '1' }">
<span class="badge badge-warning">待街道审核</span>
</c:if>
<c:if test="${item.state eq '2' }">
<span class="badge badge-success">街道审核通过</span>
</c:if>
<c:if test="${item.state eq '3' }">
<span class="badge badge-danger">街道审核不通过</span>
</c:if>
<c:if test="${item.state eq '5' }">
<span class="badge badge-success">市级审核通过</span>
</c:if>
<c:if test="${item.state eq '6' }">
<span class="badge badge-danger">市级审核不通过</span>
</c:if>
</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="" href="<%=basePath%>admin/apply/pass.do?ret=list2&statex=6&id=${item.id}">
<i class="icon-pencil"></i>
不通过
</a>
</c:if>
<c:if test="${item.state eq '5' }">
<a class="" href="<%=basePath%>admin/apply/pass.do?ret=list2&statex=6&id=${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>
</html>
</body>
</html>

@ -0,0 +1,178 @@
<%@ 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">
<!-- 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="authentication-bg">
<div class="account-pages my-5">
<div class="container">
<div class="row justify-content-center">
<div class="col-xl-10">
<div class="card">
<div class="card-body p-0">
<div class="row">
<div class="col-md-6 p-5">
<div class="mx-auto mb-5">
<a href="javascript:;">
<img src="<%=basePath %>static/assets/images/logo.png" alt="" height="24" />
<h3 class="d-inline align-middle ml-1 text-logo">信息补全</h3>
</a>
</div>
<h6 class="h5 mb-0 mt-4">Base info!</h6>
<p class="text-muted mt-1 mb-4">
输入您的基本信息
.</p>
<form action="<%=basePath %>system/updatebase.do" method="POST" class="authentication-form">
<div class="form-group">
<label class="form-control-label">姓名</label>
<div class="input-group input-group-merge">
<div class="input-group-prepend">
<span class="input-group-text">
<i class="icon-dual" data-feather="user"></i>
</span>
</div>
<input type="hidden" name="id" value="${id }"/>
<input type="text" required class="form-control" name="realname" id="realname" placeholder="输入姓名...">
</div>
</div>
<div class="form-group mt-4">
<label class="form-control-label">区域</label>
<div class="input-group input-group-merge">
<div class="input-group-prepend">
<span class="input-group-text">
<i class="icon-dual" data-feather="flag"></i>
</span>
</div>
<select style="width:68px;" id="province" name="pid">
<option value=""></option>
</select>
<select style="width:68px;" id="city" name="cid">
</select>
<select style="width:119px;" id="area" name="aid">
</select>
</div>
</div>
<div class="form-group mt-4">
<label class="form-control-label">身份证</label>
<div class="input-group input-group-merge">
<div class="input-group-prepend">
<span class="input-group-text">
<i class="icon-dual" data-feather="edit"></i>
</span>
</div>
<input type="text" length="17" required class="form-control" id="ecard" name="ecard"
placeholder="输入身份证...">
</div>
</div>
<div class="form-group mb-0 text-center">
<button class="btn btn-primary btn-block" type="submit"> 提交信息
</button>
</div>
</form>
</div>
<div class="col-lg-6 d-none d-md-inline-block">
<div class="auth-page-sidebar">
<div class="overlay"></div>
<div class="auth-user-testimonial">
</div>
</div>
</div>
</div>
</div> <!-- end card-body -->
</div>
<!-- end card -->
<div class="row mt-3">
<div class="col-12 text-center">
<p class="text-muted">Copyrights 2020
<a href="javascript:;" class="text-primary font-weight-bold ml-1">公共住房租赁管理系统</a>
版权所有
</p>
</div> <!-- end col -->
</div>
<!-- end row -->
</div> <!-- end col -->
</div>
<!-- end row -->
</div>
<!-- end container -->
</div>
<!-- end page -->
<!-- Vendor js -->
<script src="<%=basePath %>static/assets/js/vendor.min.js"></script>
<!-- App js -->
<script src="<%=basePath %>static/assets/js/app.min.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>
loadRegion("province",1);
loadRegion("city",1);
loadRegion("area",52);
$("#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>
</body>
</html>

@ -0,0 +1,222 @@
<%@ 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/cates/addcates.do" enctype="multipart/form-data">
<table class="form">
<tbody><tr>
<td class="col1">
<label>
资料分类名称</label>
</td>
<td class="col3">
<input name="title" required value="" type="text" class="medium" id="grumble">
</td>
</tr>
<tr>
<td class="col1">
<label>
上级分类</label>
</td>
<td class="col3">
<select name="pid">
<option value="0">顶级分类</option>
${html }
</select>
</td>
</tr>
<input type="hidden" name="type" value="1"/>
<tr>
<td>
<label>
资料分类简介</label>
</td>
<td>
<textarea name="description" required style="width:550px;height:80px;">
</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/kindeditor-4.1.10/kindeditor-min.js"></script>
<script>
KindEditor.ready(function (K) {
editor = K.create('textarea[name="descriptxion"]', {
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', 'link','fullscreen'],
afterBlur: function () {
this.sync();
}
});
});
</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>
$(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>

@ -0,0 +1,194 @@
<%@ 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/cates/updatecates.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="title" required value="${model.title }" type="text" class="medium" id="grumble">
</td>
</tr>
<tr>
<td>
<label>
资料分类介绍</label>
</td>
<td>
<textarea name="description" required style="width:550px;height:80px;">
${model.description }
</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/kindeditor-4.1.10/kindeditor-min.js"></script>
<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>
<script>
KindEditor.ready(function (K) {
editor = K.create('textarea[name="descriptioxn"]', {
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', 'link','fullscreen'],
afterBlur: function () {
this.sync();
}
});
});
</script> <!-- Vendor js -->
</html>

@ -0,0 +1,157 @@
<%@ 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">
<a href="<%=basePath%>admin/cates/add.do" class="btn btn-blue">创建分类</a>
<table id="example" class="data display datatable">
<thead>
<tr>
<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.title}</td>
<td>${item.parent.title}</td>
<td>${item.created}</td>
<td>
<a href="<%=basePath%>admin/cates/edit.do?id=${item.id}">
<i class="icon-pencil"></i>
编辑
</a>
<a class="deletemodal" href="<%=basePath%>admin/cates/delete.do?ret=list&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>

@ -0,0 +1,173 @@
<%--
Created by IntelliJ IDEA.
User: pan
Date: 2020/6/7 0007
Time: 12:33
To change this template use File | Settings | File Templates.
--%>
<%@ 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+"/";
%>
<html>
<c:import url="../head.jsp"/>
<script src="<%=basePath%>static/window.js"></script>
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=09f8b1d5821c8eeafb03b9bca378efd6 "></script>
<script src="<%=basePath %>static/kindeditor-4.1.10/kindeditor-min.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>
$(function () {
$(".uploadImg").click(function(){
openWindow("http://localhost:8080/upload.jsp");
});
// 百度地图API功能
let 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);
});
KindEditor.ready(function (K) {
editor = K.create('textarea[name="community.description"]', {
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', 'link','fullscreen'],
afterBlur: function () {
this.sync();
}
});
});
})
</script>
<body>
<div class="box round first" style="margin:15px;">
<h2>录入数据</h2>
<div class="block">
<form method="POST" action="<%=basePath%>admin/community/add.do" enctype="multipart/form-data">
<input type="hidden" name="type" value="${param.type}">
<table class="form">
<tbody>
<tr>
<td class="col1">
<label>社区名称</label>
</td>
<td class="col3">
<input name="community.name" required value="" type="text" class="medium">
</td>
</tr>
<tr>
<td class="col1">
<label>
图片</label>
</td>
<td class="col2">
<input name="community.image" required value="" type="text" id="attachfile">
<a href="javascript:;" class="uploadImg btn btn-default">点击上传</a>
</td>
</td>
</tr>
<tr>
<td class="col1">
<label>
详细地址</label>
</td>
<td class="col3">
<input name="community.address" required value="" type="text" class="medium">
</td>
</tr>
<tr>
<td class="col1">
<label>
地址经纬度</label>
</td>
<td class="col3">
<input style="display:inline-block;width:45%;" name="community.latitude" required value="" type="text" class="medium" id="lat">
<input style="display:inline-block;width:45%;" name="community.longitude" required value="" type="text" class="medium" id="lng">
<div style="position:absolute;right:0px;top:0px; width:44%;height:450px;" id="allmap"></div>
</td>
</tr>
<tr>
<td class="col1">
<label>
主要户型</label>
</td>
<td class="col3">
<input name="community.houseType" required value="" type="text" class="medium">
</td>
</tr>
<tr>
<td>
<label>
详细描述</label>
</td>
<td>
<textarea name="community.description" required style="width:550px;height:80px;">
</textarea>
</td>
</tr>
<tr>
<td></td>
<td colspan="">
<button type="submit" class="btn btn-blue">提交数据</button>
</td>
</tr>
</tbody>
</table>
</form>
</div>
</div>
</body>
</html>

@ -0,0 +1,174 @@
<%--
Created by IntelliJ IDEA.
User: pan
Date: 2020/6/7 0007
Time: 12:33
To change this template use File | Settings | File Templates.
--%>
<%@ 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+"/";
%>
<html>
<c:import url="../head.jsp"/>
<script src="<%=basePath%>static/window.js"></script>
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=09f8b1d5821c8eeafb03b9bca378efd6 "></script>
<script src="<%=basePath %>static/kindeditor-4.1.10/kindeditor-min.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>
$(function () {
$(".uploadImg").click(function(){
openWindow("http://localhost:8080/upload.jsp");
});
// 百度地图API功能
let 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);
});
KindEditor.ready(function (K) {
editor = K.create('textarea[name="community.description"]', {
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', 'link','fullscreen'],
afterBlur: function () {
this.sync();
}
});
});
})
</script>
<body>
<div class="box round first">
<h2>更新数据</h2>
<div class="block">
<form method="POST" action="<%=basePath%>admin/community/update.do?type=${param.type}" enctype="multipart/form-data">
<table class="form">
<tbody>
<tr>
<td class="col1">
<label>社区名称</label>
</td>
<td class="col3">
<input name="community.name" required value="${model.name}" type="text" class="medium">
</td>
</tr>
<tr>
<td class="col1">
<label>
图片</label>
</td>
<td class="col2">
<input name="community.image" required value="${model.image}" type="text" id="attachfile">
<a href="javascript:;" class="uploadImg btn btn-default">点击上传</a>
</td>
</td>
</tr>
<tr>
<td class="col1">
<label>
详细地址</label>
</td>
<td class="col3">
<input name="community.address" required value="${model.address}" type="text" class="medium">
</td>
</tr>
<tr>
<td class="col1">
<label>
地址经纬度</label>
</td>
<td class="col3">
<input style="display:inline-block;width:45%;" name="community.latitude" required value="${model.latitude}" type="text" class="medium" id="lat">
<input style="display:inline-block;width:45%;" name="community.longitude" required value="${model.longitude}" type="text" class="medium" id="lng">
<div style="position:absolute;right:0px;top:0px; width:44%;height:450px;" id="allmap"></div>
</td>
</tr>
<tr>
<td class="col1">
<label>
主要户型</label>
</td>
<td class="col3">
<input name="community.houseType" required value="${model.houseType}" type="text" class="medium">
</td>
</tr>
<tr>
<td>
<label>
详细描述</label>
</td>
<td>
<textarea name="community.description" required style="width:550px;height:80px;">
${model.description}
</textarea>
</td>
</tr>
<tr>
<td></td>
<td colspan="">
<button type="submit" class="btn btn-blue">提交数据</button>
</td>
</tr>
</tbody>
</table>
</form>
</div>
</div>
</body>
</html>

@ -0,0 +1,133 @@
<%--
Created by IntelliJ IDEA.
User: pan
Date: 2020/6/7 0007
Time: 12:33
To change this template use File | Settings | File Templates.
--%>
<%@ 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+"/";
%>
<html>
<c:import url="../head.jsp"/>
<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>
$(function () {
$("form").removeAttr("style");
loadRegion("province",1);
loadRegion("city",${sessionScope.users.pid});
loadRegion("area",${sessionScope.users.cid});
<c:if test="${!empty state }">
toastr.${state}('${message}', '提示');
<%--setTimeout(function(){--%>
<%-- window.location.href = "<%=basePath%>${url}";--%>
<%--},1500)--%>
</c:if>
})
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>
<body>
<form class="col-8" role="form"
action="<%=basePath%>admin/community/list.do" method="post"
autocomplete="off">
<div class="input-group mt-3 mb-3">
<div class="input-group-prepend">
<label class="input-group-text">社区名称:</label>
</div>
<input class="form-control"
name="community.name" type="text" placeholder="请输入社区名称">
<div class="input-group-prepend">
<label class="input-group-text">地区:</label>
</div>
<div class="input-group-prepend">
<label class="input-group-text">省:</label>
</div>
<select id="province" class="custom-select" name="community.pid"></select>
<div class="input-group-prepend">
<label class="input-group-text">市:</label>
</div>
<select id="city" class="custom-select" name="community.cid"></select>
<div class="input-group-prepend">
<label class="input-group-text">区:</label>
</div>
<select id="area" class="custom-select" name="community.aid"></select>
<div class="input-group-append">
<button type="submit" class="btn btn-primary">查询</button>
</div>
</div>
</form>
<div class="box round first" style="margin:15px;">
<div class="block">
<h2>数据列表</h2>
<div>
<a class="btn btn-primary" href="<%=basePath%>admin/community/toAdd.do?type=${param.type}">新增社区</a>
</div>
</div>
<table id="example" class="data display datatable">
<thead>
<th>社区名称</th>
<th>图片</th>
<th>所属区域</th>
<th>发布人</th>
<th>详细地址</th>
<th>主要户型</th>
<th>余量/总量</th>
<th>操作</th>
</thead>
<tbody>
<c:forEach items="${list}" var="item">
<tr class="even gradeA">
<td>${item.name}</td>
<td>
<img style="width: 100px;height: 100px" src="<%=basePath%>${item.image}"/>
</td>
<td>${item.pid}-${item.cid}-${item.aid}</td>
<td>${item.userId}</td>
<td>${item.address}</td>
<td>${item.houseType}</td>
<td>0/0</td>
<td>
<a href="<%=basePath%>admin/community/toUpdate.do?community.id=${item.id}&type=${param.type}">
<i class="icon-pencil"></i>
编辑
</a>
<a class="deletemodal" href="<%=basePath%>admin/community/delete.do?community.id=${item.id}&type=${param.type}"><i class="icon-remove"></i>
移除
</a>
</td>
</tr>
</c:forEach>
</tbody>
</table>
</div>
</body>
</html>

@ -0,0 +1,312 @@
<%@ 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/addhouse.do" enctype="multipart/form-data">
<table class="form">
<tbody>
<tr>
<td class="col1">
<label>
房源名称</label>
</td>
<td class="col3">
<input name="rooname" required value="" type="text" class="medium" id="grumble">
</td>
</tr>
<tr>
<td class="col1">
<label>
房源大小</label>
</td>
<td class="col3">
<input name="size" required value="" type="text" class="medium" id="grumble">
</td>
</tr>
<tr>
<td class="col1">
<label>
价格</label>
</td>
<td class="col3">
<input name="price" required value="" type="text" class="medium" id="grumble">
</td>
</tr>
<tr>
<td class="col1">
<label>
详细地址</label>
</td>
<td class="col3">
<input name="address" required value="" 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="" type="text" class="medium" id="lat">
<input style="display:inline-block;width:45%;" name="lng" required value="" type="text" class="medium" id="lng">
<div style="position:absolute;right:0px;top:0px; width:44%;height:450px;" id="allmap"></div>
</td>
</tr>
<input name="num" value="1" type="hidden"/>
<tr>
<td class="col1">
<label>
房源类型</label>
</td>
<td class="col3">
<input name="cate" required value="" type="text" class="medium" id="grumble">
</td>
</tr>
<tr>
<td class="col1">
<label>
图片</label>
</td>
<td class="col2">
<input name="thunb" required value="" 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;">
</textarea>
</td>
</tr>
<tr>
<td>
<label>
详细描述</label>
</td>
<td>
<textarea name="content" required style="width:550px;height:80px;">
</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', 'link','fullscreen'],
afterBlur: function () {
this.sync();
}
});
});
</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" src="http://api.map.baidu.com/api?v=2.0&ak=09f8b1d5821c8eeafb03b9bca378efd6 "></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>
<script>
</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>

@ -0,0 +1,348 @@
<%@ 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>

@ -0,0 +1,180 @@
<%@ 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>
<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=list&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",${sessionScope.users.pid});
loadRegion("area",${sessionScope.users.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>

@ -0,0 +1,383 @@
<%@ page language="java" import="com.app.utils.CommunityType" pageEncoding="UTF-8"%>
<%@ page language="java" %>
<%@ 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="left-side-menu-dark">
<!-- Begin page -->
<div id="wrapper">
<!-- Topbar Start -->
<div style="background-color: #80D0C7;
background-image: linear-gradient(160deg, #80D0C7 0%, #0093E9 100%);
" class="navbar navbar-expand flex-column flex-md-row navbar-custom">
<div class="container-fluid">
<!-- LOGO -->
<a href="<%=basePath %>" class="navbar-brand mr-0 mr-md-2 logo">
<span class="logo-lg">
<img src="<%=basePath %>static/assets/images/logo.png" alt="" height="24" />
<span style="color:#fff" class="d-inline h5 ml-1 text-logo">公租房租赁管理系统</span>
</span>
<span class="logo-sm">
<img src="<%=basePath %>static/assets/images/logo.png" alt="" height="24">
</span>
</a>
<ul class="navbar-nav bd-navbar-nav flex-row list-unstyled menu-left mb-0">
<li class="">
<button class="button-menu-mobile open-left disable-btn">
<i data-feather="menu" class="menu-icon"></i>
<i data-feather="x" class="close-icon"></i>
</button>
</li>
</ul>
<ul class="navbar-nav flex-row ml-auto d-flex list-unstyled topnav-menu float-right mb-0">
<li class="dropdown notification-list" data-toggle="tooltip" data-placement="left"
title="刷新面板">
<a class="nav-link dropdown-toggle"
href="<%=basePath %>admin/index.do" >
<i data-feather="home"></i>
<span class="noti-icon-badge"></span>
</a>
</li>
<li class="dropdown " data-toggle="tooltip" data-placement="left" title="注销">
<a href="<%=basePath%>logout.jsp?ret=system/login.do" class="nav-link right-bar-toggle">
<i data-feather="log-out"></i>
</a>
</li>
</ul>
</div>
</div>
<!-- end Topbar -->
<!-- ========== Left Sidebar Start ========== -->
<div class="left-side-menu">
<div class="media user-profile mt-2 mb-2">
<img src="<%=basePath %>${thumb}" class="avatar-sm rounded-circle mr-2" alt="Shreyu" />
<div class="media-body">
<h6 class="pro-user-name mt-0 mb-0">${userName}</h6>
<span class="pro-user-desc">
<c:if test="${userType eq 1}">普通用户</c:if>
<c:if test="${userType eq 2}">街道政府管理员</c:if>
<c:if test="${userType eq '3'}">市级政府管理员</c:if>
</span>
</div>
<div class="dropdown align-self-center profile-dropdown-menu">
<a class="dropdown-toggle mr-0" data-toggle="dropdown" href="#" role="button" aria-haspopup="false"
aria-expanded="false">
<span data-feather="chevron-down"></span>
</a>
<div class="dropdown-menu profile-dropdown">
<a href="<%=basePath%>admin/profile.do" target="rightFrame" href="pages-profile.html" class="dropdown-item notify-item">
<i data-feather="user" class="icon-dual icon-xs mr-2"></i>
<span>资料更新</span>
</a>
<a href="<%=basePath%>admin/password.do" target="rightFrame" class="dropdown-item notify-item">
<i data-feather="settings" class="icon-dual icon-xs mr-2"></i>
<span>密码设置</span>
</a>
<div class="dropdown-divider"></div>
<a href="<%=basePath%>logout.jsp?ret=system/login.do" class="dropdown-item ">
<i data-feather="log-out" class="icon-dual icon-xs mr-2"></i>
<span>注销登录</span>
</a>
</div>
</div>
</div>
<div class="sidebar-content">
<!--- Sidemenu -->
<div id="sidebar-menu" class="slimscroll-menu">
<ul class="metismenu" id="menu-bar">
<li class="menu-title">Navigation</li>
<c:if test="${userType eq '1'}">
<li>
<a target="rightFrame" href="<%=basePath%>admin/apply/list.do" aria-expanded="false">
<i data-feather="package"></i>
<span> 申请管理 </span>
</a>
</li>
<li>
<a target="rightFrame" href="<%=basePath%>admin/apply/report.do" aria-expanded="false">
<i data-feather="pie-chart"></i>
<span> 数据统计 </span>
</a>
</li>
</c:if>
<c:if test="${userType eq '2'}">
<li>
<a href="javascript: void(0);">
<i data-feather="briefcase"></i>
<span> 房源管理 </span>
<span class="menu-arrow"></span>
</a>
<ul class="nav-second-level" aria-expanded="false">
<li>
<a target="rightFrame" href="<%=basePath%>admin/house/mylist.do">房源管理</a>
</li>
<li>
<a target="rightFrame" href="<%=basePath%>admin/house/add.do">发布房源</a>
</li>
</ul>
</li>
<li>
<a target="rightFrame" href="<%=basePath%>admin/apply/list1.do" aria-expanded="false">
<i data-feather="package"></i>
<span> 申请管理 </span>
</a>
</li>
<li>
<a target="rightFrame" href="<%=basePath%>admin/apply/report.do" aria-expanded="false">
<i data-feather="pie-chart"></i>
<span> 数据统计 </span>
</a>
</li>
</c:if>
<c:if test="${userType eq '3'}">
<li>
<a href="javascript: void(0);">
<i data-feather="users"></i>
<span> 用户管理 </span>
<span class="menu-arrow"></span>
</a>
<ul class="nav-second-level" aria-expanded="false">
<li>
<a target="rightFrame" href="<%=basePath%>admin/users/list.do">用户管理</a>
</li>
<li>
<a target="rightFrame" href="<%=basePath%>admin/users/add.do">新增用户</a>
</li>
</ul>
</li>
<li>
<a href="javascript: void(0);">
<i data-feather="file-text"></i>
<span> 类目管理 </span>
<span class="menu-arrow"></span>
</a>
<ul class="nav-second-level" aria-expanded="false">
<li>
<a target="rightFrame" href="<%=basePath%>admin/cates/list.do">类目管理</a>
</li>
<li>
<a target="rightFrame" href="<%=basePath%>admin/cates/add.do">新增类目</a>
</li>
</ul>
</li>
<li>
<a href="javascript: void(0);">
<i data-feather="bookmark"></i>
<span> 内容管理 </span>
<span class="menu-arrow"></span>
</a>
<ul class="nav-second-level" aria-expanded="false">
<li>
<a target="rightFrame" href="<%=basePath%>admin/news/list.do">内容管理</a>
</li>
<li>
<a target="rightFrame" href="<%=basePath%>admin/news/add.do">发布内容</a>
</li>
</ul>
</li>
<li>
<a href="javascript: void(0);">
<i data-feather="image"></i>
<span> 轮播管理 </span>
<span class="menu-arrow"></span>
</a>
<ul class="nav-second-level" aria-expanded="false">
<li>
<a target="rightFrame" href="<%=basePath%>admin/ads/list.do">轮播管理</a>
</li>
<li>
<a target="rightFrame" href="<%=basePath%>admin/ads/add.do">发布轮播</a>
</li>
</ul>
</li>
<li>
<a href="javascript: void(0);">
<i data-feather="briefcase"></i>
<span> 房源管理 </span>
<span class="menu-arrow"></span>
</a>
<ul class="nav-second-level" aria-expanded="false">
<li>
<a target="rightFrame" href="<%=basePath%>admin/house/list.do">房源管理</a>
</li>
<c:forEach items="<%=CommunityType.values()%>" var="type">
<li>
<a target="rightFrame" href="<%=basePath%>admin/community/list.do?type=${type.name()}">${type.desc}</a>
</li>
</c:forEach>
<li>
<a target="rightFrame" href="<%=basePath%>admin/house/add.do">发布房源</a>
</li>
</ul>
</li>
<li>
<a target="rightFrame" href="<%=basePath%>admin/apply/list2.do" aria-expanded="false">
<i data-feather="package"></i>
<span> 申请管理 </span>
</a>
</li>
<li>
<a target="rightFrame" href="<%=basePath%>admin/apply/jblist.do" aria-expanded="false">
<i data-feather="align-right"></i>
<span> 举报管理 </span>
</a>
</li>
<li>
<a target="rightFrame" href="<%=basePath%>admin/apply/report.do" aria-expanded="false">
<i data-feather="pie-chart"></i>
<span> 数据统计 </span>
</a>
</li>
</c:if>
</ul>
</div>
<!-- End Sidebar -->
<div class="clearfix"></div>
</div>
<!-- Sidebar -left -->
</div>
<!-- Left Sidebar End -->
<!-- ============================================================== -->
<!-- Start Page Content here -->
<!-- ============================================================== -->
<div class="content-page">
<div class="content">
<div class="container-fluid">
<div style="padding:0px;" class="row page-title align-items-center">
<div class="col-sm-4 col-xl-6">
<h4 class="mb-1 mt-0">welcome</h4>
</div>
</div>
<!-- content -->
<div style="padding:0px;" class="row">
<iframe name="rightFrame" src="<%=basePath%>admin/apply/report.do" style="border:none;min-height:1800px;width:100%;height:100;"></iframe>
</div>
<!-- end row -->
</div>
</div> <!-- content -->
</div>
<!-- ============================================================== -->
<!-- End Page content -->
<!-- ============================================================== -->
</div>
<!-- END wrapper -->
<!-- Right bar overlay-->
<div class="rightbar-overlay"></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>
</body>
</html>

@ -0,0 +1,132 @@
<%@ 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" />
</head>
<body class="container_12">
<div class="box round first" style="margin:15px;">
<div class="block">
<table id="example" class="data display datatable">
<thead>
<tr>
<th>举报人</th>
<th>举报事宜</th>
<th>详细缘由</th>
<th>举报时间</th>
</tr>
</thead>
<tbody>
<c:forEach items="${list}" var="item">
<tr class="even gradeA">
<td>
${item.user}
</td>
<td>${item.title} </td>
<td>${item.content} </td>
<td>${item.created}</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>
</html>
</body>
</html>

@ -0,0 +1,147 @@
<%@ 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">
<!-- 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="authentication-bg" style="background:url(<%=basePath %>static/M.png) no-repeat left bottom;">
<div class="account-pages my-5">
<div class="container">
<div class="row justify-content-center">
<div class="col-xl-10">
<div class="card">
<div class="card-body p-0">
<div class="row">
<div class="col-md-6 p-5">
<div class="mx-auto mb-5">
<a href="<%=basePath %>">
<img src="<%=basePath %>static/assets/images/logo.png" alt="" height="24" />
<h3 class="d-inline align-middle ml-1 text-logo">登 录</h3>
</a>
</div>
<h6 class="h5 mb-0 mt-4">Welcome back!</h6>
<p class="text-muted mt-1 mb-4">
输入您的账号和密码登录到管理中心
.</p>
<form action="<%=basePath %>system/signin.do" method="POST" class="authentication-form">
<div class="form-group">
<label class="form-control-label">账号</label>
<div class="input-group input-group-merge">
<div class="input-group-prepend">
<span class="input-group-text">
<i class="icon-dual" data-feather="user"></i>
</span>
</div>
<input type="text" name="username" class="form-control" id="email" placeholder="输入账号...">
</div>
</div>
<div class="form-group mt-4">
<label class="form-control-label">密码</label>
<div class="input-group input-group-merge">
<div class="input-group-prepend">
<span class="input-group-text">
<i class="icon-dual" data-feather="lock"></i>
</span>
</div>
<input type="password" name="password" class="form-control" id="password"
placeholder="输入您的密码...">
</div>
</div>
<div class="form-group mb-4">
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input"
id="checkbox-signin" checked>
<label class="custom-control-label" for="checkbox-signin">记住账号</label>
</div>
</div>
<div class="form-group mb-0 text-center">
<button class="btn btn-primary btn-block" type="submit"> 登 录
</button>
</div>
</form>
<div class="py-3 text-center"><span class="font-size-16 font-weight-bold">Or</span></div>
<div class="row">
<div class="col-6">
<a href="<%=basePath %>" class="btn btn-white"><i class='uil uil-google icon-google mr-2'></i>
平台首页</a>
</div>
<div class="col-6 text-right">
<a href="<%=basePath %>system/signup.do" class="btn btn-white"><i class='uil uil-user mr-2 icon-fb'></i>
注册账号</a>
</div>
</div>
</div>
<div class="col-lg-6 d-none d-md-inline-block">
<div class="auth-page-sidebar">
<div class="overlay"></div>
<div class="auth-user-testimonial">
</div>
</div>
</div>
</div>
</div> <!-- end card-body -->
</div>
<!-- end card -->
<div class="row mt-3">
<div class="col-12 text-center">
<p class="text-muted">Copyrights 2020 <a href="" class="text-primary font-weight-bold ml-1">公共住房租赁管理系统</a>
版权所有
</p>
</div> <!-- end col -->
</div>
<!-- end row -->
</div> <!-- end col -->
</div>
<!-- end row -->
</div>
<!-- end container -->
</div>
<!-- end page -->
<!-- Vendor js -->
<script src="<%=basePath %>static/assets/js/vendor.min.js"></script>
<!-- App js -->
<script src="<%=basePath %>static/assets/js/app.min.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>
</body>
</html>

@ -0,0 +1,180 @@
<%@ 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>

@ -0,0 +1,267 @@
<%@ 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/news/addnews.do" enctype="multipart/form-data">
<table class="form">
<tbody><tr>
<td class="col1">
<label>
文章标题</label>
</td>
<td class="col3">
<input name="title" required value="" type="text" class="medium" id="grumble">
</td>
</tr>
<tr>
<td class="col1">
<label>
文章分类</label>
</td>
<td class="col2">
<select name="cateid">
${html }
</select>
</td>
</tr>
<tr>
<td class="col1">
<label>
文章封面</label>
</td>
<td class="col2">
<input name="file" required value="" type="file" id="grumble">
</td>
</tr>
<tr>
<td class="col1">
<label>
文章附件</label>
</td>
<td class="col2">
<input type="text" class="form-control" id="attachfile" value="" name="attachfile" >
<a href="javascript:;" class="uploadImg ">点击上传</a>
</td>
</tr>
<tr>
<td>
<label>
文章简述</label>
</td>
<td>
<textarea name="description" required style="width:550px;height:80px;">
</textarea>
</td>
</tr>
<tr>
<td>
<label>
文章正文内容</label>
</td>
<td>
<textarea name="contents" required style="width:550px;height:80px;">
</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/kindeditor-4.1.10/kindeditor-min.js"></script>
<script>
KindEditor.ready(function (K) {
editor = K.create('textarea[name="contents"]', {
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', 'link','fullscreen'],
afterBlur: function () {
this.sync();
}
});
});
</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 src="<%=basePath %>static/window.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());
});
$(".uploadImg").click(function(){
openWindow("<%=basePath%>upload.jsp");
});
})
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>
</html>

@ -0,0 +1,262 @@
<%@ 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" />
</head>
<body class="container_12">
<div class="box round first" style="margin:15px;">
<h2>文章编辑</h2>
<div class="block">
<form method="POST" action="<%=basePath%>admin/news/updatenews.do" enctype="multipart/form-data">
<table class="form">
<tbody><tr>
<td class="col1">
<label>
文章标题</label>
</td>
<td class="col3">
<input name="title" required value="${model.title }" type="text" class="medium" id="grumble">
<input name="id" value="${model.id}" type="hidden"/>
</td>
</tr>
<tr>
<td class="col1">
<label>
文章封面</label>
</td>
<td class="col2">
<a target="_blank" href="<%=basePath %>${model.thumb }">
<img style="width:150px;height:150px;" src="<%=basePath %>${model.thumb }"/>
</a>
<br/>
<input name="file" value="" type="file" id="grumble">
<input type="hidden" name="thumb" value="${model.thumb }"/>
</td>
</tr>
<tr>
<td class="col1">
<label>
文章附件</label>
</td>
<td class="col2">
<a target="_blank" href="<%=basePath %>${model.attachfile }">
查看
</a>
<input type="text" class="form-control" id="attachfile" value="${model.attachfile }" name="attachfile" >
<a href="javascript:;" class="uploadImg ">点击上传</a>
</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="contents" required style="width:550px;height:80px;">
${model.contents }
</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/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 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="contents"]', {
uploadJson: '<%=basePath %>static/admin/js/kindeditor-4.1.10/php/upload_json.php',
fileManagerJson: '<%=basePath %>static/admin/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> <!-- Vendor js -->
<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());
});
$(".uploadImg").click(function(){
openWindow("<%=basePath%>upload.jsp");
});
})
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>

@ -0,0 +1,167 @@
<%@ 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" />
</head>
<body class="container_12">
<div class="box round first" style="margin:15px;">
<h2>文章列表</h2>
<div class="block">
<table id="example" class="data display datatable">
<thead>
<tr>
<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.title}</td>
<td>
${item.author.username}/
${item.author.realname}</td>
<td>${item.cateName}</td>
<td>${item.created}</td>
<td>
<a class="" href="<%=basePath%>admin/news/edit.do?id=${item.id}">
<i class="icon-pencil"></i>
编辑
</a>
<a class="deletemodal" href="<%=basePath%>admin/news/delete.do?ret=list&id=${item.id}"><i class="icon-remove"></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>
<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>
</body>
</html>

@ -0,0 +1,196 @@
<%@ 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" />
</head>
<body class="container_12">
<div class="box round first" style="margin:15px;">
<h2>文章列表</h2>
<div class="block">
<table id="example" class="data display datatable">
<thead>
<tr>
<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.title}</td>
<td>
${item.author.username}/
${item.author.realname}</td>
<td>${item.cateName}</td>
<td>${item.created}</td>
<td>
<span class="label label-primary">
<c:if test="${item.state eq 1}">
待审稿
</c:if>
<c:if test="${item.state eq 2}">
待审稿
</c:if>
<c:if test="${item.state eq 3}">
审稿通过
</c:if>
<c:if test="${item.state eq 4}">
审稿未通过
</c:if>
</span>
</td>
<td>
<c:if test="${item.state eq 1}">
[ <a class="" href="<%=basePath%>admin/news/pass?ret=list1&state1=3&id=${item.id}">
<i class="icon-arrow-right"></i>
通过审核
</a>]
|
[ <a class="" href="<%=basePath%>admin/news/pass?ret=list1&state1=4&id=${item.id}">
<i class="icon-arrow-right"></i>
不予通过
</a>]
|
</c:if>
[ <a class="" href="<%=basePath%>admin/news/edit?id=${item.id}">
<i class="icon-pencil"></i>
编辑
</a>]
|
[<a class="deletemodal" href="<%=basePath%>admin/news/delete?ret=list1&id=${item.id}"><i class="icon-remove"></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>
<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>
</body>
</html>

@ -0,0 +1,154 @@
<%@ 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/update_password.do">
<table class="form">
<tbody><tr>
<td class="col1">
<label>
用户名</label>
</td>
<td class="col2">
<input readonly value="${user.username}" type="text" id="grumble">
<input type="hidden" name="id" value="${user.id}"/>
</td>
</tr>
<tr>
<td>
<label>
新密码</label>
</td>
<td>
<input value="" required type="password" name="password" class="error">
</td>
</tr>
<tr>
<td>
<label>
确认密码</label>
</td>
<td>
<input value="" required type="password" name="password2" class="error">
</td>
</tr>
<tr>
<td></td>
<td colspan="">
<button type="submit" class="btn btn-blue">提交数据</button>
</td>
</tr>
</tbody></table>
</form>
</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>
<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>

@ -0,0 +1,274 @@
<%@ 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/update_profile.do" enctype="multipart/form-data">
<table class="form">
<tbody><tr>
<td class="col1">
<label>
用户名</label>
</td>
<td class="col2">
<input readonly value="${user.username}" type="text" id="grumble">
<input type="hidden" name="id" value="${user.id}"/>
</td>
</tr>
<tr>
<td class="col1">
<label>
照片</label>
</td>
<td class="col2">
<a target="_blank" href="<%=basePath %>${user.thumb }">
VIEW
</a>
<br/>
<input name="file" value="" type="file" id="grumble">
<input type="hidden" name="thumb" value="${user.thumb }"/>
</td>
</tr>
<tr>
<td>
<label>
姓名</label>
</td>
<td>
<input value="${user.realname}" type="text" name="realname" class="">
</td>
</tr>
<tr>
<td>
<label>
身份证</label>
</td>
<td>
<input value="${user.ecard}" type="text" name="ecard" class="">
</td>
</tr>
<tr>
<td>
<label>
性别</label>
</td>
<td>
<select id="select" name="sex">
<option <c:if test="${user.sex eq '1' }">selected</c:if> value="1">男</option>
<option <c:if test="${user.sex eq '2' }">selected</c:if> value="2">女</option>
</select>
</td>
</tr>
<tr>
<td>
<label>
年龄</label>
</td>
<td>
<input value="${user.age}" type="number" name="age" class="">
</td>
</tr>
<tr>
<td>
<label>
电话</label>
</td>
<td>
<input value="${user.tel}" type="text" name="tel" class="">
</td>
</tr>
<tr>
<td>
<label>
邮箱</label>
</td>
<td>
<input value="${user.email}" type="text" name="email" class="">
</td>
</tr>
<tr>
<td>
<label>
qq</label>
</td>
<td>
<input value="${user.qq}" type="text" name="qq" class="">
</td>
</tr>
<tr>
<td>
<label>
地址</label>
</td>
<td>
<select style="width:68px;" id="province" name="pid">
<option value="${user.pid }">${user.provinceName }</option>
</select>
<select style="width:68px;" id="city" name="cid">
<option value="${user.cid }">${user.cityName }</option>
</select>
<select style="width:119px;" id="area" name="aid">
<option value="${user.aid }">${user.areaName }</option>
</select>
<br/>
<input value="${user.address}" type="text" name="address" class="medium">
</td>
</tr>
<tr>
<td></td>
<td colspan="">
<button type="submit" class="btn btn-blue">提交数据</button>
</td>
</tr>
</tbody></table>
</form>
</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>

@ -0,0 +1,152 @@
<%@ 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" />
</head>
<body class="container_12">
<div class="box round first" style="margin:15px;">
<div class="block">
<div id="container"></div>
</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>
<script src="http://cdn.hcharts.cn/highcharts/highcharts.js"></script>
<script src="http://cdn.hcharts.cn/highcharts/modules/exporting.js"></script>
<script type="text/javascript">
$(function () {
Highcharts.chart('container', {
chart: {
type: 'column'
},
title: {
text: '统计'
},
subtitle: {
text: '--'
},
xAxis: {
categories: [
"用户","栏目","资料","房源","申请","举报"
],
crosshair: true
},
yAxis: {
min: 0,
title: {
text: '数据'
}
},
tooltip: {
headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
'<td style="padding:0"><b>{point.y}</b></td></tr>',
footerFormat: '</table>',
shared: true,
useHTML: true
},
plotOptions: {
column: {
pointPadding: 0.2,
borderWidth: 0
}
},
series: [{
name: '数据',
data: [${n1},${n2},${n3},${n4},${n5},${n6}]
}]
});
});
</script>
</html>
</body>
</html>

@ -0,0 +1,154 @@
<%@ 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">
<!-- 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="authentication-bg" style="background:url(<%=basePath %>static/M.png) no-repeat left bottom;">
<div class="account-pages my-5">
<div class="container">
<div class="row justify-content-center">
<div class="col-xl-10">
<div class="card">
<div class="card-body p-0">
<div class="row">
<div class="col-md-6 p-5">
<div class="mx-auto mb-5">
<a href="<%=basePath %>">
<img src="<%=basePath %>static/assets/images/logo.png" alt="" height="24" />
<h3 class="d-inline align-middle ml-1 text-logo">注册</h3>
</a>
</div>
<h6 class="h5 mb-0 mt-4">Create account!</h6>
<p class="text-muted mt-1 mb-4">
在线创建账号,申请公租房
.</p>
<form action="<%=basePath %>system/reg.do" method="POST" class="authentication-form">
<div class="form-group">
<label class="form-control-label">账号</label>
<div class="input-group input-group-merge">
<div class="input-group-prepend">
<span class="input-group-text">
<i class="icon-dual" data-feather="mail"></i>
</span>
</div>
<input type="text" required class="form-control" name="username" id="email" placeholder="输入账号...">
</div>
</div>
<div class="form-group mt-4">
<label class="form-control-label">密码</label>
<div class="input-group input-group-merge">
<div class="input-group-prepend">
<span class="input-group-text">
<i class="icon-dual" data-feather="lock"></i>
</span>
</div>
<input type="password" required class="form-control" id="password" name="password"
placeholder="输入您的密码...">
</div>
</div>
<div class="form-group mt-4">
<label class="form-control-label">确认密码</label>
<div class="input-group input-group-merge">
<div class="input-group-prepend">
<span class="input-group-text">
<i class="icon-dual" data-feather="lock"></i>
</span>
</div>
<input type="password" required class="form-control" id="password2" name="password2"
placeholder="输入确认密码...">
</div>
</div>
<div class="form-group mb-0 text-center">
<button class="btn btn-primary btn-block" type="submit"> 提交注册信息
</button>
</div>
</form>
<div class="py-3 text-center"><span class="font-size-16 font-weight-bold">Or</span></div>
<div class="row">
<div class="col-6">
<a href="<%=basePath %>" class="btn btn-white"><i class='uil uil-google icon-google mr-2'></i>
平台首页</a>
</div>
<div class="col-6 text-right">
<a href="<%=basePath %>system/login.do" class="btn btn-white"><i class='uil uil-user mr-2 icon-fb'></i>
我要登录</a>
</div>
</div>
</div>
<div class="col-lg-6 d-none d-md-inline-block">
<div class="auth-page-sidebar">
<div class="overlay"></div>
<div class="auth-user-testimonial">
</div>
</div>
</div>
</div>
</div> <!-- end card-body -->
</div>
<!-- end card -->
<div class="row mt-3">
<div class="col-12 text-center">
<p class="text-muted">Copyrights 2020 <a href="" class="text-primary font-weight-bold ml-1">公共住房租赁管理系统</a>
版权所有
</p>
</div> <!-- end col -->
</div>
<!-- end row -->
</div> <!-- end col -->
</div>
<!-- end row -->
</div>
<!-- end container -->
</div>
<!-- end page -->
<!-- Vendor js -->
<script src="<%=basePath %>static/assets/js/vendor.min.js"></script>
<!-- App js -->
<script src="<%=basePath %>static/assets/js/app.min.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>
</body>
</html>

@ -0,0 +1,312 @@
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page language="java" %>
<%@ 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/users/addusers.do">
<table class="form">
<tbody><tr>
<td class="col1">
<label>
用户名</label>
</td>
<td class="col2">
<input name="username" required value="" type="text" id="grumble">
</td>
</tr>
<tr>
<td>
<label>
密码</label>
</td>
<td>
<input value="" type="password" name="password" class="error">
</td>
</tr>
<tr>
<td>
<label>
确认密码</label>
</td>
<td>
<input value="" type="password" name="password2" class="error">
</td>
</tr>
<tr>
<td>
<label>
姓名</label>
</td>
<td>
<input value="" required type="text" name="realname" class="error">
</td>
</tr>
<tr>
<td>
<label>
身份证</label>
</td>
<td>
<input value="" required type="text" name="ecard" class="error">
</td>
</tr>
<tr>
<td>
<label>
性别</label>
</td>
<td>
<select id="select" name="sex">
<option value="1">男</option>
<option value="2">女</option>
</select>
</td>
</tr>
<tr>
<td>
<label>
年龄</label>
</td>
<td>
<input required value="" type="number" name="age" class="">
</td>
</tr>
<tr>
<td>
<label>
电话</label>
</td>
<td>
<input required value="" type="text" name="tel" class="">
</td>
</tr>
<tr>
<td>
<label>
邮箱</label>
</td>
<td>
<input required value="" type="text" name="email" class="">
</td>
</tr>
<tr>
<td>
<label>
qq</label>
</td>
<td>
<input required value="" type="text" name="qq" class="">
</td>
</tr>
<tr>
<td>
<label>
地址</label>
</td>
<td>
<select style="width:68px;" id="province" name="pid">
<option value=""></option>
</select>
<select style="width:68px;" id="city" name="cid">
</select>
<select style="width:119px;" id="area" name="aid">
</select>
<input required value="" type="text" name="address" class="medium">
</td>
</tr>
<tr>
<td>
<label>
用户类型</label>
</td>
<td>
<select name="type">
<option value="1">普通用户</option>
<option value="2">街道政府管理员</option>
<option value="3">市级政府管理员</option>
</select>
</td>
</tr>
<tr>
<td></td>
<td colspan="">
<button type="submit" class="btn btn-blue">提交数据</button>
</td>
</tr>
</tbody></table>
</form>
</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>

@ -0,0 +1,187 @@
<%@ 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/users/list.do" method="post"
autocomplete="off">
<div class="form-group" style="margin-right: 10px">
<label for="loginname">用户名:</label> <input class="form-control"
name="loginname" type="text" placeholder="根据用户名搜索">
</div>
<div class="form-group" style="margin-right: 10px">
<label for="username">姓名:</label> <input class="form-control"
name="username" 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;">
<h2>数据列表</h2>
<div class="block">
<table id="example" class="data display datatable">
<thead>
<tr>
<th>用户名</th>
<th>姓名</th>
<th>年龄</th>
<th>EMAIL</th>
<th>qq</th>
<th>地址</th>
<th>创建时间</th>
<th>用户类型</th>
<th style="width: 150px;">操作</th>
</tr>
</thead>
<tbody>
<c:forEach items="${list}" var="user">
<tr class="even gradeA">
<td>
${user.username}</td>
<td>${user.realname}</td>
<td>${user.age}</td>
<td>${user.email}</td>
<td>${user.qq}</td>
<td>
[${user.provinceName}/${user.cityName}/${user.areaName}]
${user.address}</td>
<td>${user.created}</td>
<td>
<c:if test="${user.type eq 1}">
<span class="badge badge-success">
一般用户
</c:if>
<c:if test="${user.type eq 2}">
<span class="badge badge-primary">
街道政府管理员
</c:if>
<c:if test="${user.type eq 3}">
<span class="badge badge-danger">
市级政府管理员
</c:if>
</span>
</td>
<td>
<a href="<%=basePath%>admin/profile.do?userId=${user.id}">
<i class="icon-pencil"></i>
资料
</a>
<a href="<%=basePath%>admin/password.do?userId=${user.id}">
<i class="icon-pencil"></i>
密码
</a>
<a class="deletemodal" href="<%=basePath%>admin/users/delete.do?id=${user.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(){
})
</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>

@ -0,0 +1,48 @@
<%--
Created by IntelliJ IDEA.
User: pan
Date: 2020/6/7 0007
Time: 12:30
To change this template use File | Settings | File Templates.
--%>
<%@ 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+"/";
%>
<html>
<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/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>
</head>
</html>

@ -0,0 +1,8 @@
<%@ page language="java" pageEncoding="ISO-8859-1"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
response.sendRedirect(basePath+"app/index.do");
%>

@ -0,0 +1,13 @@
<%@ page language="java" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
session.setAttribute("usertype", null);
session.setAttribute("users", null);
session.setAttribute("userId", null);
session.setAttribute("userName", null);
session.invalidate();
response.sendRedirect(basePath+request.getParameter("ret"));
%>

@ -0,0 +1,35 @@
<%@ 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" class="bg-dark">
<head>
<meta charset="utf-8" />
<title>MESSAGES</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<link rel="stylesheet" href="<%=basePath %>resource/css/app.v2.css" type="text/css" />
<link rel="stylesheet" href="<%=basePath %>resource/css/font.css" type="text/css" cache="false" />
<!--[if lt IE 9]> <script src="js/ie/html5shiv.js" cache="false"></script> <script src="js/ie/respond.min.js" cache="false"></script> <script src="js/ie/excanvas.js" cache="false"></script> <![endif]-->
</head>
<body>
<!-- This is what you need -->
<script src="<%=basePath %>dist/sweetalert-dev.js"></script>
<link rel="stylesheet" href="<%=basePath %>dist/sweetalert.css">
<!--.......................-->
<script>
//swal("操作提醒","${message}","${state}");
alert("${state}:${message}");
setTimeout(function(){
window.location.href = "<%=basePath%>${url}";
},1000);
</script>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 240 KiB

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 242 KiB

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 242 KiB

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 243 KiB

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 242 KiB

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 563 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 830 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save