그룹아이디가 넘어온 경우 해당 그룹에 속한 게시판만 노출하기

This commit is contained in:
gnuboard
2013-04-23 18:36:03 +09:00
parent 3efa406f80
commit 6b00c4b702

View File

@ -83,7 +83,9 @@ include_once(G4_LIB_PATH.'/popular.lib.php');
<nav id="lnb">
<ul>
<?
$sql2 = " select * from {$g4['board_table']} where bo_show_menu = 1 and bo_device <> 'pc' order by bo_order ";
$sql2 = " select * from {$g4['board_table']} where bo_show_menu = 1 and bo_device <> 'pc' ";
if ($gr_id) $sql2 .= " and gr_id = '$gr_id' ";
$sql2 .= " order by bo_order ";
$result2 = sql_query($sql2);
for ($bi=0; $row2=sql_fetch_array($result2); $bi++) { // bi 는 board index
?>