page de connexion fonctionnelle avec bdd
This commit is contained in:
@@ -5,6 +5,8 @@ $newFiche = new Class_newFiche($pdo);
|
||||
|
||||
$_SESSION['userId'] = 'b34';
|
||||
$_SESSION['typeU'] = 'visiteur';
|
||||
$typeUser = $_SESSION['uType'];
|
||||
$userId = $_SESSION['uId'];
|
||||
$date = '202011';
|
||||
|
||||
/**
|
||||
@@ -42,7 +44,7 @@ if (isset($_GET['currentList'])) {
|
||||
/**
|
||||
* Liste des frais forfaitaires du mois et de l'user :: sinon afficher les libelle
|
||||
*/
|
||||
$listeFraisForfaitaire = $newFiche->listFraisForfaitForU($_SESSION['userId'], $date);
|
||||
$listeFraisForfaitaire = $newFiche->listFraisForfaitForU($userId, $date);
|
||||
if (count($listeFraisForfaitaire) == 0) {
|
||||
$listeFraisForfaitaire = $newFiche->listFraisForfaitaires();
|
||||
}
|
||||
@@ -50,11 +52,11 @@ if (count($listeFraisForfaitaire) == 0) {
|
||||
/**
|
||||
* Listes des frais HF
|
||||
*/
|
||||
$listeFraisHf = $newFiche->listFraisHF($_SESSION['userId'], $date);
|
||||
$listeFraisHf = $newFiche->listFraisHF($userId, $date);
|
||||
|
||||
/**
|
||||
* TOTAL DE LA FICHE
|
||||
*/
|
||||
$totalFraisFiche = $newFiche->getMontantValide($_SESSION['userId'], $date);
|
||||
$totalFraisFiche = $newFiche->getMontantValide($userId, $date);
|
||||
|
||||
include(__DIR__ . '/../vues/v_newFiche.php');
|
||||
|
Reference in New Issue
Block a user