소스한번 봐주세요 정보
소스한번 봐주세요본문
최근(갤러리) 게시글을 설치했습니다.
최근게시글에서 리스트에 이미지를 클릭하면 팝업창으로 이미지가 떠야하는데
해당 게시판페이지가 뜹니다.
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;
$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);
$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);
}
}
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;'>"; // 썸네일 가로 세로 고정시 사용
$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];
?>
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];
?>