X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=php%2Fpages%2Fjeux_joues.php;h=276c8f5630cd3fd1d66977b10f5f65d0788baeb9;hb=424a8f0a34fc72fe64daaac4686f991a298933a3;hp=304c34bb59ebe5b83b37762e4c03448138059f4f;hpb=557974b66bba86b74181d2b18569ee897eac60a8;p=cl7.git diff --git a/php/pages/jeux_joues.php b/php/pages/jeux_joues.php index 304c34b..276c8f5 100644 --- a/php/pages/jeux_joues.php +++ b/php/pages/jeux_joues.php @@ -1,57 +1,84 @@ 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 ($le_participant->valide) - echo 'Nombre de votes restant : ' . $le_participant->nb_vote_restant() . '
'; +if ($vote_possible) + echo 'Nombre de votes restant : ' . $participant->nb_vote_restant() . '
'; ?> \ No newline at end of file