소스한번 봐주세요 > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

소스한번 봐주세요 정보

소스한번 봐주세요

본문

최근(갤러리) 게시글을 설치했습니다.
최근게시글에서 리스트에 이미지를 클릭하면 팝업창으로 이미지가 떠야하는데
해당 게시판페이지가 뜹니다.
http://www.thaitrade.co.kr/edasom/  <----세로로 3장있는 사진들.. 참고 ㅡㅜ
어디를 수정해야할지 몰라서요 한번 봐주세요~
최근 갤러리게시 소스입니다.
<?
    $img = "이미지 없음";
    $thumb = $thumb_path.'/'.$list[$i][wr_id];
    if (!file_exists($thumb))
    {
        $file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];
        if (preg_match("/\.(jp[e]?g|gif|png)$/i", $file) && file_exists($file))
        {
            $size = getimagesize($file);
            if ($size[2] == 1)
                $src = imagecreatefromgif($file);
            else if ($size[2] == 2)
                $src = imagecreatefromjpeg($file);
            else if ($size[2] == 3)
                $src = imagecreatefrompng($file);
            else
                break;
            $rate = $thum_width / $size[0];
            $height = (int)($size[1] * $rate);
            $dst = imagecreatetruecolor($thum_width, $height);
            imagecopyresampled($dst, $src, 0, 0, 0, 0, $thum_width, $height, $size[0], $size[1]);
            imagepng($dst, $thumb_path.'/'.$list[$i][wr_id], $image_quality);
            chmod($thumb_path.'/'.$list[$i][wr_id], 0606);
        }
    }
    if (file_exists($thumb))
        $img = "<img src='$thumb' alt='{$list[$i][subject]}' border='0' style='border:1 solid #C6C6C6;'>";
//     $img = "<img src='$thumb' alt='{$list[$i][subject]}' width='90' height='60' border='0' style='border:1 solid #C6C6C6;'>"; // 썸네일 가로 세로 고정시 사용
        echo $list[$i][icon_reply] . " ";
        echo "<table cellpadding=0 cellspacing=0 border=0><tr>";
  echo "<td><a href=\"javascript:popup_window('{$list[$i][href]}','winBoard','left=0, top=0, width=650, height=395, scrollbars=1,resizable=no')\" onfocus=\"this.blur()\">$img</a></td>";
        echo "<td width=2 bgcolor=#DDDDDD style='border-top:3px solid #FFFFFF'><img width=2 height=1></td></tr>";
     echo "<tr><td colspan=2 height=2 bgcolor=#DDDDDD style='border-left:3px solid #FFFFFF'><img width=1 height=2></td></tr>";
     echo "<tr><td colspan=2 height=2><img width=1 height=2></td></tr></table>";
        echo "<span style='cursor:default;'><font color='#BCCFCD'>▒</font> <font style=color:#393939;'>{$list[$i][subject]}</font> <font color='#BCCFCD'>▒</font></span> ";
        echo " " . $list[$i][icon_new];
        ?>

댓글 전체

전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

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