From 10bf90f0dbedcf97388a4c40f3c4adfed35d6d03 Mon Sep 17 00:00:00 2001 From: dave Date: Tue, 26 Feb 2008 08:19:38 +0000 Subject: [PATCH] - Fix the total count on the cat/div summary. Several fairs have emailed me to say the count is wrong. It's not wrong, it's just not printing the number they expect. This fixes that. - Make it more obvious what status the stats are being displayed for. --- admin/registration_list.php | 37 +++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/admin/registration_list.php b/admin/registration_list.php index ec91c8ad..cfa8329f 100644 --- a/admin/registration_list.php +++ b/admin/registration_list.php @@ -65,22 +65,19 @@ function openstudentinfo(id) echo "
"; echo ""; echo "
"; @@ -222,7 +219,7 @@ else $wherestatus=""; echo "
"; echo ""; - echo ""; + echo ""; echo "

".i18n("Students / projects per age category / division")."

{$status_str[$showstatus]} - ".i18n("Students / projects per age category / division")."

"; echo ""; echo ""; @@ -256,17 +253,21 @@ else $wherestatus=""; echo ""; } echo ""; + $tstud=0; + $tproj=0; foreach($cats AS $c=>$cn) { echo ""; + $tstud+=$tstudcat[$c]; + $tproj+=$tprojcat[$c]; } echo ""; echo ""; @@ -274,7 +275,7 @@ else $wherestatus=""; echo ""; echo ""; - echo ""; + echo ""; echo "
".i18n("Total").""; echo ($tstudcat[$c]?$tstudcat[$c]:0); echo "    "; echo ($tprojcat[$c]?$tprojcat[$c]:0); echo ""; - echo ($stats_totalstudents?$stats_totalstudents:0); + echo ($tstud); echo "    "; - echo ($stats_totalprojects?$stats_totalprojects:0); + echo ($tproj); echo "

".i18n("Students / projects per age category / school")."

{$status_str[$showstatus]} - ".i18n("Students / projects per age category / school")."

"; echo ""; echo "";