X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=php%2Fpages%2Fjeux_joues.php;h=65db3b35c83ac1f5db496bd6e4812605e8fa3e01;hb=48b115df657e8101a8c1e5d0bb7bb6b315a52aa5;hp=135f57d224f2618c6fe106776792dd8403e821bd;hpb=c1d939c263d7748af8a126f4fba72972c263561d;p=cl7.git diff --git a/php/pages/jeux_joues.php b/php/pages/jeux_joues.php index 135f57d..65db3b3 100644 --- a/php/pages/jeux_joues.php +++ b/php/pages/jeux_joues.php @@ -2,56 +2,81 @@ include_once("php/traitement_pre_affichage.php"); -if (!$le_participant->valide) -{ - echo '
Remarque : Il faut être inscrit pour pouvoir voter.
'; -} - +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