AP44/index.php
2023-12-19 13:12:26 +01:00

67 lines
1.8 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("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>
</head>
<body>
<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>