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']) {
- - - -