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

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

댓글 4개

<br>테그를 넣어주세요
http://www.sir.co.kr/bbs/board.php?bo_table=g4_tiptech&sca=&sfl=wr_subject&stx=%C4%AB%C5%D7%B0%ED%B8%AE&sop=and&x=0&y=0
<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'>&nbsp;<a class='cate' href='./board.php?bo_table=$bo_table&sca=$arr[$i]'>$arr[$i] ($row1[cCount])</a>&nbsp;&nbsp;&nbsp;&nbsp;";
$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'>&nbsp;<a class='cate' href='./board.php?bo_table=<?=$bo_table?>&sca=<?=$arr[$i]?>'><b>전체&nbsp;(<?=number_format($total_count)?>)</b></a>
</td>
<td nowrap>&nbsp;</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 질문답변

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

+
제목 글쓴이 날짜 조회
18년 전 조회 1,110
18년 전 조회 1,539
18년 전 조회 1,592
18년 전 조회 1,436
18년 전 조회 3,420
18년 전 조회 1,392
18년 전 조회 1,521
18년 전 조회 1,594
18년 전 조회 1,491
18년 전 조회 1,799
18년 전 조회 1,172
18년 전 조회 1,494
18년 전 조회 1,479
18년 전 조회 1,639
18년 전 조회 1,519
18년 전 조회 1,536
18년 전 조회 1,702
18년 전 조회 1,603
18년 전 조회 1,439
18년 전 조회 1,732
🐛 버그신고