X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=index.php;h=8fc2259412b0845bdd99ab84340453fd94a94e12;hb=fcf5e5bc507ea3eca99a70537bb1e48f8aeb455a;hp=e1d6fb1802d8a66fd2d2e25f62ec61acb7cb75a9;hpb=eb13d74a54796fabaa4034eeb2e803f41c7424ab;p=cl7.git diff --git a/index.php b/index.php index e1d6fb1..8fc2259 100644 --- a/index.php +++ b/index.php @@ -1,15 +1,16 @@ - 'Accueil', 'jeux_joues' => 'Jeux joués', 'inscription' => 'Inscription', - 'inscrits' => 'Inscrits', + 'inscrits' => 'Inscrits', 'http://www.euphorik.ch/#page="minichat";conv=[1642]' => 'Chat', 'contacts' => 'Contacts', #'mods' => 'Mods', @@ -34,97 +35,109 @@ echo ''; - '; + '; + + # Des constantes stockées en BD accessible par le javascript. echo ''; echo ''; + echo ''; ?> - Corcelles-Lan 7 - + Corcelles-Lan 7 + - - - + + + - - -
-
-
-
- 1 ? 's' : ''; - echo "Il reste ", $nb_places_libres, " place", $s, " libre", $s; - } - ?> -
- Corcelles-Lan 7 -
- -
-
- valide) - echo 'Nous sommes désolés, il n\'y a plus de places libres'; - else - include("php/tx_inscription.php"); - break; - case 'inscrits' : - include("php/tx_inscrits.php"); - break; - case 'tournoi' : - include("php/tx_tournoi.php"); - break; - case 'intranet' : - include("php/tx_intranet.php"); - break; - case 'bienvenue' : - include("php/tx_bienvenue.php"); - break; - case 'contacts' : - include("php/tx_contacts.php"); - break; - case 'photos' : - include("php/tx_photos.php"); - break; - case 'pizzas': - include("php/pizzas.php"); - break; - default : - echo 'erreur, page introuvable'; - break; - } - ?> -
-
- ~ site codé en PHP avec les pieds ~ -
-
-
- + + +
+
+
+
+get("inscription_terminees")) +{ + echo "Les inscriptions sont terminées !"; +} +else if ($nb_places_libres <= 0) +{ + echo "Il n'y a plus de places libres"; +} +else +{ + $s = $nb_places_libres > 1 ? 's' : ''; + echo "Il reste ", $nb_places_libres, " place", $s, " libre", $s; +} +?> +
+Corcelles-Lan 7 +
+ +
+'; +include("php/menu_droit.php"); +echo '
'; +} +switch ($page) +{ +case 'acceuil': +include("php/tx_informations.php"); +break; +case 'jeux_joues' : +include("php/tx_jeux_joues.php"); +break; +case 'inscription' : +if (Participant::nombre_participant_max_atteint() && !$le_participant->valide) +echo 'Nous sommes désolés, il n\'y a plus de places libres'; +else +include("php/tx_inscription.php"); +break; +case 'inscrits' : +include("php/tx_inscrits.php"); +break; +case 'tournoi' : +include("php/tx_tournoi.php"); +break; +case 'intranet' : +include("php/tx_intranet.php"); +break; +case 'bienvenue' : +include("php/tx_bienvenue.php"); +break; +case 'contacts' : +include("php/tx_contacts.php"); +break; +case 'photos' : +include("php/tx_photos.php"); +break; +case 'pizzas': +include("php/pizzas.php"); +break; +default : +echo 'erreur, page introuvable'; +break; +} +?> +
+
+~ site codé en PHP avec les pieds ~ +
+
+ +