2 require 'include/head.inc';
3 require 'include/db.inc';
4 require 'include/session.inc';
5 require 'include/common.inc';
7 block("black", "summary of everything for " . date("d.m.Y H:i"));
9 $result = $db->query("SELECT firstname, lastname, mnumber, blackboard FROM students ORDER BY lastname");
12 print "<td><b>First name </b></td><td><b>Last name </b></td><td><b>Matr.nummer </b></td><td><b>Examples </b></td><td><b>Blackboard </b></td>";
13 while ($student = $result->fetch(PDO::FETCH_ASSOC)) {
14 $exdone = $db->query("SELECT manydone FROM workdone WHERE mnumber=" . $student['mnumber'])->fetch(PDO::FETCH_NUM);
16 foreach($exdone as $subdone) { $totexdone += $subdone; }
18 print "<td>" . $student['firstname'] . "</td>";
19 print "<td>" . $student['lastname'] . "</td>";
20 print "<td>" . $student['mnumber'] . "</td>";
21 print "<td>" . $totexdone . "/" . $SESSIONS_totex . "</td>";
22 print "<td>" . $student['blackboard'] . "</td>";