<? if (!defined("_GNUBOARD_")) exit; ?>
<?
$body_box_id	= time() . rand(0, 9999);		//-- 각 레이어 상자의 클레스 이름이나 ID가 중복되어 서로 다른 객체들간 간섭을 해소하기 위해
?>
<style type="text/css">
.zm_latest_g_body<?=$body_box_id?>		{ clear:both; height:180px; border:1px solid #E3E3E3; border-radius:2px; }
.zm_latest_g_body<?=$body_box_id?> .zm_latest_g_subject	{ font-weight:bold; background:#FBFBFB; border-bottom:1px solid #D7D7D7; padding:7px 0 7px 10px; }
.zm_latest_g_body<?=$body_box_id?> .zm_latest_g_subject > span	{ display:inline-block; width:50%; }
.zm_latest_g_body<?=$body_box_id?> .zm_latest_g_subject > span:first-child	{ color:#444E57; }	/* 게시판 이름 */
.zm_latest_g_body<?=$body_box_id?> .zm_latest_g_subject > span:last-child	{ text-align:right; }
.zm_latest_g_body<?=$body_box_id?> .zm_latest_g_subject > span:last-child a	{ color:#5B5B5B; font:normal 11px Dotum; } /* 더보기 */
.zm_latest_g_body<?=$body_box_id?> .zm_latest_g_subject > span:last-child a:hover	{ text-decoration:underline; }
.zm_latest_g_body<?=$body_box_id?> .zm_latest_g_subject > span:last-child img	{ vertical-align:middle; margin-right:5px; }

.zm_latest_g_body<?=$body_box_id?> .latest_g_thumb	{ margin:12px 5px 5px 5px; height:100px; width:135px; }		/* 썸네일 들어 갈 박스 */
.zm_latest_g_body<?=$body_box_id?> .latest_g_thumb .thumb_img	{ position:absolute; width:135px; height:100px; overflow:hidden; text-align:center; }
.zm_latest_g_body<?=$body_box_id?> .latest_g_thumb .thumb_sbj	{ position:absolute; background:#282828; width:135px; height:20px; line-height:140%; margin-top:80px; filter:alpha(opacity=40); opacity:0.4; -moz-opacity:0.4; }
.zm_latest_g_body<?=$body_box_id?> .latest_g_thumb .thumb_sbj a		{ color:#fff; margin-left:5px; font:bold 11px Dotum; }
.zm_latest_g_body<?=$body_box_id?> .latest_g_thumb .thumb_sbj a:hover	{ text-decoration:underline; }
.zm_latest_g_body<?=$body_box_id?> .latest_g_summ	{ padding:5px; }
.zm_latest_g_body<?=$body_box_id?> .latest_g_summ .member { color:#454545; } /* 글쓴이 */
.zm_latest_g_body<?=$body_box_id?> .latest_g_summ .cmmt	{ font:11px Dotum; color:#FF8000; margin-left:10px; } /* 댓글 */

.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"><span><?=$bo_subject[subject]?></span><span><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'>더보기</a> <img src="<?=$latest_skin_path?>/img/board_icon.gif"></span></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'>";
?>
	<div style="float:left;">
		<div class="latest_g_thumb"><div class="thumb_img"><a href='<?=$list[$i]['href']?>'><?=($list[$i][g4_thumb])?$list[$i][g4_thumb]:$list[$i][se_thumb]?></a></div>
			<div class="thumb_sbj"><a href='<?=$list[$i]['href']?>'><?=$list[$i]['subject']?></a></div>
		</div>
		<div class="latest_g_summ">
			<?=$list[$i][name]?>
			<?=($list[$i]['comment_cnt']) ? "<span class='cmmt'>댓글 ".$list[$i]['comment_cnt']."</span>" : ''?>
			<?=$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 -->
