From cf1d9cc01edf3d82a60b696e81142ef255b3378c Mon Sep 17 00:00:00 2001 From: chicpro Date: Wed, 8 May 2013 10:03:07 +0900 Subject: [PATCH] =?UTF-8?q?=EB=AA=A8=EB=B0=94=EC=9D=BC=20=EC=9C=A0?= =?UTF-8?q?=ED=98=95=EB=B3=84=20=EC=83=81=ED=92=88=20=EC=B6=9C=EB=A0=A5=20?= =?UTF-8?q?=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 | 33 +++++++++++++++++++++++++++++++++ mobile/shop/index.php | 20 ++++++++++---------- 2 files changed, 43 insertions(+), 10 deletions(-) diff --git a/lib/shop.lib.php b/lib/shop.lib.php index fb6689a6b..e02f8cb91 100644 --- a/lib/shop.lib.php +++ b/lib/shop.lib.php @@ -234,6 +234,39 @@ function display_type($type, $skin_file, $list_mod, $list_row, $img_width, $img_ } } +// 모바일 유형별 상품 출력 +function mobile_display_type($type, $skin_file, $list_mod, $list_row, $img_width, $img_height, $ca_id="") +{ + global $member, $g4, $config; + + // 상품의 갯수 + $items = $list_mod * $list_row; + + // 1.02.00 + // it_order 추가 + $sql = " select * + from {$g4['shop_item_table']} + where it_use = '1' + and it_type{$type} = '1' "; + if ($ca_id) $sql .= " and ca_id like '$ca_id%' "; + $sql .= " order by it_order, it_id desc + limit $items "; + $result = sql_query($sql); + /* + if (!mysql_num_rows($result)) { + return false; + } + */ + + $file = G4_MSHOP_PATH.'/'.$skin_file; + if (!file_exists($file)) { + echo $file.' 파일을 찾을 수 없습니다.'; + } else { + $td_width = (int)(100 / $list_mod); + include $file; + } +} + // 분류별 출력 // 스킨파일번호, 1라인이미지수, 총라인수, 이미지폭, 이미지높이 , 분류번호 function display_category($no, $list_mod, $list_row, $img_width, $img_height, $ca_id="") diff --git a/mobile/shop/index.php b/mobile/shop/index.php index 6b53a102b..e6f8c06f5 100644 --- a/mobile/shop/index.php +++ b/mobile/shop/index.php @@ -20,9 +20,9 @@ include_once(G4_MSHOP_PATH.'/shop.head.php'); @@ -35,9 +35,9 @@ include_once(G4_MSHOP_PATH.'/shop.head.php'); @@ -50,9 +50,9 @@ include_once(G4_MSHOP_PATH.'/shop.head.php'); @@ -65,9 +65,9 @@ include_once(G4_MSHOP_PATH.'/shop.head.php'); @@ -80,9 +80,9 @@ include_once(G4_MSHOP_PATH.'/shop.head.php');