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']);
?>
|
- | =get_large_image($it['it_id'].'/'.$filename, $it['it_id'], false)?>=get_it_image($middle_image);?> |
|
+ | =get_large_image($filename, $it['it_id'], false)?>=get_it_image($it['it_id'], $filename, $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 @@
include_once("./_common.php");
+include_once(G4_LIB_PATH.'/thumbnail.lib.php');
$sql = " select it_name, it_img1, it_img2, it_img3, it_img4, it_img5, it_img6, it_img7, it_img8, it_img9, it_img10
from $g4[yc4_item_table]
where it_id='$it_id' ";
$row = sql_fetch_array(sql_query($sql));
-$imagefile = G4_DATA_PATH."/item/$img";
-$imagefile_url = G4_DATA_URL."/item/$img";
+$imagefile = G4_DATA_PATH."/item/$it_id/$img";
+$imagefile_url = G4_DATA_URL."/item/$it_id/$img";
$size = getimagesize($imagefile);
$g4['title'] = "{$row['it_name']} ($it_id)";
@@ -27,13 +28,22 @@ include_once(G4_PATH.'/head.sub.php');
{
$filename = $row['it_img'.$i];
if (file_exists(G4_DATA_PATH."/item/{$it_id}/{$filename}") && $filename != "")
- echo " ";
+ echo get_it_image($it_id, $filename, 50, 50, "", "image_thumbnail")." ";
}
?>
|
+
+
+
include_once(G4_PATH.'/tail.sub.php');
?>
\ 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 "
|
- | ".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)." | ";
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);
?>
|
- | =$href?>=get_it_image($row['it_id'].'/'.$it_img, $img_width, $img_height)?> |
+ | =$href?>=get_it_image($row['it_id'], $filename, $img_width, $img_height)?> |
| =$href?>=stripslashes($row['it_name'])?> |
| =display_amount(get_amount($row), $row['it_tel_inq'])?> |
| |