From ba110f0172cd327a5351acd72d5d28c5d221015d Mon Sep 17 00:00:00 2001 From: chicpro Date: Wed, 30 Jan 2013 11:19:59 +0900 Subject: [PATCH] =?UTF-8?q?get=5Fit=5Fimage=20=ED=95=A8=EC=88=98=20?= =?UTF-8?q?=EC=88=98=EC=A0=95=EC=97=90=20=EB=94=B0=EB=A5=B8=20=EC=8D=B8?= =?UTF-8?q?=EB=84=A4=EC=9D=BC=20=EC=83=9D=EC=84=B1=20=EC=BD=94=EB=93=9C=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shop/boxtodayview.inc.php | 4 ++-- shop/item.php | 15 +++++++++------ shop/largeimage.php | 18 ++++++++++++++---- shop/list.skin.10.php | 3 +-- shop/maintype10.inc.php | 3 +-- 5 files changed, 27 insertions(+), 16 deletions(-) diff --git a/shop/boxtodayview.inc.php b/shop/boxtodayview.inc.php index bd5729696..826fe9880 100644 --- a/shop/boxtodayview.inc.php +++ b/shop/boxtodayview.inc.php @@ -66,8 +66,8 @@ for ($i=1; $i<=$tv_idx; $i++) if(file_exists($tv_filepath.'/'.$tv_filename) && $tv_filename != "") break; } - $tv_it_img = $tv_it_id.'/'.it_img_thumb($tv_filename, $tv_filepath, $tv_div['img_width'], $tv_div['img_height']); - $img = get_it_image($tv_it_img, $tv_div['img_width'], $tv_div['img_height'], $tv_it_id); + $img = get_it_image($tv_it_id, $tv_filename, $tv_div['img_width'], $tv_div['img_height'], $tv_it_id); + $img = str_replace("\"", "\\\"", $img); $img = preg_replace("/\".cut_str($it_name,10,"")."\";\n"; } diff --git a/shop/item.php b/shop/item.php index 570881985..41baf541a 100644 --- a/shop/item.php +++ b/shop/item.php @@ -183,14 +183,12 @@ else break; } } - - $middle_image = $it['it_id'].'/'.it_img_thumb($filename, $filepath, $default['de_mimg_width'], $default['de_mimg_height']); ?> +
-
@@ -201,9 +199,8 @@ else if (file_exists($filepath.'/'.$filename) && $filename != "") { - echo get_large_image($it['it_id'].'/'.$filename, $it['it_id'], false); - echo ""; + echo get_large_image($filename, $it['it_id'], false); + echo get_it_image($it['it_id'], $filename, 40, 40, "", "item_view_thumbnail"); echo "
 "; } } @@ -1110,6 +1107,12 @@ function explan_resize_image() diff --git a/shop/largeimage.php b/shop/largeimage.php index 3ffefeb78..253667d11 100644 --- a/shop/largeimage.php +++ b/shop/largeimage.php @@ -1,13 +1,14 @@  "; + echo get_it_image($it_id, $filename, 50, 50, "", "image_thumbnail")." "; } ?>   + + + \ No newline at end of file diff --git a/shop/list.skin.10.php b/shop/list.skin.10.php index 7f6f2dbb3..5b5ca33fc 100644 --- a/shop/list.skin.10.php +++ b/shop/list.skin.10.php @@ -23,13 +23,12 @@ for ($i=0; $row=sql_fetch_array($result); $i++) break; } } - $it_img = it_img_thumb($filename, G4_DATA_PATH.'/item/'.$row['it_id'], $img_width, $img_height); echo "
- + "; if ($row[it_cust_amount] && !$row[it_gallery]) diff --git a/shop/maintype10.inc.php b/shop/maintype10.inc.php index 76ec1098a..ce92bc797 100644 --- a/shop/maintype10.inc.php +++ b/shop/maintype10.inc.php @@ -21,12 +21,11 @@ for ($i=0; $row=sql_fetch_array($result); $i++) { break; } } - $it_img = it_img_thumb($filename, G4_DATA_PATH.'/item/'.$row['it_id'], $img_width, $img_height); ?>
".get_it_image($row['it_id'].'/'.$it_img, $img_width , $img_height, $row[it_id])."
".get_it_image($row['it_id'], $filename, $img_width , $img_height, $row['it_id'])."
".it_name_icon($row)."
- +