diff --git a/mobile/shop/event.php b/mobile/shop/event.php new file mode 100644 index 000000000..466ceb8e3 --- /dev/null +++ b/mobile/shop/event.php @@ -0,0 +1,99 @@ +이벤트 관리'; +?> + + + + + +'.stripslashes($ev['ev_head_html']).''; + +// 상품 출력순서가 있다면 +if ($sort != "") + $order_by = $sort.' '.$sortodr.' , b.it_order, b.it_id desc'; + +$error = ""; + +if ($skin) + $ev['ev_skin'] = $skin; + +// 리스트 유형별로 출력 +$list_file = G5_SHOP_SKIN_PATH."/{$ev['ev_skin']}"; +if (file_exists($list_file)) +{ + include G5_MSHOP_SKIN_PATH.'/list.sort.skin.php'; + + // 상품 보기 타입 변경 버튼 + include G5_MSHOP_SKIN_PATH.'/list.sub.skin.php'; + + // 총몇개 = 한줄에 몇개 * 몇줄 + $items = $ev['ev_list_mod'] * $ev['ev_list_row']; + // 페이지가 없으면 첫 페이지 (1 페이지) + if ($page == "") $page = 1; + // 시작 레코드 구함 + $from_record = ($page - 1) * $items; + + $list = new item_list($ev['ev_skin'], $items, 1, $ev['ev_img_width'], $ev['ev_img_height']); + $list->set_event($ev['ev_id']); + $list->set_is_page(true); + $list->set_mobile(true); + $list->set_order_by($order_by); + $list->set_from_record($from_record); + $list->set_view('it_img', true); + $list->set_view('it_id', false); + $list->set_view('it_name', true); + $list->set_view('it_cust_price', false); + $list->set_view('it_price', true); + $list->set_view('it_icon', true); + $list->set_view('sns', true); + echo $list->run(); + + // where 된 전체 상품수 + $total_count = $list->total_count; + // 전체 페이지 계산 + $total_page = ceil($total_count / $items); +} +else +{ + $i = 0; + $error = "

{$ev['ev_skin']} 파일을 찾을 수 없습니다.

관리자에게 알려주시면 감사하겠습니다."; +} + +if ($i==0) +{ + echo "
"; + echo "

$error
"; +} +?> + + + +'.stripslashes($ev['ev_tail_html']).''; +?> + + + diff --git a/mobile/shop/index.php b/mobile/shop/index.php index b2f6febf5..093234fa0 100644 --- a/mobile/shop/index.php +++ b/mobile/shop/index.php @@ -30,7 +30,7 @@ include_once(G5_MSHOP_PATH.'/shop.head.php'); $list->set_view('sns', true); echo $list->run(); ?> -
더 보기
+
더 보기
@@ -50,12 +50,12 @@ include_once(G5_MSHOP_PATH.'/shop.head.php'); $list->set_view('sns', true); echo $list->run(); ?> -
더 보기
+
더 보기
-

추천상품

+

추천상품

추천상품 모음

set_view('sns', true); echo $list->run(); ?> +
더 보기
-

인기상품

+

인기상품

인기상품 모음

set_view('sns', true); echo $list->run(); ?> +
더 보기
-

할인상품

+

할인상품

할인상품 모음

set_view('sns', true); echo $list->run(); ?> +
더 보기
+ +
+
+

이벤트

+

이벤트 모음

+
+ +
+ + diff --git a/mobile/skin/shop/basic/main.event.skin.php b/mobile/skin/shop/basic/main.event.skin.php new file mode 100644 index 000000000..a8681c979 --- /dev/null +++ b/mobile/skin/shop/basic/main.event.skin.php @@ -0,0 +1,33 @@ + + + + + \ No newline at end of file diff --git a/shop/event.php b/shop/event.php index b8fa7b514..fdb163699 100644 --- a/shop/event.php +++ b/shop/event.php @@ -1,6 +1,11 @@