From d96a8550867531e92b109a0a675cd12ce1ff7843 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Wed, 6 Oct 2021 00:41:23 +0200 Subject: [PATCH] issue: header counting open and closed rows --- issue/index.php | 6 ++++++ 1 file changed, 6 insertions(+) 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 '