쇼핑몰: #97 상품분류 표준화 및 스타일 ie6 문제 해결

This commit is contained in:
whitedot
2013-04-29 17:47:40 +09:00
parent b459a65c20
commit 2280cca23a
2 changed files with 6 additions and 6 deletions

View File

@ -93,7 +93,7 @@ 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 !important;line-height:2.7em}
.gnb_1da {display:inline-block;padding:0 10px;width:128px;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,

View File

@ -12,15 +12,14 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
and ca_use = '1'
order by ca_id ";
$hresult = sql_query($hsql);
$hnum = @mysql_num_rows($hresult);
$gnb_zindex = 10000; // gnb_1dli z-index 값 설정용
$count = count($hresult);
for ($i=0; $row=sql_fetch_array($hresult); $i++)
{
$gnb_zindex -= 1; // html 구조에서 앞선 gnb_1dli 에 더 높은 z-index 값 부여
?>
<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']}
@ -29,13 +28,14 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
and ca_use = '1'
order by ca_id ";
$result2 = sql_query($sql2);
$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>
<?php } ?>
</ul>
<?php }
if ($j>0) echo '</ul>';
?>
</li>
<?php } ?>
</ul>