X-Git-Url: http://git.euphorik.ch/?p=cl7.git;a=blobdiff_plain;f=php%2Fpages%2Fjeux_joues.php;fp=php%2Fpages%2Fjeux_joues.php;h=6bf932dcc08e359622367bf7cf2c530da45cb9ac;hp=135f57d224f2618c6fe106776792dd8403e821bd;hb=7e415f0586afe35a45d7fc6c34bfe32f55381096;hpb=c1d939c263d7748af8a126f4fba72972c263561d diff --git a/php/pages/jeux_joues.php b/php/pages/jeux_joues.php index 135f57d..6bf932d 100644 --- a/php/pages/jeux_joues.php +++ b/php/pages/jeux_joues.php @@ -2,7 +2,7 @@ include_once("php/traitement_pre_affichage.php"); -if (!$le_participant->valide) +if (!$participant->valide) { echo '

Remarque : Il faut être inscrit pour pouvoir voter.

'; } @@ -12,7 +12,7 @@ echo '

- ', ($le_participant->valide ? '' : ''), ''; + ', ($participant->valide ? '' : ''), ''; $jeux_query = mysql_query(" SELECT jeux.id, jeux.nom, jeux_choisis.participant_id, COUNT(*) + IF(participant_id is not null, 1, 0) - 1 AS nb_vote @@ -24,18 +24,18 @@ $jeux_query = mysql_query(" while ($jeu = mysql_fetch_object($jeux_query)) { # est-ce que le participant courant à voté pour ce jeu ? - if ($le_participant->valide) + if ($participant->valide) { $a_vote = mysql_fetch_row(mysql_query(" SELECT COUNT(*) FROM jeux_choisis - WHERE participant_id = ".$le_participant->info->id." AND jeu_id = ".$jeu->id + WHERE participant_id = ".$participant->info->id." AND jeu_id = ".$jeu->id )); $a_vote = $a_vote[0]; } else $a_vote = FALSE; echo '', - $le_participant->valide ? '' : '', + $participant->valide ? '' : '', '', ''; } @@ -43,7 +43,7 @@ while ($jeu = mysql_fetch_object($jeux_query)) echo '
VotesJeux
VotesJeux
' . $jeu->nb_vote . '' . traitement_pre_affichage($jeu->nom) . '
'; -if ($le_participant->valide) +if ($participant->valide) echo '

Autre :

'; @@ -51,7 +51,7 @@ if ($le_participant->valide) echo '
'; # affichage du nombre de vote restant -if ($le_participant->valide) - echo '

Nombre de votes restant : ' . $le_participant->nb_vote_restant() . '

'; +if ($participant->valide) + echo '

Nombre de votes restant : ' . $participant->nb_vote_restant() . '

'; ?> \ No newline at end of file