From 53af682ba25c979149772c67f546292aad6a8ac7 Mon Sep 17 00:00:00 2001 From: chicpro Date: Mon, 29 Apr 2013 14:28:32 +0900 Subject: [PATCH] =?UTF-8?q?#90=20=EC=97=90=20=EB=94=B0=EB=A5=B8=20display?= =?UTF-8?q?=5Frelation=5Fitem=20=ED=95=A8=EC=88=98=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/shop.lib.php | 47 ++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 46 insertions(+), 1 deletion(-) diff --git a/lib/shop.lib.php b/lib/shop.lib.php index 38d2614f4..0b4b10d34 100644 --- a/lib/shop.lib.php +++ b/lib/shop.lib.php @@ -1,4 +1,4 @@ -'; + + $full_img = G4_DATA_PATH.'/item/'.$row['it_id'].'_s'; + $it_name = get_text($row['it_name']); // 상품명 + $it_amount = ''; // 상품가격 + if(!$row['it_gallery']) { + $it_amount = get_amount($row); + if(!$row['it_tel_inq']) + $it_amount = display_amount($it_amount); + } + + if(is_file($full_img)) { + $img_url = G4_DATA_URL.'/item/'.$row['it_id'].'_s'; + $img = ''; + } else { + $img = ''; + } + + $str .= '
  • '.$img.'
  • '; + } + + if($i > 0) + $str .= ''; + + return $str; +} //============================================================================== // 쇼핑몰 함수 모음 끝 //==============================================================================