This commit is contained in:
KONE SOREL 2026-01-30 18:00:47 +00:00
parent 4430f2c4e1
commit 2403b09622
3 changed files with 46 additions and 23 deletions

View File

@ -25,4 +25,5 @@ class Menuvueutilisateur extends Modele {
// ajouté le 30/07/2019 // ajouté le 30/07/2019
$_SESSION['vue'] = $vue; $_SESSION['vue'] = $vue;
} }
} }

View File

@ -23,7 +23,7 @@ $imgData = $_SESSION['photoAssureCrypte'] ?? '';
*/ */
if (!function_exists('detectActiveMenu')) { if (!function_exists('detectActiveMenu')) {
function detectActiveMenu($activeLink, $menus, $gabary) { function detectActiveMenu($activeLink, $menus, $gabary) {
// LOG SIMPLIFIÉE ET FIABLE : // LOG SIMPLIFIÉE ET FIABLE :
// 1. ACCUEIL = TOUJOURS menu 0 (priorité absolue) // 1. ACCUEIL = TOUJOURS menu 0 (priorité absolue)
@ -46,7 +46,7 @@ function detectActiveMenu($activeLink, $menus, $gabary) {
// 3. Fallback : premier menu // 3. Fallback : premier menu
return ['parent' => '0', 'child' => null]; return ['parent' => '0', 'child' => null];
} }
} }
// ============================================ // ============================================
@ -60,6 +60,12 @@ $activeChildId = $menuData['child'];
$imgData = $_SESSION['photoAssureCrypte']; $imgData = $_SESSION['photoAssureCrypte'];
$photoAssureCrypte = $_SESSION['photoAssureCrypte']; $photoAssureCrypte = $_SESSION['photoAssureCrypte'];
$infovue = $gabary->getInfosVue($_SESSION['vue']);
$descriptionVue = est_anglophone() ? $infovue['DescriptionEng'] : $infovue['Description'];
$retourVue = $infovue['lienRetour'];
var_dump(array("Descrip =" => $descriptionVue, "retour" => $retourVue));
?> ?>
@ -71,7 +77,7 @@ $photoAssureCrypte = $_SESSION['photoAssureCrypte'];
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<base href="<?= $racineWeb ?>"> <base href="<?= $racineWeb ?>">
<title><?= htmlspecialchars($_SESSION['vue'] ?? 'INTER-SANTE') ?> | Portail Santé</title> <title><?= htmlspecialchars($_SESSION['vue'] ?? 'INTER-SANTE') ?> | Portail RH Santé</title>
<!-- Meta pour UX améliorée --> <!-- Meta pour UX améliorée -->
<meta name="description" content="Portail RH de gestion santé - INTER-SANTE"> <meta name="description" content="Portail RH de gestion santé - INTER-SANTE">
@ -234,6 +240,13 @@ $photoAssureCrypte = $_SESSION['photoAssureCrypte'];
<i class="bi bi-list toggle-sidebar-btn" onclick="toggleSidebar()" style="cursor: pointer;"></i> <i class="bi bi-list toggle-sidebar-btn" onclick="toggleSidebar()" style="cursor: pointer;"></i>
</div> </div>
<nav aria-label="breadcrumb" class="mb-4">
<ol class="breadcrumb shadow-sm bg-white p-2 px-3 rounded-pill">
<li class="breadcrumb-item small"><a href="#" class="text-decoration-none text-muted">INTER SANTE</a></li>
<li class="breadcrumb-item small text-primary fw-bold active"><?= strtoupper($activeLevel1) ?></li>
</ol>
</nav>
<!-- --> <!-- -->
<div class="header-controls"> <div class="header-controls">
<!-- Notifications <!-- Notifications

View File

@ -12,7 +12,6 @@ class Gabary extends Modele {
return $result; return $result;
} }
function getMenuVueByParent($vue) function getMenuVueByParent($vue)
{ {
@ -38,5 +37,15 @@ class Gabary extends Modele {
} }
public function getInfosVue($vue)
{
$sql = "call sp_c_get_info_vue(?)";
$resultat = $this->executerRequete($sql, array($vue));
$infovue = $resultat->fetchAll();
return $infovue;
}
} }
?> ?>