카테고리 탭을 이용하려고 하는데 > 그누4 질문답변

그누4 질문답변

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

카테고리 탭을 이용하려고 하는데 정보

카테고리 탭을 이용하려고 하는데

본문

<table cellpadding=0 cellspacing=0 width=100% border=0>
<tr>
<td>
<link rel="stylesheet" type="text/css" href="<?php echo $board_skin_path; ?>/cate_tab.css"/>
<div id="navcontainer" align=left><ul id="navlist">
<li><? if (!$sca){?><a id=current href='./board.php?bo_table=<?=$bo_table?>&page=<?=$page?>'><b><font color=#ffffff>ALL</font></b>
<font color=#dddddd>(<?
$total=sql_fetch("select  sum(bo_count_write ) as cnt from $g4[board_table] where bo_table IN('$bo_table')");
echo "$total[cnt]";
?>)</font>
<?}else{?>
<a href='./board.php?bo_table=<?=$bo_table?>&page=<?=$page?>'>ALL
<font color=#888888>(<?
$total=sql_fetch("select  sum(bo_count_write ) as cnt from $g4[board_table] where bo_table IN('$bo_table')");
echo "$total[cnt]";
?>)</font>
<?}?>
</a></li><? if ($is_category) { ?>
<? 
$cnt = 1;
$cnt0 = 0;
$bb_s=""; $bb_e="";
$arr = explode("|", $board[bo_category_list]); // 구분자가 , 로 되어 있음
        $str = "";
        $str .= "";
$f_open="id=current";
$f_close="";
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_is_comment = 0 ";
$row1 = sql_fetch($sql1);
if ($sca == $arr[$i]) { $cnt0++; $b_s="<b style='color: white;'>";$cc=$f_open; $b_e="</b>"; } else {$b_s=""; $cc=$f_close; $b_e="";}
if ($sca == $arr[$i]) {
$str .= "<li><a $cc href='./board.php?bo_table=$bo_table&sca=" . rawurlencode($arr[$i]) . "'>$b_s$arr[$i]$b_e <font color=#dddddd>($row1[cCount])</font></a></li>"; }
else {
$str .= "<li><a $cc href='./board.php?bo_table=$bo_table&sca=" . rawurlencode($arr[$i]) . "'>$b_s$arr[$i]$b_e <font color=#888888>($row1[cCount])</font></a></li>"; }
$cnt++;
}
if ($cnt0 == 0 ) { $bb_s="<b>"; $bb_e="</b>"; }
?>
<?=$str?>
<? } ?>
</ul></div>
</td>
</tr>
</table>



소스는 이렇게 되는데요~ 상단에 문자가 안지워지네요

댓글 전체

카테고리는 게시판관리에서 카테고리명 넣는게 있자나요 그걸 수정하시면 될것같구요

이페이지에서의 카테고리는
$arr = explode("|", $board[bo_category_list]); // 구분자가 , 로 되어 있음
요기가 불러오는곳이고

아래는 뿌려지는 부분
if ($sca == $arr[$i]) {
$str .= "<li><a $cc href='./board.php?bo_table=$bo_table&sca=" . rawurlencode($arr[$i]) . "'>$b_s$arr[$i]$b_e <font color=#dddddd>($row1[cCount])</font></a></li>"; }
else {
$str .= "<li><a $cc href='./board.php?bo_table=$bo_table&sca=" . rawurlencode($arr[$i]) . "'>$b_s$arr[$i]$b_e <font color=#888888>($row1[cCount])</font></a></li>"; }
$cnt++;
}
전체 41 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT