This commit is contained in:
KONE SOREL 2026-01-30 16:51:09 +00:00
parent d15892b7d8
commit 813b8d3512
6 changed files with 1349 additions and 1349 deletions

View File

@ -1,117 +0,0 @@
<?php
// $this->titre = "INTER SANTE - "._("Rechercher assuré") ;
?>
<form id="frmrecherche" name="frmrecherche" method="post" action="Recherche/index/">
<fieldset>
<legend> <?= _("Critères de recherche de l'assuré") ?> </legend>
<table class="table table-condensed table-responsive" style='font-size:8pt;'>
<tbody>
<tr>
<td width="10%" > <?= _("Numéro Bénéficiaire") ?> </td>
<td width="40%" ><INPUT class="form-control" TYPE="text" id="numeroBeneficiaire" name="numeroBeneficiaire" autofocus AUTOCOMPLETE="OFF"></td>
<td align="center" width="10%"> <?= _("Numéro Famille") ?> </td>
<td align="center"><INPUT class="form-control" TYPE="text" id="numeroAdherent" name="numeroAdherent" AUTOCOMPLETE="OFF"></td>
</tr>
<tr>
<td> <?= _("Nom") ?> </td>
<td><INPUT class="form-control" TYPE="text" id="nomBeneficiaire" name="nomBeneficiaire" AUTOCOMPLETE="OFF"></td>
<td align="center"> <?= _("Prénoms") ?> </td>
<td><INPUT class="form-control" TYPE="text" id="prenomsBeneficiaire" name="prenomsBeneficiaire" AUTOCOMPLETE="OFF"></td>
</tr>
<tr>
<td>Tel</td>
<td><INPUT class="form-control" TYPE="text" id="telephonePortable" NAME="telephonePortable" AUTOCOMPLETE="OFF"></td>
<td align="center">E-mail</td>
<td><INPUT class="form-control" TYPE="text" id="email" NAME="email" AUTOCOMPLETE="OFF"></td>
</tr>
<tr>
<td><input id="lancerrecherche" name="lancerrecherche" class="sr-only" type="submit" value="<?= _("Rechercher") ?>" ></td>
</tr>
</tbody>
</table>
</fieldset>
<?php if (is_array($derniernumerobeneficiaires) && $derniernumerobeneficiaires['nouveau']>0): ?>
<div class="alert alert-danger" style="height:30px; padding:5px; text-align:center; margin-bottom:5px;" >
<H4> <?= _("Cette carte")." => ".$derniernumerobeneficiaires['ancien'] . " "._("a été déclarée perdue et remplacée par") ." => ".$derniernumerobeneficiaires['nouveau'] .". ". _("Veuillez ne pas le communiquer sans autorisation.") ?> </H4>
</div>
<?php endif; ?>
<?php
/*
$keys = [
'session.gc_maxlifetime',
'session.cookie_lifetime',
'session.cookie_secure',
'session.cookie_httponly',
'session.cookie_samesite',
'session.gc_probability',
'session.gc_divisor',
];
foreach ($keys as $k) {
echo $k . ' = ' . ini_get($k) . "<br>";
}
*/
?>
<h4> <?= _("Résultats de la recherche") ?> </h4>
<?php if (is_array($beneficiaires) && count($beneficiaires) > 0): ?>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style='font-size:8pt;'>
<thead>
<tr>
<th width="8%" style="text-align: center"> <?= _("Numéro Bénéficiaire") ?> </th>
<th width="8%" style="text-align: center"> <?= _("Numéro Famille") ?> </th>
<th width="20%" > <?= _("Nom") ?> </th>
<th width="20%" > <?= _("Prénoms") ?> </th>
<th style="text-align: center"> <?= _("Lien parenté") ?> </th>
<th style="text-align: center"> <?= _("Naissance") ?> </th>
<th style="text-align: center"><?= _("Genre") ?></th>
<th style="text-align: center"> <?= _("Tél") ?> </th>
<th width="20%" > <?= _("Souscripteur") ?> </th>
<th> <?= _("Etat") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($beneficiaires as $beneficiaire):
$idBeneficiaire=$this->nettoyer($beneficiaire['id']);
$numeroBeneficiaire=$this->nettoyer($beneficiaire['numeroBeneficiaire']);
?>
<tr onclick="javascript:selectionner_beneficiaire(<?= $idBeneficiaire ?>,'<?= $numeroBeneficiaire ?>');"
ondblclick="javascript:selectionner_beneficiaire(<?= $idBeneficiaire ?>,'<?= $numeroBeneficiaire ?>');afficher_beneficiaire_id();" valign="top">
<td align="center"> <input type="button" value="<?= $numeroBeneficiaire ?>" onClick="javascript:selectionner_beneficiaire(<?= $idBeneficiaire ?>,'<?= $numeroBeneficiaire ?>');afficher_beneficiaire_id();"> </td>
<td align="center"> <?= $this->nettoyer($beneficiaire['numeroAdherent']) ?></td>
<td><?= $this->nettoyer($beneficiaire['nomBeneficiaire']) ?></td>
<td><?= $this->nettoyer($beneficiaire['prenomsBeneficiaire']) ?></td>
<td align="center"><?= $this->nettoyer($beneficiaire['codeLienParente']) ?></td>
<td align="center"><?= dateLang($this->nettoyer($beneficiaire['dateNaissance'])) ?></td>
<td align="center"><?= $this->nettoyer($beneficiaire['sexe']) ?></td>
<td align="center"><?= $this->nettoyer($beneficiaire['telephonePortable']) ?></td>
<td><?= $this->nettoyer($beneficiaire['nomClient']) ?></td>
<td align="center"><?= $this->nettoyer($beneficiaire['codeEtatBeneficiaire']) ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php endif; ?>
</form>

