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

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

<?
$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>";
}
}
?>
|

댓글 3개

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

g6man님께서 알려주셨던 소스코드입니다.
if ($row2[bo_table] == $bo_table)
$bo_layer .= "· <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 .= "· <a href='$g4[bbs_path]/board.php?bo_table=$row2[bo_table]' class='' onfocus='this.blur()'>$row2[bo_subject]</a></td></tr>";
}
감사합니다..알려주신 소스를 사용하여 해결하였습니다.
근데 왼쪽 메뉴 정렬 순서를 바꾸려면 어떻게 해야하죠??? ㅡ.ㅡa
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
20년 전 조회 1,679
20년 전 조회 1,716
20년 전 조회 1,537
20년 전 조회 2,722
20년 전 조회 1,577
20년 전 조회 1,583
20년 전 조회 1,725
20년 전 조회 1,541
20년 전 조회 1,666
20년 전 조회 1,684
20년 전 조회 1,540
20년 전 조회 1,654
20년 전 조회 1,589
20년 전 조회 2,312
20년 전 조회 1,557
20년 전 조회 1,628
20년 전 조회 1,533
20년 전 조회 1,634
20년 전 조회 1,423
20년 전 조회 1,463