From 84d0cc1612664b55d2bde57c5c7c34b23d5fdd3a Mon Sep 17 00:00:00 2001 From: chicpro Date: Tue, 29 Jan 2013 15:39:07 +0900 Subject: [PATCH] =?UTF-8?q?=EB=A6=AC=EC=8A=A4=ED=8A=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=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shop/list.skin.10.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/shop/list.skin.10.php b/shop/list.skin.10.php index c71cff164..7f6f2dbb3 100644 --- a/shop/list.skin.10.php +++ b/shop/list.skin.10.php @@ -14,11 +14,22 @@ for ($i=0; $row=sql_fetch_array($result); $i++) echo "\n"; } + // 리스트 썸네일 이미지 + $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; + } + } + $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])
".get_it_image($row[it_id]."_s", $img_width , $img_height, $row[it_id])."
".get_it_image($row['it_id'].'/'.$it_img, $img_width , $img_height, $row[it_id])."
".it_name_icon($row)."