list.jsp 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
  2. <%@ page language="java" contentType="text/html; charset=UTF-8"
  3. pageEncoding="UTF-8"%>
  4. <jsp:include page="${data._INCLUDE}/header.jsp"></jsp:include>
  5. <script>
  6. $( function(){
  7. $( "div.accept-wrap span.detail" ).on( "click", function(){
  8. var $this = $( this );
  9. $this.closest( "li" ).find( "div.content-wrap" ).fadeIn( 400 );
  10. });
  11. $( "div.content-wrap button.ok" ).on( "click", function(){
  12. $( this ).closest( "div.content-wrap" ).hide().prev( "a" ).find( "input[type='checkbox']" ).prop( "checked", true );
  13. checkComplete();
  14. });
  15. $( "div.accept-wrap input[type='checkbox']" ).on( "change", function(){
  16. checkComplete();
  17. })
  18. });
  19. function checkComplete(){
  20. var totalLen = $( "div.accept-wrap input[type='checkbox']" ).length;
  21. var checkLen = $( "div.accept-wrap input[type='checkbox']:checked" ).length;
  22. if( totalLen == checkLen ){
  23. $( "#accept-complete" ).removeClass( "not-accept" ).prop( "disabled", false );
  24. } else {
  25. $( "#accept-complete" ).addClass( "not-accept" ).prop( "disabled", true );
  26. }
  27. }
  28. </script>
  29. <style>
  30. <!--
  31. /* Font Definitions */
  32. @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;}
  33. @font-face {font-family:"Arial Unicode MS"; panose-1:2 11 6 4 2 2 2 2 2 4;}
  34. @font-face {font-family:"Malgun Gothic"; panose-1:2 11 5 3 2 0 0 2 0 4;}
  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:휴먼명조; panose-1:0 0 0 0 0 0 0 0 0 0;}
  38. @font-face {font-family:HYGothic-Medium; panose-1:0 0 0 0 0 0 0 0 0 0;}
  39. @font-face {font-family:"\@Malgun Gothic";}
  40. @font-face {font-family:"\@Arial Unicode MS"; panose-1:2 11 6 4 2 2 2 2 2 4;}
  41. @font-face {font-family:"\@휴먼명조"; panose-1:0 0 0 0 0 0 0 0 0 0;}
  42. @font-face {font-family:"\@HYGothic-Medium"; 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. @font-face {font-family:"\@함초롬돋움"; panose-1:0 0 0 0 0 0 0 0 0 0;}
  45. /* Style Definitions */
  46. 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;}
  47. 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;}
  48. .MsoChpDefault {font-family:"Malgun Gothic",sans-serif;}
  49. /* Page Definitions */
  50. @page WordSection1 {size:595.25pt 841.85pt; margin:99.2pt 85.0pt 85.0pt 85.0pt;}
  51. div.WordSection1 {page:WordSection1;padding:20px 10px;border-top:1px solid #DBDBDB;}
  52. /* List Definitions */
  53. ol {margin-bottom:0in;}
  54. ul {margin-bottom:0in;}
  55. div.WordSection1 *{font-size:13px !important;}
  56. div.WordSection1 table td {width:auto !important;}
  57. -->
  58. p.a a{padding:0 !important;margin:0 !important;
  59. border: 0 !important;
  60. box-shadow:0 0 0 0 !important;
  61. display: inline-block !important;
  62. position: inherit !important;margin-bottom:0 !important;}
  63. </style>
  64. <body>
  65. <form action="/mobile/accept/insert" method="post" id="acceptForm">
  66. <div id="sub">
  67. <div class="container">
  68. <div class="header">
  69. <div class="previous">
  70. <!-- <a href="./menu">이전</a> -->
  71. </div>
  72. <div class="title">이용약관 및 개인정보처리방침<br/><span style="font-size:14px;">(Terms of service and Privacy Policy)</span>
  73. </div>
  74. </div>
  75. <div class="alert">※ 서비스 이용을 원하시면 이용약관, 개인정보처리방침에 대한 내용을 확인하신 후 동의해 주시기 바랍니다.<br/>(If you wish to use the service, please confirm and agree to the terms of service and privacy policy.)</div>
  76. <div class="accept-wrap">
  77. <ul class="list">
  78. <c:forEach var="al" items="${acceptList}" varStatus="lStatus">
  79. <li>
  80. <a href="javascript:;" class="" style="text-align:right;display: inline-block;width: 100%;">
  81. <input type="checkbox" name="acceptIdx" value="${al.acceptIdx}" id="accept${lStatus.index}" />
  82. <label for="accept${lStatus.index}" style="float:left;text-align:left;width:70%;word-break:keep-all;"><span></span>
  83. <c:out value="${al.title}"/>
  84. <c:if test="${al.necessaryYn eq 'Y'}"> (필수)</c:if>
  85. <c:if test="${al.necessaryYn ne 'Y'}"> (선택)</c:if>
  86. </label>
  87. <span class="detail">보기(View)</span>
  88. </a>
  89. <div class="content-wrap" style="display:none;">
  90. <div class="relative">
  91. <div class="title"><c:out value="${al.title}"/> <span class="close" onclick="$(this).closest('.content-wrap').hide();"></span></div>
  92. <div class="content"><c:out value="${al.content}" escapeXml="false"/></div>
  93. <button type="button" class="ok">
  94. <span class="check">약관을 충분히 이해했으며 동의 합니다</span>
  95. </button>
  96. </div>
  97. </div>
  98. </li>
  99. </c:forEach>
  100. </ul>
  101. </div>
  102. </div>
  103. </div>
  104. <div class="btn_group">
  105. <ul>
  106. <li style="font-size:0;height:60px;">
  107. <button type="submit" id="accept-complete" class="confirm not-accept" style="height:60px;line-height:20px;" disabled>
  108. <span class="check">모두 동의하였으며 계속 진행합니다.<br/>(All agree and continue.)</span>
  109. </button>
  110. </li>
  111. </ul>
  112. </div>
  113. </form>
  114. </body>
  115. </html>