list.php?ca_id=1010 2단계분류 메뉴 노출되도록 채택완료
영카트 테마적용중에
분류메뉴가 뎁스별로 노출이 안되서 질문좀 드립니다.
[사용테마]
http://theme.sir.kr/youngcart5/shop/list.php?ca_id=2010">http://theme.sir.kr/youngcart5/shop/list.php?ca_id=2010
list.php?ca_id=1010
두번째 분류로 들어가면 "분류메뉴"가 표시되지 않습니다. ㅜㅜ
검색해봐도 정확히 이부분을 수정하기가 어려워서 질문드립니다.
listcategory.skin.php
이 페이지를 수정중인데요.
list.php?ca_id=00
list.php?ca_id=0000
list.php?ca_id=000000
분류뎁스 1,2,3 단계 모두 분류메뉴(id="sct_ct_1")가 표시되게 하려면 어떻게 해야할까요?
</strong></p><p><font color="#7f7f7f" face="돋움, Dotum, sans-serif"><span style="font-size: 12px;"><b><aside id="sct_ct_1" class="sct_ct"> </b></span></font></p><p><font color="#7f7f7f" face="돋움, Dotum, sans-serif"><span style="font-size: 12px;"><b> <h2>현재 상품 분류와 관련된 분류</h2> </b></span></font></p><p><font color="#7f7f7f" face="돋움, Dotum, sans-serif"><span style="font-size: 12px;"><b> <ul> </b></span></font></p><p><font color="#7f7f7f" face="돋움, Dotum, sans-serif"><span style="font-size: 12px;"><b> <li><a href="./list.php?ca_id=3010">분류1 (0)</a></li><li><a href="./list.php?ca_id=3020">분류2 (58)</a></li><li><a href="./list.php?ca_id=3030">분류2 (19)</a></li><li><a href="./list.php?ca_id=3040">분류2 (7)</a></li><li><a href="./list.php?ca_id=3050">분류2 (17)</a></li> </ul> </b></span></font></p><p><font color="#7f7f7f" face="돋움, Dotum, sans-serif"><span style="font-size: 12px;"><b></aside> </b></span></font></p><p><strong style="color: rgb(127, 127, 127); font-family: 돋움, Dotum, sans-serif; font-size: 12px;">
listcategory.skin.php
</strong> </p><p><?php</p><p>if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가</p><p> </p><p>$str = '';</p><p>$exists = false;</p><p> </p><p>$ca_id_len = strlen($ca_id);</p><p>$len2 = $ca_id_len + 2;</p><p>$len4 = $ca_id_len + 4;</p><p> </p><p>$sql = " select ca_id, ca_name from {$g5['g5_shop_category_table']} where ca_id like '$ca_id%' and length(ca_id) = $len2 and ca_use = '1' order by ca_order, ca_id ";</p><p>$result = sql_query($sql);</p><p>while ($row=sql_fetch_array($result)) {</p><p> </p><p> $row2 = sql_fetch(" select count(*) as cnt from {$g5['g5_shop_item_table']} where (ca_id like '{$row['ca_id']}%' or ca_id2 like '{$row['ca_id']}%' or ca_id3 like '{$row['ca_id']}%') and it_use = '1' ");</p><p> </p><p> $str .= '<li><a href="./list.php?ca_id='.$row['ca_id'].'">'.$row['ca_name'].' ('.$row2['cnt'].')</a></li>';</p><p> $exists = true;</p><p>}</p><p> </p><p>if ($exists) {</p><p> </p><p> // add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨</p><p> add_stylesheet('<link rel="stylesheet" href="'.G5_SHOP_CSS_URL.'/style.css">', 0);</p><p>?></p><p> </p><p><!-- 상품분류 1 시작 { --></p><p><aside id="sct_ct_1" class="sct_ct"></p><p> <h2>현재 상품 분류와 관련된 분류</h2></p><p> <ul></p><p> <?php echo $str; ?></p><p> </ul></p><p></aside></p><p><!-- } 상품분류 1 끝 --></p><p> </p><p><?php } ?></p><p><strong style="color: rgb(127, 127, 127); font-family: 돋움, Dotum, sans-serif; font-size: 12px;">

답변 1개
답변을 작성하려면 로그인이 필요합니다.
로그인