]> git.mjollnir.org Git - moodle.git/commitdiff
Show scale title when looking at questions from a scale
authormartin <martin>
Wed, 14 Aug 2002 06:13:20 +0000 (06:13 +0000)
committermartin <martin>
Wed, 14 Aug 2002 06:13:20 +0000 (06:13 +0000)
mod/survey/report.php

index 0471c5382a5273af5f928c15f4839abfcf412aa0..31ec19aa49f631ef8d06cc4e8c5970b5f199fd98 100644 (file)
 
             print_heading($strselectedquestions);
 
+            if ($scale = get_records("survey_questions", "multi", "$qid")) {
+                $scale = array_pop($scale);
+                echo "<HR>";
+                print_heading($scale->text);
+            }
+
         } else {        // get all top-level questions
             $questions = get_records_sql("SELECT * FROM survey_questions WHERE id in ($survey->questions)");
             $questionorder = explode(",", $survey->questions);