관리자: gnb 인덱스에서는 모두 보여지도록

This commit is contained in:
whitedot
2012-12-11 16:52:52 +09:00
parent 2b0a48cce6
commit aa34be39f9
2 changed files with 3 additions and 2 deletions

View File

@ -99,13 +99,13 @@ function textarea_size(fld, size)
$href1 = '<a href="'.$menu['menu'.$key][0][2].'">';
$href2 = '</a>';
}
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 "<li class=\"gnb_1depth".$current_class."\">";
echo $href1 . $menu['menu'.$key][0][1] . $href2;
echo print_menu1('menu'.$key, 1);
echo "</li>";
if ($current_class) $current_class = ""; // 클래스 반복부여 방지
if ($current_class || !$index) $current_class = ""; // 클래스 반복부여 방지
}
?>

View File

@ -2,6 +2,7 @@
include_once('./_common.php');
$g4['title'] = '관리자메인';
$index = 1;
include_once ('./admin.head.php');
$new_member_rows = 5;