diff --git a/adm/shop_admin/categoryform.php b/adm/shop_admin/categoryform.php index ca9663cee..54eb30510 100644 --- a/adm/shop_admin/categoryform.php +++ b/adm/shop_admin/categoryform.php @@ -177,7 +177,7 @@ $pg_anchor .= ''; - + @@ -186,9 +186,9 @@ $pg_anchor .= ''; - + diff --git a/mobile/shop/list.php b/mobile/shop/list.php index 00f97b6da..22097bff5 100644 --- a/mobile/shop/list.php +++ b/mobile/shop/list.php @@ -67,8 +67,9 @@ if ($is_admin) $error = '

등록된 상품이 없습니다.

'; // 리스트 유형별로 출력 - $list_file = G4_MSHOP_PATH.'/'.$ca['ca_mobile_skin']; + $list_file = G4_MSHOP_SKIN_PATH.'/'.$ca['ca_mobile_skin']; if (file_exists($list_file)) { + /* $list_row = $ca['ca_mobile_list_row']; $img_width = $ca['ca_mobile_img_width']; $img_height = $ca['ca_mobile_img_height']; @@ -78,10 +79,28 @@ if ($is_admin) $sql = $sql_list1 . $sql_common . $sql_list2 . " limit $from_record, $items "; $result = sql_query($sql); - echo '
'; - include $list_file; - echo '
'; + echo '
'; + include $list_file; + echo '
'; + */ + // 총몇개 = 한줄에 몇개 * 몇줄 + $items = $ca['ca_list_mod'] * $ca['ca_list_row']; + // 페이지가 없으면 첫 페이지 (1 페이지) + if ($page == "") $page = 1; + // 시작 레코드 구함 + $from_record = ($page - 1) * $items; + + $list = new item_list($ca['ca_skin'], $ca['ca_list_mod'], $ca['ca_list_row'], $ca['ca_img_width'], $ca['ca_img_height']); + $list->set_category($ca['ca_id']); + $list->set_is_page(true); + $list->set_from_record($from_record); + echo $list->run(); + + // where 된 전체 상품수 + $total_count = $list->total_count; + // 전체 페이지 계산 + $total_page = ceil($total_count / $items); } else {