correction bug / netoyage du code

This commit is contained in:
pierre renaudot
2024-01-12 11:12:03 +01:00
parent c5796a4bf2
commit 08f7cea2dc
5 changed files with 16 additions and 16 deletions

View File

@@ -1,12 +1,14 @@
<?php
$_SESSION["typeU"] = "comptable";
require_once(__DIR__ . '/../Class/class.gestionFiche.php');
$gestionFiche = new Class_gestionFiche($pdo);
$typeU = $_SESSION['uType'];
$gestionFiche = new Class_gestionFiche($pdo);
$LesUtilisateurs = $gestionFiche->getLesUtilisateurs(); //RENVOIE LISTE USERS
if ($_SESSION["typeU"] == "comptable") {
// Gestion du selecteur selon le type user
if ($typeU == "comptable") {
if (isset($_REQUEST['selVisiteur'])) {
$userId = $_REQUEST['selVisiteur'];
} else {
@@ -18,6 +20,4 @@ if ($_SESSION["typeU"] == "comptable") {
$lesFiches = $gestionFiche->get_ListesFiches($userId);
include("vues/v_gestionFiches.php");