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

· 16년 전 · 2700

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

베이직게시판에


생략



    <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>"; }

   ?>


생략







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

열심히 공부하겠습니다.

|
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 팁자료실

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

+
제목 글쓴이 날짜 조회
16년 전 조회 3,969
16년 전 조회 6,652
16년 전 조회 5,905
16년 전 조회 6,371
16년 전 조회 3,142
16년 전 조회 5,681
16년 전 조회 3,246
16년 전 조회 3,179
16년 전 조회 4,967
16년 전 조회 2,701
16년 전 조회 4,861
16년 전 조회 3,531
16년 전 조회 1.2만
16년 전 조회 2,976
16년 전 조회 3,186
16년 전 조회 4,705
16년 전 조회 3,466
16년 전 조회 3,217
16년 전 조회 6,638
16년 전 조회 3,101
🐛 버그신고