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++) { ?>
  • - +