stat-day.php: add total label at the end of each match
authorMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Thu, 26 Sep 2013 05:27:52 +0000 (07:27 +0200)
committerMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Thu, 26 Sep 2013 05:27:52 +0000 (07:27 +0200)
web/briskin5/Obj/briskin5.phh
web/briskin5/stat-day.php

index 3cc4371..525f4d8 100644 (file)
@@ -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
index 1678120..ff991e2 100644 (file)
@@ -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, "<th>%d</th>", $tot_obj->pts);
                 }
-                fprintf($fpexp, "</tr>\n");
+                fprintf($fpexp, "<th colspan='2'>%s</th></tr>\n", $mlang_stat_day['info_total'][$G_lang]);
                 fprintf($fpexp, "</table>\n");
             }
             if ($m < $tmt_n)