list.jsp 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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. $( "#accept-all" ).click( function(){
  10. if( $( this ).is( ":checked" ) == true ) {
  11. console.log( $( this ).is( ":checked" ) );
  12. $( ".accept-checkbox" ).prop( "checked", true );
  13. } else {
  14. $( ".accept-checkbox" ).prop( "checked", false );
  15. }
  16. });
  17. $( "#acceptForm" ).validate({
  18. submitHandler: function(form) {
  19. if( $( ".accept-checkbox[accessKey='required']" ).not(':checked').length > 0 ){
  20. alertBox({ txt : "서비스를 이용하시려면 필수 약관에 모두 동의해주세요" });
  21. } else {
  22. form.submit();
  23. }
  24. }
  25. });
  26. })
  27. </script>
  28. <style>
  29. <!--
  30. /* Font Definitions */
  31. @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;}
  32. @font-face {font-family:"Arial Unicode MS"; panose-1:2 11 6 4 2 2 2 2 2 4;}
  33. @font-face {font-family:"Malgun Gothic"; panose-1:2 11 5 3 2 0 0 2 0 4;}
  34. @font-face {font-family:함초롬바탕; panose-1:0 0 0 0 0 0 0 0 0 0;}
  35. @font-face {font-family:함초롬돋움; panose-1:0 0 0 0 0 0 0 0 0 0;}
  36. @font-face {font-family:휴먼명조; panose-1:0 0 0 0 0 0 0 0 0 0;}
  37. @font-face {font-family:HYGothic-Medium; panose-1:0 0 0 0 0 0 0 0 0 0;}
  38. @font-face {font-family:"\@Malgun Gothic";}
  39. @font-face {font-family:"\@Arial Unicode MS"; panose-1:2 11 6 4 2 2 2 2 2 4;}
  40. @font-face {font-family:"\@휴먼명조"; panose-1:0 0 0 0 0 0 0 0 0 0;}
  41. @font-face {font-family:"\@HYGothic-Medium"; panose-1:0 0 0 0 0 0 0 0 0 0;}
  42. @font-face {font-family:"\@함초롬바탕"; panose-1:0 0 0 0 0 0 0 0 0 0;}
  43. @font-face {font-family:"\@함초롬돋움"; panose-1:0 0 0 0 0 0 0 0 0 0;}
  44. /* Style Definitions */
  45. p.MsoNormal, li.MsoNormal, div.MsoNormal{margin:0in;text-autospace:none;word-break:break-all;font-size:11.0pt;font-family:"Malgun Gothic",sans-serif;}
  46. p.a, li.a, div.a{mso-style-name:바탕글; margin:0in;text-align:justify;text-justify:inter-ideograph;line-height:103%;text-autospace:none; word-break:break-all;font-size:10.0pt;font-family:"함초롬바탕",serif;color:black;}
  47. .MsoChpDefault {font-family:"Malgun Gothic",sans-serif;}
  48. /* Page Definitions */
  49. @page WordSection1 {size:595.25pt 841.85pt; margin:99.2pt 85.0pt 85.0pt 85.0pt;}
  50. div.WordSection1 {page:WordSection1;}
  51. /* List Definitions */
  52. ol {margin-bottom:0in;}
  53. ul {margin-bottom:0in;}
  54. -->
  55. </style>
  56. </head>
  57. <body>
  58. <div class="main">
  59. <div class="mt-0 ml-6 mr-6 mb-6">
  60. <div class="text-center">
  61. <a class="sidebar-brand" href="javascript:;">
  62. <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-box align-middle"><path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line></svg>
  63. <span class="align-middle text-dark">생활치료센터 의료진 시스템</span>
  64. </a>
  65. <h1 class="mt-2">약관 및 개인정보 활용 동의</h1>
  66. </div>
  67. <hr class="my-4">
  68. <main class="content">
  69. <div class="container-fluid p-0">
  70. <div class="row">
  71. <div class="col-8 col-lg-8">
  72. <h1 class="h3 mb-3">※ 관리자 및 의료진용 서비스 이용을 위한 약관 및 개인정보활용 동의해주세요</h1>
  73. </div>
  74. <div class="col-4 col-lg-4 text-right">
  75. <h4 class="text-info">
  76. <input type="checkbox" id="accept-all" />
  77. <label for="accept-all">아래 전체 약관에 동의합니다.</label>
  78. </h4>
  79. </div>
  80. </div>
  81. <div class="row">
  82. <div class="col-12">
  83. <div class="card">
  84. <form action="/accept/insert" method="post" id="acceptForm">
  85. <div class="card-body">
  86. <c:forEach var="al" items="${acceptList}" varStatus="lStatus">
  87. <div class="row mb-3">
  88. <div class="col-12">
  89. <h4 class="">${lStatus.index + 1}. <c:out value="${al.title}"/>
  90. <c:if test="${al.necessaryYn eq 'Y'}">(필수)</c:if>
  91. <c:if test="${al.necessaryYn ne 'Y'}">(선택)</c:if>
  92. </h4>
  93. </div>
  94. </div>
  95. <div style="width:100%;height:300px;overflow-y:auto;padding:20px;background:#e9ecef;border:1px solid #ced4da;">
  96. <c:out value="${al.content}" escapeXml="false"/>
  97. </div>
  98. <div class="row mt-3">
  99. <div class="col-12">
  100. <div class="text-right">
  101. <h4 class="text-info">
  102. <input type="checkbox" name="acceptIdx" value="${al.acceptIdx}" class="accept-checkbox" id="accept${lStatus.index}" <c:if test="${al.necessaryYn eq 'Y'}">accessKey="required"</c:if>>
  103. <label for="accept${lStatus.index}">위의 약관에 동의합니다.</label>
  104. </h4>
  105. </div>
  106. </div>
  107. </div>
  108. </c:forEach>
  109. <hr class="my-4">
  110. <div class="row mt-3">
  111. <div class="col-12">
  112. <div class="text-center">
  113. <button type="submit" class="btn btn-primary btn-lg">동의합니다</button>
  114. <button type="button" class="btn btn-warning btn-lg" onclick="location.href='./list';">동의하지 않습니다</button>
  115. </div>
  116. </div>
  117. </div>
  118. </div>
  119. </form>
  120. </div>
  121. </div>
  122. </div>
  123. </div>
  124. </main>
  125. </div>
  126. <jsp:include page="${data._INCLUDE}/footer.jsp"></jsp:include>
  127. </div>
  128. </body>
  129. </html>