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');