From: moodler Date: Thu, 21 Aug 2003 14:23:31 +0000 (+0000) Subject: Ellipsis at start as well X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f04dc61d72e7460fb3ca96827aab02e87e59056b;p=moodle.git Ellipsis at start as well --- diff --git a/lib/weblib.php b/lib/weblib.php index 59cbe3db28..978294fc54 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -1621,14 +1621,15 @@ function print_paging_bar($totalcount, $page, $perpage, $baseurl) { $maxdisplay = 20; if ($totalcount > $perpage) { + echo "
"; + echo "

".get_string("page").":"; $lastpage = ceil($totalcount / $perpage); if ($page > 15) { $startpage = $page - 10; + echo " ..."; } else { $startpage = 0; } - echo "

"; - echo "

".get_string("page").":"; $currpage = $startpage; $displaycount = 0; while ($displaycount < $maxdisplay and $currpage < $lastpage) {