테스트 사이트 - 개발 중인 베타 버전입니다

부탁드려용 ㅜㅜㅜ

· 15년 전 · 19 · 1
ddddddddddddddddddd.jpg
여기서 옆에 숫자 안뜨게 해주시구용....

저기 1단계분류, 예를들어 <침구>를 클릭했을때

디자인침구/심플라인침구 l 디자인침구 l 심플라인침구
베드스커트/매트커버 l 베드스커트 ㅣ 매트커버
침구단품/디자인패드 l 침구단품 ㅣ 디자인패드
퀼팅침구/극세사침구 l 퀼팅침구 ㅣ 극세사침구
브랜드침구/키즈침구 l 브랜드침구 ㅣ 키즈침구
원단샘플 l

이렇게 뜨게 해주셨음 좋겠는데요...

다른 1단계 분류들도 그런식으로 &#46124;음하구요~

계속 윗쪽에 떠 있었으면 좋겠어요 다른걸로 넘어가도,

한꺼번에 전~부다 뜨는거 말구요.. ㅜㅜ

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

댓글 1개

shop/listcategory.inc.php 를 아래와 같이 수정해 보았습니다.

<?
$str = "";
$exists = false;

$ca_id_len = strlen($ca_id);
$len2 = $ca_id_len + 2;
$len4 = $ca_id_len + 4;

// 차차기 분류의 건수를 얻음
$sql = " select count(*) as cnt from $g4[yc4_category_table]
where ca_id like '$ca_id%'
and length(ca_id) = $len4
and ca_use = '1' ";
$row = sql_fetch($sql);
$cnt = $row['cnt'];
if (!$cnt)
$str .= "<tr><td width=11 background='$g4[shop_img_path]/ca_bg02.gif'></td><td>";

$sql = " select ca_id, ca_name from $g4[yc4_category_table]
where ca_id like '$ca_id%'
and length(ca_id) = $len2
and ca_use = '1'
order by ca_id ";
$result = sql_query($sql);
$str .= "<tr><td width=11 background='$g4[shop_img_path]/ca_bg02.gif'></td>";
//$str .= "<td><table width=100% border=0><tr><td>";
$str .= "<td><table width=100% border=0><tr>";
$list_mod = 3;
$td_width = (int)(100 / $list_mod);
//while ($row=sql_fetch_array($result)) {
for ($i=0; $row=sql_fetch_array($result); $i++) {
if ($i%$list_mod==0 && $i>0) {
$str .= "\n</tr><tr>";
}

//$row2 = sql_fetch(" select count(*) as cnt from $g4[yc4_category_table] where ca_id like '$row[ca_id]%' ");
//$row2 = sql_fetch(" select count(*) as cnt from $g4[yc4_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' ");

//$str .= "<a href='./list.php?ca_id=$row[ca_id]'>$row[ca_name] ($row2[cnt])</a> &nbsp; ";
$str .= "\n<td width='{$td_width}%'><a href='./list.php?ca_id=$row[ca_id]'>$row[ca_name]</a></td>";
$exists = true;
}
// 나머지 td 를 채운다.
if (($cnt = $i%$list_mod) != 0)
for ($k=$cnt; $k<$list_mod; $k++)
$str .= "\n<td>&nbsp;</td>";
$str .= "\n</tr></table></td><td width=11 background='$g4[shop_img_path]/ca_bg03.gif'></td>";
//$str .= "</td></tr></table></td><td width=11 background='$g4[shop_img_path]/ca_bg03.gif'></td>";

if ($exists) {
echo "
<br>
<table width=98% cellpadding=0 cellspacing=0 align=center border=0>
<colgroup width=11>
<colgroup width=''>
<colgroup width=11>
<tr>
<td width=11><img src='$g4[shop_img_path]/ca_box01.gif'></td>
<td background='$g4[shop_img_path]/ca_bg01.gif'></td>
<td width=11><img src='$g4[shop_img_path]/ca_box02.gif'></td>
</tr>
$str
<tr>
<td width=11><img src='$g4[shop_img_path]/ca_box03.gif'></td>
<td background='$g4[shop_img_path]/ca_bg04.gif'></td>
<td width=11><img src='$g4[shop_img_path]/ca_box04.gif'></td>
</tr>
</table><br>";
}
?>

게시글 목록

번호 제목
56073
56067
56065
56060
56058
56055
56051
56048
56044
56043
56042
56039
56035
56032
56030
56028
56025
56018
56012
56010