Changing headers to decoupling the question editing page from the quiz module.
This commit is contained in:
+4
-7
@@ -322,8 +322,7 @@ if (self.name == 'editquestion') {
|
||||
$questionnames .= get_string('questionsinuse', 'quiz');
|
||||
}
|
||||
print_header_simple($streditingquestions, '',
|
||||
"<a href=\"index.php?id=$course->id\">$strquizzes</a>".
|
||||
" -> $streditingquestions");
|
||||
"$streditingquestions");
|
||||
notice_yesno(get_string("deletequestionscheck", "quiz", $questionnames),
|
||||
"edit.php?sesskey=$USER->sesskey&deleteselected=$questionlist&confirm=".md5($questionlist), "edit.php");
|
||||
print_footer($course);
|
||||
@@ -441,8 +440,8 @@ if (self.name == 'editquestion') {
|
||||
if (!isset($modform->instance)) {
|
||||
// one column layout for non-quiz-specific editing page
|
||||
print_header_simple($streditingquestions, '',
|
||||
"<a href=\"index.php?id=$course->id\">$strquizzes</a>".
|
||||
" -> $streditingquestions");
|
||||
"$streditingquestions");
|
||||
print_heading_with_help(get_string('questions', 'quiz'), 'questionbank');
|
||||
echo '<table align="center" border="0" cellpadding="2" cellspacing="0">';
|
||||
echo '<tr><td valign="top">';
|
||||
|
||||
@@ -487,9 +486,7 @@ if (self.name == 'editquestion') {
|
||||
quiz_print_cat_question_list($course, $modform->category,
|
||||
isset($modform->instance) ? $modform->instance : 0, $SESSION->quiz_recurse, $page, $perpage, $SESSION->quiz_showhidden, $sortorder);
|
||||
print_simple_box_end();
|
||||
if (!isset($modform->instance)) {
|
||||
print_continue("index.php?id=$modform->course");
|
||||
}
|
||||
|
||||
echo '</td></tr>';
|
||||
echo '</table>';
|
||||
|
||||
|
||||
@@ -100,9 +100,7 @@
|
||||
get_string("editquestions", "quiz").'</a> -> '.$streditingquestion;
|
||||
}
|
||||
|
||||
print_header_simple("$streditingquestion", "",
|
||||
"<a href=\"$CFG->wwwroot/mod/quiz/index.php?id=$course->id\">$strquizzes</a>".
|
||||
" -> ".$strediting);
|
||||
print_header_simple("$streditingquestion", "", $strediting);
|
||||
|
||||
if (isset($_REQUEST['delete'])) {
|
||||
if (isset($confirm) and confirm_sesskey()) {
|
||||
|
||||
Reference in New Issue
Block a user