From 8ae6bb6d3d8abe7a612ba592f63bf80e76655575 Mon Sep 17 00:00:00 2001 From: chicpro Date: Tue, 1 Oct 2013 13:36:08 +0900 Subject: [PATCH] =?UTF-8?q?=EC=83=81=ED=92=88=EB=AC=B8=EC=9D=98=20?= =?UTF-8?q?=EC=82=AC=EC=9A=A9=ED=9B=84=EA=B8=B0=20=EC=8A=A4=ED=82=A8=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mobile/shop/iteminfo.php | 1 + mobile/shop/itemqa.php | 19 ++++++++++++ mobile/shop/itemuse.php | 19 ++++++++++++ mobile/skin/shop/basic/item.form.skin.php | 28 +++++++++--------- mobile/skin/shop/basic/itemqa.skin.php | 25 ++-------------- mobile/skin/shop/basic/itemuse.skin.php | 25 ++-------------- shop/itemqa.php | 35 +++++++++++++++++------ shop/itemuse.php | 35 +++++++++++++++++------ skin/shop/basic/itemqa.skin.php | 25 ++-------------- skin/shop/basic/itemuse.skin.php | 25 ++-------------- 10 files changed, 116 insertions(+), 121 deletions(-) diff --git a/mobile/shop/iteminfo.php b/mobile/shop/iteminfo.php index e6d4f65c1..eea26e194 100644 --- a/mobile/shop/iteminfo.php +++ b/mobile/shop/iteminfo.php @@ -71,6 +71,7 @@ function pg_anchor($info) {

상품 정보

+
diff --git a/mobile/shop/itemqa.php b/mobile/shop/itemqa.php index 1bcf089a6..5f707310c 100644 --- a/mobile/shop/itemqa.php +++ b/mobile/shop/itemqa.php @@ -2,6 +2,25 @@ include_once('./_common.php'); include_once(G5_LIB_PATH.'/thumbnail.lib.php'); +$itemqa_list = "./itemqalist.php"; +$itemqa_form = "./itemqaform.php?it_id=".$it_id; +$itemqa_formupdate = "./itemqaformupdate.php?it_id=".$it_id; + +$sql_common = " from `{$g5['g5_shop_item_qa_table']}` where it_id = '{$it_id}' "; + +// 테이블의 전체 레코드수만 얻음 +$sql = " select COUNT(*) as cnt " . $sql_common; +$row = sql_fetch($sql); +$total_count = $row['cnt']; + +$rows = 5; +$total_page = ceil($total_count / $rows); // 전체 페이지 계산 +if ($page == "") $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지) +$from_record = ($page - 1) * $rows; // 시작 레코드 구함 + +$sql = "select * $sql_common order by iq_id desc limit $from_record, $rows "; +$result = sql_query($sql); + $itemqa_skin = G5_MSHOP_SKIN_PATH.'/itemqa.skin.php'; if(!file_exists($itemqa_skin)) { diff --git a/mobile/shop/itemuse.php b/mobile/shop/itemuse.php index 84eb8bcdb..cda965ca5 100644 --- a/mobile/shop/itemuse.php +++ b/mobile/shop/itemuse.php @@ -2,6 +2,25 @@ include_once('./_common.php'); include_once(G5_LIB_PATH.'/thumbnail.lib.php'); +$itemuse_list = "./itemuselist.php"; +$itemuse_form = "./itemuseform.php?it_id=".$it_id; +$itemuse_formupdate = "./itemuseformupdate.php?it_id=".$it_id; + + $sql_common = " from `{$g5['g5_shop_item_use_table']}` where it_id = '{$it_id}' and is_confirm = '1' "; + +// 테이블의 전체 레코드수만 얻음 +$sql = " select COUNT(*) as cnt " . $sql_common; +$row = sql_fetch($sql); +$total_count = $row['cnt']; + +$rows = 5; +$total_page = ceil($total_count / $rows); // 전체 페이지 계산 +if ($page == "") $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지) +$from_record = ($page - 1) * $rows; // 시작 레코드 구함 + +$sql = "select * $sql_common order by is_id desc limit $from_record, $rows "; +$result = sql_query($sql); + $itemuse_skin = G5_MSHOP_SKIN_PATH.'/itemuse.skin.php'; if(!file_exists($itemuse_skin)) { diff --git a/mobile/skin/shop/basic/item.form.skin.php b/mobile/skin/shop/basic/item.form.skin.php index 2843b7dc5..b977edebb 100644 --- a/mobile/skin/shop/basic/item.form.skin.php +++ b/mobile/skin/shop/basic/item.form.skin.php @@ -305,18 +305,6 @@ if ($row['it_id']) {
- - - -