]> git.mjollnir.org Git - moodle.git/commitdiff
Ellipsis at start as well
authormoodler <moodler>
Thu, 21 Aug 2003 14:23:31 +0000 (14:23 +0000)
committermoodler <moodler>
Thu, 21 Aug 2003 14:23:31 +0000 (14:23 +0000)
lib/weblib.php

index 59cbe3db2836baa9d5976ef671afe9bbadbd36be..978294fc54c420a7ec84b56295985d79222d72a7 100644 (file)
@@ -1621,14 +1621,15 @@ function print_paging_bar($totalcount, $page, $perpage, $baseurl) {
     $maxdisplay = 20;
 
     if ($totalcount > $perpage) {
+        echo "<center>";
+        echo "<p>".get_string("page").":";
         $lastpage = ceil($totalcount / $perpage);
         if ($page > 15) {
             $startpage = $page - 10;
+            echo "&nbsp...";
         } else {
             $startpage = 0;
         }
-        echo "<center>";
-        echo "<p>".get_string("page").":";
         $currpage = $startpage;
         $displaycount = 0;
         while ($displaycount < $maxdisplay and $currpage < $lastpage) {