View File

@ -1,127 +1,117 @@
<?php
// $this->titre = "INTER SANTE - "._("Rechercher assuré") ;
// $this->titre = "INTER SANTE - "._("Rechercher assuré") ;
?>
<div class="card shadow-sm border-0 mb-4">
<div class="card-body p-4">
<h5 class="card-title mb-4 text-primary fw-bold">
<i class="bi bi-search me-2"></i><?= _("Critères de recherche de l'assuré") ?>
</h5>
<form id="frmrecherche" name="frmrecherche" method="post" action="Recherche/index/">
<fieldset>
<legend> <?= _("Critères de recherche de l'assuré") ?> </legend>
<table class="table table-condensed table-responsive" style='font-size:8pt;'>
<tbody>
<tr>
<td width="10%" > <?= _("Numéro Bénéficiaire") ?> </td>
<td width="40%" ><INPUT class="form-control" TYPE="text" id="numeroBeneficiaire" name="numeroBeneficiaire" autofocus AUTOCOMPLETE="OFF"></td>
<td align="center" width="10%"> <?= _("Numéro Famille") ?> </td>
<td align="center"><INPUT class="form-control" TYPE="text" id="numeroAdherent" name="numeroAdherent" AUTOCOMPLETE="OFF"></td>
</tr>
<tr>
<td> <?= _("Nom") ?> </td>
<td><INPUT class="form-control" TYPE="text" id="nomBeneficiaire" name="nomBeneficiaire" AUTOCOMPLETE="OFF"></td>
<td align="center"> <?= _("Prénoms") ?> </td>
<td><INPUT class="form-control" TYPE="text" id="prenomsBeneficiaire" name="prenomsBeneficiaire" AUTOCOMPLETE="OFF"></td>
</tr>
<form id="frmrecherche" name="frmrecherche" method="post" action="Recherche/index/">
<div class="row g-3">
<div class="col-md-6">
<label class="form-label small fw-bold text-muted"><?= _("Numéro Bénéficiaire") ?></label>
<input class="form-control" type="text" id="numeroBeneficiaire" name="numeroBeneficiaire" autofocus autocomplete="off">
</div>
<div class="col-md-6">
<label class="form-label small fw-bold text-muted"><?= _("Numéro Famille") ?></label>
<input class="form-control" type="text" id="numeroAdherent" name="numeroAdherent" autocomplete="off">
</div>
<tr>
<td>Tel</td>
<td><INPUT class="form-control" TYPE="text" id="telephonePortable" NAME="telephonePortable" AUTOCOMPLETE="OFF"></td>
<div class="col-md-6">
<label class="form-label small fw-bold text-muted"><?= _("Nom") ?></label>
<input class="form-control" type="text" id="nomBeneficiaire" name="nomBeneficiaire" autocomplete="off">
</div>
<div class="col-md-6">
<label class="form-label small fw-bold text-muted"><?= _("Prénoms") ?></label>
<input class="form-control" type="text" id="prenomsBeneficiaire" name="prenomsBeneficiaire" autocomplete="off">
</div>
<td align="center">E-mail</td>
<td><INPUT class="form-control" TYPE="text" id="email" NAME="email" AUTOCOMPLETE="OFF"></td>
</tr>
<tr>
<td><input id="lancerrecherche" name="lancerrecherche" class="sr-only" type="submit" value="<?= _("Rechercher") ?>" ></td>
</tr>
</tbody>
</table>
</fieldset>
<?php if (is_array($derniernumerobeneficiaires) && $derniernumerobeneficiaires['nouveau']>0): ?>
<div class="alert alert-danger" style="height:30px; padding:5px; text-align:center; margin-bottom:5px;" >
<H4> <?= _("Cette carte")." => ".$derniernumerobeneficiaires['ancien'] . " "._("a été déclarée perdue et remplacée par") ." => ".$derniernumerobeneficiaires['nouveau'] .". ". _("Veuillez ne pas le communiquer sans autorisation.") ?> </H4>
</div>
<?php endif; ?>
<?php
<div class="col-md-6">
<label class="form-label small fw-bold text-muted"><?= _("Tel") ?></label>
<input class="form-control" type="text" id="telephonePortable" name="telephonePortable" autocomplete="off">
</div>
<div class="col-md-6">
<label class="form-label small fw-bold text-muted"><?= _("E-mail") ?></label>
<input class="form-control" type="text" id="email" name="email" autocomplete="off">
</div>
/*
$keys = [
'session.gc_maxlifetime',
'session.cookie_lifetime',
'session.cookie_secure',
'session.cookie_httponly',
'session.cookie_samesite',
'session.gc_probability',
'session.gc_divisor',
];
<div class="col-12">
<input id="lancerrecherche" name="lancerrecherche" class="visually-hidden" type="submit" value="<?= _("Rechercher") ?>">
<button type="submit" class="btn btn-primary px-4 shadow-sm float-end">
<i class="bi bi-search me-2"></i><?= _("Rechercher") ?>
</button>
</div>
</div>
</form>
</div>
</div>
foreach ($keys as $k) {
echo $k . ' = ' . ini_get($k) . "<br>";
}
*/
<?php if (is_array($derniernumerobeneficiaires) && $derniernumerobeneficiaires['nouveau']>0): ?>
<div class="alert alert-danger shadow-sm d-flex align-items-center mb-4" role="alert">
<i class="bi bi-exclamation-triangle-fill fs-4 me-3"></i>
<div>
<?= _("Cette carte")." => <strong>".$derniernumerobeneficiaires['ancien'] . "</strong> "._("a été déclarée perdue et remplacée par") ." => <strong>".$derniernumerobeneficiaires['nouveau'] ."</strong>. ". _("Veuillez ne pas le communiquer sans autorisation.") ?>
</div>
</div>
<?php endif; ?>
?>
<div class="card shadow-sm border-0">
<div class="card-header bg-white py-3 border-0">
<h5 class="mb-0 fw-bold text-muted"><?= _("Résultats de la recherche") ?></h5>
</div>
<div class="card-body p-0">
<?php if (is_array($beneficiaires) && count($beneficiaires) > 0): ?>
<div class="table-responsive">
<table id="table_resultats" class="table table-hover align-middle mb-0" style="font-size: 0.85rem;">
<thead class="table-light">
<tr class="text-muted small text-uppercase">
<th class="text-center border-0"><?= _("N° Bénéficiaire") ?></th>
<th class="text-center border-0"><?= _("N° Famille") ?></th>
<th class="border-0"><?= _("Nom") ?></th>
<th class="border-0"><?= _("Prénoms") ?></th>
<th class="text-center border-0"><?= _("Lien") ?></th>
<th class="text-center border-0"><?= _("Naissance") ?></th>
<th class="text-center border-0"><?= _("Genre") ?></th>
<th class="text-center border-0"><?= _("Tél") ?></th>
<th class="border-0"><?= _("Souscripteur") ?></th>
<th class="border-0"><?= _("Etat") ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($beneficiaires as $beneficiaire):
$idBeneficiaire = $this->nettoyer($beneficiaire['id']);
$numeroBeneficiaire = $this->nettoyer($beneficiaire['numeroBeneficiaire']);
?>
<tr style="cursor: pointer;"
onclick="selectionner_beneficiaire(<?= $idBeneficiaire ?>,'<?= $numeroBeneficiaire ?>');"
ondblclick="selectionner_beneficiaire(<?= $idBeneficiaire ?>,'<?= $numeroBeneficiaire ?>'); afficher_beneficiaire_id();">
<td class="text-center">
<button type="button" class="btn btn-sm btn-outline-primary fw-bold"
onclick="selectionner_beneficiaire(<?= $idBeneficiaire ?>,'<?= $numeroBeneficiaire ?>'); afficher_beneficiaire_id();">
<?= $numeroBeneficiaire ?>
</button>
</td>
<td class="text-center"><?= $this->nettoyer($beneficiaire['numeroAdherent']) ?></td>
<td class="fw-bold text-dark"><?= $this->nettoyer($beneficiaire['nomBeneficiaire']) ?></td>
<td><?= $this->nettoyer($beneficiaire['prenomsBeneficiaire']) ?></td>
<td class="text-center"><?= $this->nettoyer($beneficiaire['codeLienParente']) ?></td>
<td class="text-center small"><?= dateLang($this->nettoyer($beneficiaire['dateNaissance'])) ?></td>
<td class="text-center"><?= $this->nettoyer($beneficiaire['sexe']) ?></td>
<td class="text-center small"><?= $this->nettoyer($beneficiaire['telephonePortable']) ?></td>
<td class="small"><?= $this->nettoyer($beneficiaire['nomClient']) ?></td>
<td>
<?php
$etat = $this->nettoyer($beneficiaire['codeEtatBeneficiaire']);
$badgeClass = ($etat == 'ACTIF') ? 'bg-success' : 'bg-secondary';
?>
<span class="badge <?= $badgeClass ?>-light text-<?= str_replace('bg-','',$badgeClass) ?> rounded-pill">
<?= $etat ?>
</span>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<?php else: ?>
<div class="p-5 text-center text-muted">
<i class="bi bi-info-circle fs-2 d-block mb-3"></i>
<?= _("Aucun résultat à afficher. Veuillez lancer une recherche.") ?>
</div>
<?php endif; ?>
</div>
</div>
<h4> <?= _("Résultats de la recherche") ?> </h4>
<?php if (is_array($beneficiaires) && count($beneficiaires) > 0): ?>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style='font-size:8pt;'>
<thead>
<tr>
<th width="8%" style="text-align: center"> <?= _("Numéro Bénéficiaire") ?> </th>
<th width="8%" style="text-align: center"> <?= _("Numéro Famille") ?> </th>
<th width="20%" > <?= _("Nom") ?> </th>
<th width="20%" > <?= _("Prénoms") ?> </th>
<th style="text-align: center"> <?= _("Lien parenté") ?> </th>
<th style="text-align: center"> <?= _("Naissance") ?> </th>
<th style="text-align: center"><?= _("Genre") ?></th>
<th style="text-align: center"> <?= _("Tél") ?> </th>
<th width="20%" > <?= _("Souscripteur") ?> </th>
<th> <?= _("Etat") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($beneficiaires as $beneficiaire):
$idBeneficiaire=$this->nettoyer($beneficiaire['id']);
$numeroBeneficiaire=$this->nettoyer($beneficiaire['numeroBeneficiaire']);
?>
<tr onclick="javascript:selectionner_beneficiaire(<?= $idBeneficiaire ?>,'<?= $numeroBeneficiaire ?>');"
ondblclick="javascript:selectionner_beneficiaire(<?= $idBeneficiaire ?>,'<?= $numeroBeneficiaire ?>');afficher_beneficiaire_id();" valign="top">
<td align="center"> <input type="button" value="<?= $numeroBeneficiaire ?>" onClick="javascript:selectionner_beneficiaire(<?= $idBeneficiaire ?>,'<?= $numeroBeneficiaire ?>');afficher_beneficiaire_id();"> </td>
<td align="center"> <?= $this->nettoyer($beneficiaire['numeroAdherent']) ?></td>
<td><?= $this->nettoyer($beneficiaire['nomBeneficiaire']) ?></td>
<td><?= $this->nettoyer($beneficiaire['prenomsBeneficiaire']) ?></td>
<td align="center"><?= $this->nettoyer($beneficiaire['codeLienParente']) ?></td>
<td align="center"><?= dateLang($this->nettoyer($beneficiaire['dateNaissance'])) ?></td>
<td align="center"><?= $this->nettoyer($beneficiaire['sexe']) ?></td>
<td align="center"><?= $this->nettoyer($beneficiaire['telephonePortable']) ?></td>
<td><?= $this->nettoyer($beneficiaire['nomClient']) ?></td>
<td align="center"><?= $this->nettoyer($beneficiaire['codeEtatBeneficiaire']) ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php endif; ?>
</form>

