Merge ssh://git@dev.euphorik.ch/cl7
[cl7.git] / php / pages / jeux_joues.php
index 135f57d..6bf932d 100644 (file)
@@ -2,7 +2,7 @@
 \r
 include_once("php/traitement_pre_affichage.php");\r
 \r
-if (!$le_participant->valide)\r
+if (!$participant->valide)\r
 {\r
    echo '<p><em>Remarque : </em>Il faut être inscrit pour pouvoir voter.</p>';\r
 }\r
@@ -12,7 +12,7 @@ echo '
 <form id="formulaireJeuxJoues" method="post" action="index.php?page=jeux_joues">\r
    <p><input type="hidden" name="set_jeux_joues" value="1" /></p>\r
    <table>\r
-      <tr>', ($le_participant->valide ? '<th></th>' : ''), '<th>Votes</th><th>Jeux</th></tr>';\r
+      <tr>', ($participant->valide ? '<th></th>' : ''), '<th>Votes</th><th>Jeux</th></tr>';\r
 \r
 $jeux_query = mysql_query("\r
    SELECT jeux.id, jeux.nom, jeux_choisis.participant_id, COUNT(*) + IF(participant_id is not null, 1, 0) - 1 AS nb_vote\r
@@ -24,18 +24,18 @@ $jeux_query = mysql_query("
 while ($jeu = mysql_fetch_object($jeux_query))\r
 {\r
    # est-ce que le participant courant à voté pour ce jeu ?\r
-   if ($le_participant->valide)\r
+   if ($participant->valide)\r
    {\r
       $a_vote = mysql_fetch_row(mysql_query("\r
          SELECT COUNT(*) FROM jeux_choisis\r
-         WHERE participant_id = ".$le_participant->info->id." AND jeu_id = ".$jeu->id\r
+         WHERE participant_id = ".$participant->info->id." AND jeu_id = ".$jeu->id\r
       )); $a_vote = $a_vote[0];\r
    }\r
    else\r
       $a_vote = FALSE;\r
    \r
    echo '<tr>',\r
-      $le_participant->valide ? '<td><input type="checkbox" name="votes[]" '. ($a_vote ? 'checked="checked"' : '') .' value="'.$jeu->id.'" /></td>' : '',\r
+      $participant->valide ? '<td><input type="checkbox" name="votes[]" '. ($a_vote ? 'checked="checked"' : '') .' value="'.$jeu->id.'" /></td>' : '',\r
       '<td>' . $jeu->nb_vote . '</td>',\r
       '<td ' . ($a_vote ? 'class="aVote" ': '').'>' . traitement_pre_affichage($jeu->nom) . '</td></tr>';\r
 }\r
@@ -43,7 +43,7 @@ while ($jeu = mysql_fetch_object($jeux_query))
 echo '\r
    </table>';\r
 \r
-if ($le_participant->valide)\r
+if ($participant->valide)\r
    echo '\r
    <p>Autre : <input type="text" maxlength="50" name="jeu" /></p>\r
    <p><input type="submit" value="Voter" /></p>';\r
@@ -51,7 +51,7 @@ if ($le_participant->valide)
 echo '</form>';\r
 \r
 # affichage du nombre de vote restant\r
-if ($le_participant->valide)\r
-   echo '<p>Nombre de votes restant : ' . $le_participant->nb_vote_restant() . '</p>';\r
+if ($participant->valide)\r
+   echo '<p>Nombre de votes restant : ' . $participant->nb_vote_restant() . '</p>';\r
 \r
 ?>
\ No newline at end of file