]> git.mjollnir.org Git - moodle.git/commitdiff
quiz editing: MDL-17730 skip links
authorpilpi <pilpi>
Fri, 26 Dec 2008 00:29:17 +0000 (00:29 +0000)
committerpilpi <pilpi>
Fri, 26 Dec 2008 00:29:17 +0000 (00:29 +0000)
mod/quiz/edit.php

index 00d2fe9e1bef851cb9e76faf189c788bbde139c3..a86533760d1c6996a725bcf0ec01612af4a8a2bf 100644 (file)
@@ -566,7 +566,9 @@ $localcss= '<link rel="stylesheet" type="text/css" href="'.$CFG->wwwroot.
         '/lib/yui/container/assets/container.css" />';
 print_header_simple($pagetitle, '', $navigation, "", $localcss,true,
         $questionbankmanagement.$strupdatemodule);
-
+//TODO: these skip links really need to be right after the opening of the body element,
+// and preferably implemented in an <ul> element. See MDL-17730.
+echo '<a href="#quizcontentsblock" class="skip">Question bank</a> <a href="#quizcontentsblock" class="skip">Quiz contents</a>';
 // Initialise the JavaScript.
 $quizeditconfig = new stdClass;
 $quizeditconfig->url = $thispageurl->out(false, array('qbanktool' => '0'));
@@ -602,6 +604,8 @@ $thispageurl->out(false,array('qbanktool'=>'1')).
        '" id="hidebankcmd">['.get_string("hide").
        ']</a>
        ', array("class"=>"questionbankwindow $bankclass"));
+
+echo '<span id="questionbank"></span>';
 echo '<div class="container">';
 echo '<div id="module" class="module">';
 echo '<div class="bd">';