From 4bbfae7ccf7fb6601ffee319629cc467eb2aa684 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B5=9C=EC=A4=80=ED=9D=A0?= Date: Sun, 29 Sep 2024 22:47:56 +0900 Subject: [PATCH] cfmgrv4 init...4 --- .../Admin/Cloudflare/Record_helper.php | 2 +- app/Helpers/Admin/Cloudflare/Zone_helper.php | 5 +- app/Views/layouts/admin.php | 62 ++++++------- .../layouts/admin/{tail.php => bottom.php} | 0 app/Views/layouts/admin/left_menu.php | 12 +-- app/Views/layouts/admin/left_menu/base.php | 6 +- .../layouts/admin/left_menu/cloudflare.php | 15 ++-- app/Views/layouts/admin/left_menu/site.php | 10 +-- app/Views/layouts/admin/{head.php => top.php} | 8 +- app/Views/templates/admin/footer.php | 17 ++-- app/Views/templates/admin/header.php | 86 +++++++++++++++++- public/css/admin.css | 89 +++++++++++-------- public/css/admin/left_menu.css | 67 +++++++++----- public/js/admin.js | 30 ------- .../js/admin/{side_menu.js => left_menu.js} | 2 +- 15 files changed, 251 insertions(+), 160 deletions(-) rename app/Views/layouts/admin/{tail.php => bottom.php} (100%) rename app/Views/layouts/admin/{head.php => top.php} (89%) rename public/js/admin/{side_menu.js => left_menu.js} (88%) diff --git a/app/Helpers/Admin/Cloudflare/Record_helper.php b/app/Helpers/Admin/Cloudflare/Record_helper.php index 77823f2..ffc2423 100644 --- a/app/Helpers/Admin/Cloudflare/Record_helper.php +++ b/app/Helpers/Admin/Cloudflare/Record_helper.php @@ -121,7 +121,7 @@ function getListColumns_RecordHelper(string $field, array $viewDatas, array $ext $label = anchor((string)$viewDatas['uri'], $label); switch ($field) { case RecordModel::PARENT: - $label .= " + data-bs-target="#flush-heading1" aria-expanded="false" + aria-controls="flush-heading1"> Cloudflare API + -
+ \ No newline at end of file diff --git a/app/Views/layouts/admin/left_menu/site.php b/app/Views/layouts/admin/left_menu/site.php index 4601c4e..1bf5b18 100644 --- a/app/Views/layouts/admin/left_menu/site.php +++ b/app/Views/layouts/admin/left_menu/site.php @@ -1,13 +1,13 @@

+ data-bs-target="#flush-heading2" aria-expanded="false" + aria-controls="flush-heading2">사이트관리

-
+ \ No newline at end of file diff --git a/app/Views/layouts/admin/head.php b/app/Views/layouts/admin/top.php similarity index 89% rename from app/Views/layouts/admin/head.php rename to app/Views/layouts/admin/top.php index 67952d0..9f09667 100644 --- a/app/Views/layouts/admin/head.php +++ b/app/Views/layouts/admin/top.php @@ -1,4 +1,4 @@ -
+
+ \ No newline at end of file diff --git a/public/css/admin.css b/public/css/admin.css index f4eb976..7ba0163 100644 --- a/public/css/admin.css +++ b/public/css/admin.css @@ -7,58 +7,66 @@ * { margin: 0px; padding: 0px; - font-size: 16px; -} -body { - height: 100vw; /* 화면 넓이의 100% */ - height: 100vh; /* 화면 높이의 100% */ - background-color: #efefef; - /* border:1px solid blue; */ -} -div.layout > nav.head { - height: 51px; - border-top: 1px solid gray; - border-bottom: 1px solid gray; - background-color: #f8f9fa; -} -div.layout > nav.tail { - height: 51px; - bottom: 0; - left: 0; - width: 100%; - background-color: silver; - text-align: center; - padding: 10px; + border: 0px; + /* font-size: 15px; */ } -div.layout > div.center > div.left_menu { - border-color: 1px solid red; +body { + background-color: #efefef; } -div.layout > div.center > div.content { - margin: 15px 15px 15px 25px; + +div.top { + height: 51px; + margin-bottom: 10px; + border-top: 1px solid gray; + border-bottom: 1px solid gray; + background-color: #e8e9ea; } -div.layout > div.center > div.content > div.header { + +div.middle { + /* height: 100%; */ + /* display: flex; */ +} + +div.middle div.left { + width: 217px; + /* overflow: auto; */ + /* border: 1px solid red; */ +} + +div.middle div.center { + width: 100%; + /* overflow: auto; */ + /* border: 1px solid blue; */ +} + +div.middle div.center div.header { /*content 헤더라인*/ - height: 50px; + height: 55px; + padding-top: 15px; background-color: #e7e7e7; -} -div.layout > div.center > div.content > div.header > ul.nav { - /*nav-tabs 헤더라인*/ border-top: 1px solid gray; border-left: 1px solid gray; border-right: 1px solid gray; border-radius: 15px 15px 0px 0px; } -div.layout > div.center > div.content > div.center { + +div.middle div.center div.header li.nav-item { + height: 40px; +} + +div.middle div.center div.content { /*content 부분*/ - height: 100%; - padding: 15px; - /* border: 1px solid gray; */ + padding-top: 15px; + padding-left: 23px; + padding-right: 15px; + padding-bottom: 15px; border-left: 1px solid gray; border-right: 1px solid gray; background-color: white; } -div.layout > div.center > div.content div.footer { + +div.middle div.center div.footer { /*content 하단라인*/ height: 20px; border-left: 1px solid gray; @@ -66,3 +74,12 @@ div.layout > div.center > div.content div.footer { border-bottom: 1px solid gray; border-radius: 0px 0px 15px 15px; } + +div.bottom { + height: 51px; + margin-top: 10px; + border-top: 1px solid gray; + border-bottom: 1px solid gray; + background-color: #efefef; + background-color: #e8e9ea; +} \ No newline at end of file diff --git a/public/css/admin/left_menu.css b/public/css/admin/left_menu.css index f1cf000..5ab52e4 100644 --- a/public/css/admin/left_menu.css +++ b/public/css/admin/left_menu.css @@ -1,35 +1,56 @@ div#left_menu { position: fixed; - margin-top: 10px; + margin-top: 120px; z-index: 100; - border: 1px solid #e7e7e7; -} -div#left_menu > div#menu_button { - position: absolute; - top: 0px; - right: -20px; - height: 100px; - width: 20px; - cursor: ew-resize; - writing-mode: vertical-rl; /* 세로로 글자를 출력 */ - text-orientation: upright; /* 글자가 직립되도록 설정 */ - border-radius: 0px 5px 5px 0px; border: 1px solid silver; - background-color: #eaeaea; } -div#left_menu > div.accordion { - /* display:none; */ - background-color: white; + +div#left_menu div#menu_button { + position: absolute; + top: -1px; + right: -21px; width: 20px; - height: 50px; + height: 180px; + cursor: pointer; + writing-mode: vertical-rl; + /* 세로로 글자를 출력 */ + text-orientation: upright; + /* 글자가 직립되도록 설정 */ + border-top: 1px solid silver; + border-right: 1px solid silver; + border-bottom: 1px solid silver; + border-radius: 0px 5px 5px 0px; + background-color: #e8e9ea; +} + +div#left_menu div.accordion { display: none; + width: 20px; } -div#left_menu > div.accordion div.accordion-item:hover { - background-color: #e7e7e7; + +div#left_menu div.accordion div.main { + height: 50px; + padding-top: 15px; + padding-left: 10px; + background-color: white; + border-bottom: 1px solid silver; } -div#left_menu > div.accordion div.accordion-item a { + +div#left_menu div.accordion div.accordion-item { + height: 50px; + padding-top: 15px; + background-color: #eeeeee; + border-bottom: 1px solid silver; +} + +div#left_menu div.accordion div.accordion-item:hover { + background-color: silver; +} + +div#left_menu div.accordion div.accordion-item a { padding-left: 20px; } -div#left_menu > div.accordion div.accordion-collapse a { + +div#left_menu div.accordion div.accordion-collapse a { padding-left: 30px; -} +} \ No newline at end of file diff --git a/public/js/admin.js b/public/js/admin.js index 91925ab..a485a38 100644 --- a/public/js/admin.js +++ b/public/js/admin.js @@ -4,36 +4,6 @@ * Created : 2016/9/11 Tri-aBility by Junheum,Choi * Updated : ------------------------------------------------------------ */ -function trim(str){ - return this.replace(/(^\s*)|(\s*$)/gi, ""); -} - -//오른쪽에 위 화살표 방향버튼용 -/*$(document).ready(function(){ - $('body').append('
'); - $("#toTop").bind("click", function () {$("body").animate({ scrollTop: 0 }, 200);}); - $(window).scroll(function () { - if ($(this).scrollTop() != 0) { - $('#toTop').fadeIn(); - } else { - $('#toTop').fadeOut(); - } - }); -}); -//오른쪽에 위 화살표 방향버튼용 -//오른쪽에 아래 화살표 방향버튼용 -$(document).ready(function(){ - $('body').append('
'); - $("#toBottom").bind("click", function () {$("body").animate({ scrollTop: 200000 }, 200);}); - $(window).scroll(function () { - if ($(this).scrollTop() != 0) { - $('#toBottom').fadeIn(); - } else { - $('#toBottom').fadeIn(); - } - }); -});*/ -//오른쪽에 아래 화살표 방향버튼용 function is_NumericKey(evt,obj){ var charCode = (evt.which) ? evt.which : event.keyCode; diff --git a/public/js/admin/side_menu.js b/public/js/admin/left_menu.js similarity index 88% rename from public/js/admin/side_menu.js rename to public/js/admin/left_menu.js index de84dfc..1cfc98e 100644 --- a/public/js/admin/side_menu.js +++ b/public/js/admin/left_menu.js @@ -2,7 +2,7 @@ function sideMenuToggle(left_menu) { $accordion = $("#accordion")[0]; if (accordion.clientWidth == 0){ accordion.style.display = "block"; - $("#accordion").css({ "width": '160px' }) + $("#accordion").css({ "width": '217px' }) $("#menu_button").html("메뉴닫기"); } else {