자동메뉴에서 현재게시판 이름을 진하게? 정보
자동메뉴에서 현재게시판 이름을 진하게?
본문
안녕하세요?
아래의 소스를 제가 사용하는 왼쪽자동메뉴소스입니다.
여기에서 클릭한(현재위치한) 게시판 이름을 진하게, 색을 넣고 싶습니다.
부탁드립니다.
<?
$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>";
}
}
?>
아래의 소스를 제가 사용하는 왼쪽자동메뉴소스입니다.
여기에서 클릭한(현재위치한) 게시판 이름을 진하게, 색을 넣고 싶습니다.
부탁드립니다.
<?
$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 .= "· <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>";
}
스타일 시트에서 볼드체로 지정한 경우입니다.
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