2 require 'include/head.inc';
3 require 'include/db.inc';
4 require 'include/session.inc';
5 require 'include/common.inc';
7 block("black", "summary for session " . $SESSIONS[$SESSIONS_actual]['timestr'] . " (" . $SESSIONS[$SESSIONS_actual]['examples'] . ")");
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 $result2 = $db->query("SELECT manydone, thisdone FROM workdone WHERE mnumber=" . $student['mnumber'] . " AND session=" . $SESSIONS_actual)->fetch(PDO::FETCH_NUM);
16 $exdone = $result2[0];
17 if ($exdone == "") { $exdone=0; }
19 $thisdone = $result2[1];
22 print "<td>" . $student['firstname'] . "</td>";
23 print "<td>" . $student['lastname'] . "</td>";
24 print "<td>" . $student['mnumber'] . "</td>";
25 print "<td>" . $thisdone . " (" . $exdone . "/" . $SESSIONS[$SESSIONS_actual]['nexamples'] . ")</td>";
26 print "<td>" . $student['blackboard'] . "</td>";