function GetNavigatorHtml($url, $countRowOnPage = CONF_PRODUCTS_PER_PAGE, $callBackFunction, $callBackParam, &$tableContent, &$offset, &$count) { if (isset($_GET["offset"])) { $offset = (int) $_GET["offset"]; } else { $offset = 0; } $offset -= $offset % $countRowOnPage; //CONF_PRODUCTS_PER_PAGE; if ($offset < 0) { $offset = 0; } $count = 0; $url = preg_replace('@^[^\\?\\&]+@', '', $url); $Register =& Register::getInstance(); if (!$Register->is_set("show_all") || !$Register->get('show_all')) { $tableContent = $callBackFunction($callBackParam, $count, array("offset" => $offset, "CountRowOnPage" => $countRowOnPage)); } else { //show all products $tableContent = $callBackFunction($callBackParam, $count, null); $offset = "show_all"; } ShowNavigator($count, $offset, $countRowOnPage, $url, $out); return $out; }
function GetNavigatorHtml($url, $countRowOnPage = CONF_PRODUCTS_PER_PAGE, $callBackFunction, $callBackParam, &$tableContent, &$offset, &$count) { if (isset($_GET["offset"])) { $offset = (int) $_GET["offset"]; } else { $offset = 0; } $offset -= $offset % $countRowOnPage; //CONF_PRODUCTS_PER_PAGE; if ($offset < 0) { $offset = 0; } $count = 0; if (!isset($_GET["show_all"])) { //show 'CONF_PRODUCTS_PER_PAGE' products on this page $tableContent = $callBackFunction($callBackParam, $count, array("offset" => $offset, "CountRowOnPage" => $countRowOnPage)); } else { //show all products $tableContent = $callBackFunction($callBackParam, $count, null); $offset = "show_all"; } ShowNavigator($count, $offset, $countRowOnPage, html_spchars($url . "&"), $out); return $out; }