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

$data_path = $g4[path]."/data/file/$bo_table";
$thumb_path = $data_path.'/thumb';
?>
<style type="text/css">
<!--
.style1 {
	color: #000000;
	font-weight: bold;
}
-->
</style>

<table align="center" cellpadding="0" cellspacing="0" width="100%">
	<tr>
		<td width="3" background="<?=$latest_skin_path?>/img/latest_t_1.gif"></td>
		<td background="<?=$latest_skin_path?>/img/latest_t_bg.gif">
		<!--타이틀 시작: 실선 색상을 바꾸려면 215, 215, 215를 고치세요.-->				
		<table align="center" cellpadding="0" cellspacing="0" width="100%" border="0">
			<tr height="30">
				<td width="10"></td>
				<td><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><font color="#57697c" ><b><?=$board[bo_subject]?></b></font></a></td>
				<td width="40"><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><img src="<?=$latest_skin_path?>/img/more.gif" border="0"></a>
				<td width="5"></td>
			</tr>
		</table>
		<!--타이틀 끝-->
		</td>
		<td width="3" background="<?=$latest_skin_path?>/img/latest_t_2.gif"></td>
	</tr>
	<tr height="1"><td width="3" background="<?=$latest_skin_path?>/img/latest_m_1.gif"></td><td></td><td width="3" background="<?=$latest_skin_path?>/img/latest_m_2.gif"></td>
	<tr>
		<td width="3" background="<?=$latest_skin_path?>/img/latest_m_1.gif"></td>
		<td align="center">

		  <table border="0" cellspacing="0" cellpadding="0">
          <tr>
            <? for($i=0; $i<count($list); $i++) {$m++;?>
            <td width="65" valign="top"><div align="center">
                <table width="55" border="0" cellspacing="0">
                  <tr>
                    <td><div align="center">
                        <?
$image = $list[$i][file][0][file]; //원본 리사이즈_아래 자바와 연동_추가
$img=$data_path. "/".$image;  //썸네일이 없을경우 원본출력
$thumb = $thumb_path. "/". $list[$i][wr_id];

  if ( file_exists($thumb) )
	$img = $thumb;
  
    $style_a = "font-family:돋움; font-size:8pt; color:#999999;";

	$style = "font-family:돋움; font-size:8pt; color:#636363;";
?>

<!--이미지 가로와 세로의 크기를 정해주세요 --> 
 <? echo "<a href='{$list[$i][href]}' onfocus='this.blur()'><img src='$img' width='95' height='80' border='0'></a>"; ?>
<!--사이즈 width='120' 과 height='120'이 기본설정입니다. 자신에 맞게 수정하세요 --> </div></td>
                  </tr>
                  <tr>
                    <td height="2"></td>
                  </tr>
                </table>
            </div></td>
<!--가로이미지 숫자를 정해주세요 -->    
        <? if ($m%5==0){ ?>
<!--가로이미지 숫자와 최신게시물을 부를때 갯수와는 다릅니다. -->
          </tr>
          <tr>
            <?}?>
            <? } ?>
            <? if (count($list) == 0) { echo "<td height=30 align=center>이미지가 없습니다.</td>"; } ?>
          </tr>
        </table>
	
		</td>
		<td width="3" background="<?=$latest_skin_path?>/img/latest_m_2.gif"></td>
	<tr height="5">
		<td width="3" background="<?=$latest_skin_path?>/img/latest_m_1.gif">
		<td></td>
		<td width="3" background="<?=$latest_skin_path?>/img/latest_m_2.gif"></tr>
	</tr>
	<tr height="3">
		<td width="3" background="<?=$latest_skin_path?>/img/latest_b_1.gif"></td>
		<td background="<?=$latest_skin_path?>/img/latest_b_bg.gif"></td>
		<td width="3" background="<?=$latest_skin_path?>/img/latest_b_2.gif"></td>
	</tr>
	<tr height="1"><td colspan="3"></td>
</table>
