From fe9884a8dfc67dc1b5c67b80aae209fee54ffb2d Mon Sep 17 00:00:00 2001 From: KANE LAZENI Date: Sat, 14 Feb 2026 15:33:07 +0000 Subject: [PATCH] a --- Vue/gabarit.php | 1469 ++++++++++++++--------------------------------- 1 file changed, 426 insertions(+), 1043 deletions(-) diff --git a/Vue/gabarit.php b/Vue/gabarit.php index 94810a18..f5e92263 100755 --- a/Vue/gabarit.php +++ b/Vue/gabarit.php @@ -1,1049 +1,432 @@ get_full_path($activeLink); - $fullPath = explode("\ ", $fullPath); - - $activeLevel1 = $activeLink; - $activeLevel2 = sizeof($fullPath)>1?$fullPath[1]:''; - $activeLevel3 =sizeof($fullPath)>2?$fullPath[2]:''; - $activeLevel4 = sizeof($fullPath)>3?$fullPath[3]:''; - $activeLevel5 = sizeof($fullPath)>4?$fullPath[4]:''; - - $_SESSION['firstLevelMenu']=$activeLink; - - const MAX_COMPANY_NAME_LENGTH = 20; +require_once 'gabarit_queries.php'; +$gabary = new Gabary(); -/* - if (strlen($_SESSION['nomSociete']) <= MAX_COMPANY_NAME_LENGTH) { - $companyDisplayName = htmlspecialchars($_SESSION['nomSociete'], ENT_QUOTES); - } else { - $companyDisplayName = strtoupper($_SESSION['codeSociete']); - } -*/ - $companyDisplayName = htmlspecialchars($_SESSION['nomSociete'], ENT_QUOTES); - $modeDev = $_SESSION['modeDev_C']; - - $imgData = $_SESSION['photoAssureCrypte']; +// Active menu tracking +$_SESSION['firstLevelMenu'] = ''; +$current_url = $_SERVER['REQUEST_URI']; +$elements = explode("/", $current_url); +$activeLink = $elements[1]; +$fullPath = $gabary->get_full_path($activeLink); +$fullPath = explode("\ ", $fullPath); + +$activeLevel1 = $activeLink; +$activeLevel2 = sizeof($fullPath) > 1 ? $fullPath[1] : ''; +$activeLevel3 = sizeof($fullPath) > 2 ? $fullPath[2] : ''; +$activeLevel4 = sizeof($fullPath) > 3 ? $fullPath[3] : ''; +$activeLevel5 = sizeof($fullPath) > 4 ? $fullPath[4] : ''; + +$_SESSION['firstLevelMenu'] = $activeLink; + +const MAX_COMPANY_NAME_LENGTH = 20; + +$companyDisplayName = htmlspecialchars($_SESSION['nomSociete'], ENT_QUOTES); +$modeDev = $_SESSION['modeDev_C']; +$imgData = $_SESSION['photoAssureCrypte']; + +// Get breadcrumb info +$infovue = $gabary->getInfosVue($_SESSION['vue']); +$_SESSION['descriptionVue'] = est_anglophone() ? $infovue['DescriptionEng'] : $infovue['Description']; +$_SESSION['titreRetour'] = est_anglophone() ? $infovue['titreRetourEng'] : $infovue['titreRetour']; +$_SESSION['retourVue'] = $infovue['lienRetour']; ?> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <?= $_SESSION['vue'] ?> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- "> -
-
- 0){ - $current_url = $_SERVER['REQUEST_URI']; - $elements = explode("/", $current_url); - $activeLink = $elements[1]; - ?> - -
- $menu): - $descriptionMenu = $menu['descriptionMenu']; - ?> - - -
- -
-
- - - - - - - -
-
-
- - $_SESSION['codeGcAssureurDefaut'], - "codeGcAssureur_C" => $_SESSION['codeGcAssureur_C'], - ) - ); - exit(); - */ - ?> - -
- - - -
-
- -
- - - - - - -
-
- - - - - - -
-
 ">nettoyer($_SESSION['numeroClient_C']) ?>
- -
- - -
- -
- -
-
-
- - -
- -
- -
- -
- -
- -
- -
- -
- - -
- "0"): ?> - <?= _("> - -
- - - -
- - -
- -
    - -
  1. - - -
    -
    - -
    -
    -
    -
  2. - -
- - - - -
- -
- - - - - - - -
- -
- -
- -
- -
- -
- -
- -
- - -
-
- - -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - - - - - - + + + + + + + + + + + +
+ + + + + +
+ + + + + + + + + + 0): ?> +
+ +
+ + +
+ +
+
+
+ +
+
+
+
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+
+ +
+
\ No newline at end of file