X-Git-Url: http://git.euphorik.ch/?p=cl7.git;a=blobdiff_plain;f=index.php;h=ebe978138028791861376ed2293c07f51a69deca;hp=4aa606b4d781b164b14c261c3439df7d15350304;hb=HEAD;hpb=9340750d8800cc52b13fe6c7f7fffe51cedc6318 diff --git a/index.php b/index.php index 4aa606b..ebe9781 100644 --- a/index.php +++ b/index.php @@ -1,22 +1,7 @@ 'Acceuil', + 'accueil' => 'Accueil', # la page par défaut 'jeux_joues' => 'Jeux joués', 'inscription' => 'Inscription', 'inscrits' => 'Inscrits', @@ -27,7 +12,25 @@ $MENU = array( #'pizzas' => 'Pizza', ); +include_once("php/participant.php"); +include_once("php/connexion.php"); +include_once("php/config.php"); +include_once("php/controller.php"); +include_once("php/panel.php"); + +# Différents objets, sont accessibles directement par les pages (voir dossier '/php/pages/'). +$page = isset($_GET['page']) ? $_GET['page'] : 'accueil'; +$connexion = new Connexion(); +$config = new Config(); +$participant = $connexion->participant; +$controller = new Controller($participant, $config); +$panel = new Panel($participant); + +if ($controller->nouvel_inscrit) + $page = "bienvenue"; + echo ''; + ?> '; - '; - + if ($controller->message_utilisateur) + echo ''; + else if ($connexion->message_utilisateur) + echo ''; + # Des constantes stockées en BD accessible par le javascript. echo ''; echo ''; - echo ''; + $nbPeriodes = pg_fetch_array(pg_query("SELECT COUNT(*) FROM periodes")); + echo ''; + echo ''; ?> - Corcelles-Lan 7 + Corcelles-Lan 8 @@ -74,7 +82,7 @@ echo ''; } ?> - Corcelles-Lan 7 + Corcelles-Lan 8