require 'include/session.inc';
require 'include/common.inc';
+ if ($db->query("SELECT COUNT(*) FROM students")->fetch(PDO::FETCH_NUM)[0] == 0) {
+ block("red", "no students registered");
+ break;
+ }
+
block("black", "summary of everything for " . date("d.m.Y H:i"));
$result = $db->query("SELECT firstname, lastname, mnumber, blackboard FROM students ORDER BY lastname");
print "<td>" . $student['firstname'] . "</td>";
print "<td>" . $student['lastname'] . "</td>";
print "<td>" . $student['mnumber'] . "</td>";
- print "<td>" . $totexdone . "/" . $SESSIONS_totex . "</td>";
+ print "<td>" . $totexdone . "/" . $SESSIONS_totex_nextinc . "</td>";
print "<td>" . $student['blackboard'] . "</td>";
print "</tr>";
}