]> git.mjollnir.org Git - moodle.git/commitdiff
updated view to show extra information re: grading, dynamic section,
authorjungwirr <jungwirr>
Thu, 25 Sep 2003 23:09:28 +0000 (23:09 +0000)
committerjungwirr <jungwirr>
Thu, 25 Sep 2003 23:09:28 +0000 (23:09 +0000)
automation based on logs.

mod/attendance/view.php

index ff8318fe9395ff878ea8ae3c0a4f61266c5c38e3..36de3981789cc0e12b059c6e9d4c00b15f0ba1a3 100644 (file)
   /// ending for the table
   echo "</table></td></tr></table>\n";
   
+  
+  /// print the miscellaneous settings information before the attendance roll
+  echo "<center><table align=\"center\" width=\"80\" class=\"generalbox\"".
+    "border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr>".
+    "<td bgcolor=\"#ffffff\" class=\"generalboxcontent\">";
+// this is the main table
+  echo "<table width=\"100%\" border=\"0\" valign=\"top\" align=\"center\" ".
+         "cellpadding=\"5\" cellspacing=\"1\" class=\"generaltable\">";
+  echo"<tr><th valign=\"top\" align=\"right\" nowrap class=\"generaltableheader\">".
+         get_string("dynsectionshort","attendance").":</th>\n";
+  echo"<th valign=\"top\" align=\"right\" nowrap class=\"generaltableheader\">".
+         (($form->dynsection=="1")?"Yes":"No")."</th></tr>\n";
+  echo"<tr><th valign=\"top\" align=\"right\" nowrap class=\"generaltableheader\">".
+         get_string("autoattendshort","attendance").":</th>\n";
+  echo"<th valign=\"top\" align=\"right\" nowrap class=\"generaltableheader\">".
+         (($form->autoattend=="1")?"Yes":"No")."</th></tr>\n";
+  echo"<tr><th valign=\"top\" align=\"right\" nowrap class=\"generaltableheader\">".
+         get_string("gradeshort","attendance").":</th>\n";
+  echo"<th valign=\"top\" align=\"right\" nowrap class=\"generaltableheader\">".
+         (($form->grade=="1")?"Yes":"No")."</th></tr>\n";
+  if ($form->grade == "1") {
+    echo"<tr><th valign=\"top\" align=\"right\" nowrap class=\"generaltableheader\">".
+         get_string("maxgradeshort","attendance").":</th>\n";
+    echo"<th valign=\"top\" align=\"right\" nowrap class=\"generaltableheader\">".
+         $form->maxgrade."</th></tr>\n";
+  }
+  echo "</table></td></table>\n";
+
 /// Finish the page
     print_footer($course);