list.jsp 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
  2. <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
  3. <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
  4. <%@ page language="java" contentType="text/html; charset=UTF-8"
  5. pageEncoding="UTF-8"%>
  6. <jsp:include page="${data._INCLUDE}/header.jsp"></jsp:include>
  7. <script>
  8. $(function() {
  9. $("input[name=\"startDate\"]").daterangepicker({
  10. singleDatePicker : true,
  11. showDropdowns : true,
  12. startDate : "<c:out value='${startDate}'/>",
  13. locale : {
  14. //format : "M/DD hh:mm A"
  15. format : "YYYY-MM-DD"
  16. }
  17. });
  18. $("input[name=\"endDate\"]").daterangepicker({
  19. singleDatePicker : true,
  20. showDropdowns : true,
  21. startDate : "<c:out value='${endDate}'/>",
  22. locale : {
  23. //format : "M/DD hh:mm A"
  24. format : "YYYY-MM-DD"
  25. }
  26. });
  27. });
  28. </script>
  29. </head>
  30. <body>
  31. <div class="wrapper">
  32. <jsp:include page="${data._INCLUDE}/sidebar.jsp"></jsp:include>
  33. <div class="main">
  34. <jsp:include page="${data._INCLUDE}/top.jsp"></jsp:include>
  35. <main class="content">
  36. <div class="container-fluid p-0">
  37. <!-- 환지관리 START -->
  38. <div class="row">
  39. <div class="col-12 col-lg-6">
  40. <h1 class="h3 mb-3">생활치료센터 관리</h1>
  41. </div>
  42. <div class="col-12 col-lg-6 text-right">
  43. <nav aria-label="breadcrumb">
  44. <ol class="breadcrumb">
  45. <li class="breadcrumb-item"><a href="javscript:;">Home</a></li>
  46. <li class="breadcrumb-item active">생활치료센터 관리</li>
  47. </ol>
  48. </nav>
  49. </div>
  50. </div>
  51. <div class="row">
  52. <div class="col-12">
  53. <div class="card">
  54. <form action="?" method="get">
  55. <div class="card-body">
  56. <table class="table mobile-table">
  57. <colgroup>
  58. <col style="width:10%">
  59. <col style="width:40%">
  60. <col style="width:10%">
  61. <col style="width:40%">
  62. </colgroup>
  63. <tr>
  64. <th>지역</th>
  65. <td>
  66. <select class="custom-select form-control" name="locationCode">
  67. <option value="">전체</option>
  68. <c:forEach var="i" items="${locationList}">
  69. <option value="${i.locationCode}" <c:if test="${i.locationCode eq locationCode}"> selected="selected"</c:if>><c:out value="${i.locationName}"/></option>
  70. </c:forEach>
  71. <!-- <option value="info">서울특별시</option> -->
  72. <!-- <option value="warning">경기도</option> -->
  73. </select>
  74. </td>
  75. <th>생활치료센터명</th>
  76. <td>
  77. <input type="text" class="form-control" name="centerName" placeholder="생활치료센터명" value="<c:out value="${centerName}" />">
  78. </td>
  79. </tr>
  80. <tr>
  81. <th>등록일</th>
  82. <td colspan="3">
  83. <div class="row">
  84. <div class="col-lg-4 col-sm-5">
  85. <div class="form-group calendar-bar mb-xl-0">
  86. <input class="form-control" type="text" name="startDate">
  87. <i class="align-middle mr-2 fas fa-fw fa-calendar-alt"></i>
  88. </div>
  89. </div>
  90. <div class="col-lg-2 col-sm-2 text-center">
  91. ~
  92. </div>
  93. <div class="col-lg-4 col-sm-5">
  94. <div class="form-group calendar-bar mb-xl-0">
  95. <input class="form-control" type="text" name="endDate">
  96. <i class="align-middle mr-2 fas fa-fw fa-calendar-alt"></i>
  97. </div>
  98. </div>
  99. <div class="col-sm-12 col-lg-2">
  100. <button class="btn btn-primary">검색</button>
  101. </div>
  102. </div>
  103. </td>
  104. </tr>
  105. </table>
  106. </div>
  107. </form>
  108. </div>
  109. </div>
  110. </div>
  111. <div class="row">
  112. <div class="col-12">
  113. <div class="card">
  114. <div class="card-body">
  115. <div class="row mb-3">
  116. <div class="col-6">전체 :
  117. <fmt:formatNumber value="${total}" pattern="#,###" />
  118. </div>
  119. <div class="col-6 text-right">
  120. <button class="btn btn-primary" onclick="location.href='./new';">생활치료센터 신규 등록</button>
  121. </div>
  122. </div>
  123. <div class="table-responsive">
  124. <table class="table table-striped text-center">
  125. <colgroup>
  126. <col style=" width: 11.1%; ">
  127. <col style=" width: 20%; ">
  128. <col style=" width: 11.1%; ">
  129. <col style=" width: 11.1%; ">
  130. <col style=" width: 11.1%; ">
  131. <col style=" width: 7%; ">
  132. <col style=" width: 7%; ">
  133. <col style=" width: 7%; ">
  134. <col style=" width: 11.1%; ">
  135. </colgroup>
  136. <thead>
  137. <tr>
  138. <th>번호</th>
  139. <th>치료센터명</th>
  140. <th>지역</th>
  141. <th>담당자(ID)</th>
  142. <th>전화번호</th>
  143. <th>입소자 수(명)</th>
  144. <th>소용인원(명)</th>
  145. <th>의료진 수</th>
  146. <th>등록일시</th>
  147. </tr>
  148. </thead>
  149. <tbody>
  150. <c:choose>
  151. <c:when test="${total > 0}">
  152. <c:forEach var="l" items="${item}" varStatus="lStatus">
  153. <c:set var="viewLink" value="./info?centerCode=${l.centerCode}" />
  154. <c:set var="pageNum" value="${ ( total - lStatus.index ) - ( (page - 1) * pageSize ) }" />
  155. <tr>
  156. <td><fmt:formatNumber value="${pageNum}" pattern="#,###" /></td>
  157. <td>
  158. <a href="${viewLink}"><c:out value="${l.centerName}" /></a>
  159. </td>
  160. <td><c:out value="${l.locationName}" /></td>
  161. <td><c:out value="${l.staffName}(${l.staffId})" /></td>
  162. <td><c:out value="${l.staffPhoneNumber}"></c:out></td>
  163. <td><c:out value="${l.totalPatient}" /></td>
  164. <td><c:out value="${l.totalCapacity}" /></td>
  165. <td><c:out value="${l.totalStaff}" /></td>
  166. <td><c:out value="${l.createDate}" /></td>
  167. </tr>
  168. </c:forEach>
  169. </c:when>
  170. <c:otherwise>
  171. <tr>
  172. <td colspan="9">등록된 생활치료센터가 없습니다.</td>
  173. </tr>
  174. </c:otherwise>
  175. </c:choose>
  176. </tbody>
  177. </table>
  178. </div>
  179. <div class="row mt-5">
  180. <div class="col-12 col-lg-6 mb-2">
  181. </div>
  182. <div class="col-12 col-lg-6 mb-2">
  183. <jsp:include page="${data._INCLUDE}/paging.jsp" flush="true">
  184. <jsp:param name="firstPageNo" value="${paging.firstPageNo}" />
  185. <jsp:param name="prevPageNo" value="${paging.prevPageNo}" />
  186. <jsp:param name="startPageNo" value="${paging.startPageNo}" />
  187. <jsp:param name="pageNo" value="${paging.pageNo}" />
  188. <jsp:param name="endPageNo" value="${paging.endPageNo}" />
  189. <jsp:param name="nextPageNo" value="${paging.nextPageNo}" />
  190. <jsp:param name="finalPageNo" value="${paging.finalPageNo}" />
  191. <jsp:param name="preFix" value="${paging.preFix}" />
  192. <jsp:param name="url" value="${paging.url}" />
  193. <jsp:param name="total" value="${paging.totalCount}" />
  194. </jsp:include>
  195. </div>
  196. </div>
  197. </div>
  198. </div>
  199. </div>
  200. </div>
  201. <!-- 환자관리 END -->
  202. </div>
  203. </main>
  204. <jsp:include page="${data._INCLUDE}/footer.jsp"></jsp:include>
  205. </div>
  206. </div>
  207. </body>
  208. </html>