X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/ecfc420d52ce7983a6361ccc7dec24fd46ec2d07..fc1eaa7b91bd44d7939c67b1d3d8aef50af3c5db:/issue/index.php diff --git a/issue/index.php b/issue/index.php index df1aa68..51d1de4 100644 --- a/issue/index.php +++ b/issue/index.php @@ -21,11 +21,18 @@ if ($id and ctype_digit($id)) { )->fetch(); if (!$row) throw new Exception('Antwoordnummer niet gevonden'); - print "

{$Page->title}

\n"; printf('
', $Page->handler ); + print "

{$Page->title}

\n"; printf(''."\n", 'id', $row->id); + printf( + '' + . '' + . ''."\n

", + 'announce', $row->announced ? ' checked' : '', 'Aangekondigd' + ); + printf('

'."\n", 'page', $row->page); printf(''."\n", 'reply', htmlspecialchars($row->raw) @@ -111,8 +118,12 @@ ob_start(); $stats = $Db->query( "SELECT count(*) AS total, count(closed) AS closed FROM issues" )->fetch(); -printf("

%d lopende zaken, %s opgelost

\n", - $stats->total - $stats->closed, $stats->closed +printf("

%s, %s opgelost

\n", + showlink( + sprintf('%d lopende zaken', $stats->total - $stats->closed), + isset($_GET['open']) ? FALSE : '?open' + ), + $stats->closed ); print '