Permalink
Browse files

MDL-20447 - bulk upload: add page heading

  • Loading branch information...
1 parent 5dd61a5 commit 0f56fde28433956b492c075e431d4df3e4c25f8c Rossiani Wijaya committed Jun 2, 2010
View
@@ -80,18 +80,19 @@
$PAGE->set_url('/question/addquestion.php', $hiddenparams);
$chooseqtype = get_string('chooseqtypetoadd', 'question');
+$PAGE->set_heading($COURSE->fullname);
if ($cm !== null) {
if (stripos($returnurl, "$CFG->wwwroot/mod/{$cm->modname}/view.php")!== 0) {
//don't need this link if returnurl returns to view.php
$PAGE->navbar->add(get_string('editinga', 'moodle', get_string('modulename', $cm->modname)),$returnurl);
}
$PAGE->navbar->add($chooseqtype);
- $PAGE->set_title($chooseqtype);
+ $PAGE->set_title($chooseqtype);
echo $OUTPUT->header();
} else {
$PAGE->navbar->add(get_string('questionbank', 'question'),$returnurl);
$PAGE->navbar->add($chooseqtype);
- $PAGE->set_title($chooseqtype);
+ $PAGE->set_title($chooseqtype);
echo $OUTPUT->header();
}
View
@@ -91,7 +91,7 @@
}
$PAGE->set_title($streditingcategories);
- $PAGE->set_heading($streditingcategories);
+ $PAGE->set_heading($COURSE->fullname);
echo $OUTPUT->header();
// display UI
View
@@ -192,8 +192,8 @@
$PAGE->set_url($thispageurl->out());
$PAGE->navbar->add($streditingcategories, $thispageurl->out());
- $PAGE->navbar->add(get_string('movingcategory', 'question'));
- $PAGE->set_title($streditingcategories);
+ $PAGE->navbar->add(get_string('movingcategory', 'question'));
+ $PAGE->set_header($COURSE->fullname);
echo $OUTPUT->header();
//parameter for get_string
@@ -173,6 +173,7 @@
$PAGE->set_url($thispageurl->out());
$PAGE->navbar->add($strmovingquestions);
$PAGE->set_title($strmovingquestions);
+$PAGE->set_heading($COURSE->fullname);
echo $OUTPUT->header();
//parameter for get_string
View
@@ -67,8 +67,8 @@
$context = $contexts->lowest();
$streditingquestions = get_string('editquestions', "quiz");
- $PAGE->set_title($streditingquestions);
- $PAGE->set_heading($streditingquestions);
+ $PAGE->set_title($streditingquestions);
+ $PAGE->set_heading($COURSE->fullname);
echo $OUTPUT->header();
echo '<div class="questionbankwindow boxwidthwide boxaligncenter">';
View
@@ -35,8 +35,8 @@
/// Header
$PAGE->set_url($thispageurl->out());
- $PAGE->set_title($strexportquestions);
- $PAGE->set_heading($strexportquestions);
+ $PAGE->set_title($strexportquestions);
+ $PAGE->set_heading($COURSE->fullname);
echo $OUTPUT->header();
$exportfilename = default_export_filename($COURSE, $category);
View
@@ -58,7 +58,7 @@
// PAGE HEADER
//==========
$PAGE->set_title($txt->importquestions);
- $PAGE->set_heading($txt->importquestions);
+ $PAGE->set_heading($COURSE->fullname);
echo $OUTPUT->header();
// file upload form sumitted
View
@@ -209,9 +209,9 @@
$questionlist = array($id);
get_html_head_contributions($questionlist, $questions, $states[$historylength]);
$PAGE->set_title($strpreview);
+ $PAGE->set_heading($COURSE->fullname);
echo $OUTPUT->header();
- echo $OUTPUT->heading($strpreview);
-
+
if (!empty($quizid)) {
echo '<p class="quemodname">'.get_string('modulename', 'quiz') . ': ';
p(format_string($quiz->name));
View
@@ -287,6 +287,7 @@
$streditingquestion = $QTYPES[$question->qtype]->get_heading();
$PAGE->set_title($streditingquestion);
+ $PAGE->set_heading($COURSE->fullname);
if ($cm !== null) {
$strmodule = get_string('modulename', $cm->modname);
$streditingmodule = get_string('editinga', 'moodle', $strmodule);

0 comments on commit 0f56fde

Please sign in to comment.