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.
This commit is contained in:
+13
-13
@@ -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 '<div class="pagingbar">';
|
||||
echo '<span class="title">' . get_string('page') . ':</span>';
|
||||
echo '<div class="paging pagingbar">';
|
||||
echo '<span class="title">' . get_string('page') . ':</span> ';
|
||||
if ($page > 0) {
|
||||
// Print previous link
|
||||
$strprev = get_string('previous');
|
||||
echo '<a href="javascript:navigate(' . ($page - 1) . ');" title="'
|
||||
. $strprev . '">(' . $strprev . ')</a>';
|
||||
echo ' <a href="javascript:navigate(' . ($page - 1) . ');" title="'
|
||||
. $strprev . '">(' . $strprev . ')</a> ';
|
||||
}
|
||||
for ($i = 0; $i < $pages; $i++) {
|
||||
if ($i == $page) {
|
||||
echo '<span class="thispage">'.($i+1).'</span>';
|
||||
echo ' <span class="thispage">'.($i+1).'</span> ';
|
||||
} else {
|
||||
echo '<a href="javascript:navigate(' . ($i) . ');">'.($i+1).'</a>';
|
||||
echo ' <a href="javascript:navigate(' . ($i) . ');">'.($i+1).'</a> ';
|
||||
}
|
||||
}
|
||||
|
||||
if ($page < $pages - 1) {
|
||||
// Print next link
|
||||
$strnext = get_string('next');
|
||||
echo '<a href="javascript:navigate(' . ($page + 1) . ');" title="'
|
||||
. $strnext . '">(' . $strnext . ')</a>';
|
||||
echo ' <a href="javascript:navigate(' . ($page + 1) . ');" title="'
|
||||
. $strnext . '">(' . $strnext . ')</a> ';
|
||||
}
|
||||
echo '</div>';
|
||||
}
|
||||
|
||||
@@ -321,14 +321,6 @@ div.groupselector {
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
.pagingbar a {
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
.pagingbar .thispage {
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
table.formtable {
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user