127
Vue/Recherche/index_new.php Executable file
View File

@ -0,0 +1,127 @@
<?php
// $this->titre = "INTER SANTE - "._("Rechercher assuré") ;
?>
<div class="card shadow-sm border-0 mb-4">
<div class="card-body p-4">
<h5 class="card-title mb-4 text-primary fw-bold">
<i class="bi bi-search me-2"></i><?= _("Critères de recherche de l'assuré") ?>
</h5>
<form id="frmrecherche" name="frmrecherche" method="post" action="Recherche/index/">
<div class="row g-3">
<div class="col-md-6">
<label class="form-label small fw-bold text-muted"><?= _("Numéro Bénéficiaire") ?></label>
<input class="form-control" type="text" id="numeroBeneficiaire" name="numeroBeneficiaire" autofocus autocomplete="off">
</div>
<div class="col-md-6">
<label class="form-label small fw-bold text-muted"><?= _("Numéro Famille") ?></label>
<input class="form-control" type="text" id="numeroAdherent" name="numeroAdherent" autocomplete="off">
</div>
<div class="col-md-6">
<label class="form-label small fw-bold text-muted"><?= _("Nom") ?></label>
<input class="form-control" type="text" id="nomBeneficiaire" name="nomBeneficiaire" autocomplete="off">
</div>
<div class="col-md-6">
<label class="form-label small fw-bold text-muted"><?= _("Prénoms") ?></label>
<input class="form-control" type="text" id="prenomsBeneficiaire" name="prenomsBeneficiaire" autocomplete="off">
</div>
<div class="col-md-6">
<label class="form-label small fw-bold text-muted"><?= _("Tel") ?></label>
<input class="form-control" type="text" id="telephonePortable" name="telephonePortable" autocomplete="off">
</div>
<div class="col-md-6">
<label class="form-label small fw-bold text-muted"><?= _("E-mail") ?></label>
<input class="form-control" type="text" id="email" name="email" autocomplete="off">
</div>
<div class="col-12">
<input id="lancerrecherche" name="lancerrecherche" class="visually-hidden" type="submit" value="<?= _("Rechercher") ?>">
<button type="submit" class="btn btn-primary px-4 shadow-sm float-end">
<i class="bi bi-search me-2"></i><?= _("Rechercher") ?>
</button>
</div>
</div>
</form>
</div>
</div>
<?php if (is_array($derniernumerobeneficiaires) && $derniernumerobeneficiaires['nouveau']>0): ?>
<div class="alert alert-danger shadow-sm d-flex align-items-center mb-4" role="alert">
<i class="bi bi-exclamation-triangle-fill fs-4 me-3"></i>
<div>
<?= _("Cette carte")." => <strong>".$derniernumerobeneficiaires['ancien'] . "</strong> "._("a été déclarée perdue et remplacée par") ." => <strong>".$derniernumerobeneficiaires['nouveau'] ."</strong>. ". _("Veuillez ne pas le communiquer sans autorisation.") ?>
</div>
</div>
<?php endif; ?>
<div class="card shadow-sm border-0">
<div class="card-header bg-white py-3 border-0">
<h5 class="mb-0 fw-bold text-muted"><?= _("Résultats de la recherche") ?></h5>
</div>
<div class="card-body p-0">
<?php if (is_array($beneficiaires) && count($beneficiaires) > 0): ?>
<div class="table-responsive">
<table id="table_resultats" class="table table-hover align-middle mb-0" style="font-size: 0.85rem;">
<thead class="table-light">
<tr class="text-muted small text-uppercase">
<th class="text-center border-0"><?= _("N° Bénéficiaire") ?></th>
<th class="text-center border-0"><?= _("N° Famille") ?></th>
<th class="border-0"><?= _("Nom") ?></th>
<th class="border-0"><?= _("Prénoms") ?></th>
<th class="text-center border-0"><?= _("Lien") ?></th>
<th class="text-center border-0"><?= _("Naissance") ?></th>
<th class="text-center border-0"><?= _("Genre") ?></th>
<th class="text-center border-0"><?= _("Tél") ?></th>
<th class="border-0"><?= _("Souscripteur") ?></th>
<th class="border-0"><?= _("Etat") ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($beneficiaires as $beneficiaire):
$idBeneficiaire = $this->nettoyer($beneficiaire['id']);
$numeroBeneficiaire = $this->nettoyer($beneficiaire['numeroBeneficiaire']);
?>
<tr style="cursor: pointer;"
onclick="selectionner_beneficiaire(<?= $idBeneficiaire ?>,'<?= $numeroBeneficiaire ?>');"
ondblclick="selectionner_beneficiaire(<?= $idBeneficiaire ?>,'<?= $numeroBeneficiaire ?>'); afficher_beneficiaire_id();">
<td class="text-center">
<button type="button" class="btn btn-sm btn-outline-primary fw-bold"
onclick="selectionner_beneficiaire(<?= $idBeneficiaire ?>,'<?= $numeroBeneficiaire ?>'); afficher_beneficiaire_id();">
<?= $numeroBeneficiaire ?>
</button>
</td>
<td class="text-center"><?= $this->nettoyer($beneficiaire['numeroAdherent']) ?></td>
<td class="fw-bold text-dark"><?= $this->nettoyer($beneficiaire['nomBeneficiaire']) ?></td>
<td><?= $this->nettoyer($beneficiaire['prenomsBeneficiaire']) ?></td>
<td class="text-center"><?= $this->nettoyer($beneficiaire['codeLienParente']) ?></td>
<td class="text-center small"><?= dateLang($this->nettoyer($beneficiaire['dateNaissance'])) ?></td>
<td class="text-center"><?= $this->nettoyer($beneficiaire['sexe']) ?></td>
<td class="text-center small"><?= $this->nettoyer($beneficiaire['telephonePortable']) ?></td>
<td class="small"><?= $this->nettoyer($beneficiaire['nomClient']) ?></td>
<td>
<?php
$etat = $this->nettoyer($beneficiaire['codeEtatBeneficiaire']);
$badgeClass = ($etat == 'ACTIF') ? 'bg-success' : 'bg-secondary';
?>
<span class="badge <?= $badgeClass ?>-light text-<?= str_replace('bg-','',$badgeClass) ?> rounded-pill">
<?= $etat ?>
</span>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<?php else: ?>
<div class="p-5 text-center text-muted">
<i class="bi bi-info-circle fs-2 d-block mb-3"></i>
<?= _("Aucun résultat à afficher. Veuillez lancer une recherche.") ?>
</div>
<?php endif; ?>
</div>
</div>

