<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 
$img_width = '80'; //가로길이 
$img_height = '70'; //세로길이 
?>
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 
?>

<table align="center" cellpadding="0" cellspacing="0" width="100%" border="0">
	<tr height="1">
		<td bgcolor="#d8d8d8" colspan="3"></td>
	</tr>
	<tr>
		<td width="1" bgcolor="#d8d8d8"></td>
		<td>
		<table cellpadding="0" cellspacing="0" width="100%">
			<tr>
				<td width="10"></td>
				<td>
				<table cellpadding="0" cellspacing="0" width="100%" border="0">
					<tr height="5"><td colspan="2"></td></tr>
					<tr height="27">
						<td>
						<a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><font color="#555555" ><b><?=$board[bo_subject]?></b></font></a>
						</td>
						<td align="right"><img src='<?=$latest_skin_path?>/img/icon.gif'><span style="font-size: 11px; color: #646464; font-family:dotum; letter-spacing:-1;"><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'>더보기</a></span></td>
					</tr>
					<tr height="1"><td colspan="2" background="<?=$latest_skin_path?>/img/line_dot.gif" border="0"></td></tr>
					<tr height="5"><td colspan="2"></td></tr>
				</table>
				</td>
				<td width="10"></td>
			</tr>
		</table>
		<table align="center" cellpadding="0" cellspacing="0" width="100%" border="0">
			<? 
			for ($i=0; $i<count($list); $i++) {
				$image = "$g4[path]/data/file/$bo_table/".urlencode($list[$i][file][0][file]);
			if (!file_exists($image) || !$list[$i][file][0][file])
				$image = "$latest_skin_path/img/no_image.gif";
			?>
			<tr>
				<td width="10"></td>
				<td height="22">
				<?
				//날짜표시
				$subject = $list[$i][subject];
				$b_subject = "<strong>".$list[$i][subject]."<strong>";
				?>
				<table align="center" cellpadding="0" cellspacing="0" width="100%" border="0">
					<tr height="28">
						<td rowspan="4" width="<?=$img_width?>"><a href="<?=$list[$i][href]?>"><img src="<?=$image?>" width='<?=$img_width?>' height='<?=$img_height?>' border='0'></a></td>
						<td width="5"></td>
						<td align="left">
						<a href='<?=$list[$i][href]?>'><span style="font-size: 11px; color: #333333; font-family:dotum;"><?if ($list[$i][is_notice])
								echo $b_subject;
							else
								echo $subject;
							?></span></a>							
						</td>
					</tr>
					<tr height="18">
						<td></td>
						<td><span style="font-size: 11px; color: #3f627d; font-family:dotum;">개발 :</span> <span style="font-size: 11px; color: #aaaaaa; font-family:dotum; letter-spacing:0;"><?=$list[$i][name]?></span></td>
					</tr>
					<tr height="18">
						<td></td>
						<td><span style="font-size: 11px; color: #3f627d; font-family:dotum;">종류 :</span> <span style="font-size: 11px; color: #aaaaaa; font-family:dotum; letter-spacing:0;"><? if($list[$i][ca_name]) echo $list[$i][ca_name]; else echo "없음";?></span></td>
					</tr>
					<tr height="18">
						<td></td>
						<td><span style="font-size: 11px; color: #3f627d; font-family:dotum;">날짜 :</span> <span style="font-size: 11px; color: #aaaaaa; font-family:dotum; letter-spacing:0;"><?=$list[$i][datetime2]?></span></td>
					</tr>
				</table>
				<!--게시물 추출 글자 설정 끝-->
				</td>
			 </tr>
			 <tr height="6"><td colspan="2"></td></tr>
			 <? } ?>
			 <? if (count($list) == 0) { ?><tr height="75"><td align=center><font color=#6A6A6A>현재 등록된 글이 없습니다.</a></td></tr><? } ?>
		</table>
		</td>
		<td width="1" bgcolor="#d8d8d8"></td>
	</tr>
	<tr height="5">
		<td width="1" bgcolor="#d8d8d8"></td>
		<td></td>
		<td width="1" bgcolor="#d8d8d8"></td>
	</tr>
	<tr height="1">
		<td bgcolor="#d8d8d8" colspan="3"></td>
	</tr>
</table>
		

