<?php
// 파일 출력
$v_img_count = count($view['file']);
if($v_img_count) {
echo "<div id=\"slideshow\" style='max-width:620px'>
<ul class='pgwSlideshow'>
\n";
for ($i=0; $i<=count($view['file']); $i++) {
if ($view['file'][$i]['view']) {
//echo $view['file'][$i]['view'];
echo get_view_thumbnail2($view['file'][$i]['view']);
}
}
echo "</ul></div>\n";
}
?>
여기에서 첨부파일이 없으면 스킨이미지안에 noimg.gif를 띄우고 싶은데 도와주세요
|
답변 2개
채택된 답변
+20 포인트
6년 전
Copy
for ($i=0; $i<=count($view['file']); $i++) {
if ($view['file'][$i]['view']) {
//echo $view['file'][$i]['view'];
$thum_img = get_view_thumbnail2($view['file'][$i]['view']);
if (!$thum_img) {
$thum_img = ''<img src="noimg.gif"?;
}
echo $thum_img;
}
}
6년 전
감사합니다
답변을 작성하려면 로그인이 필요합니다.