]> git.mjollnir.org Git - moodle.git/commitdiff
Show All link below question list.
authorgustav_delius <gustav_delius>
Sun, 19 Mar 2006 19:23:07 +0000 (19:23 +0000)
committergustav_delius <gustav_delius>
Sun, 19 Mar 2006 19:23:07 +0000 (19:23 +0000)
question/editlib.php

index 5bf392bc921bb21a4aea23017e1931649b197ad2..8eac65f4a0fe899935e121cc56bebcd89c203c4c 100644 (file)
@@ -249,8 +249,11 @@ function question_list($course, $categoryid, $quizid,
         echo "</td>\n";
         echo "</tr>\n";
     }
-    echo '<tr><td colspan="3">';
+    echo '<tr><td align="center" colspan="3">';
     print_paging_bar($totalnumber, $page, $perpage, "edit.php?courseid={$course->id}&amp;perpage=$perpage&amp;");
+    if ($totalnumber > $perpage) {
+        echo '<a href="edit.php?courseid='.$course->id.'&amp;perpage=1000">'.get_string('showall', 'moodle', $totalnumber).'</a>';
+    }
     echo "</td></tr></table>\n";
     print_simple_box_end();