자동메뉴에서 현재게시판 이름을 진하게? > 그누4 질문답변

그누4 질문답변

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

자동메뉴에서 현재게시판 이름을 진하게? 정보

자동메뉴에서 현재게시판 이름을 진하게?

본문

안녕하세요?
아래의 소스를 제가 사용하는 왼쪽자동메뉴소스입니다.
여기에서 클릭한(현재위치한) 게시판 이름을 진하게, 색을 넣고 싶습니다.
부탁드립니다.

<?
$intime = date("Y-m-d H:i:s", time() - (int)(60 * 60 * 24));
 $sql = " select bo_table, bo_subject from $g4[board_table] where gr_id = '$gr_id' order by bo_order_search";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
$tmp_write_table = $g4[write_prefix] . $row[bo_table];
$sql2 = " select wr_datetime from $tmp_write_table where wr_datetime >= '$intime'";
$result2 = sql_query($sql2);
$total_count = mysql_num_rows($result2);
   
if ($total_count > 0) {
echo "<tr>";
echo "<td width='98' background='../$cata/images/left_menu_05.gif' style='padding-top:2px;' align='right'><a href='$g4[path]/bless/board.php?bo_table=$row[bo_table]' onMouseOver=MM_swapImage('$row[bo_table]','','../$cata/images/left_menu_08.gif',1) onMouseOut=MM_swapImgRestore() class='left_menu'>$row[bo_subject] <span class=new>[$total_count]</span></a></td>";
echo "  </tr>";
}
 
else { 
echo "<tr>";
echo "<td width='98' background='../$cata/images/left_menu_05.gif' style='padding-top:2px;' align='right'><a href='$g4[path]/bless/board.php?bo_table=$row[bo_table]' onMouseOver=MM_swapImage('$row[bo_table]','','../$cata/images/left_menu_08.gif',1) onMouseOut=MM_swapImgRestore() class='left_menu'>$row[bo_subject]</a></td>";
echo "  </tr>";

}
?>
  • 복사

댓글 전체

이걸 참고하시면 가능할것 같습니다.
스타일 시트에서 볼드체로 지정한 경우입니다.

g6man님께서 알려주셨던 소스코드입니다.
if ($row2[bo_table] == $bo_table)
$bo_layer .= "&middot; <a href='$g4[bbs_path]/board.php?bo_table=$row2[bo_table]' class='menu_on' onfocus='this.blur()'>$blue_bullet $row2[bo_subject]</a></td></tr>";
else
$bo_layer .= "&middot; <a href='$g4[bbs_path]/board.php?bo_table=$row2[bo_table]' class='' onfocus='this.blur()'>$row2[bo_subject]</a></td></tr>";
}
© SIRSOFT
현재 페이지 제일 처음으로