마

카테고리(분류)를 세로로 나타내는 방법

현재 가로로 나타나는데요,,, 너무 카테고리가 많아서,,,세로로 처리를 해보려고 합니다..
아시는분 부탁 좀 드립니다..^^

댓글 4개

<br>테그를 넣어주세요
<br>태그를 어디에 넣어야 할지,,난감입니다,,ㅡㅡ;
아래의 부분에서 넣는 것인지요,,,
--------
// <!-- 분류 셀렉트 박스 시작 -->

$cnt = 1;
$sql = " SELECT bo_category_list FROM $g4[board_table] WHERE bo_table = '$bo_table' ";
$row = sql_fetch($sql);
$arr = explode("|", $row[bo_category_list]); // 구분자가 , 로 되어 있음
$str = " ";
for ($i=0; $i<count($arr); $i++)
if (trim($arr[$i])) {
$sql1 = " SELECT count(*) as cCount FROM $write_table WHERE ca_name = '$arr[$i]' and wr_comment >= 0 ";
$row1 = sql_fetch($sql1);
$str .= "<img src='{$board_skin_path}/img/ico_folder.gif' width='13' height='11'> <a class='cate' href='./board.php?bo_table=$bo_table&sca=$arr[$i]'>$arr[$i] ($row1[cCount])</a>    ";
$cnt++;
}

$sql2 = " SELECT count(*) as cCount FROM $write_table WHERE wr_comment >= 0 ";
$row2 = sql_fetch($sql2);
$Total_Cat = $row2[cCount]
?>

<table width=100% cellspacing=1 cellpadding=4 border=0 style=table-layout:fixed>
<col width=100></col>
<col width=20></col>
<col width=></col>

<tr >
<td width='' align='center'>
<img src='<?=$board_skin_path?>/img/ico_folder.gif' width='13' height='11'> <a class='cate' href='./board.php?bo_table=<?=$bo_table?>&sca=<?=$arr[$i]?>'><b>전체 (<?=number_format($total_count)?>)</b></a>
</td>
<td nowrap> </td>
<td width='' style='word-break:break-all;'>
<table border=0 cellspacing=0 cellpadding=0 width=100%>
<span class="cate"><?=$str?></span>
</table>
</td>
</tr>
</table>
<!-- 분류 셀렉트 박스 끝 --
댓글을 작성하시려면 로그인이 필요합니다.

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
07-09-06 조회 1,722
07-09-06 조회 1,611
07-09-06 조회 1,608
07-09-05 조회 1,524
07-09-05 조회 1,225
07-09-05 조회 1,620
07-09-05 조회 1,194
07-09-05 조회 4,617
07-09-05 조회 1,631
07-09-05 조회 1,195
07-09-05 조회 1,631
07-09-05 조회 1,693
07-09-05 조회 1,519
07-09-05 조회 3,548
07-09-05 조회 1,477
07-09-05 조회 1,602
07-09-05 조회 1,684
07-09-05 조회 1,589
07-09-05 조회 1,901
07-09-05 조회 1,265