X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;f=php%2Fpages%2Fjeux_joues.php;h=65db3b35c83ac1f5db496bd6e4812605e8fa3e01;hb=HEAD;hp=a05a38803392cd74c5ebd493e782fcb99b59f8c8;hpb=23bc2016d5fbd8f7daa9b7ba5c7fa862709ff7a7;p=cl7.git diff --git a/php/pages/jeux_joues.php b/php/pages/jeux_joues.php index a05a388..65db3b3 100644 --- a/php/pages/jeux_joues.php +++ b/php/pages/jeux_joues.php @@ -3,32 +3,35 @@ include_once("php/traitement_pre_affichage.php"); if (!$participant->existe()) -{ - echo '
Remarque : Il faut être inscrit pour pouvoir voter.
'; -} - + 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