From 0da7ccb589c48fc016c5f0271ec504b76095b803 Mon Sep 17 00:00:00 2001 From: chicpro Date: Thu, 8 Aug 2013 14:25:58 +0900 Subject: [PATCH] =?UTF-8?q?=EC=83=81=ED=92=88=EB=B3=B4=EA=B8=B0=20?= =?UTF-8?q?=EC=9C=A0=ED=98=95=20=EB=B3=80=EA=B2=BD=20=EC=BD=94=EB=93=9C?= =?UTF-8?q?=EB=A5=BC=20=ED=8C=8C=EC=9D=BC=EC=97=90=20=EB=B6=84=EB=A6=AC?= =?UTF-8?q?=ED=95=B4=EC=84=9C=20=EC=A0=80=EC=9E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mobile/shop/list.php | 16 ++++++++-------- shop/event.php | 6 ++++++ shop/list.php | 33 +++++++++++++-------------------- shop/list.sort.php | 24 ++++++------------------ shop/list.sub.php | 19 +++---------------- shop/list.sub2.php | 28 ++++++++++++++++++++++++++++ shop/listtype.php | 7 +++++++ 7 files changed, 71 insertions(+), 62 deletions(-) create mode 100644 shop/list.sub2.php diff --git a/mobile/shop/list.php b/mobile/shop/list.php index 3714d08ed..8687a605f 100644 --- a/mobile/shop/list.php +++ b/mobile/shop/list.php @@ -97,20 +97,20 @@ if ($is_admin) } ?> + + '.stripslashes($ca['ca_mobile_tail_html']).''; ?> - - diff --git a/shop/list.php b/shop/list.php index c0d18bd39..d3ce794a4 100644 --- a/shop/list.php +++ b/shop/list.php @@ -75,6 +75,9 @@ if ($is_admin) if (file_exists($list_file)) { include G4_SHOP_PATH.'/list.sort.php'; + // 상품 보기 타입 변경 버튼 + include G4_SHOP_PATH.'/list.sub.php'; + // 총몇개 = 한줄에 몇개 * 몇줄 $items = $ca['ca_list_mod'] * $ca['ca_list_row']; // 페이지가 없으면 첫 페이지 (1 페이지) @@ -115,18 +118,16 @@ if ($is_admin) } ?> - + '; ?> - - @@ -21,21 +25,5 @@ $sct_sort_href .= '&ev_id='.$ev_id.'&sort=';
  • 인기상품
  • 할인상품
  • - - - - \ No newline at end of file diff --git a/shop/list.sub.php b/shop/list.sub.php index c549d7803..5be29ebc2 100644 --- a/shop/list.sub.php +++ b/shop/list.sub.php @@ -1,19 +1,6 @@ 태그 폭 -$td_width = (int)(100 / $list_mod); - -$sql = "select COUNT(*) as cnt $sql_common "; -$row = sql_fetch($sql); -$total_count = $row['cnt']; - -// 전체 페이지 계산 -$total_page = ceil($total_count / $items); -// 페이지가 없으면 첫 페이지 (1 페이지) -if ($page == "") $page = 1; -// 시작 레코드 구함 -$from_record = ($page - 1) * $items; ?> + + + \ No newline at end of file diff --git a/shop/list.sub2.php b/shop/list.sub2.php new file mode 100644 index 000000000..84986a469 --- /dev/null +++ b/shop/list.sub2.php @@ -0,0 +1,28 @@ + + + \ No newline at end of file diff --git a/shop/listtype.php b/shop/listtype.php index e88f499aa..d128282ce 100644 --- a/shop/listtype.php +++ b/shop/listtype.php @@ -55,6 +55,13 @@ if (file_exists($list_file)) { $list->set_is_page(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 된 전체 상품수