<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/latest.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");
include_once("$g4[path]/lib/groupmenu.lib.php");
include_once("$g4[path]/lib/latest.num.lib.php");

//print_r2(get_defined_constants());
// 사용자 화면 게시판상단과 게시판좌측을 담당하는 페이지입니다.
// 게시판상단, 게시판좌측 화면을 꾸미려면 이 파일을 수정합니다.
?>

<!-- 화면을 중앙 고정 시작 -->
<table width="100%" cellspacing="0" cellpadding="0" border="0">
	<tr>
		<td align="center" valign="top">
		<!-- 홈페이지 시작 -->
		<table width="100%" cellspacing="0" cellpadding="0" border="0">
			<tr>
				<td align="<?=$home_align?>" valign="top">				
				<table width="<?=$home_width?>" border="0" cellpadding="0" cellspacing="0">
					<tr><td colspan="3"><?include_once("$g4[path]/include/menu.php");?></td></tr>
					<tr>
						<td>
		
						<!-- 메인 테이블 -->
						<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
							<tr>
								<td>
								<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
									<tr height="6" colspan="4"><td></td></tr>
									<tr>
										<td width="<?=$home_left?>" valign="top">
										<?include_once("$g4[path]/include/outlogin_color.php");?>
										<?include_once("$g4[path]/include/sub_menu.php"); // 서브메뉴?>					
										</td>
										<td width="<?=$home_margin?>"></td>
										<td valign="top">

										<?if($bo_table){?>								
										<table width="100%" border="0" cellpadding="0" cellspacing="0">
											<tr><td>
												<table width="100%" border="0" cellpadding="0" cellspacing="0">
													<tr>
														<td width="4"><img src="<?=$g4['path']?>/img/box_b_1.gif"></td>
														<td width="100%" background="<?=$g4['path']?>/img/box_b_2.gif"></td>
														<td width="4"><img src="<?=$g4['path']?>/img/box_b_3.gif"></td>
													</tr>
													<tr>
														<td background="<?=$g4['path']?>/img/box_b_4.gif"></td>
														<td>
														<table width="100%" border="0" cellpadding="0" cellspacing="0">
															<tr height="4"><td colspan="3"></td></tr>
															<tr>
																<td></td><td>
																<table width="100%" border="0" cellpadding="0" cellspacing="0">
																	<tr>
																		<td width="148">&nbsp;<a href="<?=$g4['bbs_path']?>/board.php?bo_table=<?=$bo_table?>" style="color:#017c99; font-weight:bold;"><?=$board[bo_subject]?> 베스트 10</a></td></tr></table>
																<td></td>
															</tr>
															<tr height="6">
																<td colspan="3"></td>
															</tr>
															<tr height="1">
																<td></td>
																<td bgcolor=#cddbe4></td>
																<td></td>
															</tr>
															<tr height="6">
																<td colspan="3"></td>
															</tr>
															<tr>
																<td></td>
																<td>
																<table width="100%" border="0" cellpadding="0" cellspacing="0">
																	<tr>
																		<td width="24%">
																		<table width="100%" border="0" cellpadding="0" cellspacing="0">
																			<tr>
																				<td> <?=latest_num("rank_1", $bo_table, 1, 20, "H", "", "", "0");?></td>
																			</tr>
																		</table>
																		</td>
																		<td width="1%"></td>
																		<td width="24%" valign="top">
																		<table width="100%" border="0" cellpadding="0" cellspacing="0">
																			<tr>
																				<td><?=latest_num("rank_234", $bo_table, 3, 20, "H", "", "", "1");?></td>
																			</tr>
																		</table>
																		</td>
																		<td width="1%"></td>
																		<td width="24%" valign="top">
																		<table width="100%" border="0" cellpadding="0" cellspacing="0">
																			<tr>
																				<td><?=latest_num("rank_567", $bo_table, 3, 20, "H", "", "", "4");?></td>
																			</tr>
																		</table>
																		</td>
																		<td width="1%"></td>
																		<td width="24%" valign="top">
																		<table width="100%" border="0" cellpadding="0" cellspacing="0">
																			<tr>
																				<td><?=latest_num("rank_890", $bo_table, 3, 20, "H", "", "", "7");?></td>
																			</tr>
																		</table>
																		</td>
																		<td width="1%"></td>
																	</tr>
																</table>
																</td><td>
																</td>
															</tr>
														</table>
														</td>
														<td background="<?=$g4['path']?>/img/box_b_5.gif"></td>
													</tr>
													<tr>
														<td><img src="<?=$g4['path']?>/img/box_b_6.gif"></td>
														<td width="100%" background="<?=$g4['path']?>/img/box_b_7.gif"></td>
														<td><img src="<?=$g4['path']?>/img/box_b_8.gif"></td>
													</tr>
												</table>
												</td>
											</tr>
										</table>
										<?}?>