From aa34be39f9fdbdffa8ea5f2d9b69cf5450bd5700 Mon Sep 17 00:00:00 2001 From: whitedot Date: Tue, 11 Dec 2012 16:52:52 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B4=80=EB=A6=AC=EC=9E=90:=20gnb=20=EC=9D=B8?= =?UTF-8?q?=EB=8D=B1=EC=8A=A4=EC=97=90=EC=84=9C=EB=8A=94=20=EB=AA=A8?= =?UTF-8?q?=EB=91=90=20=EB=B3=B4=EC=97=AC=EC=A7=80=EB=8F=84=EB=A1=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/admin.head.php | 4 ++-- adm/index.php | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/adm/admin.head.php b/adm/admin.head.php index abe05048d..f48cee846 100644 --- a/adm/admin.head.php +++ b/adm/admin.head.php @@ -99,13 +99,13 @@ function textarea_size(fld, size) $href1 = ''; $href2 = ''; } - if (substr($sub_menu, 0, 2) == substr($menu['menu'.$key][0][0], 0, 2)) + if (substr($sub_menu, 0, 2) == substr($menu['menu'.$key][0][0], 0, 2) || $index) $current_class = " gnb_1depth_on"; echo "
  • "; echo $href1 . $menu['menu'.$key][0][1] . $href2; echo print_menu1('menu'.$key, 1); echo "
  • "; - if ($current_class) $current_class = ""; // 클래스 반복부여 방지 + if ($current_class || !$index) $current_class = ""; // 클래스 반복부여 방지 } ?> diff --git a/adm/index.php b/adm/index.php index f28e8e371..534d340c8 100644 --- a/adm/index.php +++ b/adm/index.php @@ -2,6 +2,7 @@ include_once('./_common.php'); $g4['title'] = '관리자메인'; +$index = 1; include_once ('./admin.head.php'); $new_member_rows = 5;