From: Mischa POSLAWSKY Date: Tue, 5 Oct 2021 22:41:23 +0000 (+0200) Subject: issue: header counting open and closed rows X-Git-Tag: v5.4~11 X-Git-Url: http://git.shiar.nl/minimedit.git/commitdiff_plain/d96a8550867531e92b109a0a675cd12ce1ff7843 issue: header counting open and closed rows --- diff --git a/issue/index.php b/issue/index.php index 35a1116..547547a 100644 --- a/issue/index.php +++ b/issue/index.php @@ -83,6 +83,12 @@ if ($id == 'feed') { } 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 +); print '