From 7a5c806f72ea6fc204354224e874c2578ead86c5 Mon Sep 17 00:00:00 2001 From: chicpro Date: Mon, 22 Apr 2013 16:51:44 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B0=B0=EB=84=88=EC=9D=B4=EB=AF=B8=EC=A7=80?= =?UTF-8?q?=20width=20=EA=B0=92=EC=9D=B4=20=ED=81=B4=20=EB=95=8C=20?= =?UTF-8?q?=EC=B2=98=EB=A6=AC=20=EC=BD=94=EB=93=9C=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/shop_admin/bannerlist.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/adm/shop_admin/bannerlist.php b/adm/shop_admin/bannerlist.php index a43b6cf8d..ee7b4f7bd 100644 --- a/adm/shop_admin/bannerlist.php +++ b/adm/shop_admin/bannerlist.php @@ -56,10 +56,19 @@ $from_record = ($page - 1) * $rows; // 시작 열을 구함 // 새창 띄우기인지 $bn_new_win = ($row['bn_new_win']) ? 'target="_new"' : ''; + $bimg = G4_DATA_PATH.'/banner/'.$row['bn_id']; + if(file_exists($bimg)) { + $size = @getimagesize($bimg); + if($size[0] && $size[0] > 800) + $width = 800; + else + $width = $size[0]; + } + $bn_img = ""; if ($row['bn_url'] && $row['bn_url'] != "http://") $bn_img .= ''; - $bn_img .= ''.$row['bn_alt'].''; + $bn_img .= ''.$row['bn_alt'].''; $bn_begin_time = substr($row['bn_begin_time'], 2, 14); $bn_end_time = substr($row['bn_end_time'], 2, 14);