function display_drop_down($max_page_links, $parameters = '') { global $request_type; $display_links_string = ''; $class = ''; if (zen_not_null($parameters) && substr($parameters, -1) != '&') { $parameters .= '&'; } // previous button - not displayed on first page if ($this->current_page_number > 1) { $display_links_string .= '<li><a href="' . zen_href_link($_GET['main_page'], $parameters . $this->page_name . '=' . 1, $request_type) . '" title=" ' . sprintf(PREVNEXT_TITLE_PAGE_NO, 1) . ' "><span class="first_page"></span></a></li>'; $display_links_string .= '<li><a href="' . zen_href_link($_GET['main_page'], $parameters . $this->page_name . '=' . ($this->current_page_number - 1), $request_type) . '" title=" ' . PREVNEXT_TITLE_PREVIOUS_PAGE . ' "><span class="prev_page">' . PREVNEXT_BUTTON_PREV . '</span></a></li>'; } // check if number_of_pages > $max_page_links $cur_window_num = intval($this->current_page_number / $max_page_links); if ($this->current_page_number % $max_page_links) { $cur_window_num++; } $max_window_num = intval($this->number_of_pages / $max_page_links); if ($this->number_of_pages % $max_page_links) { $max_window_num++; } // previous window of pages if ($cur_window_num > 1) { $display_links_string .= '<li><a href="' . zen_href_link($_GET['main_page'], $parameters . $this->page_name . '=' . ($cur_window_num - 1) * $max_page_links, $request_type) . '" title=" ' . sprintf(PREVNEXT_TITLE_PREV_SET_OF_NO_PAGE, $max_page_links) . ' ">...</a></li>'; } $display_links_string .= '<li> | '; for ($i = 1; $i <= $this->number_of_pages; $i++) { $pageSplit[] = array('id' => $i, 'text' => $i); } $display_links_string .= PRODUCTS_LISTING_PAGE_TEXT . ' ' . zen_draw_pull_down_menu('page', $pageSplit, isset($_GET['page']) ? $_GET['page'] : '', 'onchange="changePage(this,\'' . cleanSameArg('page') . '\');" class="select1" rel="dropdown"'); // page nn button $display_links_string .= '<a href="' . zen_href_link($_GET['main_page'], $parameters . $this->page_name . '=' . $this->number_of_pages, $request_type) . '" title=" ' . sprintf(PREVNEXT_TITLE_PAGE_NO, $this->number_of_pages) . ' "><span>' . $this->number_of_pages . '</span></a>'; $display_links_string .= ' | </li>'; // next window of pages // next button if ($this->current_page_number < $this->number_of_pages && $this->number_of_pages != 1) { $display_links_string .= '<li><a href="' . zen_href_link($_GET['main_page'], $parameters . 'page=' . ($this->current_page_number + 1), $request_type) . '" title=" ' . PREVNEXT_TITLE_NEXT_PAGE . ' "><span class="next_page">' . PREVNEXT_BUTTON_NEXT . '</span></a></li>'; $display_links_string .= '<li><a href="' . zen_href_link($_GET['main_page'], $parameters . $this->page_name . '=' . $this->number_of_pages, $request_type) . '" title=" ' . sprintf(PREVNEXT_TITLE_PAGE_NO, $this->number_of_pages) . ' "><span class="last_page"></span></a></li>'; } if ($display_links_string == ' <strong class="current">1</strong> ') { return ' '; } else { return $display_links_string; } }
<a href="<?php echo zen_href_link($current_page, 'cPath=' . $current_category_id . '/Free-Shipping-' . $listTypes) . postfixUrl(); ?> "> Free Shipping </a> </span> <?php break; } ?> </li> <li><strong>Sorted By: </strong><?php echo zen_draw_pull_down_menu('productsort', $productsort, isset($_GET['productsort']) ? $_GET['productsort'] : '', 'onchange="changeSort(this,\'' . cleanSameArg('productsort') . '\');" class="select" rel="dropdown"'); ?> </li> <li><strong>Show: </strong> <?php echo zen_draw_pull_down_menu('pagesize', $pagesize, isset($_GET['pagesize']) ? $_GET['pagesize'] : '20', 'onchange="changePagesize(this,\'' . cleanSameArg('pagesize') . '\');" class="select1" rel="dropdown"'); ?> </ul> </div> <?php switch ($listTypes) { //caizhouqing update pro_list case '2': require $template->get_template_dir('tpl_grid_display.php', DIR_WS_TEMPLATE, $current_page_base, 'common') . '/tpl_grid_display.php'; break; case '3': require $template->get_template_dir('tpl_gallery_display.php', DIR_WS_TEMPLATE, $current_page_base, 'common') . '/tpl_gallery_display.php'; break; default: require $template->get_template_dir('tpl_tabular_display.php', DIR_WS_TEMPLATE, $current_page_base, 'common') . '/tpl_tabular_display.php'; break;
echo HEADING_TITLE_SEARCH_DETAIL . ' ' . zen_draw_input_field('search') . zen_hide_session_id() . '<br/ >'; if (isset($_GET['search']) && zen_not_null($_GET['search'])) { $keywords = zen_db_prepare_input($_GET['search']); echo TEXT_INFO_SEARCH_DETAIL_FILTER . zen_output_string_protected($keywords) . '<br/ >'; } if (isset($_GET['search']) && zen_not_null($_GET['search'])) { echo '<a href="' . zen_href_link(FILENAME_CUSTOMERS, '', 'NONSSL') . '">' . zen_image_button('button_reset.gif', IMAGE_RESET) . '</a> '; } ?> </td> </form></tr> <tr> <td> <?php //cx update echo HEADING_TITLE_SEARCH_FILTER . ' ' . zen_draw_pull_down_menu('groupfilter', $bestYouArray, isset($_GET['groupfilter']) ? $_GET['groupfilter'] : '', 'onchange="changegroupfilter(this,\'' . cleanSameArg('groupfilter') . '\');" class="select1" rel="dropdown"'); ?> </td> </tr> </table></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <?php // Sort Listing switch ($_GET['list_order']) { case "id-asc": $disp_order = "ci.customers_info_date_account_created"; break; case "firstname":