modification de l'index
This commit is contained in:
82
index.php
82
index.php
@@ -1,37 +1,67 @@
|
||||
<?php
|
||||
session_start();
|
||||
// ***************************************'
|
||||
// Le CASTEL-BTS SIO/ PROJET PPE4 GSB '
|
||||
// Programme: index.php '
|
||||
// Objet : Gestion des frais '
|
||||
// Client : laboratoires GSB '
|
||||
// Version : 3.0 '
|
||||
// Date : 03/05/2023 à 11H01 '
|
||||
// Auteur v1: pascal-blain@wanadoo.fr '
|
||||
//****************************************'
|
||||
|
||||
require_once("include/fct.inc.php");
|
||||
require_once("include/class.pdogsb.php");
|
||||
|
||||
$pdo = PdoGsb::getPdoGsb();
|
||||
$estConnecte = estConnecte();
|
||||
|
||||
if (!isset($_SESSION['userId'])) {
|
||||
$_REQUEST['direction'] = 'connexion';
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Page accueil</title>
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet"
|
||||
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"
|
||||
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL"
|
||||
crossorigin="anonymous"></script>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Page accueil</title>
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet"
|
||||
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"
|
||||
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL"
|
||||
crossorigin="anonymous"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container-fluid">
|
||||
<div class="row flex-nowrap">
|
||||
<?php include('include/menu.php') ?>
|
||||
<div class="col py-3">
|
||||
<h3>Left Sidebar with Submenus</h3>
|
||||
<p class="lead">
|
||||
An example 2-level sidebar with collasible menu items. The menu functions like an "accordion" where
|
||||
only a single
|
||||
menu is be open at a time. While the sidebar itself is not toggle-able, it does responsively shrink
|
||||
in width on smaller screens.</p>
|
||||
<ul class="list-unstyled">
|
||||
<li>
|
||||
<h5>Responsive</h5> shrinks in width, hides text labels and collapses to icons only on mobile
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container-fluid">
|
||||
<div class="row flex-nowrap">
|
||||
<?php include('include/menu.php') ?>
|
||||
<div class="col py-3">
|
||||
<?
|
||||
$_SESSION['test'] = 'toto';
|
||||
switch ($_REQUEST['direction']) {
|
||||
case 'connexion':
|
||||
include("controleurs/c_connexion.php");
|
||||
break;
|
||||
|
||||
case 'gestionFiche':
|
||||
include("controleurs/c_gestionFiche.php");
|
||||
break;
|
||||
|
||||
case 'nouvelleFiche':
|
||||
include("controleurs/c_nouvelleFiche.php");
|
||||
break;
|
||||
|
||||
default:
|
||||
include("controleurs/c_gestionFiche.php");
|
||||
break;
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
Reference in New Issue
Block a user