forked from vergnet/site-accueil-insa
Removed php errors
This commit is contained in:
parent
9bbbb5b629
commit
248b9b4a94
6 changed files with 30 additions and 25 deletions
3
coms.php
3
coms.php
|
@ -4,6 +4,9 @@ ob_start(); // Start reading html
|
|||
<h1>Les Coms</h1>
|
||||
<p>La liste de toutes les coms de ta semaine d'accueil, avec les contacts des responsables.</p>
|
||||
<?php
|
||||
$comId = "";
|
||||
$comRespo2Id = "";
|
||||
$comRespo2 = "";
|
||||
$comTitle = "COM Mise à Feu";
|
||||
$comDescription = "Ici pour mettre l'ambiance toute la semaine!";
|
||||
$comRespo = "Paul MERLE";
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
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;
|
||||
}
|
||||
|
||||
|
|
|
@ -287,7 +287,7 @@ ob_start(); // Start reading html
|
|||
<link rel="stylesheet" type="text/css" media="screen" href="assets/css/photos.css">
|
||||
<script type="text/javascript" src="assets/scripts/jquery.mousewheel.min.js"></script>
|
||||
<?php
|
||||
$pageMeta = ob_get_clean(); // Store html content in variable
|
||||
// $pageMeta = ob_get_clean(); // Store html content in variable
|
||||
include("template.php"); // Display template with variable content
|
||||
?>
|
||||
|
||||
|
|
|
@ -106,6 +106,7 @@ ob_start(); // Start reading html
|
|||
?>
|
||||
<link rel="stylesheet" type="text/css" media="screen" href="assets/css/planning_events.css">
|
||||
<?php
|
||||
$pageMeta = ob_get_clean(); // Store html content in variable
|
||||
include("template.php"); // Display template with variable content
|
||||
//$pageMeta = ob_get_clean(); // Store html content in variable
|
||||
|
||||
?>
|
||||
|
|
30
stats.php
30
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";
|
||||
?>
|
||||
<tr id="<?= $id ?>">
|
||||
<td><?= htmlspecialchars($text) ?></td>
|
||||
<td><?= $points ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
// $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";
|
||||
// ?>
|
||||
<!-- <tr id="--><?//= $id ?><!--">-->
|
||||
<!-- <td>--><?//= htmlspecialchars($text) ?><!--</td>-->
|
||||
<!-- <td>--><?//= $points ?><!--</td>-->
|
||||
<!-- </tr>-->
|
||||
<!-- --><?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 = "";
|
||||
?>
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
|
Loading…
Reference in a new issue