From c615d46ecd54455521e7fdcb90c0445b5d8d53fd Mon Sep 17 00:00:00 2001 From: whitedot Date: Mon, 6 May 2013 16:29:21 +0900 Subject: [PATCH] =?UTF-8?q?=EC=87=BC=ED=95=91=EB=AA=B0:=20#127=20=EC=83=81?= =?UTF-8?q?=ED=92=88=EC=83=81=EC=84=B8=EB=B3=B4=EA=B8=B0=20=EA=B4=80?= =?UTF-8?q?=EB=A0=A8=EC=83=81=ED=92=88=20=ED=91=9C=EC=A4=80=ED=99=94=20?= =?UTF-8?q?=EB=B0=8F=20=EC=8A=A4=ED=83=80=EC=9D=BC=20=EC=99=84=EB=A3=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/default_shop.css | 2 +- shop/item.php | 36 +++++++++++++++++++----------------- 2 files changed, 20 insertions(+), 18 deletions(-) diff --git a/css/default_shop.css b/css/default_shop.css index f435fbe93..6f8575fb8 100644 --- a/css/default_shop.css +++ b/css/default_shop.css @@ -558,7 +558,7 @@ input.required:focus {padding:3px 3px 4px;border:0;background:#21272e !important #sit_ex h2 {margin:0 0 10px} /* 상품 상세보기 - 관련상품 */ -#sit_rel {margin:0 0 10px;padding:10px 10px 20px} +#sit_rel {margin:0 0 10px;padding:10px 10px 0} #sit_rel h2 {margin:0 0 10px} /* 공지사항 및 커뮤니티 새글 */ diff --git a/shop/item.php b/shop/item.php index 34a100420..a60b39422 100644 --- a/shop/item.php +++ b/shop/item.php @@ -477,24 +477,26 @@ else

관련상품

- + + $sql = " select b.* + from {$g4['shop_item_relation_table']} a + left join {$g4['shop_item_table']} b on (a.it_id2=b.it_id) + where a.it_id = '{$it['it_id']}' + and b.it_use='1' "; + $result = sql_query($sql); + $num = @mysql_num_rows($result); + if ($num) + include G4_SHOP_PATH.'/maintype10.inc.php'; + else + echo '이 상품과 관련된 상품이 없습니다.'; + ?> +