H

카테고리 표시에 대해 질문드립니다.

카테고리를 아래와 같이 가로로 표시되게 하는 소스를 사용했습니다.
이걸 사용하면 선택한 카테고리는 진하게 나오고 다른 카테고리명은 보통 글자체로
나옵니다.
그런데 원하는 것은 선택한 카테고리명만 표기가 되고 다른 카테고리명은 아예
보이지 않게 하고 싶습니다.  어떻게 해야 할까요? 


<? 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="";
  $f_close="";
  for ($i=0; $i<count($arr); $i++)
   if (trim($arr[$i]))  {
    $sql1 = " SELECT count(*) as cCount FROM $write_table where wr_is_comment = 0 and ca_name = '$arr[$i]' ";
           $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</a>";
    if ($cnt == $cnt_bo_1) { $cnt = 0; $str .= "<br>"; }
    $cnt++;
   }
   if ($cnt0 == 0 ) { $bb_s="<b>"; $bb_e="</b>"; }
  ?>   

 

<img src='<?=$board_skin_path?>/img/t_icon01.gif' width=8 height=19 align=absmiddle><?=$str?></font></td>

   </form>
 <? } ?>

|

댓글 3개

<? if ($is_category) { ?>
<form name='fcategory' method='get'>
<td width='80%'>
<?
$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="";
$f_close="";
for ($i=0; $i<count($arr); $i++)
if (trim($arr[$i])) {
$sql1 = " SELECT count(*) as cCount FROM $write_table where wr_is_comment = 0 and ca_name = '$arr[$i]' ";
$row1 = sql_fetch($sql1);
if ($sca == $arr[$i]) {

$cnt0++; $b_s="<b>";$cc=$f_open; $b_e="</b>";
$str .= "<a href='./board.php?bo_table=$bo_table&sca=" . rawurlencode($arr[$i]) . "'>$cc$b_s$arr[$i]$b_e</a>";
}else{$str = "";}
if ($cnt == $cnt_bo_1) { $cnt = 0; }
$cnt++;
}
if ($cnt0 == 0 ) { $bb_s="<b>"; $bb_e="</b>"; }
?>

<? if (!empty($str)){ ?>
<font color='#5a5a5a'><img src='<?=$board_skin_path?>/img/t_icon01.gif' width=8 height=19 align=absmiddle><?=$str?></font><? } ?></td>

</form>
<? } ?>
답변 감사합니다. 근데 맨 뒤에 있은 카테고리 명은 보이는데 다른것을 선택했을 때는 아무것도 안보입니다.
안 보이면 다른 카테고리는 어떻게 선택을 하나요?
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
16년 전 조회 1,542
16년 전 조회 1,548
16년 전 조회 1,052
16년 전 조회 981
16년 전 조회 990
16년 전 조회 1,545
16년 전 조회 2,658
16년 전 조회 1,559
16년 전 조회 3,289
16년 전 조회 958
16년 전 조회 1,051
16년 전 조회 1,507
16년 전 조회 977
16년 전 조회 1,618
16년 전 조회 1,536
16년 전 조회 1,133
16년 전 조회 1,081
16년 전 조회 1,536
16년 전 조회 1,043
16년 전 조회 2,031