$string_results_page
";
if($lastpage > 1) // Paginator page selection is drawn only if more than 1 pages are there
{
$pagination .= '';
// First page selector
if ($page > 2)
// Previous page selector
if ($page > 1)
$pagination .= "- $string_next
";
// Page selectors
if ($page < 4) //not enough pages to bother
{
for ($counter = 1; $counter <= min(5, $lastpage); $counter++)
{
if ($counter == $page)
$pagination .= "- $counter
";
else
$pagination .= "- $counter
";
}
}
elseif ($page > $lastpage - 3)
{
for($counter = $lastpage - min(5, $lastpage); $counter <= $lastpage; $counter++)
{
if ($counter == $page)
$pagination .= "- $counter
";
else
$pagination .= "- $counter
";
}
}
else
{
for($counter = $page - 2; $counter <= $page + 2; $counter++)
{
if ($counter == $page)
$pagination .= "- $counter
";
else
$pagination .= "- $counter
";
}
}
//next button
if ($page < $lastpage)
$pagination .= "- $string_next
";
//last button
if ($page < $lastpage - 1)
$pagination .= '
';
}
$pagination = "$pagination
";
return $pagination;
} ?>
$string_try_inx";
}
$trydiff='';
switch ($tid){
case "rc":
$trydiff = "
$string_try_diff_type $string_local_tab or
$string_buzz_tab";
break;
case "lo":
$trydiff = "
$string_try_diff_type $string_recipes_tab or
$string_buzz_tab";
break;
default:
$trydiff = "
$string_try_diff_type $string_recipes_tab or
$string_local_tab";
}
?>