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

<table width="190" cellpadding=0 cellspacing=0 border=0><tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<!-- 	<tr><td height=10></td></tr> -->
	<? for ($i=0; $i<count($list); $i++) { ?>
	<tr> 
		<td align="center">

        <?  // View 
	 		 $table = "06_2";
			 $wr_id = $list[$i]['wr_id'];
			 $href = "$g4[bbs_path]/link.php?bo_table={$table}&wr_id=$wr_id&no=1";
			 sql_query(" update {$g4[write_prefix]}{$table} set wr_3 = wr_3 + 1 where wr_id = '$wr_id' ");              
		echo "<a href='$href' target='_blank'>";
             $image = urlencode($list[$i][file][0][file]); // 첫번째 파일이 이미지라면
             if (preg_match("/\.(gif|jpg|png)$/i", $image)) { ?>
			<img src='<?=$g4[path]?>/data/file/<?=$bo_table?>/<?=$image?>' width='190' height='50' border='0'></a><br>
		<? } else { ?>
			<img src='<?=$latest_skin_path?>/img/noimage.gif' border='0'></a><br>
		<? } ?>
            
		</td>
	</tr>
	<tr><td height=6></td></tr>
	<? } ?>
</table>
</td></tr></table>
