쇼핑몰: #118 상품 목록 현재 위치 표준화 및 스타일 완료

This commit is contained in:
whitedot
2013-05-02 19:03:30 +09:00
parent 6e1267f912
commit b111507268
3 changed files with 14 additions and 8 deletions

View File

@ -311,8 +311,10 @@ input.required:focus {padding:3px 3px 4px;border:0;background:#21272e !important
.sct_admin {margin:0 0 10px;text-align:right}
/* 상품 목록 현재 위치 */
#sct_location {border:1px solid #e9e9e9;background:#f7f7f7}
#sct_location a {display:inline-block;padding:10px 10px 8px}
#sct_location {margin:0 0 10px;border:1px solid #e9e9e9;background:#f7f7f7;letter-spacing:-4px}
#sct_location a {display:inline-block;padding:10px 10px 8px;text-decoration:none;letter-spacing:0 !important}
.sct_here {font-weight:bold}
.sct_bg {padding-right:15px !important;background:url('../img/shop/sct_bg_toright.gif') right 11px no-repeat}
/* 상품 정렬 */
#sct_sort {margin:0 0 10px;zoom:1}

BIN
img/shop/sct_bg_toright.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 B

View File

@ -12,12 +12,15 @@ if ($ca_id)
$sql = " select ca_name from {$g4['shop_category_table']} where ca_id = '$code' ";
$row = sql_fetch($sql);
$style = '';
if ($ca_id == $code)
$style = 'style="font-weight:bold;"';
$sct_here = '';
if ($ca_id == $code) // 현재 분류와 일치하면
$sct_here = 'sct_here';
$str .= $bar.'<a href="./list.php?ca_id='.$code.'" '.$style.'>'.$row['ca_name'].'</a>';
$bar = ' &gt; ';
if ($i != $len) // 현재 위치의 마지막 단계가 아니라면
$sct_bg = 'sct_bg';
else $sct_bg = '';
$str .= $bar.'<a href="./list.php?ca_id='.$code.'" class="'.$sct_here.' '.$sct_bg.'">'.$row['ca_name'].'</a>';
}
}
else
@ -27,5 +30,6 @@ else
?>
<div id="sct_location">
<a href='<?=$g4[path]?>/'>Home</a> > <?=$str?>
<a href='<?=$g4[path]?>/' class="sct_bg">Home</a>
<?=$str?>
</div>