리스트에서 가로로 보기
<? if ($is_category) { ?>
<div class='cagegory'>
<?
$arr = array();
$arr[] = "<img src='$board_skin_path/img/ico_cate_all.gif' align='absmiddle'> <b><a href='?bo_table=$bo_table'>전체</a></b> <span>($board[bo_count_write])</span>";
$ex = explode("|", $board[bo_category_list]);
for ($i=0; $i<count($ex); $i++) {
$sql = " select count(*) as cnt from $write_table where ca_name = '{$ex[$i]}' and wr_is_comment = 0 ";
$row = sql_fetch($sql);
$arr[] = "<img src='$board_skin_path/img/ico_cate.gif' align='absmiddle'> <a href='?bo_table=$bo_table&sca={$ex[$i]}'>{$ex[$i]}</a> <span>($row[cnt])</span>";
}
$str = implode(" ", $arr);
echo $str;
?>
</div>
<? } ?>
[이 게시물은 morning님에 의해 2012-02-26 10:49:39 그누소스에서 이동 됨]