S

안녕하세요 질문 있습니다.

<?
if($gr_id){
echo "<ul class=\"lnb\">";
$sql = " select gr_id, gr_subject from $g4[group_table] where gr_id = '$gr_id'";
$result = sql_query($sql);
while ($row=mysql_fetch_array($result)) {
echo "<li class=\"title\">$row[gr_subject]</li>";
echo $line_shadow;
$sql2 = " select bo_subject, bo_table from $g4[board_table] where (bo_list_level <= $member[mb_level]) and (gr_id = '$row[gr_id]') and bo_use_search = '1' order by bo_order_search";
$result2 = sql_query($sql2);
$bar = "";
while ($row2=mysql_fetch_array($result2)) {
$new_time = date("Y-m-d H:i:s", time()-3600*$row2[bo_new]);
$sql3 = " select count(*) as cnt from $g4[write_prefix]$row2[bo_table] where wr_datetime >= '$new_time' ";
$row3 = sql_fetch($sql3);
if ($row2[bo_table] == $bo_table)
echo "<li class=\"active\"><a href='$g4[bbs_path]/board.php?bo_table=$row2[bo_table]'>$row2[bo_subject]</a></li>";
else
echo "<li class=\"list\"><a href='$g4[bbs_path]/board.php?bo_table=$row2[bo_table]'>$row2[bo_subject]</a></li>";
}
}
echo "</ul>";
}
?>

지금 이소스로 메뉴를 쓰고 있는데요
이걸 그룹별이 아닌 싸이트의 모든 그룹의 메뉴가 주루룩 나오게 하려면 어케 해야 하나요?

댓글 2개

<?
echo "<ul class=\"lnb\">";
$sql = " select gr_id, gr_subject from $g4[group_table] order by gr_id asc";
$result = sql_query($sql);
while ($row=mysql_fetch_array($result)) {
echo "<li class=\"title\">$row[gr_subject]</li>";
echo $line_shadow;
$sql2 = " select bo_subject, bo_table from $g4[board_table] where (bo_list_level <= $member[mb_level]) and (gr_id = '$row[gr_id]') and bo_use_search = '1' order by bo_order_search";
$result2 = sql_query($sql2);
$bar = "";
while ($row2=mysql_fetch_array($result2)) {
$new_time = date("Y-m-d H:i:s", time()-3600*$row2[bo_new]);
$sql3 = " select count(*) as cnt from $g4[write_prefix]$row2[bo_table] where wr_datetime >= '$new_time' ";
$row3 = sql_fetch($sql3);
if ($row2[bo_table] == $bo_table)
echo "<li class=\"active\"><a href='$g4[bbs_path]/board.php?bo_table=$row2[bo_table]'>$row2[bo_subject]</a></li>";
else
echo "<li class=\"list\"><a href='$g4[bbs_path]/board.php?bo_table=$row2[bo_table]'>$row2[bo_subject]</a></li>";
}
}
echo "</ul>";
?>

이렇게 사용해보세요
오옷 진정으로 감사합니다.
댓글을 작성하시려면 로그인이 필요합니다.

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

+
제목 글쓴이 날짜 조회
10-01-13 조회 1,601
10-01-13 조회 950
10-01-13 조회 1,608
10-01-13 조회 1,035
10-01-13 조회 1,609
10-01-13 조회 1,038
10-01-12 조회 1,521
10-01-12 조회 1,623
10-01-12 조회 2,853
10-01-12 조회 1,668
10-01-12 조회 1,041
10-01-12 조회 940
10-01-12 조회 1,083
10-01-12 조회 1,070
10-01-12 조회 1,531
10-01-12 조회 1,347
10-01-12 조회 4,008
10-01-11 조회 2,486
10-01-11 조회 1,685
10-01-11 조회 1,721