G5 DB image 출력 설정?

G5 DB image 출력 설정?

QA

G5 DB image 출력 설정?

본문

g4 에서는 썸네일을 값을 이렇게 불렀는데

G5에서는 어떻게 고쳐야 DB image를 출력할 수있나요 ?

 

G5 복잡하네요 ~!

 


<? php
if ($list[$i][file][0][file]) 
   {
    $file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];
    if($page_mode == "printdaerew"){
      echo "<link rel='stylesheet' type='text/css' href='$board_skin_path/style.css' />\n";
      $img = "<img src='" .$file. "' style='border:1px solid #eaeaea;' width=$thum_width height=$thum_height>";
    } else {
      $img = "<a href=\"$file\" class=\"lightbox-image\" rel=\"prettyPhoto[group1]\" title=\"{$list[$i][wr_content]}\" onfocus=\"blur()\"><img src='" .$file. "' style='border:1px solid #eaeaea;' width=$thum_width height=$thum_height></a>";
       }
   }
   else
   {
    $img = "<a href=\"{$list[$i][href]}\"><img src='$board_skin_path/img/noimage.gif' style='border:1px solid #eaeaea;' width=$thum_width height=$thum_height></a>";
   }
?>
 

이 질문에 댓글 쓰기 :

답변 1

$thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $board['bo_gallery_width'], $board['bo_gallery_height']);

 

                        if($thumb['src']) {

                            $img_content = '<img src="'.$thumb['src'].'" alt="'.$thumb['alt'].'" width="'.$board['bo_gallery_width'].'" height="'.$board['bo_gallery_height'].'">';

                        } else {

                            $img_content = '<span style="width:'.$board['bo_gallery_width'].'px;height:'.$board['bo_gallery_height'].'px">no image</span>';

                        }

 

                        echo $img_content;

기본적으로 그누5에서 썸네일을 출력하는 방식입니다. 참고하세요

답변을 작성하시기 전에 로그인 해주세요.
전체 36
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT