diff --git a/src/main/java/itn/let/cop/bbs/web/EgovBBSManageController.java b/src/main/java/itn/let/cop/bbs/web/EgovBBSManageController.java index f5c8d8f5..99da5ec7 100644 --- a/src/main/java/itn/let/cop/bbs/web/EgovBBSManageController.java +++ b/src/main/java/itn/let/cop/bbs/web/EgovBBSManageController.java @@ -4681,16 +4681,13 @@ public class EgovBBSManageController { effectDate_03 = "(2022.08.01)"; } - model.addAttribute("effectDate_02", effectDate_02); - model.addAttribute("effectDate_03", effectDate_03); - + model.addAttribute("effectDate_02", effectDate_02); //이용약관 개정 일자 표시 + model.addAttribute("effectDate_03", effectDate_03); //개인정보처리방침 개정 일자 표시 + model.addAttribute("termsMstNo", termsMstNo); //요청 버전 값(2024, 2023, 2022 등) //상세 하단 리스트 if(request.getRequestURI().contains("ListAjax.do")) { - - model.addAttribute("termsMstNo", termsMstNo); - if(menuNm.equals("02")) { String jspName = "TermsListAgreement_" + termsMstNo + "_Ajax"; return "web/cop/bbs/"+jspName; @@ -4701,7 +4698,12 @@ public class EgovBBSManageController { } // 공통 - List resultList = new ArrayList(); + List resultList = new ArrayList(); + + /* + * 이용약관 및 개인정보 처리방침 화면은 HTML 화면으로 전환되어 디비 조회 코드는 주석 처리함 + * 2024 10 25 우영두 수정 + * */ // // 이용약관, 개인정보보호방침 이전버전 List // TermsVO termsVO2 = new TermsVO(); @@ -4746,7 +4748,7 @@ public class EgovBBSManageController { return "web/cop/bbs/TermsListAjax"; } - else { +// else { // String effectDate_02 = ""; // String effectDate_03 = ""; // TermsVO termsVO7 = new TermsVO(); @@ -4769,7 +4771,7 @@ public class EgovBBSManageController { // model.addAttribute("effectDate_02", effectDate_02); // model.addAttribute("effectDate_03", effectDate_03); - } +// } return "web/cop/bbs/TermsList"; } diff --git a/src/main/webapp/WEB-INF/jsp/web/cop/bbs/TermsList.jsp b/src/main/webapp/WEB-INF/jsp/web/cop/bbs/TermsList.jsp index 5a22a3b5..ba85c103 100644 --- a/src/main/webapp/WEB-INF/jsp/web/cop/bbs/TermsList.jsp +++ b/src/main/webapp/WEB-INF/jsp/web/cop/bbs/TermsList.jsp @@ -99,7 +99,7 @@ function getTermsOtherVersion(){
- +
diff --git a/src/main/webapp/WEB-INF/jsp/web/cop/bbs/TermsListAgreement_2022_Ajax.jsp b/src/main/webapp/WEB-INF/jsp/web/cop/bbs/TermsListAgreement_2022_Ajax.jsp index 309301a1..c3b67578 100644 --- a/src/main/webapp/WEB-INF/jsp/web/cop/bbs/TermsListAgreement_2022_Ajax.jsp +++ b/src/main/webapp/WEB-INF/jsp/web/cop/bbs/TermsListAgreement_2022_Ajax.jsp @@ -31,6 +31,15 @@ $(document).ready(function () { $("#btnAgreement").text("이용약관" + effectDate_02); $("#termsMastNo02").val(mastNo); + + $(".privacy_index_box a").click(function(){ + var idxHref = $(this).attr("href"); + var idxSct = $(idxHref).offset().top - 196; + $("html,body").animate({ + scrollTop:idxSct + },400) + }); + }) diff --git a/src/main/webapp/WEB-INF/jsp/web/cop/bbs/TermsListAgreement_2023_Ajax.jsp b/src/main/webapp/WEB-INF/jsp/web/cop/bbs/TermsListAgreement_2023_Ajax.jsp index 309301a1..c3b67578 100644 --- a/src/main/webapp/WEB-INF/jsp/web/cop/bbs/TermsListAgreement_2023_Ajax.jsp +++ b/src/main/webapp/WEB-INF/jsp/web/cop/bbs/TermsListAgreement_2023_Ajax.jsp @@ -31,6 +31,15 @@ $(document).ready(function () { $("#btnAgreement").text("이용약관" + effectDate_02); $("#termsMastNo02").val(mastNo); + + $(".privacy_index_box a").click(function(){ + var idxHref = $(this).attr("href"); + var idxSct = $(idxHref).offset().top - 196; + $("html,body").animate({ + scrollTop:idxSct + },400) + }); + }) diff --git a/src/main/webapp/WEB-INF/jsp/web/cop/bbs/TermsListAgreement_2024_Ajax.jsp b/src/main/webapp/WEB-INF/jsp/web/cop/bbs/TermsListAgreement_2024_Ajax.jsp index 309301a1..c3b67578 100644 --- a/src/main/webapp/WEB-INF/jsp/web/cop/bbs/TermsListAgreement_2024_Ajax.jsp +++ b/src/main/webapp/WEB-INF/jsp/web/cop/bbs/TermsListAgreement_2024_Ajax.jsp @@ -31,6 +31,15 @@ $(document).ready(function () { $("#btnAgreement").text("이용약관" + effectDate_02); $("#termsMastNo02").val(mastNo); + + $(".privacy_index_box a").click(function(){ + var idxHref = $(this).attr("href"); + var idxSct = $(idxHref).offset().top - 196; + $("html,body").animate({ + scrollTop:idxSct + },400) + }); + }) diff --git a/src/main/webapp/WEB-INF/jsp/web/cop/bbs/TermsListPrivate_2022_Ajax.jsp b/src/main/webapp/WEB-INF/jsp/web/cop/bbs/TermsListPrivate_2022_Ajax.jsp index bb5e1152..c1eca03a 100644 --- a/src/main/webapp/WEB-INF/jsp/web/cop/bbs/TermsListPrivate_2022_Ajax.jsp +++ b/src/main/webapp/WEB-INF/jsp/web/cop/bbs/TermsListPrivate_2022_Ajax.jsp @@ -31,6 +31,14 @@ $(document).ready(function () { $("#btnPrivate").text("개인정보처리방침" + effectDate_03); $("#termsMastNo03").val(mastNo); + + $(".privacy_index_box a").click(function(){ + var idxHref = $(this).attr("href"); + var idxSct = $(idxHref).offset().top - 196; + $("html,body").animate({ + scrollTop:idxSct + },400) + }); }) diff --git a/src/main/webapp/WEB-INF/jsp/web/cop/bbs/TermsListPrivate_2023_Ajax.jsp b/src/main/webapp/WEB-INF/jsp/web/cop/bbs/TermsListPrivate_2023_Ajax.jsp index b45191d2..9af29221 100644 --- a/src/main/webapp/WEB-INF/jsp/web/cop/bbs/TermsListPrivate_2023_Ajax.jsp +++ b/src/main/webapp/WEB-INF/jsp/web/cop/bbs/TermsListPrivate_2023_Ajax.jsp @@ -31,6 +31,14 @@ $(document).ready(function () { $("#btnPrivate").text("개인정보처리방침" + effectDate_03); $("#termsMastNo03").val(mastNo); + + $(".privacy_index_box a").click(function(){ + var idxHref = $(this).attr("href"); + var idxSct = $(idxHref).offset().top - 196; + $("html,body").animate({ + scrollTop:idxSct + },400) + }); }) diff --git a/src/main/webapp/WEB-INF/jsp/web/cop/bbs/TermsListPrivate_2024_Ajax.jsp b/src/main/webapp/WEB-INF/jsp/web/cop/bbs/TermsListPrivate_2024_Ajax.jsp index 243426bf..5ff093f1 100644 --- a/src/main/webapp/WEB-INF/jsp/web/cop/bbs/TermsListPrivate_2024_Ajax.jsp +++ b/src/main/webapp/WEB-INF/jsp/web/cop/bbs/TermsListPrivate_2024_Ajax.jsp @@ -31,6 +31,15 @@ $(document).ready(function () { $("#btnPrivate").text("개인정보처리방침" + effectDate_03); $("#termsMastNo03").val(mastNo); + + $(".privacy_index_box a").click(function(){ + var idxHref = $(this).attr("href"); + var idxSct = $(idxHref).offset().top - 196; + $("html,body").animate({ + scrollTop:idxSct + },400) + }); + })