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=9c531ec13003c440b8c249d1ce524d4ecb7c183f;hp=a05a38803392cd74c5ebd493e782fcb99b59f8c8;hb=912c54815fb34d93de674af2bcf3acc85ce7421d;hpb=c75da06bb039de2a43f21b6e853a72745f753dca diff --git a/php/pages/jeux_joues.php b/php/pages/jeux_joues.php index a05a388..9c531ec 100644 --- a/php/pages/jeux_joues.php +++ b/php/pages/jeux_joues.php @@ -5,14 +5,19 @@ include_once("php/traitement_pre_affichage.php"); 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->existe()) +if ($vote_possible) echo 'Nombre de votes restant : ' . $participant->nb_vote_restant() . '
'; ?> \ No newline at end of file