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";
}
- 이전글게시판 엑셀파일 업로드 2021.05.12
- 다음글주문완료 페이지 - 영카트 2021.05.04