]> git.mjollnir.org Git - moodle.git/commitdiff
Removed tabs
authormoodler <moodler>
Wed, 9 Aug 2006 13:39:44 +0000 (13:39 +0000)
committermoodler <moodler>
Wed, 9 Aug 2006 13:39:44 +0000 (13:39 +0000)
mod/survey/report.php
mod/survey/save.php
mod/survey/view.php

index 36ef53383426f6ddd73889b3b1c655e8bc3ef8c2..ace7e246780491ee60c6eab6bcf3f98241f312ed 100644 (file)
@@ -21,7 +21,7 @@
 
     require_login($course->id, false);
     
-       $context = get_context_instance(CONTEXT_MODULE, $cm->id);
+    $context = get_context_instance(CONTEXT_MODULE, $cm->id);
     //has_capability('mod/survey:readresponses', $context->id, true);
 
     if (! $survey = get_record("survey", "id", $cm->instance)) {
@@ -86,7 +86,7 @@
         echo "&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"report.php?action=questions&amp;id=$id\">$strquestions</a>";
         echo "&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"report.php?action=students&amp;id=$id\">$course->students</a>";
         if (has_capability('mod/survey:download', $context->id)) {
-               echo "&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"report.php?action=download&amp;id=$id\">$strdownload</a>";
+            echo "&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"report.php?action=download&amp;id=$id\">$strdownload</a>";
         }
         if (empty($action)) {
             $action = "summary";
@@ -95,8 +95,8 @@
         echo "<a href=\"report.php?action=questions&amp;id=$id\">$strquestions</a>";
         echo "&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"report.php?action=students&amp;id=$id\">$course->students</a>";
         if (has_capability('mod/survey:download', $context->id)) {
-               echo "&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"report.php?action=download&amp;id=$id\">$strdownload</a>";
-               }
+            echo "&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"report.php?action=download&amp;id=$id\">$strdownload</a>";
+        }
         if (empty($action)) {
             $action = "questions";
         }
          break;
 
       case "download":
-       has_capability('mod/survey:download', $context->id, true);
+        has_capability('mod/survey:download', $context->id, true);
         print_heading($strdownload);
 
         echo '<p align="center">'.get_string("downloadinfo", "survey").'</p>';
index e8a3944fd030d2c0e258b1412ad97598e03dab50..9f817c2ce6af75f82a73911dcf0743254aff7b98 100644 (file)
 
     require_login($course->id, false, $cm);
     
-       $context = get_context_instance(CONTEXT_MODULE, $cm->id);
+    $context = get_context_instance(CONTEXT_MODULE, $cm->id);
     has_capability('mod/survey:participate', $context->id, true);
     
-       if (! $survey = get_record("survey", "id", $cm->instance)) {
+    if (! $survey = get_record("survey", "id", $cm->instance)) {
         error("Survey ID was incorrect");
     }
 
index 0ea2d35007a031e553c9f6f907887dd8c70e0a6c..43d2633f35731472d74b87fb2c03b3bb4b32663b 100644 (file)
 
     //if (isteacheredit($course->id) or ($groupmode == VISIBLEGROUPS)) {
     if (has_capability('mod/survey:readresponses', $context->id) or ($groupmode == VISIBLEGROUPS)) {    
-           $currentgroup = 0;
+        $currentgroup = 0;
     }
-       
-       if (isteacher($course->id)) {
+    
+    if (isteacher($course->id)) {
     //if (has_capability('mod/survey:readresponses', $context->id)) {
         $numusers = survey_count_responses($survey->id, $currentgroup);
         echo "<div class=\"reportlink\"><a href=\"report.php?id=$cm->id\">".