modification de l'index
This commit is contained in:
parent
6e14de94aa
commit
c226069923
@ -10,15 +10,18 @@
|
||||
</a>
|
||||
</li>
|
||||
<!--
|
||||
Partie visiteur
|
||||
-->
|
||||
Partie visiteur
|
||||
-->
|
||||
<?php
|
||||
if($_SESSION['typeU'] == 'comptable')
|
||||
?>
|
||||
<li>
|
||||
<a href="#submenu1" data-bs-toggle="collapse" class="nav-link px-0 align-middle">
|
||||
<i class="fs-4 bi-speedometer2"></i> <span class="ms-1 d-none d-sm-inline">Fiche de frais</span>
|
||||
</a>
|
||||
<ul class="collapse show nav flex-column ms-1" id="submenu1" data-bs-parent="#menu">
|
||||
<li class="w-100">
|
||||
<a href="vues/v_gestionFiches.php" class="nav-link px-0"> <span class="d-none d-sm-inline">Gérer ses fiches</span>
|
||||
<a href="./v_gestionFiches.php" class="nav-link px-0"> <span class="d-none d-sm-inline">Gérer ses fiches</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
|
44
index(2).php
44
index(2).php
@ -1,44 +0,0 @@
|
||||
<?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();
|
||||
|
||||
// on vrifie que l'utilisateur est authentifi
|
||||
if (!isset($_REQUEST['uc']) || !$estConnecte) {
|
||||
$_REQUEST['uc'] = 'connexion';
|
||||
}
|
||||
// on analyse le cas d'utilisation en cours ...
|
||||
$uc = $_REQUEST['uc'];
|
||||
switch ($uc) {
|
||||
case 'connexion': {
|
||||
include("controleurs/c_connexion.php");
|
||||
break;
|
||||
}
|
||||
case 'etatFrais': {
|
||||
include("controleurs/c_etatFrais.php");
|
||||
break;
|
||||
}
|
||||
case 'gererFraisForfaitaire': {
|
||||
include("controleurs/c_gererFraisForfaitaire.php");
|
||||
break;
|
||||
}
|
||||
case 'gererFraisHorsForfait': {
|
||||
include("controleurs/c_gererFraisHorsForfait.php");
|
||||
break;
|
||||
}
|
||||
}
|
||||
include("vues/v_pied.php");
|
||||
?>
|
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>
|
@ -1,3 +1,6 @@
|
||||
<?php
|
||||
var_dump($_SESSION['test']);
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user