From d921cf903eedd98fce74114d43f7c98ed8baabdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20H=C3=A4usler?= Date: Mon, 30 Dec 2013 15:45:04 +0100 Subject: [PATCH] tshirt sum --- includes/pages/admin_active.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/pages/admin_active.php b/includes/pages/admin_active.php index ac8a53c2..805c8357 100644 --- a/includes/pages/admin_active.php +++ b/includes/pages/admin_active.php @@ -132,6 +132,10 @@ function admin_active() { WHERE `Tshirt`=1 GROUP BY `Size` ORDER BY `count` DESC"); + $shirt_statistics[] = array( + 'Size' => '' . _("Sum") . '', + 'count' => '' . sql_select_single_cell("SELECT count(*) FROM `User` WHERE `Tshirt`=1") . '' + ); return page(array( form(array(