AP44/index.php
2023-12-21 10:52:21 +01:00

77 lines
2.0 KiB
PHP

<?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("Class/class.pdo.php");
$pdo = new PdoGsb();
//$estConnecte = estConnecte();
$_SESSION['typeU'] = 'visiteur';
/*
if (!isset($_SESSION['userId'])) {
$_REQUEST['direction'] = 'connexion';
}
*/
if (!isset($_REQUEST['direction'])) {
$_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>
</head>
<body>
<div class="container-fluid">
<div class="row flex-nowrap">
<?php
include('include/menu.php');
?>
<div class="col py-3">
<?php
switch ($_REQUEST['direction']) {
case 'connexion':
include("controleurs/c_connexion.php");
break;
case 'gestionFiche':
include("controleurs/c_gestionFiche.php");
break;
case 'home':
include("controleurs/c_homePage.php");
break;
case 'nouvelleFiche':
include(__DIR__ . "/controleurs/c_nouvelleFiche.php");
break;
default:
include("controleurs/c_homePage.php");
break;
}
?>
</div>
</div>
</div>
</body>
</html>