+#include <infodrom.style>
+#include <patches.style>
+
+<page title="Infodrom Oldenburg - Todo">
+
+<h1 align=center><font face="Helvetica,Arial">Infodrom Oldenburg</font></h1>
+<h3 align=center><font face="Helvetica,Arial">- Todo -</font></h3>
+
+<font face="Helvetica,Arial">
+I've begun collecting jobs with regard to Free Software that would
+help improve the particular package or an entire system or make it
+policy complient.<p>
+
+For some reason, maybe somebody found time, these jobs are done.
+</font>
+
+<?
+ $dbh = pg_pconnect ("kuolema", "5432", "<db>")
+ or die("Unable to connect to SQL server");
+
+ pg_exec ($dbh, "SET DateStyle = 'ISO'") or die("Datenbank-Abfrage!");
+
+ $query = "SELECT * FROM todo WHERE done is not NULL ORDER by package,submitted";
+ $sth = pg_exec ($dbh, $query) or die("Datenbank-Abfrage!");
+
+ $package = '';
+ for ($nr=0; $nr < pg_NumRows ($sth); $nr++) {
+ $row = pg_fetch_array ($sth, $nr);
+ $date = explode (" ", $row['submitted']);
+ $date = explode ("-", $date[0]);
+ $date = sprintf ("%d.%d.%d", $date[2], $date[1], $date[0]);
+
+ $done = explode (" ", $row['sdone']);
+ $done = explode ("-", $done[0]);
+ $done = sprintf ("%d.%d.%d", $done[2], $done[1], $done[0]);
+
+ if ($package != $row['package']) {
+ printf ("<h3><font face=\"Helvetica,Arial\">%s</font></h3>", $row['package']);
+ $package = $row['package'];
+ }
+?>
+
+<table width=100% border=1 cellpadding=2 cellspacing=0>
+<tr>
+<th width=90% align=left><font face="Helvetica,Arial"><? echo $row['subject']; ?></font></t>
+<th width=10% align=right><font face="Helvetica,Arial"><? echo $date; ?></font></th>
+</tr>
+
+<tr>
+<td colspan=3 width=100%><font face="Helvetica,Arial"><? echo $row['description'] . "<br>Done: " . $done; ?></font></td>
+</tr>
+</table><p>
+
+<?
+ }
+?>
+
+</page>
+
+# Local variables:
+# mode: indented-text
+# mode: auto-fill
+# mode: iso-accents-
+# end: