This commit is contained in:
KONE SOREL 2026-04-08 18:25:51 +00:00
parent 0913439138
commit 1bfe961e84
4 changed files with 46 additions and 47 deletions

View File

@ -204,7 +204,7 @@ a { text-decoration: none; }
width: 70px;
height: 70px;
object-fit: contain;
margin-bottom: 8px;
margin-bottom: 12px;
}
/* Titre */

View File

@ -87046,6 +87046,48 @@ function changer_langue_connexion()
}
/* ----------------------------------------------------------
Textes par slide (9 entrées, FR + EN)
Synchronisés avec le carrousel via updateCaption()
---------------------------------------------------------- */
var SLIDE_TEXTS = [
{ fr: "Gérez vos structures de santé en toute simplicité",
en: "Manage your healthcare facilities with ease" },
{ fr: "Des outils puissants pour vos équipes médicales",
en: "Powerful tools for your medical teams" },
{ fr: "Suivi en temps réel de vos indicateurs de performance",
en: "Real-time monitoring of your key performance indicators" },
{ fr: "La digitalisation au service de la santé",
en: "Digitalization at the service of healthcare" },
{ fr: "Collaborez efficacement entre établissements",
en: "Collaborate effectively across facilities" },
{ fr: "Pilotez votre activité depuis un tableau de bord unifié",
en: "Drive your activity from a unified dashboard" },
{ fr: "Sécurisez les données de vos patients",
en: "Keep your patients' data safe and secure" },
{ fr: "Optimisez la gestion de vos ressources humaines",
en: "Streamline your human resources management" },
{ fr: "L'ERP SaaS taillé pour la santé en Afrique",
en: "The SaaS ERP built for healthcare in Africa" }
];
function getCaption(index) {
codeLangue = $("#langue").val();
var entry = SLIDE_TEXTS[index] || {};
return (codeLangue === 'en_US') ? (entry.en || '') : (entry.fr || '');
}
/* Fondu sortant → swap texte → fondu entrant */
function updateCaption(index) {
var el = document.getElementById('slideCaption');
if (!el) return;
el.classList.add('animating');
setTimeout(function () {
el.textContent = getCaption(index);
el.classList.remove('animating');
}, 200);
}
function ctrlkeypress_liste_clients(ev)
{

View File

@ -1,4 +1,6 @@
<?php
defined('APP_VERSION') || define('APP_VERSION', date('YmdHi'));
if (isset($_COOKIE['codeUtilisateur']))
{
$_SESSION['lang'] = $_COOKIE['lang'];
@ -28,7 +30,7 @@
<script src="Bootstrap/js/jquery-ui.js"></script>
<script src="Bootstrap/js/bootstrap.min.js"></script>
<script src="Js/datepicker-fr.js"></script>
<script src="Js/fonctions.js?ver=2025.09.29.05"></script>
<script src="Js/fonctions.js?ver=<?= APP_VERSION ?>"></script>
<script src="Bootstrap/js/timer.jquery.js"></script>
<script src="Bootstrap/js/jquery.timer.js"></script>
<script src="Bootstrap/js/ajaxmask.js"></script>

View File

@ -112,51 +112,6 @@ $isEn = ($_SESSION['lang'] === 'en_US');
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11.14.1/dist/sweetalert2.all.min.js"></script>
<script>
/* ----------------------------------------------------------
Langue injectée par PHP, utilisée par tout le JS
---------------------------------------------------------- */
var LANG = '<?= $_SESSION['lang'] ?>';
/* ----------------------------------------------------------
Textes par slide (9 entrées, FR + EN)
Synchronisés avec le carrousel via updateCaption()
---------------------------------------------------------- */
var SLIDE_TEXTS = [
{ fr: "Gérez vos structures de santé en toute simplicité",
en: "Manage your healthcare facilities with ease" },
{ fr: "Des outils puissants pour vos équipes médicales",
en: "Powerful tools for your medical teams" },
{ fr: "Suivi en temps réel de vos indicateurs de performance",
en: "Real-time monitoring of your key performance indicators" },
{ fr: "La digitalisation au service de la santé",
en: "Digitalization at the service of healthcare" },
{ fr: "Collaborez efficacement entre établissements",
en: "Collaborate effectively across facilities" },
{ fr: "Pilotez votre activité depuis un tableau de bord unifié",
en: "Drive your activity from a unified dashboard" },
{ fr: "Sécurisez les données de vos patients",
en: "Keep your patients' data safe and secure" },
{ fr: "Optimisez la gestion de vos ressources humaines",
en: "Streamline your human resources management" },
{ fr: "L'ERP SaaS taillé pour la santé en Afrique",
en: "The SaaS ERP built for healthcare in Africa" }
];
function getCaption(index) {
var entry = SLIDE_TEXTS[index] || {};
return (LANG === 'en_US') ? (entry.en || '') : (entry.fr || '');
}
/* Fondu sortant → swap texte → fondu entrant */
function updateCaption(index) {
var el = document.getElementById('slideCaption');
if (!el) return;
el.classList.add('animating');
setTimeout(function () {
el.textContent = getCaption(index);
el.classList.remove('animating');
}, 200);
}
/* ----------------------------------------------------------
Protection clic droit