File diff suppressed because it is too large Load Diff

116
Vue/gabarit_new.php Executable file
View File

@ -0,0 +1,116 @@
<?php
require_once 'gabarit_queries.php';
$gabary = new Gabary();
$_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'];
//
?>
<!doctype html>
<html lang="fr">
<?php require_once 'head.php'; ?>
<body class="d-flex flex-column min-vh-100 bg-light">
<?php include 'header.php'; ?>
<div class="d-flex flex-grow-1" style="margin-top: 60px;">
<?php include 'sidebar.php'; ?>
<main id="main" class="main flex-grow-1 p-3 p-md-4 transition">
<nav aria-label="breadcrumb" class="mb-4 d-none d-md-block">
<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="container-fluid p-0">
<?= $contenu; ?>
</div>
</main>
<?php include 'contexte.php'; ?>
</div>
<div id="modals-container">
<div class="modal fade" id="popmessagerie" tabindex="-1" aria-hidden="true">
<div class="modal-dialog modal-lg modal-dialog-centered">
<div class="modal-content border-0 shadow-lg">
<div class="modal-header bg-light">
<h5 class="modal-title fw-bold text-primary"><i class="bi bi-envelope-paper me-2"></i><?= _("Messages non lus") ?></h5>
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
</div>
<div class="modal-body"><div id="div_messagerie"></div></div>
</div>
</div>
</div>
<div class="modal fade" id="pop_photo" tabindex="-1" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content border-0 shadow-lg text-center p-3">
<img src="data:image/png;base64,<?= $_SESSION['photoAssureCrypte'] ?>" class="img-fluid rounded shadow">
</div>
</div>
</div>
</div>
<script src="Bootstrap/js/jquery.min.js"></script>
<script src="Bootstrap/js/jquery-ui.js"></script>
<script src="Bootstrap/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="Bootstrap_new/datatables/datatable.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="Js/html2pdf.js"></script>
<script src="Bootstrap_new/js/select2.min.js"></script>
<script src="Bootstrap/js/timer.jquery.js"></script>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<?php if (est_anglophone()) : ?>
<script src="Js/datepicker-eng.js"></script>
<?php else: ?>
<script src="Js/datepicker-fr.js"></script>
<?php endif; ?>
<script src="Js/fonctions.js?ver=2025.11.29.09"></script>
<script src="<?= $_SESSION['dossierSociete'].'/Js/societe.js' ?>"></script>
<script type="text/javascript">
$(document).ready(function() {
// Toggle Sidebar
$('.toggle-sidebar-btn').on('click', function() {
$('body').toggleClass('toggle-sidebar');
});
// Initialisation métier
raffraichier_gabarit();
$('#timer').timer({
duration: '60s',
callback: function() { raffraichier_messagerie(); },
repeat: true
});
});
</script>
<div id="div_ajaxgabarit" class="d-none"></div>
</body>
</html>

File diff suppressed because it is too large Load Diff