<? if (!defined("_GNUBOARD_")) exit; ?>
<?
$body_box_id	= time() . rand(0, 9999);		//-- 각 레이어 상자의 클레스 이름이나 ID가 중복되어 서로 다른 객체들간 간섭을 해소하기 위해
?>
<style type="text/css">
.zm_latest_g_body<?=$body_box_id?>		{ display:block; width:100%; height:180px; border:1px solid #E3E3E3; clear:both; }
.zm_latest_g_body<?=$body_box_id?> .zm_latest_g_subject	{ font-weight:bold; background-color:#FCFCFC; border-bottom:1px solid #D7D7D7; padding:7px 0 7px 10px; }
.zm_latest_g_body<?=$body_box_id?> .zm_latest_g_subject a:active, a:link, a:visited	{ color:#595959; }
.zm_latest_g_body<?=$body_box_id?> .zm_latest_g_subject a:hover	{ text-decoration:none; color:#242424; }

.zm_latest_g_body<?=$body_box_id?> .zm_latest_g_thumb	{ margin:5px; width:135px; height:120px; overflow:hidden; }		/* 썸네일 들어 갈 박스 */
.zm_latest_g_body<?=$body_box_id?> .zm_latest_g_summ	{ font-family:Dotum; font-size:11px; letter-spacing:-1px; color:#C3C3C3; text-decoration:none; padding:2px; }
.zm_latest_g_body<?=$body_box_id?> .zm_latest_g_summ a:hover	{ color:#616161; text-decoration:none; }
.zm_latest_g_body<?=$body_box_id?> .zm_latest_g_board_err	{ color:#C7C7C7; text-align:center; }
</style>

<div class="zm_latest_g_body<?=$body_box_id?>">
<div class="zm_latest_g_subject"><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><?=$bo_subject[subject]?></a></div>
<div class="zm_latest_g_list_box">
<? for ($i=0; $i<count($list); $i++) :
	//-- 썸네일이 없을 수 있으므로 임시 이미지 준비
	if(!$list[$i][se_thumb] && !$list[$i][g4_thumb]) $list[$i][se_thumb] = "<img src='".$latest_skin_path . "/img/img_nopic.gif' style='margin:10px;'>";
?>
	<div style="float:left;">
		<div class="zm_latest_g_thumb"><a href='<?=$list[$i]['href']?>'><?=($list[$i][g4_thumb])?$list[$i][g4_thumb]:$list[$i][se_thumb]?></a></div>
		<div class="zm_latest_g_summ" style="word-wrap:break-word">
			<a href='<?=$list[$i]['href']?>'><?=($list[$i]['is_notice']) ? $list[$i]['subject'] : $list[$i]['subject']?></a>
			<?=($list[$i]['comment_cnt']) ? '<a href='.$list[$i]['comment_href'].'>'.$list[$i]['comment_cnt'] : ''?></a>
			<?=$list[$i]['icon_new']?> <?=$list[$i]['icon_secret']?>
		</div>
	</div>
<? endfor; ?>
<? if ($board_err) : ?>
	<div style="padding:8px 0 80px 5px; color:#828282;">· 없는 게시판입니다.</div>
<? elseif(count($list) == 0) : ?>
	<div style="padding:8px 0 80px 5px; color:#828282;">· 등록 된 글이 없습니다.</div>
<? endif; ?>
</div>
</div> <!-- end zm_latest_body -->
