\n"; $printurl = $url; $printurl = str_replace("&page=!!page!!", "", $printurl); $printurl = str_replace("page=!!page!!&", "", $printurl); $printurl = str_replace("page=!!page!!", "", $printurl); if($action) $printurl=$action; $print .= "
\n"; // first if ($page != 1) { $printurl = str_replace("!!page!!", "1", $url); $print .= "first\n"; }else { $print .= "first\n"; } // prev if ($precedente >= 1) { $printurl = str_replace("!!page!!", "$precedente", $url); $print .= "previous\n"; }else { $print .= "previous\n"; } // page courante if ($nbrpages > 1) { $printurl = $url; $printurl = str_replace("&page=!!page!!", "", $printurl); $printurl = str_replace("page=!!page!!&", "", $printurl); $printurl = str_replace("page=!!page!!", "", $printurl); $print .= "page /$nbrpages\n"; }else { $print .= "page $page/$nbrpages\n"; } // next if ($suivante <= $nbrpages) { $printurl = str_replace("!!page!!", "$suivante", $url); $print .= "next\n"; } else { $print .= "next\n"; } // last if ($page != $nbrpages) { $printurl = str_replace("!!page!!", "$nbrpages", $url); $print .= "last\n"; }else { $print .= "last\n"; } $print .= "
\n"; $print .= "\n"; return $print; } function printnavbar_onclick($page, $nbrpages, $url,$action='') { global $script_test_form; global $msg; $precedente = $page-1; $suivante = $page+1; // affichage de la barre de navigation $print = "
\n"; $print .= "
\n"; // first if ($page != 1) { $print .= "first\n"; }else { $print .= "first\n"; } // prev if ($precedente >= 1) { $printurl = str_replace("!!page!!", "$precedente", $url); $print .= "previous\n"; }else { $print .= "previous\n"; } // page courante if ($nbrpages > 1) { $print .= "page /$nbrpages\n"; }else { $print .= "page $page/$nbrpages\n"; } // next if ($suivante <= $nbrpages) { $print .= "next\n"; } else { $print .= "next\n"; } // last if ($page != $nbrpages) { $print .= "last\n"; }else { $print .= "last\n"; } $print .= "
\n"; $print .= "
\n"; return $print; }