From 1be35acd876fbf80d26cf017667302a57f175250 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Thu, 17 Jul 2008 12:39:45 +0000 Subject: [PATCH] MDL-15692 - Quiz attempt paging bar screws up in IE7 when you zoom the page. Normal Moodle paging bar doesn't, so I've changed the HTML the quiz generates to be closer the the output of weblib. Fortunately, this is irrelevant in 2.0. --- mod/quiz/locallib.php | 26 +++++++++++++------------- theme/standard/styles_layout.css | 8 -------- 2 files changed, 13 insertions(+), 21 deletions(-) diff --git a/mod/quiz/locallib.php b/mod/quiz/locallib.php index 059c2d5ed76..31b51fb2c2c 100644 --- a/mod/quiz/locallib.php +++ b/mod/quiz/locallib.php @@ -206,34 +206,34 @@ function quiz_repaginate($layout, $perpage, $shuffle=false) { } /** -* Print navigation panel for quiz attempt and review pages -* -* @param integer $page The number of the current page (counting from 0). -* @param integer $pages The total number of pages. -*/ + * Print navigation panel for quiz attempt and review pages + * + * @param integer $page The number of the current page (counting from 0). + * @param integer $pages The total number of pages. + */ function quiz_print_navigation_panel($page, $pages) { //$page++; - echo '
'; - echo '' . get_string('page') . ':'; + echo '
'; + echo '' . get_string('page') . ': '; if ($page > 0) { // Print previous link $strprev = get_string('previous'); - echo '(' . $strprev . ')'; + echo ' (' . $strprev . ') '; } for ($i = 0; $i < $pages; $i++) { if ($i == $page) { - echo ''.($i+1).''; + echo ' '.($i+1).' '; } else { - echo ''.($i+1).''; + echo ' '.($i+1).' '; } } if ($page < $pages - 1) { // Print next link $strnext = get_string('next'); - echo '(' . $strnext . ')'; + echo ' (' . $strnext . ') '; } echo '
'; } diff --git a/theme/standard/styles_layout.css b/theme/standard/styles_layout.css index 47dda3caa1f..37a0621c643 100644 --- a/theme/standard/styles_layout.css +++ b/theme/standard/styles_layout.css @@ -321,14 +321,6 @@ div.groupselector { text-align:center; } -.pagingbar a { - padding-left: 10px; -} - -.pagingbar .thispage { - padding-left: 10px; -} - table.formtable { margin: auto; }