일반 게시판에 이미지 나오게 하기 > 그누4 팁자료실

그누4 팁자료실

그누보드4와 관련된 팁을 여러분들과 함께 공유하세요.
나누면 즐거움이 커집니다.

일반 게시판에 이미지 나오게 하기 정보

일반 게시판에 이미지 나오게 하기

본문

짜집기하면서
고수님들의 소스를 손봤습니다.
어똔분 소스인지 죄송스럽니요..;;

베이직게시판에


생략



    <table cellspacing="0" cellpadding="0" border='0' class="board_list"  height=110 >
    <col width="50" />
    <? if ($is_checkbox) { ?><col width="40" /><? } ?>
    <col width="110" />
    <col />
    <col width="110" />
    <col width="40" />
    <col width="50" />
    <? if ($is_good) { ?><col width="40" /><? } ?>
    <? if ($is_nogood) { ?><col width="40" /><? } ?>
    <tr>




생략


         <?      $image = urlencode($list[$i][file][0][file]); // 첫번째 파일이 이미지라면
            if (preg_match("/\.(gif|jpg|png)$/i", $image) && file_exists("$g4[path]/data/file/$bo_table/$image"))


 {
                echo "<p align=center><img src='$g4[path]/data/file/$bo_table/$image' width='100' height='100' border='0' onclick=image_window('$g4[path]/data/file/$bo_table/$image') style='cursor:pointer' align=middle></p>";
}

//    else if (file_exists($list[$i][file_image1])) { $gznews_img = "width=100 height=100 border=0)'><br>"; }

   ?>


생략







이렇게하니 이미지축소형 리스트가 나오네요...

열심히 공부하겠습니다.

추천
1

댓글 0개

전체 3,309 |RSS
그누4 팁자료실 내용 검색

회원로그인

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