*/ include_once "includes/start.php"; if (isset($_GET["id"])) { $request->enable_super_globals(); if ($_GET["id"] <= 0) { /*-------------------------Message d'erreur----------------------*/ $site_config['ERROR_PAGE'] = "L'événement"; include_once "views/error_page.php"; /*--------------------------------------------------------------*/ } else { /*----------------------------------------------------------------*/ //-------Script pour trouver l'événement en base de donnée--------// $title_event = "Evénement " . $_GET['id']; /*----------------------------------------------------------------*/ /*-------------------------liens----------------------------------*/ $event = link_breadcrumbs($title_event); /*---------------------------------------------------------------*/ /*----------------------Chemin pour le breadcrumps---------------*/ $site_config['BREADCRUMBS'] = array($agenda, $event); /*---------------------------------------------------------------*/ include_once "views/agenda.php"; } } else { /*---------------------------------------------------------------------*/ //---Script pour trouver les événements non passé en base de donnée----// /*---------------------------------------------------------------------*/ /*----------------------Chemin pour le breadcrumps---------------*/ $site_config['BREADCRUMBS'] = array($agenda); /*---------------------------------------------------------------*/ include_once "views/agenda.php"; }
<?php /** * Created by PhpStorm. * User: Maillard * Date: 03/01/2016 * Time: 14:48 */ include_once "models/connect.php"; include_once "includes/config_site.php"; include_once "includes/functions.php"; $user->session_begin(); $auth->acl($user->data); $user->setup(''); $site_config = site_config(); /*-----------------------------lien de base--------------------------------------------*/ $index = "Accueil"; $agenda = link_breadcrumbs("Agenda", "/agenda.php"); $association = link_breadcrumbs("Association", "/association.php"); $jeux = link_breadcrumbs("Jeux", "/types.php"); $modifyAgenda = link_breadcrumbs("Modifier un événement"); $createAgenda = link_breadcrumbs("Ajouter un événement"); $modifyType = link_breadcrumbs("Modifier un type de jeu"); $createType = link_breadcrumbs("Ajouter un type de jeu"); $modifyJeu = link_breadcrumbs("Modifier un jeu"); $createJeu = link_breadcrumbs("Ajouter un jeu"); /*------------------------------------------------------------------------------------*/
*/ include_once "includes/start.php"; if (isset($_GET['id'])) { $request->enable_super_globals(); if ($_GET['id'] <= 0) { /*-------------------------Message d'erreur----------------------*/ $site_config['ERROR_PAGE'] = "Le type de jeu"; include_once "views/error_page.php"; /*--------------------------------------------------------------*/ } else { /*----------------------------------------------------------------*/ //Script pour trouver tout les jeux du même type en base de donnée// $libelle_categorie = "Catégorie " . $_GET['id']; /*----------------------------------------------------------------*/ /*------------------------liens-----------------------------------*/ $categorie = link_breadcrumbs($libelle_categorie); /*---------------------------------------------------------------*/ /*----------------------Chemin pour le breadcrumps---------------*/ $site_config['BREADCRUMBS'] = array($jeux, $categorie); /*---------------------------------------------------------------*/ include_once "views/types.php"; } } else { /*--------------------------------------------------------------*/ //Script pour trouver tout les types de jeu de la base de donnée// /*--------------------------------------------------------------*/ /*----------------------Chemin pour le breadcrumps---------------*/ $site_config['BREADCRUMBS'] = array($jeux); /*---------------------------------------------------------------*/ include_once "views/types.php"; }
* Date: 06/01/2016 * Time: 18:16 */ include_once "includes/start.php"; if (isset($_GET["id"])) { $request->enable_super_globals(); if ($_GET['id'] <= 0) { /*-------------------------Message d'erreur----------------------*/ $site_config['ERROR_PAGE'] = "Le jeu"; /*--------------------------------------------------------------*/ include_once "views/error_page.php"; } else { /*-----------------------------------------------------------------------------*/ //Script pour récupérer toutes les donnée du jeu du même type en base de donnée// /*-----------------------------------------------------------------------------*/ $libelle_jeu = "Jeu " . $_GET['id']; $lien_categorie = 1; $libelle_categorie = "Catégorie 1"; /*-----------------------------------------------------------------------------*/ /*--------------------------------------liens-----------------------------------*/ $categorie = link_breadcrumbs($libelle_categorie, "/types.php?id=" . $lien_categorie); $jeu = link_breadcrumbs($libelle_jeu); /*------------------------------------------------------------------------------*/ /*----------------------Chemin pour le breadcrumps---------------*/ $site_config['BREADCRUMBS'] = array($categorie, $jeu); /*---------------------------------------------------------------*/ include_once "views/jeu.php"; } } else { header("location:types.php"); }