<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
include_once(G5_LIB_PATH.'/thumbnail.lib.php'); // 이미지 섬네일 라이브러리
echo "<link rel='stylesheet' href='{$latest_skin_url}/css.css'>";
$list_count = (is_array($list) && $list) ? count($list) : 0;
//-------------------------------------------------------------------------------------------------
?>
<?php
for ($i=0; $i<$list_count; $i++) {
// 관리자 페이지 > 목록에서 파일 사용 체크
$board['bo_gallery_width'] = "182";
$board['bo_gallery_height'] = "110";
$filename = $list[$i]['file'][0]['file']; // 서버 저장 파일명
$filepath = G5_DATA_PATH.'/file/'.$bo_table; // 데이터 디렉토리 경로
$filesrc = G5_DATA_URL.'/file/'.$bo_table.'/'.$filename; // 이미지 주소
$thumb = thumbnail($filename, $filepath , $filepath , $board['bo_gallery_width'], $board['bo_gallery_height'], false, true); // 섬네일 이미지 파일명
$thumbsrc = G5_DATA_URL.'/file/'.$bo_table.'/'.$thumb; // 섬네일 주소
if ($thumb) {
?>
<div id="RE" onclick="location.href='<?php echo $list[$i]['href'] ?>'">
<img src="<?=$thumbsrc;?>" />
<p><?=cut_str($list[$i]['subject'],17,"…");?></p>
</div>
<? } }?>