첨부파일 별도로 출력 > 공책

본문 바로가기
010.6356.7610
  • design1001@naver.com
  • @design1001
작업물 전체보기

PHP with GNU

PHP with GNU 첨부파일 별도로 출력

페이지 정보

  • 작성자후야
  • 조회 : 185
  • 작성일 : 2021-05-06 03:10

본문

첨부파일 첫번째 이미지만 출력

if ($view['file'][0]['view']) {

echo get_view_thumbnail($view['file'][0]['view']);

}


두번째 파일부터 출력

$v_img_count = count($view['file']);

if($v_img_count) {

echo "<div id=\"bo_v_img\">\n";

for ($i=1; $i<$v_img_count;$i++) {

if ($view['file'][$i]['view']) {

echo get_view_thumbnail($view['file'][$i]['view']);

}

}

echo "</div>\n";

}

//첨부파일 첫번째 이미지만 출력
if ($view['file'][0]['view']) {
	echo get_view_thumbnail($view['file'][0]['view']);
}

//두번째 파일부터 출력
$v_img_count = count($view['file']);
if($v_img_count) {
	echo "<div id=\"bo_v_img\">\n";
	for ($i=1; $i<$v_img_count;$i++) {
		if ($view['file'][$i]['view']) {
			echo get_view_thumbnail($view['file'][$i]['view']);
		}
	}
	echo "</div>\n";
}