From 248b9b4a940ef5d4268b70997cbe8e916a56543c Mon Sep 17 00:00:00 2001 From: Arthur Date: Thu, 21 Feb 2019 18:38:49 +0100 Subject: [PATCH] Removed php errors --- coms.php | 3 +++ index.php | 8 ++++---- photos.php | 2 +- planning.php | 3 ++- stats.php | 30 +++++++++++++++--------------- template.php | 9 +++++---- 6 files changed, 30 insertions(+), 25 deletions(-) diff --git a/coms.php b/coms.php index d14e59b..512f124 100755 --- a/coms.php +++ b/coms.php @@ -4,6 +4,9 @@ ob_start(); // Start reading html

Les Coms

La liste de toutes les coms de ta semaine d'accueil, avec les contacts des responsables.

get_score_team($team) as $row) { - // $points += $row['points']; - //} +// foreach ($dao->get_score_team($team) as $row) { +// $points += $row['points']; +// } return $points; } diff --git a/photos.php b/photos.php index 4f3ea09..a0db84e 100755 --- a/photos.php +++ b/photos.php @@ -287,7 +287,7 @@ ob_start(); // Start reading html diff --git a/planning.php b/planning.php index a492537..53dfd7b 100755 --- a/planning.php +++ b/planning.php @@ -106,6 +106,7 @@ ob_start(); // Start reading html ?> diff --git a/stats.php b/stats.php index f2ea84c..3570623 100755 --- a/stats.php +++ b/stats.php @@ -6,21 +6,21 @@ ob_start(); // Start reading html function get_stats($team) { - $dao = new Dao(''); - foreach ($dao->get_score_team($team) as $row) { - $text = $row['text']; - $points = $row['points']; - if ($points > 0) - $id = "positive"; - else - $id = "negative"; - ?> - - - - - get_score_team($team) as $row) { +// $text = $row['text']; +// $points = $row['points']; +// if ($points > 0) +// $id = "positive"; +// else +// $id = "negative"; +// ?> + + + + + diff --git a/template.php b/template.php index c8b9fba..b8c0c37 100755 --- a/template.php +++ b/template.php @@ -2,16 +2,17 @@ require_once 'classes/dao.php'; function get_total_points($team) { - $dao = new Dao(''); +// $dao = new Dao(''); $points = 0; - foreach ($dao->get_score_team($team) as $row) { - $points += $row['points']; - } +// foreach ($dao->get_score_team($team) as $row) { +// $points += $row['points']; +// } return $points; } $scoreUSA = get_total_points('usa'); $scoreURSS = get_total_points('urss'); +$pageMeta = ""; ?>