X-Git-Url: http://git.treefish.org/banana.git/blobdiff_plain/4678f209fb04682d0981cadb566d63f5726f9e09..8db41c98817b1b48532dc3cebf4bea166e42bb70:/summary.php
diff --git a/summary.php b/summary.php
new file mode 100644
index 0000000..3354ca3
--- /dev/null
+++ b/summary.php
@@ -0,0 +1,72 @@
+Examples Submitted";
+ print "
";
+
+ $tot_done = 0;
+
+ foreach ($SESSIONS as $session) {
+ if ($session['id'] == $SESSIONS_next) { break; }
+
+ $exdone = $db->query("SELECT thisdone, manydone FROM workdone WHERE mnumber=" . $mnumber . " AND session=" . $session['id'])->fetch(PDO::FETCH_NUM);
+
+ if ( $exdone[1] == "" ) { $exdone[1] = "0"; }
+
+ $tot_done = $tot_done + $exdone[1];
+
+ print "";
+ print "" . $session['timestr'] . " | ";
+ print "" . $session['examples'] . "(" . $session['nexamples'] . ")" . " | ";
+ print "" . $exdone[1] . "/" . $session['nexamples'] . "(" . $exdone[0] . ")" . " | ";
+ print "
";
+ }
+ print "";
+ print " | | " . $tot_done . "/" . $SESSIONS_totex . " | ";
+ print "
";
+
+ print "
";
+
+ print "
";
+
+ print "Blackboard";
+ $blackdone = $db->query("SELECT blackboard FROM students WHERE mnumber=" . $mnumber)->fetch(PDO::FETCH_NUM)[0];
+
+ print "
";
+
+ for( $ib=0; $ib<$blackdone; $ib++ ) { echo " * "; }
+
+ break;
+ }
+?>
+
+