cat_data[ $_GET['p'] ] ) ) { $this_pos = $_GET['p']; } else { if ( isset( $_SESSION['this_pos'] ) && isset( $category->cat_data[ $_SESSION['this_pos'] ] ) ) { $this_pos = $_SESSION['this_pos']; } else { $first_level = $category->first_level; if ( ! empty( $category->first_level ) ) { $this_pos = $category->first_pos( $first_level[0] ); } else { $this_pos = ''; } } } $_SESSION['this_pos'] = $this_pos; $selected_items = array(); if ( isset( $_SESSION['cart']['items'] ) ) { foreach ( $_SESSION['cart']['items'] as $id => $data ) { array_push( $selected_items, $data['product_serno'] ); } } $this_pos = ''; $keywords = array(); /* $search_result = $sql->sql_exec( "select * from product , productcat where product.productcat_serno = productcat.productcat_serno and product_ifzinonly = 'Y' and product.enable='Y' order by product_serno desc", "pkassoc" ); */ // 處理分頁 function checkInputsetDefults( $var, $default ) { if ( ! isset( $_GET[ $var ] ) ) { return $default; } else { return $_GET[ $var ]; } } $__page = checkInputsetDefults( 'page', 1 ); $sql = new Stanoo\sccms\ftable( "product" ); $sql->page_limit = 12; $sql->select = " * "; $sql->query_where = "where enable='Y' and product_ifzinonly = 'Y'"; $sql->query_orderby = "ORDER BY orderby"; $sql->orderby_method = "-1"; $data_array = $sql->data( $__page ); $__page = $sql->page; foreach ( $data_array as $data ) { $search_result[ $data['product_serno'] ] = $data; } ?> TWI

購物車內有(0)件


$ 0

結帳