<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<? if($gr_id){ ?> 
<!-- 테두리 -->
<table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td width="1" height="1"></td>
        <td height="1" bgcolor="b6d989"></td>
        <td width="1" height="1"></td>
    </tr>
    <tr>
        <td width="1" bgcolor="b6d989"></td>
        <td>

<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="b6d989">
	<tr><td>
		<table width="100%" border="0" cellpadding="0" cellspacing="4" bgcolor="F9F9F9">
			<tr><td align="center" valign="top" bgcolor="fbfcf0" style="padding:0px">
				<!--/왼쪽 메뉴-->						
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<tr><td align="center">
						<table width="95%" align="center" cellpadding="0" cellspacing="0">
						<?
						$blue_bullet="<img src='$leftmenu_skin_path/img/icl.gif' border='0'>";
						$blue_bullet1="<img src='$leftmenu_skin_path/img/icl1.gif' border='0'>";
						$line_shadow = "<tr><td height=1 background='$leftmenu_skin_path/img/dot_line.gif'></td></tr>";
						$sql = " select gr_id, gr_subject, gr_9, gr_10 from $g4[group_table] where gr_id = '$gr_id'";//해당그룹 $gr_id를 해당그룹명으로 대체가능
						$result = sql_query($sql);
						for ($i=0; $row=sql_fetch_array($result); $i++){							

						//그룹을 보여준다면
						$gSubject = "<span style='color:#222222;'><b>" .$row['gr_subject']."</b></span>";//그룹제목

						echo "<tr><td height='30' align='center' style='padding:0 0 0 10'>";
						echo "" . $gSubject . "</td></tr>";
						echo $line_shadow;
						//제외보드설정
						//$sql2 = " select bo_subject, bo_table, bo_10 from $g4[board_table] where bo_table not in ('z7_2') and gr_id = '$gr_id' and bo_list_level <= '$member[mb_level]' order by bo_order_search";
						//게시판 권한 설정 적용, 전체 검색사용에 체크된 게시판만 검색순서에 따라 추출
						$sql2 = " select bo_subject, bo_table, bo_9, 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($sql2);
						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']),100,"")."</span><img src='$leftmenu_skin_path/img/icl1.gif' border=0>":"<span style='color:#222222;'>".cut_str(get_text($rowb['bo_subject']), 20,"")."</span><img src='$leftmenu_skin_path/img/ic2.gif' border=0>";//게시판제목 - 해당게시판은 #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 align='right' bgcolor='fbfcf0' onMouseOver=this.style.backgroundColor='f7f9e2' onMouseOut=this.style.backgroundColor=''><td width=\"100%\" height='25' class='left_menu_btn'>";
						echo "<a href='" . $bLink . "' target='$rowb[bo_9]'>" . $bSubject . "</a>";
						echo "</td></tr>"; //칸 닫기
						echo $line_shadow;//경계선   
						}
						}//}
						?>
						</table>
					</td></tr>
				</table>
				<!--/왼쪽 메뉴-->
			</td></tr>
		</table>
	</td></tr>
</table>

	</td>
        <td width="1" bgcolor="b6d989"></td>
    </tr>
    <tr>
        <td width="1" height="1"></td>
        <td height="1" bgcolor="b6d989"></td>
        <td width="1" height="1"></td>
    </tr>
</table> 
<!--/테두리-->
<? } ?>
