관리자: gnb 작업 중

This commit is contained in:
whitedot
2012-12-11 15:26:24 +09:00
parent 58169bdd71
commit 0da4f4e6ba
4 changed files with 15 additions and 6 deletions

View File

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

View File

@ -11,6 +11,7 @@ if (!defined("_GNUBOARD_")) exit;
<!-- <p>실행시간 : <?=get_microtime() - $begin_time;?> -->
<script src="<?=$g4['admin_path']?>/admin.js"></script>
<script src="<?=$g4['admin_path']?>/gnb.js"></script>
<?
include_once($g4['path'].'/tail.sub.php');

3
adm/gnb.js Normal file
View File

@ -0,0 +1,3 @@
$(document).ready(function(){
});

View File

@ -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 */