[제나플러스] 카테고리 펼쳐보이기
본문
list.skin.php
**********
<? if ($is_category) { ?>
<form name='fcategory' method='get'>
<td width='80%'><font color='#5a5a5a'>
<?
$cnt_bo_1 = $bo_1[0] ? $bo_1[0] : 10; // 한줄당 분류 갯수(현재:10)
$cnt = 1;
$cnt0 = 0;
$bb_s=""; $bb_e="";
$arr = explode("|", $board[bo_category_list]); // 구분자가 , 로 되어 있음
$str = "";
$str .= "";
$f_open="<img src='$board_skin_path/img/folderopen.gif' align=absmiddle>";
$f_close="<img src='$board_skin_path/img/folder.gif' align=absmiddle>";
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);
if ($sca == $arr[$i]) { $cnt0++; $b_s="<b>";$cc=$f_open; $b_e="</b>"; } else {$b_s=""; $cc=$f_close; $b_e="";}
$str .= " <a href='./board.php?bo_table=$bo_table&sca=" . rawurlencode($arr[$i]) . "'>$cc$b_s$arr[$i]$b_e<font color=#a5a5a5>($row1[cCount])</font></a>";
if ($cnt == $cnt_bo_1) { $cnt = 0; $str .= "<br>"; }
$cnt++;
}
if ($cnt0 == 0 ) { $bb_s="<b>"; $bb_e="</b>"; }
?>
<a href='./board.php?bo_table=<?=$bo_table?>&page=<?=$page?>'><img src='<?=$board_skin_path?>/img/t_icon01.gif' width=8 height=19 align=absmiddle> 전체</a>(<?=$total_count?>) |<?=$str?></font></td>
</form>
<? } ?>
**********
<? if ($is_category) { ?>
<form name='fcategory' method='get'>
<td width='80%'><font color='#5a5a5a'>
<?
$cnt_bo_1 = $bo_1[0] ? $bo_1[0] : 10; // 한줄당 분류 갯수(현재:10)
$cnt = 1;
$cnt0 = 0;
$bb_s=""; $bb_e="";
$arr = explode("|", $board[bo_category_list]); // 구분자가 , 로 되어 있음
$str = "";
$str .= "";
$f_open="<img src='$board_skin_path/img/folderopen.gif' align=absmiddle>";
$f_close="<img src='$board_skin_path/img/folder.gif' align=absmiddle>";
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);
if ($sca == $arr[$i]) { $cnt0++; $b_s="<b>";$cc=$f_open; $b_e="</b>"; } else {$b_s=""; $cc=$f_close; $b_e="";}
$str .= " <a href='./board.php?bo_table=$bo_table&sca=" . rawurlencode($arr[$i]) . "'>$cc$b_s$arr[$i]$b_e<font color=#a5a5a5>($row1[cCount])</font></a>";
if ($cnt == $cnt_bo_1) { $cnt = 0; $str .= "<br>"; }
$cnt++;
}
if ($cnt0 == 0 ) { $bb_s="<b>"; $bb_e="</b>"; }
?>
<a href='./board.php?bo_table=<?=$bo_table?>&page=<?=$page?>'><img src='<?=$board_skin_path?>/img/t_icon01.gif' width=8 height=19 align=absmiddle> 전체</a>(<?=$total_count?>) |<?=$str?></font></td>
</form>
<? } ?>
추천1
댓글목록 0
등록된 댓글이 없습니다.