list.jsp 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  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. var startDate = "<c:out value='${startDate}'/>";
  9. var endDate = "<c:out value='${endDate}'/>";
  10. $(function() {
  11. $("input[name=\"startDate\"]").daterangepicker({
  12. singleDatePicker : true,
  13. showDropdowns : true,
  14. // startDate : "<c:out value='${startDate}'/>",
  15. locale : {
  16. //format : "M/DD hh:mm A"
  17. format : "YYYY-MM-DD"
  18. }
  19. });
  20. $("input[name=\"endDate\"]").daterangepicker({
  21. singleDatePicker : true,
  22. showDropdowns : true,
  23. // startDate : "<c:out value='${endDate}'/>",
  24. locale : {
  25. //format : "M/DD hh:mm A"
  26. format : "YYYY-MM-DD"
  27. }
  28. });
  29. $("input[name=\"startDate\"]").val( startDate );
  30. $("input[name=\"endDate\"]").val( endDate );
  31. });
  32. </script>
  33. </head>
  34. <body>
  35. <div class="wrapper">
  36. <jsp:include page="${data._INCLUDE}/sidebar.jsp"></jsp:include>
  37. <div class="main">
  38. <jsp:include page="${data._INCLUDE}/top.jsp"></jsp:include>
  39. <main class="content">
  40. <div class="container-fluid p-0">
  41. <!-- 환지관리 START -->
  42. <div class="row">
  43. <div class="col-12 col-lg-6">
  44. <h1 class="h3 mb-3">협력병원 관리</h1>
  45. </div>
  46. <div class="col-12 col-lg-6 text-right">
  47. <nav aria-label="breadcrumb">
  48. <ol class="breadcrumb">
  49. <li class="breadcrumb-item"><a href="javscript:;">Home</a></li>
  50. <li class="breadcrumb-item">협력병원 관리</li>
  51. <li class="breadcrumb-item active">협력병원 리스트</li>
  52. </ol>
  53. </nav>
  54. </div>
  55. </div>
  56. <div class="row">
  57. <div class="col-12">
  58. <div class="card">
  59. <form action="?" method="get">
  60. <div class="card-body">
  61. <table class="table mobile-table">
  62. <colgroup>
  63. <col style="width:10%">
  64. <col style="width:40%">
  65. <col style="width:10%">
  66. <col style="width:40%">
  67. </colgroup>
  68. <tr>
  69. <th>조건</th>
  70. <td>
  71. <div class="form-row">
  72. <div class="col-6">
  73. <select class="custom-select form-control" id="selectState" name="selectState">
  74. <option value="sName" <c:if test="${selectState eq 'sName'}"> selected="selected"</c:if>>협력병원명</option>
  75. <option value="sCode" <c:if test="${selectState eq 'sCode'}"> selected="selected"</c:if>>요양기관기호</option>
  76. <%-- <option value="sCenterName" <c:if test="${selectState eq 'sCenterName'}"> selected="selected"</c:if>>치료센터명</option> --%>
  77. </select>
  78. </div>
  79. <div class="col-6">
  80. <input type="text" class="form-control" name="sData" value="${sData}" placeholder="">
  81. </div>
  82. </div>
  83. </td>
  84. <th>사용여부</th>
  85. <td>
  86. <div class="form-row">
  87. <div class="col-6">
  88. <select class="custom-select form-control" id="useYn" name="useYn">
  89. <option value="">전체</option>
  90. <option value="Y" <c:if test="${useYn eq 'Y'}"> selected="selected"</c:if>>활성</option>
  91. <option value="N" <c:if test="${useYn eq 'N'}"> selected="selected"</c:if>>비활성</option>
  92. </select>
  93. </div>
  94. <div class="col-6">
  95. <button class="btn btn-primary">검색</button>
  96. </div>
  97. </div>
  98. </td>
  99. </tr>
  100. </table>
  101. </div>
  102. </form>
  103. </div>
  104. </div>
  105. </div>
  106. <div class="row">
  107. <div class="col-12">
  108. <div class="card">
  109. <div class="card-body">
  110. <div class="row mb-3">
  111. <div class="col-6">전체 :
  112. <fmt:formatNumber value="${total}" pattern="#,###" />
  113. </div>
  114. <div class="col-6 text-right">
  115. <button class="btn btn-primary" onclick="location.href='./new';">협력병원 신규 등록</button>
  116. </div>
  117. </div>
  118. <div class="table-responsive">
  119. <table class="table table-striped text-center">
  120. <colgroup>
  121. <col style=" width: 10%; ">
  122. <col style=" width: 40%; ">
  123. <col style=" width: 30%; ">
  124. <col style=" width: 20%; ">
  125. </colgroup>
  126. <thead>
  127. <tr>
  128. <th>번호</th>
  129. <th>협력병원명</th>
  130. <th>요양기관기호</th>
  131. <th>사용여부</th>
  132. </tr>
  133. </thead>
  134. <tbody>
  135. <c:choose>
  136. <c:when test="${total > 0}">
  137. <c:forEach var="l" items="${list}" varStatus="lStatus">
  138. <c:set var="viewLink" value="./info?cooperativeCode=${l.cooperativeCode}" />
  139. <c:set var="pageNum" value="${ ( total - lStatus.index ) - ( (page - 1) * pageSize ) }" />
  140. <tr>
  141. <td><fmt:formatNumber value="${pageNum}" pattern="#,###" /></td>
  142. <td>
  143. <a href="${viewLink}"><c:out value="${l.cooperativeName}" /></a>
  144. </td>
  145. <td><c:out value="${l.cooperativeCode}" /></td>
  146. <td>
  147. <c:if test="${l.useYn eq 'Y'}">활성</c:if>
  148. <c:if test="${l.useYn eq 'N'}">비활성</c:if>
  149. </td>
  150. </tr>
  151. </c:forEach>
  152. </c:when>
  153. <c:otherwise>
  154. <tr>
  155. <td colspan="4">등록된 협력병원이 없습니다.</td>
  156. </tr>
  157. </c:otherwise>
  158. </c:choose>
  159. </tbody>
  160. </table>
  161. </div>
  162. <div class="row mt-5">
  163. <div class="col-12 col-lg-6 mb-2">
  164. </div>
  165. <div class="col-12 col-lg-6 mb-2">
  166. <jsp:include page="${data._INCLUDE}/paging.jsp" flush="true">
  167. <jsp:param name="firstPageNo" value="${paging.firstPageNo}" />
  168. <jsp:param name="prevPageNo" value="${paging.prevPageNo}" />
  169. <jsp:param name="startPageNo" value="${paging.startPageNo}" />
  170. <jsp:param name="pageNo" value="${paging.pageNo}" />
  171. <jsp:param name="endPageNo" value="${paging.endPageNo}" />
  172. <jsp:param name="nextPageNo" value="${paging.nextPageNo}" />
  173. <jsp:param name="finalPageNo" value="${paging.finalPageNo}" />
  174. <jsp:param name="preFix" value="${paging.preFix}" />
  175. <jsp:param name="url" value="${paging.url}" />
  176. <jsp:param name="total" value="${paging.totalCount}" />
  177. </jsp:include>
  178. </div>
  179. </div>
  180. </div>
  181. </div>
  182. </div>
  183. </div>
  184. <!-- 환자관리 END -->
  185. </div>
  186. </main>
  187. <jsp:include page="${data._INCLUDE}/footer.jsp"></jsp:include>
  188. </div>
  189. </div>
  190. </body>
  191. </html>