쇼핑몰: #97 상품분류 표준화 및 스타일 ie6 버그 수정 중
This commit is contained in:
@ -93,12 +93,13 @@ a:active {color:#000;text-decoration:underline}
|
||||
.gnb_1dul {margin:0;border:0;background:#fff;list-style:none}
|
||||
.gnb_1dli {position:relative;background:url('../img/shop/gnb_bg.gif') top right repeat-x}
|
||||
.gnb_1dli_on {background-position:right -33px;color:#fff;text-decoration:none}
|
||||
.gnb_1da {display:block;padding:0 10px;height:33px;border-bottom:1px solid #f4f4f4;font-weight:bold;text-decoration:none;line-height:2.9em}
|
||||
.gnb_1dli_on .gnb_1da {color:#fff;text-decoration:none}
|
||||
.gnb_2dul {visibility:hidden;z-index:1000;position:absolute;top:0;width:0;height:0;overflow:hidden}
|
||||
.gnb_1dli_over .gnb_2dul {visibility:visible;left:127px;padding:0 0 5px 20px;width:130px;height:auto;background:url('../img/shop/gnb_2dbg.gif') left 10px no-repeat #626870}
|
||||
.gnb_1dli_over2 .gnb_2dul {visibility:visible;left:127px;padding:0 0 5px 20px;width:150px;height:auto;background:url('../img/shop/gnb_2dbg.gif') left 10px no-repeat #626870}
|
||||
.gnb_2da {display:block;height:33px;border-bottom:1px solid #787f89;color:#fff !important;line-height:2.9em}
|
||||
.gnb_1da {display:block;padding:0 10px;height:33px;border-bottom:1px solid #f4f4f4;font-weight:bold;text-decoration:none;line-height:2.9em !important;line-height:2.7em}
|
||||
.gnb_1dli_on .gnb_1da {color:#fff !important;text-decoration:none !important}
|
||||
.gnb_2dul {display:none;z-index:1000;position:absolute}
|
||||
.gnb_1dli_over .gnb_2dul,
|
||||
.gnb_1dli_over2 .gnb_2dul {display:block;top:0;left:127px;padding:0 0 5px 20px;width:130px;background:url('../img/shop/gnb_2dbg.gif') left 10px no-repeat #626870}
|
||||
.gnb_2da {display:none}
|
||||
.gnb_1dli_over .gnb_2da {display:block;height:33px;border-bottom:1px solid #787f89;color:#fff !important;line-height:2.9em !important;line-height:2.6em}
|
||||
.gnb_2da:focus,
|
||||
.gnb_2da:hover {text-decoration:none}
|
||||
|
||||
|
||||
@ -1,11 +1,5 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
//
|
||||
// 2단계 분류 레이어 표시
|
||||
//
|
||||
$menu = ""; // 메뉴 레이어 임시저장 변수 (처음엔 아무값도 없어야 합니다.)
|
||||
$sub_menu_left = 100; // 2단계 메뉴 왼쪽 좌표 (1단계 좌표에서 부터)
|
||||
?>
|
||||
|
||||
<nav id="gnb">
|
||||
@ -26,7 +20,8 @@ $sub_menu_left = 100; // 2단계 메뉴 왼쪽 좌표 (1단계 좌표에서 부
|
||||
?>
|
||||
<li class="gnb_1dli" style="z-index:<?php echo $gnb_zindex; ?>">
|
||||
<a href="<?php echo G4_SHOP_URL.'/list.php?ca_id='.$row['ca_id']; ?>" class="gnb_1da"><?php echo $row['ca_name']; ?></a>
|
||||
<?
|
||||
<ul class="gnb_2dul">
|
||||
<?php
|
||||
// 2단계 분류 판매 가능한 것만
|
||||
$sql2 = " select ca_id, ca_name from {$g4['shop_category_table']}
|
||||
where LENGTH(ca_id) = '4'
|
||||
@ -37,14 +32,11 @@ $sub_menu_left = 100; // 2단계 메뉴 왼쪽 좌표 (1단계 좌표에서 부
|
||||
$hnum2 = @mysql_num_rows($result2);
|
||||
for ($j=0; $row2=sql_fetch_array($result2); $j++)
|
||||
{
|
||||
if ($j==0) echo '<ul class="gnb_2dul">';
|
||||
?>
|
||||
<li class="gnb_2dli"><a href="<?php echo G4_SHOP_URL; ?>/list.php?ca_id=<?php echo $row2['ca_id']; ?>" class="gnb_2da"><?php echo $row2['ca_name']; ?></a></li>
|
||||
<?
|
||||
if ($j==0) echo '</ul>';
|
||||
}
|
||||
?>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</li>
|
||||
<? } ?>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
Reference in New Issue
Block a user