X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=php%2Fpages%2Fjeux_joues.php;h=9c531ec13003c440b8c249d1ce524d4ecb7c183f;hb=912c54815fb34d93de674af2bcf3acc85ce7421d;hp=6bf932dcc08e359622367bf7cf2c530da45cb9ac;hpb=7e415f0586afe35a45d7fc6c34bfe32f55381096;p=cl7.git diff --git a/php/pages/jeux_joues.php b/php/pages/jeux_joues.php index 6bf932d..9c531ec 100644 --- a/php/pages/jeux_joues.php +++ b/php/pages/jeux_joues.php @@ -2,40 +2,57 @@ include_once("php/traitement_pre_affichage.php"); -if (!$participant->valide) +if (!$participant->existe()) { echo '
Remarque : Il faut être inscrit pour pouvoir voter.
'; +} +else if ($config->get("inscription_terminees")) +{ + echo 'Remarque : Les inscriptions sont terminées, il n\'est plus possible de voter.
'; } - + +$vote_possible = !$config->get("inscription_terminees") && $participant->existe(); echo ' '; # affichage du nombre de vote restant -if ($participant->valide) +if ($vote_possible) echo 'Nombre de votes restant : ' . $participant->nb_vote_restant() . '
'; ?> \ No newline at end of file