From 66b7f12f6114869dfa84c5783deed2d4dd9d0534 Mon Sep 17 00:00:00 2001 From: chicpro Date: Fri, 19 Jul 2013 13:32:46 +0900 Subject: [PATCH] =?UTF-8?q?=EB=AA=A8=EB=B0=94=EC=9D=BC=20=ED=99=98?= =?UTF-8?q?=EA=B2=BD=EC=97=90=EC=84=9C=20=EC=83=81=ED=92=88=EB=AC=B8?= =?UTF-8?q?=EC=9D=98=20=EC=82=AC=EC=9A=A9=ED=9B=84=EA=B8=B0=20=EC=88=98=20?= =?UTF-8?q?=ED=91=9C=EC=8B=9C=ED=95=98=EB=8F=84=EB=A1=9D=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mobile/shop/item.php | 40 ++++++++++++++++------------------------ shop/item.php | 2 +- 2 files changed, 17 insertions(+), 25 deletions(-) diff --git a/mobile/shop/item.php b/mobile/shop/item.php index b7c911902..606d4030a 100644 --- a/mobile/shop/item.php +++ b/mobile/shop/item.php @@ -130,6 +130,16 @@ if ($row['it_id']) { $next_href2 = ''; } +// 관리자가 확인한 사용후기의 갯수를 얻음 +$sql = " select count(*) as cnt from `{$g4['shop_item_use_table']}` where it_id = '{$it_id}' and is_confirm = '1' "; +$row = sql_fetch($sql); +$item_use_count = $row['cnt']; + +// 상품문의의 갯수를 얻음 +$sql = " select count(*) as cnt from `{$g4['shop_item_qa_table']}` where it_id = '{$it_id}' "; +$row = sql_fetch($sql); +$item_qa_count = $row['cnt']; + // 관련상품의 갯수를 얻음 $sql = " select count(*) as cnt from {$g4['shop_item_relation_table']} a @@ -139,20 +149,6 @@ $row = sql_fetch($sql); $item_relation_count = $row['cnt']; ?> - - - - @@ -517,7 +513,7 @@ else

상품 정보

- +
@@ -565,7 +561,7 @@ else

사용후기

- +