From aa381c5aa9c82ffd5970fde32530dcda9ad046f8 Mon Sep 17 00:00:00 2001 From: chicpro Date: Thu, 2 May 2013 09:38:46 +0900 Subject: [PATCH] =?UTF-8?q?#111=20=EC=97=90=20=EB=94=B0=EB=A5=B8=20?= =?UTF-8?q?=EC=87=BC=ED=95=91=EB=AA=B0=20=EC=9D=B8=EB=8D=B1=EC=8A=A4=20?= =?UTF-8?q?=EC=9D=B4=EB=AF=B8=EC=A7=80=20ID=20=EC=9C=A0=ED=9A=A8=EC=84=B1?= =?UTF-8?q?=20=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/shop.lib.php | 13 ++++++++----- shop/maintype10.inc.php | 2 +- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/lib/shop.lib.php b/lib/shop.lib.php index 592553ea7..5beeb68b9 100644 --- a/lib/shop.lib.php +++ b/lib/shop.lib.php @@ -14,11 +14,14 @@ function get_cart_count($uq_id) } // 이미지를 얻는다 -function get_image($img, $width=0, $height=0) +function get_image($img, $width=0, $height=0, $type='') { global $g4, $default; $full_img = G4_DATA_PATH.'/item/'.$img; + if($type != '') { + $img_id = 'type'.$type.'_'.$img; + } if (file_exists($full_img) && $img) { @@ -28,7 +31,7 @@ function get_image($img, $width=0, $height=0) $width = $size[0]; $height = $size[1]; } - $str = ''; + $str = ''; } else { @@ -37,7 +40,7 @@ function get_image($img, $width=0, $height=0) $str .= 'width="'.$width.'" height="'.$height.'"'; else $str .= 'width="'.$default['de_mimg_width'].'" height="'.$default['de_mimg_height'].'"'; - $str .= ' id="'.$img.'">'; + $str .= ' id="'.$img_id.'">'; } @@ -45,9 +48,9 @@ function get_image($img, $width=0, $height=0) } // 상품 이미지를 얻는다 -function get_it_image($img, $width=0, $height=0, $id="") +function get_it_image($img, $width=0, $height=0, $id="", $type='') { - $str = get_image($img, $width, $height); + $str = get_image($img, $width, $height, $type); if ($id) { $str = ''.$str.''; } diff --git a/shop/maintype10.inc.php b/shop/maintype10.inc.php index a15c7068b..f11d4e6bc 100644 --- a/shop/maintype10.inc.php +++ b/shop/maintype10.inc.php @@ -12,7 +12,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++) { ?>
  • - +