diff --git a/adm/admin.head.php b/adm/admin.head.php
index d673d75a2..abe05048d 100644
--- a/adm/admin.head.php
+++ b/adm/admin.head.php
@@ -99,10 +99,13 @@ function textarea_size(fld, size)
$href1 = '';
$href2 = '';
}
- echo '
';
+ if (substr($sub_menu, 0, 2) == substr($menu['menu'.$key][0][0], 0, 2))
+ $current_class = " gnb_1depth_on";
+ echo "";
echo $href1 . $menu['menu'.$key][0][1] . $href2;
echo print_menu1('menu'.$key, 1);
- echo '';
+ echo "";
+ if ($current_class) $current_class = ""; // 클래스 반복부여 방지
}
?>
diff --git a/adm/admin.tail.php b/adm/admin.tail.php
index 48452ee20..477234700 100644
--- a/adm/admin.tail.php
+++ b/adm/admin.tail.php
@@ -11,6 +11,7 @@ if (!defined("_GNUBOARD_")) exit;
+
include_once($g4['path'].'/tail.sub.php');
diff --git a/adm/gnb.js b/adm/gnb.js
new file mode 100644
index 000000000..ed182ad19
--- /dev/null
+++ b/adm/gnb.js
@@ -0,0 +1,3 @@
+$(document).ready(function(){
+
+});
\ No newline at end of file
diff --git a/css/adm.css b/css/adm.css
index c7a491166..8edbc6d40 100644
--- a/css/adm.css
+++ b/css/adm.css
@@ -34,15 +34,17 @@ header {background:#2c2f34}
#current_location {position:absolute;top:50px;left:0;width:100%;height:35px;background:url('../img/top_bg.png') #2c2f34 repeat-x;color:#ccc;font-size:0.75em;line-height:2.95em}
#current_location ul {margin-left:20px}
#current_location li {float:left}
-#wrapper {margin:60px 0 0 220px;min-height:630px}
+#wrapper {margin:60px 20px 0 220px;min-height:630px}
/* GNB */
#gnb {position:absolute;top:110px;left:20px;width:180px}
-/* #gnb ul ul {display:block;visibility:hidden;height:0} */
+.gnb_1depth ul {display:block;visibility:hidden;height:0}
+.gnb_1depth_on ul {visibility:visible;height:auto}
.gnb_1depth {margin-bottom:5px;border:1px solid #c7cfd5;background:#eef2f3}
.gnb_1depth a {display:block;padding-left:15px;height:38px;color:#899093;font-weight:bold;text-decoration:none;line-height:2.5em}
-.gnb_2depth {border-bottom:1px solid #eef1f2;background:#fff}
-.gnb_2depth a {display:block;padding-left:15px;height:30px;color:#000;font:0.75em normal;text-decoration:none;line-height:2.8em}
+.gnb_1depth_on a {background:#515b5f;color:#fff}
+.gnb_2depth {border-bottom:1px solid #eef1f2}
+.gnb_2depth a {display:block;padding-left:15px;height:30px;background:#fff;color:#000;font:0.75em normal;text-decoration:none;line-height:2.8em}
.gnb_2depth a:focus, .gnb_2depth a:hover {background:#f6f9fa}
/* heading */