답변 2개
7년 전
|
listcategory.skin.php 소스입니다. 어느부분을 수정해줘야하는지요?
<code> <?php |
| 02 | if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 |
| 03 | $str = ''; |
| 04 | $exists = false; |
| 05 | $ca_id_len = strlen($ca_id); |
| 06 | $len2 = $ca_id_len + 2; |
| 07 | $len4 = $ca_id_len + 4; |
| 08 | $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 "; |
| 09 | $result = sql_query($sql); |
| 10 | while ($row=sql_fetch_array($result)) { |
| 11 | $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' "); |
| 12 | $str .= '<li><a href="./list.php?ca_id='.$row['ca_id'].'">'.$row['ca_name'].' ('.$row2['cnt'].')</a></li>'; |
| 13 | $exists = true; |
| 14 | } |
| 15 | if ($exists) { |
| 16 | // add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨 |
| 17 | add_stylesheet('<link rel="stylesheet" href="'.G5_SHOP_CSS_URL.'/style.css">', 0); |
| 18 | ?> |
| 19 | <!-- 상품분류 1 시작 { --> |
| 20 | <aside id="sct_ct_1" class="sct_ct"> |
| 21 | <h2>현재 상품 분류와 관련된 분류</h2> |
| 22 | <ul> |
| 23 | <?php echo $str; ?> |
| 24 | </ul> |
| 25 | </aside> |
| 26 | <!-- } 상품분류 1 끝 --> |
| 27 |
<?php } ?> </code> |
로그인 후 평가할 수 있습니다
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인