스피드맵에서 게시판제외시 잘안되서
페이지 정보
본문
<?
include_once("./_common.php");
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="F3F3F3">
<tr>
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="4" bgcolor="F3F3F3">
<tr>
<td valign="top" align="center" bgcolor="FFFFFF" style="padding:0px">
<table width="100%" cellpadding="0" cellspacing="0" border="0" >
<tr>
<?
$cells = 0;
//접근가능그룹 여분필드 1 순서로 추출
//조건외 제외시키고자 하는 그룹 수동으로 추가
$excgr = "('html', 'banner', 'guest', 'z3')"; // html , banner , guest 라는 그룹은 제외시킴
$sql = " SELECT a.gr_id, a.gr_subject, a.gr_use_access, a.gr_10, b.mb_id FROM $g4[group_table] AS a LEFT JOIN $g4[group_member_table] AS b ON a.gr_id = b.gr_id WHERE (b.mb_id = '$member[mb_id]' AND a.gr_use_access = '1' ) OR a.gr_use_access = '0' and a.gr_id not in " . $excgr . " ORDER BY a.gr_1";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++){
if($cells%100==0)
echo "</tr><tr>";
echo "<td width='' valign='top' align='center'>";
echo "<table width='' height='100%' cellpadding='0' cellspacing='0' border='0'>";
//group
$gSubject = ($row['gr_id'] == $gr_id)?"<span style='color:#222222;'>" .$row['gr_subject']."</span>":"<span style='color:#222222;'>" .$row['gr_subject']."</span>";//그룹제목 - 해당그룹은 #222222 나머지는 #FFFFFF
$gLink = (!empty($row['gr_10']))?$row['gr_10']:$g4['bbs_path'].'/'.'group.php?gr_id=' .$row['gr_id'];//그룹링크 - 별도링크 필요하면 gr_10 필드에 전체 url 입력
echo "<tr><td style='padding:0 0 0 0; height:25px;'><span id='id_" . $row['gr_id'] . "' class='zgroup_subject' onmouseover=\"layer_view('id_" . $row['gr_id'] . "', 'menu_" . $row['gr_id'] . "', 'view', 0, 0);\"><a href='" . $gLink . "'><strong>" . $gSubject . "</strong></a></span></td></tr>\n";
$cells++;
//board
//echo "<iframe class='zboard' src='about:blank' mce_src='about:blank' scrolling='no' frameborder='0'></iframe>";
echo "<td id='menu_" . $row['gr_id'] . "' class='zboard' onpropertychange=\"selectBoxHidden('menu_" . $row['gr_id'] . "')\">\n";
//게시판 권한 설정 적용, 전체 검색사용에 체크된 게시판만 검색순서에 따라 추출
//$sqlb = " select bo_subject, bo_table, bo_10 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";
//검색설정과 상관없음
$sqlb = " select bo_subject, bo_table, bo_10 from $g4[board_table] where (bo_list_level <= $member[mb_level]) and (gr_id = '$row[gr_id]') order by bo_order_search";
$resultb = sql_query($sqlb);
for ($j=0; $rowb=sql_fetch_array($resultb); $j++) {
$bSubject = ($rowb['bo_table'] == $bo_table)?"<span style='font-weight:bold;color:#222222;'>".cut_str(get_text($rowb['bo_subject']),20,"")."</span>":"<span style='color:#222222;'>".cut_str(get_text($rowb['bo_subject']), 20,"")."</span>";//게시판제목 - 해당게시판은 #222222 나머지는 #222222
$bLink = (!empty($rowb['bo_10']))?$rowb['bo_10']:$g4['bbs_path'].'/'.'board.php?bo_table=' .$rowb['bo_table'];//게시판링크 - 별도링크 필요하면 bo_10 필드에 전체 url 입력
echo "<tr><td style='padding:0 0 0 0; height:20px;'><a href='" . $bLink . "'>" . $bSubject . "</a><br/></td>\n";
}
echo "<tr><td height='5'></td></tr></table>";
echo "</td>";
}
?>
</tr>
</table>
</td></tr>
</table>
</td></tr>
</table>
검색하니 그룸은 제외시켰는데
게시판 제외가 잘안되서 질문드립니다..
찾아보니깐 있던데 적용해보니 안되서
질문 드립니다..
특정 게시판을 제외 시킬려면...
include_once("./_common.php");
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="F3F3F3">
<tr>
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="4" bgcolor="F3F3F3">
<tr>
<td valign="top" align="center" bgcolor="FFFFFF" style="padding:0px">
<table width="100%" cellpadding="0" cellspacing="0" border="0" >
<tr>
<?
$cells = 0;
//접근가능그룹 여분필드 1 순서로 추출
//조건외 제외시키고자 하는 그룹 수동으로 추가
$excgr = "('html', 'banner', 'guest', 'z3')"; // html , banner , guest 라는 그룹은 제외시킴
$sql = " SELECT a.gr_id, a.gr_subject, a.gr_use_access, a.gr_10, b.mb_id FROM $g4[group_table] AS a LEFT JOIN $g4[group_member_table] AS b ON a.gr_id = b.gr_id WHERE (b.mb_id = '$member[mb_id]' AND a.gr_use_access = '1' ) OR a.gr_use_access = '0' and a.gr_id not in " . $excgr . " ORDER BY a.gr_1";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++){
if($cells%100==0)
echo "</tr><tr>";
echo "<td width='' valign='top' align='center'>";
echo "<table width='' height='100%' cellpadding='0' cellspacing='0' border='0'>";
//group
$gSubject = ($row['gr_id'] == $gr_id)?"<span style='color:#222222;'>" .$row['gr_subject']."</span>":"<span style='color:#222222;'>" .$row['gr_subject']."</span>";//그룹제목 - 해당그룹은 #222222 나머지는 #FFFFFF
$gLink = (!empty($row['gr_10']))?$row['gr_10']:$g4['bbs_path'].'/'.'group.php?gr_id=' .$row['gr_id'];//그룹링크 - 별도링크 필요하면 gr_10 필드에 전체 url 입력
echo "<tr><td style='padding:0 0 0 0; height:25px;'><span id='id_" . $row['gr_id'] . "' class='zgroup_subject' onmouseover=\"layer_view('id_" . $row['gr_id'] . "', 'menu_" . $row['gr_id'] . "', 'view', 0, 0);\"><a href='" . $gLink . "'><strong>" . $gSubject . "</strong></a></span></td></tr>\n";
$cells++;
//board
//echo "<iframe class='zboard' src='about:blank' mce_src='about:blank' scrolling='no' frameborder='0'></iframe>";
echo "<td id='menu_" . $row['gr_id'] . "' class='zboard' onpropertychange=\"selectBoxHidden('menu_" . $row['gr_id'] . "')\">\n";
//게시판 권한 설정 적용, 전체 검색사용에 체크된 게시판만 검색순서에 따라 추출
//$sqlb = " select bo_subject, bo_table, bo_10 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";
//검색설정과 상관없음
$sqlb = " select bo_subject, bo_table, bo_10 from $g4[board_table] where (bo_list_level <= $member[mb_level]) and (gr_id = '$row[gr_id]') order by bo_order_search";
$resultb = sql_query($sqlb);
for ($j=0; $rowb=sql_fetch_array($resultb); $j++) {
$bSubject = ($rowb['bo_table'] == $bo_table)?"<span style='font-weight:bold;color:#222222;'>".cut_str(get_text($rowb['bo_subject']),20,"")."</span>":"<span style='color:#222222;'>".cut_str(get_text($rowb['bo_subject']), 20,"")."</span>";//게시판제목 - 해당게시판은 #222222 나머지는 #222222
$bLink = (!empty($rowb['bo_10']))?$rowb['bo_10']:$g4['bbs_path'].'/'.'board.php?bo_table=' .$rowb['bo_table'];//게시판링크 - 별도링크 필요하면 bo_10 필드에 전체 url 입력
echo "<tr><td style='padding:0 0 0 0; height:20px;'><a href='" . $bLink . "'>" . $bSubject . "</a><br/></td>\n";
}
echo "<tr><td height='5'></td></tr></table>";
echo "</td>";
}
?>
</tr>
</table>
</td></tr>
</table>
</td></tr>
</table>
검색하니 그룸은 제외시켰는데
게시판 제외가 잘안되서 질문드립니다..
찾아보니깐 있던데 적용해보니 안되서
질문 드립니다..
특정 게시판을 제외 시킬려면...
추천0