From f9e7e2f86c4148423be1b3d1244022333136dbd7 Mon Sep 17 00:00:00 2001 From: KONE SOREL Date: Thu, 12 Mar 2026 09:50:49 +0000 Subject: [PATCH] vali --- Vue/gabarit.php | 1161 ++++++----------------------------------------- Vue/head.php | 182 -------- Vue/header.php | 206 --------- Vue/sidebar.php | 106 ----- 4 files changed, 132 insertions(+), 1523 deletions(-) delete mode 100755 Vue/head.php delete mode 100755 Vue/header.php delete mode 100755 Vue/sidebar.php diff --git a/Vue/gabarit.php b/Vue/gabarit.php index 72101c69..5ddea837 100755 --- a/Vue/gabarit.php +++ b/Vue/gabarit.php @@ -1,1050 +1,153 @@ -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; - +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; + +/* ── Constantes ── */ +defined('MAX_COMPANY_NAME_LENGTH') || define('MAX_COMPANY_NAME_LENGTH', 20); +defined('APP_VERSION') || define('APP_VERSION', date('YmdHi')); + +/* ── Variables de présentation ── */ +$companyDisplayName = htmlspecialchars($_SESSION['nomSociete'] ?? '', ENT_QUOTES); +$modeDev = $_SESSION['modeDev_C']; +$imgData = $_SESSION['photoAssureCrypte']; + +/* ── Infos de la vue ── */ +$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']; +$descriptionVue = $_SESSION['descriptionVue']; ?> - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + + - + + - - - - - - - - + + - - - - - - - - - - <?= $_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'], - // "dossierSociete" => $_SESSION['dossierSociete'], - ) - ); - exit(); - */ - ?> - -
- - - -
-
- -
- - - - - - -
-
- - - - - - -
-
 ">nettoyer($_SESSION['numeroClient_C']) ?>
- -
- - -
- -
- -
-
-
- - -
- -
- -
- -
- -
- -
- -
- -
- - -
- "0"): ?> - <?= _("> - -
- - - -
- - -
- -
    - -
  1. - - -
    -
    - -
    -
    -
    -
  2. - -
- - - - -
- -
- - - - - - - -
- -
- -
- -
- -
- -
- -
- -
- - -
-
- - -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - - - - - - - - \ No newline at end of file + + + + + diff --git a/Vue/head.php b/Vue/head.php deleted file mode 100755 index 2e7ec174..00000000 --- a/Vue/head.php +++ /dev/null @@ -1,182 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <?= htmlspecialchars($_SESSION['vue'] ?? 'Dashboard') ?> - INTER SANTÉ - - - - \ No newline at end of file diff --git a/Vue/header.php b/Vue/header.php deleted file mode 100755 index a350fd1b..00000000 --- a/Vue/header.php +++ /dev/null @@ -1,206 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/Vue/sidebar.php b/Vue/sidebar.php deleted file mode 100755 index 77fb7e36..00000000 --- a/Vue/sidebar.php +++ /dev/null @@ -1,106 +0,0 @@ - - - \ No newline at end of file