From 26ce8cbbb73d26f2c6ff1cb41db4774c13c5b05a Mon Sep 17 00:00:00 2001 From: chicpro Date: Wed, 30 Jan 2013 11:44:18 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9E=A5=EB=B0=94=EA=B5=AC=EB=8B=88=20?= =?UTF-8?q?=EC=83=81=ED=92=88=EB=A6=AC=EC=8A=A4=ED=8A=B8=20=EC=8D=B8?= =?UTF-8?q?=EB=84=A4=EC=9D=BC=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 --- shop/cartsub.inc.php | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/shop/cartsub.inc.php b/shop/cartsub.inc.php index 1ca59687b..d01a2a55e 100644 --- a/shop/cartsub.inc.php +++ b/shop/cartsub.inc.php @@ -88,13 +88,23 @@ $sql = " select a.ct_id, b.it_option_use, b.it_supplement_use, b.it_nocoupon, - b.it_notax + b.it_notax, + b.it_img1, + b.it_img2, + b.it_img3, + b.it_img4, + b.it_img5, + b.it_img6, + b.it_img7, + b.it_img8, + b.it_img9, + b.it_img10 from {$g4['yc4_cart_table']} as a left join {$g4['yc4_item_table']} as b on ( a.it_id = b.it_id ) where $sql_where and a.ct_parent = '0' and a.ct_direct = '$sw_direct' "; -if($w == "selectedbuy") +if($act == "selectedbuy") $sql .= " and a.ct_selected = '1' "; if($s_page == "cart.php" || $s_page == "orderform.php") @@ -146,14 +156,24 @@ for ($i=0; $row=mysql_fetch_array($result); $i++) $continue_ca_id = $row['ca_id']; } + // 리스트 썸네일 이미지 + $filepath = G4_DATA_PATH.'/item/'.$row['it_id']; + for($k=1; $k<=10; $k++) { + $idx = 'it_img'.$k; + if(file_exists($filepath.'/'.$row[$idx]) && is_file($filepath.'/'.$row[$idx])) { + $filename = $row[$idx]; + break; + } + } + if ($s_page == "cart.php" || $s_page == "orderinquiryview.php") { // 링크를 붙이고 $a1 = ""; $a2 = ""; - $image = get_it_image($row['it_id']."_s", 50, 50, $row['it_id']); + $image = get_it_image($row['it_id'], $filename, 50, 50, $row['it_id']); } else { // 붙이지 않고 $a1 = ""; $a2 = ""; - $image = get_it_image($row['it_id']."_s", 50, 50); + $image = get_it_image($row['it_id'], $filename, 50, 50); } $it_name = $a1 . stripslashes($row['it_name']) . $a2 . '
';