일반 게시판에 이미지 나오게 하기 > 그누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개

© SIRSOFT
현재 페이지 제일 처음으로