<? 
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 
?>
<table width="190" border="0" cellpadding="0" cellspacing="0">
	<tr height='37'><td><img src="<?=$g4['path']?>/img/sub_menu/left_td_title2.gif" border="0"></td></tr>
	<tr><td background="<?=$g4['path']?>/img/sub_menu/left_td_bg.gif">
		<table cellpadding="0" cellspacing="0" width="100%" border="0" align="center">
			<colgroup width='10'>
			<colgroup>
			<colgroup width='10'>
			<tr>
				<td></td>
				<td align='center'>
					<table cellpadding="0" cellspacing="0" width="100%" border="0" align="center">
					<?
					if($config[cf_home_ex_board_use] == 1) $home_ex_board = $config[cf_home_ex_board];
					else $home_ex_board = "''";
					
					$excgr = "(".$home_ex_board.")";
					$sql = " select * from $g4[board_table] where gr_id = '$gr_id' and bo_list_level <= '$member[mb_level]' and bo_table not in " . $excgr . "order by bo_order_search"; 
					$result = sql_query($sql); 
					$sub_cnt = mysql_num_rows($result) - 1;
					?>
					<?for ($i=0; $row=sql_fetch_array($result); $i++) { 
						if($row[bo_table] == $bo_table) 
							$sub_menu = "<span style='color:#f0761c;font-weight:bold;'>".$row[bo_subject]."</span>";
						else
							$sub_menu = $row[bo_subject];
					?>
					<tr height="25" style="padding-top:3px;">		
						<td width="12"><img src="<?=$g4[path]?>/img/sub_menu/dot.gif"></td>
						<?$bo_link = (!empty($row['bo_7']))?$row['bo_7']:$g4['bbs_path'].'/'.'board.php?bo_table=' .$row['bo_table'];?>
						<?$bo_target = (!empty($row['bo_6']))?$row['bo_6']:"_self";?>
						<?$bo_name = (!empty($row['bo_5']))?$row['bo_5']:$sub_menu;?>
						<td width="125"><a href="<?=$bo_link?>" target="<?=$bo_target?>"><?=$bo_name?></a></td>					
					</tr>
					<tr height="1">
						<td colspan="2">
							<table cellpadding="0" cellspacing="0" width="90%" border="0" align="center">
								<tr height="1">
									<td background="<?=$g4[path]?>/img/sub_menu/_dot.gif"></td>
								</tr>
							</table>			
						</td>
					</tr>
					<? 	} ?>
					</table>
				
				
				</td>
				<td></td>
			</tr>
			<tr height='2'><td colspan='3'></td></tr>
		</table>
		
	</td></tr>
	<tr height='7'><td background="<?=$g4['path']?>/img/sub_menu/left_td_bottom.gif"></td></tr>
</table>