?> <!-- 할인상품 시작 { --> <section class="sct_wrap"> <header> <h2><a href="<?php echo G5_SHOP_URL; ?> /listtype.php?type=5">할인상품</a></h2> <p class="sct_wrap_hdesc"><?php echo $config['cf_title']; ?> 할인상품 모음</p> </header> <?php $list = new item_list(); $list->set_type(5); $list->set_view('it_id', false); $list->set_view('it_name', true); $list->set_view('it_basic', true); $list->set_view('it_cust_price', true); $list->set_view('it_price', true); $list->set_view('it_icon', true); $list->set_view('sns', true); echo $list->run(); ?> </section> <!-- } 할인상품 끝 --> <?php } ?>
$skin = 'list.10.skin.php'; } define('G5_SHOP_CSS_URL', G5_MSHOP_SKIN_URL); // 리스트 유형별로 출력 $list_file = G5_MSHOP_SKIN_PATH . '/' . $skin; if (file_exists($list_file)) { // 총몇개 = 한줄에 몇개 * 몇줄 $items = $list_mod * $list_row; // 페이지가 없으면 첫 페이지 (1 페이지) if ($page < 1) { $page = 1; } // 시작 레코드 구함 $from_record = ($page - 1) * $items; $list = new item_list(); $list->set_type($type); $list->set_list_skin($list_file); $list->set_list_mod($list_mod); $list->set_list_row($list_row); $list->set_img_size($img_width, $img_height); $list->set_is_page(true); $list->set_mobile(true); $list->set_order_by($order_by); $list->set_from_record($from_record); echo $list->run(); // where 된 전체 상품수 $total_count = $list->total_count; // 전체 페이지 계산 $total_page = ceil($total_count / $items); } else { echo '<div align="center">' . $skin . ' 파일을 찾을 수 없습니다.<br>관리자에게 알려주시면 감사하겠습니다.</div>';