From c33375c2aaad1aefb69e269be1a95d3f737027d6 Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Thu, 26 Sep 2013 07:27:52 +0200 Subject: [PATCH] stat-day.php: add total label at the end of each match --- web/briskin5/Obj/briskin5.phh | 2 +- web/briskin5/stat-day.php | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/web/briskin5/Obj/briskin5.phh b/web/briskin5/Obj/briskin5.phh index 3cc4371..525f4d8 100644 --- a/web/briskin5/Obj/briskin5.phh +++ b/web/briskin5/Obj/briskin5.phh @@ -2,7 +2,7 @@ /* * brisk - briskin5.phh * - * Copyright (C) 2006-2012 Matteo Nastasi + * Copyright (C) 2006-2013 Matteo Nastasi * mailto: nastasi@alternativeoutput.it * matteo.nastasi@milug.org * web: http://www.alternativeoutput.it diff --git a/web/briskin5/stat-day.php b/web/briskin5/stat-day.php index 1678120..ff991e2 100644 --- a/web/briskin5/stat-day.php +++ b/web/briskin5/stat-day.php @@ -43,7 +43,10 @@ $G_base = "../"; $mlang_stat_day = array( 'normal match'=> array( 'it' => 'Partite normali', 'en' => 'Normal matches' ), 'special match' => array( 'it' => 'Partite speciali', - 'en' => 'Special matches') + 'en' => 'Special matches'), + + 'info_total'=> array( 'it' => 'totali', + 'en' => 'En totali') ); @@ -369,7 +372,7 @@ SELECT SUM(p.pts) AS pts FROM %sbin5_matches AS m, %sbin5_games AS g, %sbin5_poi $tot_obj = pg_fetch_object($tot_pg, 0); fprintf($fpexp, "%d", $tot_obj->pts); } - fprintf($fpexp, "\n"); + fprintf($fpexp, "%s\n", $mlang_stat_day['info_total'][$G_lang]); fprintf($fpexp, "\n"); } if ($m < $tmt_n) -- 2.17.1