echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?> </span><ul class="fr"><?php echo TEXT_RESULT_PAGE . ' ' . $listing_split->display_drop_down(MAX_DISPLAY_PAGE_LINKS, zen_get_all_get_params(array('page', 'info', 'x', 'y', 'main_page'))); ?> </ul></div> <?php if ($current_page == 'index') { ?> <div class="list_bar"> <ul> <li><strong> View: </strong></li> <li class="li1"> <?php if (empty($_GET['display'])) { $listTypes = zen_get_categories_listTypes($current_category_id); } switch ($listTypes) { case '2': ?> <a href="<?php echo zen_href_link(FILENAME_DEFAULT, 'cPath=' . $current_category_id . '/' . $displayTypes . '-1') . postfixUrl(); ?> "><span class="list_list">List</span></a> <span class="list_grid">Grid</span> <a href="<?php echo zen_href_link(FILENAME_DEFAULT, 'cPath=' . $current_category_id . '/' . $displayTypes . '-3') . postfixUrl(); ?> "><span class="list_gallery">Gallery</span></a> <?php break;
$productsort[] = array('id' => sprintf('%2d', $i), 'text' => $nsort[$i - 1]); } $pagesize = array(); $pagesize[] = array('id' => 12, 'text' => 12); $pagesize[] = array('id' => 24, 'text' => 24); $pagesize[] = array('id' => 36, 'text' => 36); $pagesize[] = array('id' => 48, 'text' => 48); //print_r($_SERVER['QUERY_STRING']); $display = isset($_GET['display']) ? $_GET['display'] : 'All-1'; if (is_int(strpos($display, 'productsort')) || is_int(strpos($display, 'pagesize'))) { $display = substr($display, 0, is_int(strpos($display, 'productsort')) ? strpos($display, 'productsort') : strlen($display)); $display = substr($display, 0, is_int(strpos($display, 'pagesize')) ? strpos($display, 'pagesize') : strlen($display)); } $displayTypes = substr($display, 0, strlen($display) - (is_numeric(substr($display, -1, 1)) ? 2 : 0)); if ($current_page != 'advanced_search_result') { $listTypes = isset($listTypes) ? $listTypes : zen_get_categories_listTypes($current_category_id); } //echo $listing_sql; $show_submit = zen_run_normal(); $listing_split = new splitPageResults($listing_sql, isset($_GET['pagesize']) ? $_GET['pagesize'] : MAX_DISPLAY_PRODUCTS_LISTING, 'p.products_id', 'page'); $zco_notifier->notify('NOTIFY_MODULE_PRODUCT_LISTING_RESULTCOUNT', $listing_split->number_of_rows); $how_many = 0; $zc_col_count_description = 0; $lc_align = ''; $list_box_contents = array(); //echo $listing_split->sql_query; //print_r(explode(' ',zen_products_id_in_category($current_category_id))); if (zen_count_products_in_category($current_category_id) > 0) { $listing = $db->Execute($listing_split->sql_query); $row = 0; while (!$listing->EOF) {