コード例 #1
0
ファイル: index.php プロジェクト: akwawa/RipMeal-v2
$page['doctype'] = '<!DOCTYPE html>';
$page['html'] = '<html xml:lang="fr" lang="fr">';
$page['head']['title'] = 'RipMeal - Gestion des livraisons de repas à domicile - SAVEURS MAISON 54';
$page['head']['js'][] = 'js/main.js';
$page['head']['js'][] = 'js/ajax.js';
$page['head']['js'][] = 'js/tri_tableau.js';
$page['head']['css'][] = 'css/main.css';
$page['head']['css'][] = 'css/admin.css';
$page['head']['css'][] = array('css/print.css', 'print');
$page['head']['meta']['charset'] = 'utf-8';
if (isset($_SESSION['id'])) {
    include_once 'fonctions/modules.class.php';
    $menuEnCours = empty($_REQUEST['menu']) ? 'aujourdhui' : $_REQUEST['menu'];
    $sousMenuEnCours = empty($_REQUEST['sousmenu']) ? 'index' : $_REQUEST['sousmenu'];
    $class = new modules();
    $class->liste_menu($menuEnCours);
    if (!empty($class->tableau_modules[$menuEnCours]['informations générales']['css'])) {
        $page['head']['css'][] = 'modules/' . $menuEnCours . '/css/' . $class->tableau_modules[$menuEnCours]['informations générales']['css'];
    }
    if (!empty($class->tableau_modules[$menuEnCours][$_SESSION['type']]['css'])) {
        $page['head']['css'][] = 'modules/' . $menuEnCours . '/css/' . $class->tableau_modules[$menuEnCours][$_SESSION['type']]['css'];
    }
    if (!empty($class->tableau_modules[$menuEnCours]['informations générales']['js'])) {
        $page['head']['js'][] = 'modules/' . $menuEnCours . '/js/' . $class->tableau_modules[$menuEnCours]['informations générales']['js'];
    }
    if (!empty($class->tableau_modules[$menuEnCours][$_SESSION['type']]['js'])) {
        $page['head']['js'][] = 'modules/' . $menuEnCours . '/js/' . $class->tableau_modules[$menuEnCours][$_SESSION['type']]['js'];
    }
    echo construire_page($page);
    echo '<body><div id="window">';
    if (sizeof($erreur) > 0) {