X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=index.php;h=d6241531435a5ae6bb366e0552bd022f7c99d136;hb=557974b66bba86b74181d2b18569ee897eac60a8;hp=d0629dda360760c9f404fadcd810c3c5c0379b99;hpb=9caf6ae04ba0c163a4bfe97fcee3cf1bfa0e78e8;p=cl7.git
diff --git a/index.php b/index.php
index d0629dd..d624153 100644
--- a/index.php
+++ b/index.php
@@ -1,7 +1,7 @@
'Accueil',
+ 'acceuil' => 'Acceuil',
'jeux_joues' => 'Jeux joués',
'inscription' => 'Inscription',
'inscrits' => 'Inscrits',
@@ -35,10 +35,14 @@ echo '';
- ';
+ ';
+
+ # Des constantes stockées en BD accessible par le javascript.
echo '';
echo '';
+ echo '';
?>
Corcelles-Lan 7
@@ -77,56 +81,57 @@ Corcelles-Lan 7
# affichage du menu
foreach($MENU as $p => $titre )
{
-$lien_externe = substr($p, 0, 4) == 'http';
-echo '' . $titre . '';
+ $lien_externe = substr($p, 0, 4) == 'http';
+ echo '' . $titre . '';
}
?>
';
-include("php/menu_droit.php");
-echo '
';
+ echo '';
+ 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;
+ case 'accueil':
+ include("php/tx_informations.php");
+ break;
+ case 'jeux_joues' :
+ include("php/pages/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/pages/inscription.php");
+ break;
+ case 'inscrits' :
+ include("php/pages/inscrits.php");
+ break;
+ case 'tournoi' :
+ include("php/pages/tournoi.php");
+ break;
+ case 'intranet' :
+ include("php/pages/intranet.php");
+ break;
+ case 'bienvenue' :
+ include("php/pages/bienvenue.php");
+ break;
+ case 'contacts' :
+ include("php/pages/contacts.php");
+ break;
+ case 'photos' :
+ include("php/pages/photos.php");
+ break;
+ case 'pizzas':
+ include("php/pizzas.php");
+ break;
+ default :
+ echo 'erreur, page introuvable';
+ break;
}
?>