This commit is contained in:
KANE LAZENI 2026-04-02 04:12:21 +00:00
commit e36cd935d5
159 changed files with 14704 additions and 11017 deletions

6
.gitignore vendored
View File

@ -7,4 +7,8 @@ logs/
logs
Cron/prod.ini
Temp/
Temp
Temp
*.sh
.ssh/
Gettext/
Gettext

View File

@ -117,70 +117,6 @@ background-color: #286090;
color: white;
}
/* style du datepicker */
.ui-datepicker{
background:#c9ebf2;
border: 1px solid grey;
}
.ui-datepicker-calendar th{
background:white
}
.ui-datepicker .ui-state-default{
color:grey
}
.ui-datepicker-today{
background:#FFF88D !important;
color:red
}
.ui-datepicker .ui-state-active{
color: white !important;
}
.ui-state-highlight{
color:white !important
}
.ui-datepicker-current-day{
background:#0B5ED7;
color:white
}
.ui-datepicker td{
border: 1px grey;
padding:5px
}
.ui-icon-circle-triangle-w,.ui-icon-circle-triangle-e{
display:none
}
.ui-datepicker .ui-state-active {
color:grey !important
}
.ui-datepicker-current-day .ui-state-active{
color:white !important
}
.ui-datepicker-today .ui-state-active{
color:red !important
}
.ui-state-highlight{
color:red !important
}
.ui-state-disabled{
border:none !important;
background:white !important
}
/* style de la barre de navigation verticale */
.sidebar{
max-width:200px;

View File

@ -1410,24 +1410,22 @@ select[class*="selectpicker"],
#titre-page {
color: var(--color-primary);
letter-spacing: -0.5px;
font-family: 'DM Sans', sans-serif; /* Ou votre police SaaS */
font-family: 'DM Sans', sans-serif; /* Ou votre police SaaS */
}
/* ENTÊTE FIXE "STICKY" */
/* --- LE HEADER STICKY (Base Neutral Pro) --- */
.header-section {
position: -webkit-sticky; /* Pour Safari */
position: sticky;
top: 0;
z-index: 1050; /* Doit être supérieur aux cartes et tableaux */
background-color: rgba(244, 247, 250, 0.8); /* Couleur de fond de votre page avec transparence */
backdrop-filter: blur(10px); /* Effet de flou moderne */
padding-top: 15px;
padding-bottom: 15px;
margin-bottom: 0.5rem !important;
transition: all 0.3s ease;
z-index: 1000 !important;
background-color: rgba(255, 255, 255, 0.85);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
padding: 5px 0;
margin-bottom: 0.65rem !important;
border-bottom: 1px solid rgba(0,0,0,0.05);
}
/* On s'assure que la carte à l'intérieur de la section fixe garde son ombre */
.header-section > div {
box-shadow: 0 4px 4px rgba(0, 0, 0, 0.08) !important;
}
@ -1744,3 +1742,223 @@ select[class*="selectpicker"],
animation: none !important;
}
/* Force l'alignement de la hauteur du SelectPicker avec les inputs sm */
.bootstrap-select .btn.dropdown-toggle {
padding-top: 0.25rem !important;
padding-bottom: 0.25rem !important;
height: 31px !important; /* Hauteur standard du form-control-sm */
font-size: 8.5pt !important;
display: flex;
align-items: center;
background-color: #fff !important;
border-width: 2px !important;
}
/* Aligne l'icône de flèche */
.bootstrap-select .btn.dropdown-toggle .filter-option {
display: flex;
align-items: center;
height: 100%;
}
/* Corrige la bordure spécifique si vous utilisez border-start-0 */
.bootstrap-select.border-2 .btn.dropdown-toggle {
border-color: #dee2e6 !important;
}
/* --- LE DATEPICKER (Correction Visuelle & Z-Index) --- */
.datepicker-dropdown {
/* Le secret : un index supérieur au header (1000) */
z-index: 2000 !important;
position: absolute !important;
padding: 10px !important;
border: 2px solid #212e53 !important;
border-radius: 10px !important;
box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
background-color: #fff !important;
}
/* Style des jours actifs (Couleur de ta charte) */
.datepicker table tr td.active {
background-color: #212e53 !important;
border-radius: 5px !important;
color: #fff !important;
}
/* 1. On ne force JAMAIS le display:block ici, sinon il reste visible en bas de page */
#ui-datepicker-div {
z-index: 99999 !important; /* Priorité absolue sur le header et les modals */
display: none; /* Laisse jQuery UI le contrôler */
/* Design SaaS Neutral Pro */
background: #ffffff !important;
border: 1px solid #212e53 !important;
border-radius: 12px !important;
box-shadow: 0 15px 35px rgba(0,0,0,0.2) !important;
padding: 10px !important;
font-family: inherit;
}
/* --- LE DATEPICKER "NEUTRAL PRO" (jQuery UI) --- */
/* Conteneur principal : Plus grand, plus aéré, ombre premium */
.ui-datepicker {
font-size: 10pt !important; /* Police plus lisible */
background: #fff !important; /* Fond blanc pur */
border: 2px solid #212e53 !important; /* Couleur Primary */
border-radius: 12px !important;
padding: 15px !important; /* Plus d'espace interne */
box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important; /* Ombre plus douce */
width: 280px !important; /* Largeur fixe pour la lisibilité */
}
.ui-datepicker-header {
background: #f8f9fa !important;
border: none !important;
border-bottom: 1px solid #eee !important;
border-radius: 8px 8px 0 0 !important;
}
.ui-datepicker-title {
color: #212e53 !important; /* Couleur Primary */
font-weight: bold !important;
text-transform: uppercase;
font-size: 11pt !important;
}
/* Masquage des flèches par défaut */
.ui-icon-circle-triangle-w, .ui-icon-circle-triangle-e { display: none; }
/* Jours de la semaine : Gris légers, en majuscules */
.ui-datepicker-calendar th {
font-weight: bold;
color: #888;
text-transform: uppercase;
font-size: 8.5pt;
padding-bottom: 10px;
}
/* Tableau des jours : Cellules plus grandes, sans bordures lourdes */
.ui-datepicker-calendar {
border-collapse: collapse;
}
.ui-datepicker-calendar td {
padding: 2px;
}
/* Style des Jours Standards : Pas de bordures, fond blanc */
.ui-datepicker .ui-state-default {
background: #fff !important;
color: #555 !important;
border: none !important;
text-align: center;
padding: 8px !important;
border-radius: 8px; /* Jours arrondis */
font-weight: 500;
}
/* Hover sur les jours : Gris très léger */
.ui-datepicker .ui-state-default:hover {
background-color: #f1f3f5 !important;
color: #212e53 !important;
}
/* Jours Désactivés (Passés/Futurs) : Gris léger */
.ui-state-disabled {
opacity: 0.35 !important;
}
/* --- LE STYLE DES ÉTATS (Charte Graphique) --- */
/* --- LE STYLE DU JOUR COURANT (AUJOURD'HUI) --- */
.ui-datepicker-today a {
background-color: #FFF88D !important; /* Ton Jaune Charte */
color: #212e53 !important; /* On garde le bleu Primary pour le texte */
font-weight: 800 !important; /* On force un gras très prononcé */
border-radius: 50% !important; /* On en fait une pastille parfaite */
width: 35px;
height: 35px;
display: flex !important;
align-items: center;
justify-content: center;
margin: 0 auto !important;
position: relative;
box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Un léger relief */
}
/* Petit indicateur visuel discret sous le numéro d'aujourd'hui */
.ui-datepicker-today a::after {
content: '';
position: absolute;
bottom: 2px;
width: 12px;
height: 2px;
background-color: #dc3545; /* Barre rouge horizontale sous le chiffre */
border-radius: 2px;
}
/* Jour Sélectionné (Si l'utilisateur clique dessus) */
/* Couleur Primary Charte avec texte blanc net */
.ui-datepicker-current-day a,
.ui-datepicker .ui-state-active {
background-color: #212e53 !important; /* Couleur Primary Charte */
color: #fff !important; /* Texte blanc pur */
font-weight: bold !important;
border: none !important;
box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Légère ombre pour le relief */
}
/* Effet au survol pour plus de dynamisme */
.ui-datepicker-today a:hover {
background-color: #f7e031 !important; /* Un jaune un peu plus soutenu */
transform: scale(1.1);
transition: all 0.2s ease;
}
/* --- LE STYLE DU JOUR COURANT (AUJOURD'HUI) --- */
/* On cible le lien <a> car jQuery UI applique ses styles dessus */
.ui-datepicker-today a.ui-state-default {
background-color: #FFF88D !important; /* Ton Jaune Charte */
color: #212e53 !important; /* Texte bleu foncé */
font-weight: 800 !important;
border: 1px solid #212e53 !important; /* Bordure pour bien voir le cercle */
border-radius: 50% !important; /* Cercle parfait */
/* On centre le chiffre dans le cercle */
display: flex !important;
align-items: center;
justify-content: center;
width: 30px !important;
height: 30px !important;
margin: 0 auto !important;
padding: 0 !important;
box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}
/* La petite barre rouge sous le chiffre pour le rappel d'importance */
.ui-datepicker-today a.ui-state-default::after {
content: '';
position: absolute;
bottom: 2px;
width: 10px;
height: 2px;
background-color: #dc3545;
border-radius: 2px;
}
/* --- LE STYLE DU JOUR SÉLECTIONNÉ (CLIQUE) --- */
.ui-datepicker-current-day a.ui-state-active {
background-color: #212e53 !important; /* Primary */
color: #ffffff !important; /* Blanc */
border-radius: 50% !important;
border: none !important;
}
/* On s'assure que les jours sont propres */
.ui-datepicker th { color: #888 !important; text-transform: uppercase; font-size: 8pt; }
.ui-datepicker td span, .ui-datepicker td a {
border: none !important;
background: none !important;
text-align: center !important;
border-radius: 6px !important;
}

View File

@ -115,5 +115,16 @@ class ControleurAjaxparamseuilalerte extends Controleurrequete
// $this->genererVueAjax();
}
public function actualisegarantieproduit()
{
$codeProduit = $this->requete->getParametreFormulaire("codeProduit");
$garanties_sans_seuils = $this->produit->getgarantiessansseuil($codeProduit);
$garanties_avec_seuils = $this->produit->getgarantiesavecseuil($codeProduit);
$this->genererVueAjax(array('garanties_sans_seuils' => $garanties_sans_seuils, 'garanties_avec_seuils' => $garanties_avec_seuils));
}
}

View File

@ -69,4 +69,34 @@ class ControleurAjaxprestatairesreseau extends Controleurrequete
$this->executerAction("index");
}
public function rechercherdispos()
{
// Récupération sécurisée du paramètre de recherche
$query = $this->requete->getParametreFormulaire("query");
$codeReseau = $_SESSION['codeReseau'];
// Appel au modèle mis à jour
$resultats = $this->reseausoins->rechercherPrestatairesDisponibles($codeReseau, $query);
// On génère la vue Ajax partielle (contenant uniquement les <tr>)
$this->genererVueAjax(array(
'prestatairesdispo' => $resultats,
'isSearch' => true // Flag utile pour la vue si besoin
));
}
public function rechercheraffectes() {
$query = $this->requete->getParametreFormulaire("query");
$codeReseau = $_SESSION['codeReseau'];
$codeSociete = $_SESSION['codeSociete'];
// Nouvelle méthode dans le modèle pour chercher UNIQUEMENT dans ce qui est déjà affecté
$resultats = $this->reseausoins->rechercherPrestatairesAffectes($codeReseau, $query);
$this->genererVueAjax(array(
'prestatairesreseau' => $resultats,
'isSearch' => true // Flag utile pour la vue si besoin
));
}
}

View File

@ -10,19 +10,23 @@ class ControleurAjaxtblisterjoursferiers extends Controleur {
}
public function index() {
$codePays = $this->requete->getParametreFormulaire("codePays");
$annee = $this->requete->getParametreFormulaire("annee","numerique");
$codePays = $_SESSION['codePaysSociete'];
$annee = $this->requete->getParametreFormulaire("annee","numerique");
$annee_selectionnee = isset($annee) ? $annee : date('Y');
$tabjoursferiers = $this->joursferiers->getlisterjoursferiers($codePays,$annee);
$existeselection = $this->joursferiers->existeSelection();
$pays = $this->joursferiers->getListePays($_SESSION['codePaysSociete']);
$this->genererVueAjax(array(
'tabjoursferiers' => $tabjoursferiers,
'existeselection' => $existeselection,
'pays' => $pays
'pays' => $pays,
'annee_selectionnee'=> $annee_selectionnee
));
}
@ -66,6 +70,4 @@ class ControleurAjaxtblisterjoursferiers extends Controleur {
}
}
}

View File

@ -39,16 +39,13 @@ class ControleurModifierbaremepriseencharge extends Controleur {
$taux = $this->bareme->getTauxBareme();
$garant = $this->garant->getListeGarantDansProduit();
$chemin = $this->menuvue->getChemin('Modifierbaremepriseencharge');
$this->genererVue(array(
'bareme' => $bareme,
'clients' => $clients,
'territoire' => $territoire,
'taux' => $taux,
'garant' => $garant,
'produits' => $produit,
'chemin' => $chemin
'produits' => $produit
));
}

View File

@ -1,5 +1,4 @@
<?php
require_once 'Framework/Controleur.php';
require_once 'Modele/Societeuser.php';
require_once 'Modele/Menuvueutilisateur.php';
@ -22,21 +21,16 @@ require_once 'Modele/Ouinon.php';
public function index()
{
$codeSociete = $_SESSION['codeSociete'];
$codeSociete = $_SESSION['codeSociete'];
$expressionsinactives = $this->societeuser->getcompsantepasswordactif("0");
$expressionsactives = $this->societeuser->getcompsantepasswordactif("1");
$societeuser = $this->societeuser->getVwSocieteuser($codeSociete);
$expressionsinactives = $this->societeuser->getcompsantepasswordactif("0");
$expressionsactives = $this->societeuser->getcompsantepasswordactif("1");
$societeuser = $this->societeuser->getVwSocieteuser($codeSociete);
//var_dump($societeuser);
$this->genererVue(array('expressionsinactives' => $expressionsinactives,
'expressionsactives' => $expressionsactives ,
'activerOtpouinon' => $this->activerOtpouinon,
'societeuser' => $societeuser
$this->genererVue(array(
'expressionsinactives' => $expressionsinactives,
'expressionsactives' => $expressionsactives ,
'activerOtpouinon' => $this->activerOtpouinon,
'societeuser' => $societeuser
));
}
@ -48,18 +42,45 @@ require_once 'Modele/Ouinon.php';
&& $this->requete->existeParametre("nvmdp")
&& $this->requete->existeParametre("cfnvmdp"))
{
$ancmdp = $this->requete->getParametre("ancmdp");
$nvmdp = $this->requete->getParametre("nvmdp");
$cfnvmdp = $this->requete->getParametre("cfnvmdp");
$ancmdp = $this->requete->getParametre("ancmdp");
$nvmdp = $this->requete->getParametre("nvmdp");
$cfnvmdp = $this->requete->getParametre("cfnvmdp");
if ($nvmdp!=$cfnvmdp)
if ($nvmdp != $cfnvmdp)
{
$this->genererVue(array('msgErreur' => 'Veuillez confirmer le nouveau mot de passe!'), "index");
$codeSociete = $_SESSION['codeSociete'];
$expressionsinactives = $this->societeuser->getcompsantepasswordactif("0");
$expressionsactives = $this->societeuser->getcompsantepasswordactif("1");
$societeuser = $this->societeuser->getVwSocieteuser($codeSociete);
$msgErreur = _('Veuillez confirmer le nouveau mot de passe!');
$this->genererVue(array(
'expressionsinactives' => $expressionsinactives,
'expressionsactives' => $expressionsactives ,
'activerOtpouinon' => $this->activerOtpouinon,
'societeuser' => $societeuser,
'msgErreur' => $msgErreur),
"index"
);
}
else if ($nvmdp==$ancmdp)
else if ($nvmdp == $ancmdp)
{
$this->genererVue(array('msgErreur' => 'Veuillez changer le mot de passe!'), "index");
$codeSociete = $_SESSION['codeSociete'];
$expressionsinactives = $this->societeuser->getcompsantepasswordactif("0");
$expressionsactives = $this->societeuser->getcompsantepasswordactif("1");
$societeuser = $this->societeuser->getVwSocieteuser($codeSociete);
$msgErreur = _('Veuillez changer le mot de passe!');
$this->genererVue(array(
'expressionsinactives' => $expressionsinactives,
'expressionsactives' => $expressionsactives ,
'activerOtpouinon' => $this->activerOtpouinon,
'societeuser' => $societeuser,
'msgErreur' => $msgErreur),
"index"
);
}
else if ($this->societeuser->verifiermotpass($codeSociete, $ancmdp))
{
@ -67,30 +88,58 @@ require_once 'Modele/Ouinon.php';
$this->rediriger("Parametresgeneraux");
}
else
{
$this->genererVue(array('msgErreur' => 'Ancien mot de passe incorrect!'), "index");
{
$codeSociete = $_SESSION['codeSociete'];
$expressionsinactives = $this->societeuser->getcompsantepasswordactif("0");
$expressionsactives = $this->societeuser->getcompsantepasswordactif("1");
$societeuser = $this->societeuser->getVwSocieteuser($codeSociete);
$msgErreur = _('Ancien mot de passe incorrect!');
$this->genererVue(array(
'expressionsinactives' => $expressionsinactives,
'expressionsactives' => $expressionsactives ,
'activerOtpouinon' => $this->activerOtpouinon,
'societeuser' => $societeuser,
'msgErreur' => $msgErreur),
"index"
);
}
}
else
{
$this->genererVue(array('msgErreur' => 'Veuillez revoir votre saisie!'), "index");
$codeSociete = $_SESSION['codeSociete'];
$expressionsinactives = $this->societeuser->getcompsantepasswordactif("0");
$expressionsactives = $this->societeuser->getcompsantepasswordactif("1");
$societeuser = $this->societeuser->getVwSocieteuser($codeSociete);
$msgErreur = _('Veuillez revoir votre saisie!');
$this->genererVue(array(
'expressionsinactives' => $expressionsinactives,
'expressionsactives' => $expressionsactives ,
'activerOtpouinon' => $this->activerOtpouinon,
'societeuser' => $societeuser,
'msgErreur' => $msgErreur),
"index"
);
}
}
public function majcomplexitepassword()
{
$idExpression = $this->requete->getParametreFormulaire("idExpression");
$actif = $this->requete->getParametreFormulaire("actif");
$idExpression = $this->requete->getParametreFormulaire("idExpression");
$actif = $this->requete->getParametreFormulaire("actif");
$this->societeuser->majcomplexitepassword($idExpression , $actif);
$expressionsinactives = $this->societeuser->getcompsantepasswordactif("0");
$expressionsinactives = $this->societeuser->getcompsantepasswordactif("0");
$expressionsactives = $this->societeuser->getcompsantepasswordactif("1");
$expressionsactives = $this->societeuser->getcompsantepasswordactif("1");
$this->genererVueAjax(array('expressionsinactives' => $expressionsinactives, 'expressionsactives' => $expressionsactives));
}
$this->genererVueAjax(array(
'expressionsinactives' => $expressionsinactives,
'expressionsactives' => $expressionsactives
));
}
}

View File

@ -23,13 +23,11 @@ class ControleurPrestatairesreseau extends Controleur {
$prestatairesdispo = $this->reseau->getPrestatairesReseauNonAffectes($codeReseau);
$prestatairesreseau = $this->reseau->getPrestatairesReseauAffectes($codeReseau);
$chemin = $this->menuvue->getChemin('Prestatairesreseau');
$this->genererVue(array(
'reseau' => $reseau,
'prestatairesdispo' => $prestatairesdispo,
'prestatairesreseau' => $prestatairesreseau,
'chemin' => $chemin
'prestatairesreseau' => $prestatairesreseau
)
);
}

View File

@ -19,14 +19,12 @@ class ControleurTrancheage extends Controleur {
public function index()
{
$chemin = $this->menuvue->getChemin('Trancheage');
$entetestrancheage = $this->trancheage->geterentetestrancheage('');
$garant = $this->trancheage->getListeGarant();
$_SESSION['successTrancheAge'] = '1';
$_SESSION['messageTrancheAge'] = '';
$this->genererVue(array('entetestrancheage' => $entetestrancheage, 'garant' => $garant, 'chemin' => $chemin));
$this->genererVue(array('entetestrancheage' => $entetestrancheage, 'garant' => $garant));
}
}

View File

@ -1,320 +0,0 @@
<!doctype html>
<html lang="fr">
<head>
<meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<base href="<?= $racineWeb ?>" >
<link rel="icon" href="Bootstrap/images/favicon.png"/>
<link href="Bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="Bootstrap/css/ajaxmask.css" rel="stylesheet">
<link href="Bootstrap/css/simple-sidebar.css" rel="stylesheet">
<link href="Bootstrap/css/jquery-ui.css" rel="stylesheet">
<link href="Bootstrap/css/style.css?ver=2021.07.23.06" rel="stylesheet">
<link href="Bootstrap/css/datatables.min.css" rel="stylesheet">
<link href="Bootstrap/css/select2.min.css" rel="stylesheet">
<link href="Bootstrap/css/bootstrap-select.min.css" rel="stylesheet">
<!-- <title><?= $titre ?></title> -->
<title><?= $_SESSION['vue'] ?></title>
<script type="text/javascript">
if (document.addEventListener) {
document.addEventListener('contextmenu', function (e) {
e.preventDefault();
}, false);
} else {
document.attachEvent('oncontextmenu', function () {
window.event.returnValue = false;
});
}
</script>
</head>
<body style="width: 98%" >
<!--
actesHarmonises : <?= $_SESSION['actesHarmonises'] ?>
<br>
controlerPlafondAdherent : <?= $_SESSION['controlerPlafondAdherent'] ?>
<br>
controlerPlafondBeneficiaire : <?= $_SESSION['controlerPlafondBeneficiaire'] ?>
-->
<input class="sr-only" type="text" id="racineWeb" name="racineWeb" value="<?= $racineWeb ?>">
<!-- <div class="navbar navbar-inverse navbar-fixed-top" style="font-size:9pt; background-color: red;"> -->
<div class="navbar navbar-inverse navbar-fixed-top" style="font-size:9pt;">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<?php foreach ($menus as $menu): ?>
<li><a style="color: rgb(255,255,255)" href="<?= $menu['lienMenu'] ?>"><?= $menu['libeleMenu']; ?></a></li>
<?php endforeach; ?>
<!--
<li><a style="color:white;">TESTS</a></li>
-->
</ul>
</div>
</div>
</div>
<div class="row content">
<div class="col-xs-1 sidenav">
<ul id ="barre_laterale" class="sidebar-nav" style="background-color: rgb(40,96,144)">
<?php foreach ($menusvue as $menuvue): ?>
<li><a style="color: rgb(255,255,255)" class="btn-link" href="<?= $menuvue['lienMenu'] ?>"><?= $menuvue['libeleMenu']; ?></a></li>
<hr>
<?php endforeach; ?>
</ul>
</div>
<div class="col-xs-10 text-left" style="padding-left:5px; padding-top:0px; padding-right:0px; font-size:8pt;">
<div id="contenu">
<div id="div_test_gabarit">
</div>
<?= $contenu ?>
</div>
</div>
<div id="barre_laterale_d" class="col-xs-1 sidenav" style="font-size:8pt; padding:0px;">
<INPUT class="sr-only" TYPE="button" id="nomClient_C" NAME="nomClient_C" value="<?= $this->nettoyer($_SESSION['nomClient_C']) ?>" onclick="javascript:afficher_client_id();">
<table class="table table-responsive table-condensed" style="font-size:6pt;" >
<thead>
<tr>
<th>Context</th>
</tr>
</thead>
<tbody>
<tr>
<td> <textarea rows="2" cols="25" readonly ><?= $this->nettoyer($_SESSION['nomSociete']) ?></textarea> </td>
</tr>
<tr>
<td><INPUT TYPE="button" TYPE="button" value="<?= substr($this->nettoyer($_SESSION['utilisateur_C']), 0, 25) ?>" ></td>
</tr>
<tr>
<td> <INPUT TYPE="button" id="numeroClient_C" NAME="numeroClient_C" value="<?= _('Client').' : '.$this->nettoyer($_SESSION['numeroClient_C']) ?>" onclick="javascript:afficher_client_id();"></td>
</tr>
<tr>
<td> <textarea rows="3" cols="25" readonly ><?= $this->nettoyer($_SESSION['nomClient_C']) ?></textarea> </td>
</tr>
<tr>
<td><INPUT TYPE="button" id="numeroPolice_C" NAME="numeroPolice_C" value="Pol. <?= $this->nettoyer($_SESSION['numeroPolice_C']) ?>" onclick="javascript:afficher_police_id();"></td>
</tr>
<tr>
<td><INPUT TYPE="button" id="codeGcAssureur_C" NAME="codeGcAssureur_C" value="Garant : <?= $this->nettoyer($_SESSION['codeGcAssureur_C']) ?>" onclick="javascript:afficher_garant('<?=$this->nettoyer($_SESSION['codeGcAssureur_C']);?>');"></td>
</tr>
<tr>
<td><INPUT style="font-size:8pt; background-color: yellow;" TYPE="text" value="<?= $this->nettoyer(format_N($_SESSION['ndAdh_C'])) . " > " . $this->nettoyer(format_N($_SESSION['ndDep_C'])) . " > " . $this->nettoyer(format_N($_SESSION['ndActif_C'])) ?>" readonly ></td>
</tr>
<tr>
<td> <INPUT TYPE="button" id="numeroAdherent_C" NAME="numeroAdherent_C" value="Fam. <?= $this->nettoyer($_SESSION['numeroAdherent_C']) ?>" onclick="javascript:afficher_adherent_id();"></td>
</tr>
<tr>
<td> <INPUT TYPE="button" id="adherent_C" NAME="adherent_C" value="<?= substr($this->nettoyer($_SESSION['adherent_C']), 0, 25) ?>" onclick="javascript:afficher_adherent_id();"></td>
</tr>
<tr>
<td> <INPUT TYPE="button" id="numeroBeneficiaire_C" NAME="numeroBeneficiaire_C" value="<?= _('Dép').' : '.$this->nettoyer($_SESSION['numeroBeneficiaire_C']) ?>" onclick="javascript:afficher_beneficiaire_id();"></td>
</tr>
<tr>
<td> <INPUT TYPE="button" id="beneficiaire_C" NAME="beneficiaire_C" value="<?= substr($this->nettoyer($_SESSION['beneficiaire_C']), 0, 25) ?>" onclick="javascript:afficher_beneficiaire_id();"></td>
</tr>
<tr>
<td>
<?php if ($_SESSION['lienPhoto_C']>" " ): ?>
<img src="<?= $_SESSION['dossierSociete'].'/Photos/'.$_SESSION['lienPhoto_C'] ?>" style="width: 100px;" data-toggle="modal" data-target="#pop_photo">
<?php endif; ?>
</td>
</tr>
<tr>
<td> <a href="Changermotpass/"><img src="Bootstrap/images/cle.png" alt="Changer mot de passe"> </a> </td>
</tr>
<tr>
<td><INPUT style="font-size:8pt;" TYPE="button" TYPE="button" value="Lang : <?= $this->nettoyer($_SESSION['libelleLang']) ?>" ></td>
</tr>
<tr>
<td> <INPUT class="btn btn-warning" style="font-size:8pt;" TYPE="button" value="Chang Lang" onclick="javascript:changer_langue();" > </td>
</tr>
<tr>
<td> <INPUT class="btn btn-info" style="font-size:8pt;" TYPE="button" value="<?= _('Test Connexion?') ?>" onclick="javascript:test_online();" > </td>
</tr>
<tr>
<td><INPUT id="test_connexion" NAME="test_connexion" style="font-size:11pt; background-color: green;" TYPE="text" value="<?= _('Etat Connexion') ?>" readonly ></td>
</tr>
</tbody>
</table>
<?php if ($_SESSION['modeDevis']=="1"): ?>
<table class="table table-responsive table-condensed" style="font-size:6pt;" >
<thead>
<tr>
<th> <?= _("Devis") ?> </th>
</tr>
</thead>
<tbody>
<tr>
<td> <INPUT TYPE="button" id="numeroClient_d_C" NAME="numeroClient_d_C" value="Prosp : <?= $this->nettoyer($_SESSION['numeroClient_d_C']) ?>" onclick="javascript:afficher_client_d_id();"></td>
</tr>
<tr>
<td> <INPUT TYPE="button" id="nomClient_d_C" NAME="nomClient_d_C" value="<?= $this->nettoyer($_SESSION['nomClient_d_C']) ?>" onclick="javascript:afficher_client_d_id();"></td>
</tr>
<tr>
<td><INPUT TYPE="button" id="numeroPolice_d_C" NAME="numeroPolice_d_C" value="<?= $this->nettoyer($_SESSION['numeroPolice_d_C']) ?>" onclick="javascript:afficher_police_d_id_init();"></td>
</tr>
</tbody>
</table>
<?php endif; ?>
<footer class="container-fluid text-center" style="padding-left:0px; padding-top:0px; padding-right:0px;padding-bottom:5px; font-size:10pt;">
Messages
<div id="nbMessagesNonLus" name="nbMessagesNonLus">
<INPUT class='form-control timer' id="timer" NAME="timer" TYPE="button" value="0" onclick="javascript:pop_messagerie();" >
</div>
<INPUT class="form-control btn btn-primary" style="font-size:7pt;" TYPE="button" value="<?= _("Gérer Messages") ?>" onclick="javascript:gerer_messagerie();" >
</footer>
</div>
</div>
<button id="btn_pop_messagerie" NAME="btn_pop_messagerie" type="button" class="sr-only" data-toggle="modal" data-target="#popmessagerie"> <?= _("Afficher les messages non lus...") ?> </button>
<div class="modal fade" id="popmessagerie" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"> <?= _("Fermer") ?> </button>
<h4 class="modal-title"> <?= _("Messages non lus") ?> </h4>
</div>
<div class="modal-body">
<div id="div_messagerie">
</div>
</div>
<div class="modal-footer">
<button id="btn_close_messagerie" NAME="btn_close_messagerie" type="button" class="btn btn-default" data-dismiss="modal"> <?= _("Fermer") ?> </button>
</div>
</div>
</div>
</div>
<script src="Bootstrap/js/jquery.min.js"></script>
<script src="Bootstrap/js/jquery-ui.js"></script>
<script src="Bootstrap/js/timer.jquery.js"></script>
<script src="Bootstrap/js/bootstrap.min.js"></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=2021.10.25.08"></script>
<script src="<?= $_SESSION['dossierSociete'].'/Js/societe.js' ?>"></script>
<script src="Bootstrap/js/jquery.timer.js"></script>
<script src="Bootstrap/js/ajaxmask.js"></script>
<script src="Bootstrap/js/custom.js"></script>
<script src="Bootstrap/js/datatables.min.js"></script>
<script src="Bootstrap/js/select2.min.js"></script>
<script src="Bootstrap/js/bootstrap-select.min.js"></script>
<div id="div_ajaxgabarit">
</div>
<div class="modal fade" id="pop_photo" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button id="btn_close_pop" name="btn_close_pop" type="button" class="close" data-dismiss="modal"> <?= _("Fermer") ?> </button>
<h4 class="modal-title"> <?= _("Photo") ?> </h4>
</div>
<div class="modal-body">
<img src="<?= $_SESSION['dossierSociete'].'/Photos/'.$_SESSION['lienPhoto_C'] ?>" style="width: 350px;">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal"> <?= _("Fermer") ?> </button>
</div>
</div>
</div>
</div>
<script type="text/javascript">
raffraichier_gabarit();
</script>
<script type="text/javascript">
$('#timer').timer({
// duration: '1m',
duration: '10s',
callback: function() {
raffraichier_messagerie();
},
repeat: true
});
</script>
<div id="div_gettext" class="sr-only">
<?= _("Retour") ?>
</div>
</body>
</html>

File diff suppressed because it is too large Load Diff

View File

@ -21,25 +21,7 @@ class Baremepriseencharge extends Modele
public function getBaremepriseenchargeId($idBaremePriseEnCharge)
{
if (est_anglophone()){
$sql = "SELECT A.*,concat(B.nom,' ',B.prenoms) as nomClient,
C.libelleEng AS territoire, D.libelle as tauxRemboursement
from baremepriseencharge A
LEFT JOIN clients B ON (B.numeroClient=A.numeroClient)
LEFT JOIN etendueterritoire C ON (C.codeTerritoire=A.codeTerritoire)
LEFT JOIN tauxcouverture D ON (D.id=A.idTauxCouverture)
WHERE A.id=?;";
}else{
$sql = "SELECT A.*,concat(B.nom,' ',B.prenoms) as nomClient,
C.libelle AS territoire, D.libelle as tauxRemboursement
from baremepriseencharge A
LEFT JOIN clients B ON (B.numeroClient=A.numeroClient)
LEFT JOIN etendueterritoire C ON (C.codeTerritoire=A.codeTerritoire)
LEFT JOIN tauxcouverture D ON (D.id=A.idTauxCouverture)
WHERE A.id=?;";
}
$sql = "CALL sp_get_bareme_pec_id(?)";
$resultat = $this->executerRequete($sql, array($idBaremePriseEnCharge));

View File

@ -15,13 +15,14 @@ class Gestionconfiee extends Modele {
public function getGcAssureurId($idGc)
{
$sql = "SELECT a.*, b.libelle as typegc FROM gc_assureur a
JOIN gc_typegarant b ON (a.typeGarant = b.id)
WHERE a.id=?";
$sql = "CALL sp_get_garant_id(?);";
$resultat = $this->executerRequete($sql, array($idGc));
$context = $resultat->fetch(PDO::FETCH_ASSOC);
$_SESSION['codeGcAssureur_C'] = $context['codeGcAssureur'];
$_SESSION['GcAssureur_C'] = $context['libelle'];
return $context;
}

View File

@ -373,4 +373,36 @@ class Reseausoins extends Modele
return $resultat->fetchAll(PDO::FETCH_ASSOC);
}
/**
* Recherche les prestataires disponibles via procédure stockée
*/
public function rechercherPrestatairesDisponibles($codeReseau, $query) {
// Utilisation de la fonction helper pour formater le LIKE (%query%)
$queryParam = contruireParamLike($query);
$codeSociete = $_SESSION['codeSociete'];
// Appel de la procédure stockée optimisée
$sql = "CALL sp_rechercher_prestataires_dispo(?, ?, ?)";
$resultat = $this->executerRequete($sql, array($codeSociete, $codeReseau, $queryParam));
return $resultat->fetchAll(PDO::FETCH_ASSOC);
}
/**
* Recherche les prestataires affectés via procédure stockée
*/
public function rechercherPrestatairesAffectes($codeReseau, $query) {
// Utilisation de la fonction helper pour formater le LIKE (%query%)
$queryParam = contruireParamLike($query);
$codeSociete = $_SESSION['codeSociete'];
// Appel de la procédure stockée optimisée
$sql = "CALL sp_rechercher_prestataires_affectes(?, ?, ?)";
$resultat = $this->executerRequete($sql, array($codeSociete, $codeReseau, $queryParam));
return $resultat->fetchAll(PDO::FETCH_ASSOC);
}
}

View File

@ -4,8 +4,9 @@ class Trancheage extends Modele{
public function getListeGarant()
{
$sql = 'SELECT codeGcAssureur AS `code`, libelle FROM gc_assureur
WHERE codeSociete= ? AND actif = 1 ORDER BY libelle';
$sql = 'SELECT codeGcAssureur AS `code`, CONCAT(libelle, " [",codeGcAssureur,"]") AS libelle
FROM gc_assureur WHERE codeSociete= ? AND actif = 1 ORDER BY libelle';
$resultat = $this->executerRequete($sql,array($_SESSION['codeSociete']));
return $resultat->fetchAll(PDO::FETCH_ASSOC);
}

View File

@ -2,4 +2,5 @@
<input type="hidden" id="fichier_ajouter" value="<?= $fichiers['fichierAjouter'];?>">
<input type="hidden" id="fichier_modifier" value="<?= $fichiers['fichierModifier'];?>">
<input type="hidden" id="fichier_lister" value="<?= $fichiers['fichierLlister'];?>">
<input type="hidden" id="table_name" value="<?= $fichiers['tableName'];?>">
<input type="hidden" id="table_name" value="<?= $fichiers['tableName'];?>">
<input type="hidden" id="export_titre" value="<?= est_anglophone() ? $fichiers['exportTitreEng'] : $fichiers['exportTitre'];?>">

View File

@ -1,655 +1,251 @@
<?php
$codeGarantie = $this->nettoyer($garantie['codeGarantie']);
$garantie = $this->nettoyer($garantie['libelle']);
if (est_anglophone())
{
$garantie = $this->nettoyer($garantie['libelleEng']);
}
$idBareme = $_SESSION['idBaremePriseEnCharge'];
$codeGarantie = $this->nettoyer($garantie['codeGarantie']);
$libelleG = $this->nettoyer($garantie['libelle']);
if (est_anglophone()) { $libelleG = $this->nettoyer($garantie['libelleEng']); }
?>
<div class="modal-dialog modal-xl border-0" role="document" style="max-width: 98%;">
<div class="modal-content shadow-lg border-0">
<div class="modal-header bg-white border-bottom-0 pt-4 px-4">
<div class="d-flex align-items-center">
<div class="p-2 bg-light rounded-3 me-3"><i class="fas fa-layer-group text-secondary"></i></div>
<div>
<h5 class="fw-bold mb-0 text-uppercase"><?= $libelleG; ?></h5>
<small class="text-light"><?= _("Paramétrage complet des règles de prise en charge") ?></small>
</div>
</div>
<button type="button" class="btn p-2 border-0 shadow-none d-flex align-items-center justify-content-center"
data-bs-dismiss="modal" aria-label="Close"
onclick="detail_baremepriseencharge(<?= $idBareme ?>);"
style="background: transparent; transition: transform 0.2s ease;">
<i class="fas fa-times text-white fs-4"></i>
</button>
</div>
<div class="modal-dialog" style="max-width: 98%;" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-bs-dismiss="modal" onclick="detail_baremepriseencharge(<?= $_SESSION['idBaremePriseEnCharge']; ?>);">&times;</button>
<legend class="modal-title text-center"><?= $garantie; ?></legend>
</div>
<div class="modal-body">
<INPUT class="sr-only" TYPE="text" id="datejour" NAME="datejour" value="<?= datefr(date('Y/m/d')); ?>">
<INPUT class="sr-only" TYPE="text" id="codeGarantie" name="codeGarantie" value="<?= $codeGarantie; ?>">
<INPUT class="sr-only" TYPE="text" id="idBaremePriseEnCharge" name="idBaremePriseEnCharge" value="<?= $_SESSION['idBaremePriseEnCharge']; ?>">
<hr style="border: 10px double blue; border-radius: 5px; background-color: blue;" />
<div id="div_garanties">
<legend class="text-center" style="margin-bottom: 10px; background-color: #a6a6a6; font-size:13pt; font-weight: bold; color: white;">
<?= _("BAREME GARANTIE") ?>
&nbsp
<span id="garantiesbaremepriseencharge" ></span>
&nbsp &nbsp
<a href="javascript:afficherMasquerGarantiesBareme();">
<span id="span_garantie" title="<?= _('Cliquez sur le lien pour afficher ou masquer')?>">[-]</span>
</a>
<INPUT class="sr-only" TYPE="text" id="masquerGarantie" NAME="masquerGarantie" value="1">
</legend>
<div id="div_garanties_masquer">
<table class="table table-bordered table-condensed table-responsive" style='font-size:9pt;'>
<thead style=" color: #000;">
<!--
<tr >
<th colspan="16" style='text-align:center; font-size:10pt; font-weight: bold; border: 2px solid #939597;'> <?= _("PARTICULARITES SUR GARANTIE") ?> </th>
</tr>
-->
<tr >
<th rowspan="2" style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;' class="required"> <?= _("Effet") ?> </th>
<th colspan="4" style='text-align:center; border: 2px solid #939597; background-color: #027BE3; color: white;'> <?= _("Famille") ?> </th>
<th colspan="4" style='text-align:center; border: 2px solid #939597; background-color: #726a57;'> <?= _("Bénéficiaire") ?> </th>
<th rowspan="2" style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Remboursement") ?> </th>
<!--<th rowspan="2" style='text-align:center; border: 2px solid #939597;'> <?= _("Observation") ?> </th>-->
<th rowspan="2" style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Carence") ?> </th>
<th colspan="2" style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("TM") ?> </th>
<th colspan="2" style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Age") ?> </th>
<th rowspan="2" style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;' class="required"> <?= _("Actif") ?> </th>
</tr>
<tr>
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Plafond") ?> </th>
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Périodicité") ?> </th>
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Nb Transac") ?> </th>
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Périodicité") ?> </th>
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Plafond") ?> </th>
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Périodicité") ?> </th>
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Nb Transac") ?> </th>
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Périodicité") ?> </th>
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Taux") ?> </th>
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Forfait") ?> </th>
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Min") ?> </th>
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Max") ?> </th>
<!--<th style='text-align:center; border: 2px solid #939597;'> <?= _("Observation") ?> </th>-->
</tr>
</thead>
<tbody>
<tr>
<td width="7%" style='text-align:center; border: 2px solid #939597;'>
<INPUT style='text-align:center; font-size:7pt; border: 2px solid #939597;' class="form-control datepicker" TYPE="text" id="dateEffetGarantie"
NAME="dateEffetGarantie" value="" onChange="javascript:controleDateEffetGarantieBareme();" required >
</td>
<!-- Adherent -->
<td width="7%" style='text-align:center; border: 2px solid #939597;'>
<INPUT style='font-size:7pt; border: 2px solid #939597;' class="form-control text-center" TYPE="text" value="0" onkeyup="controle_numerique(this);"
onblur="formatMonetaire(this);" id="forfaitPlafondGarantieAdherent" name="forfaitPlafondGarantieAdherent" onChange="">
</td>
<td style='text-align:center; border: 2px solid #939597;'>
<select class="form-select text-center" style="font-size:7pt; border: 2px solid #939597;" id="codePeriodicitePlafondGarantieAdherent" name="codePeriodicitePlafondGarantieAdherent">
<?= liste_options($periodicite,'',true) ?>
</select>
</td>
<td style='text-align:center; border: 2px solid #939597;'>
<INPUT style='font-size:7pt; border: 2px solid #939597;' class="form-control text-center" TYPE="text" value="0" onkeyup="controle_numerique(this);"
id="nbreTransactionGarantieAdherent" name="nbreTransactionGarantieAdherent" onChange="">
</td>
<td style='text-align:center; border: 2px solid #939597; '>
<select class="form-select text-center" style="font-size:7pt; border: 2px solid #939597;" id="codePeriodiciteGarantieAdherent" name="codePeriodiciteGarantieAdherent"
onChange="">
<?= liste_options($periodiciteFiltre,'',true) ?>
</select>
</td>
<!-- Beneficiaire -->
<td width="7%" style='text-align:center; border: 2px solid #939597;'>
<INPUT style='font-size:7pt; border: 2px solid #939597;' class="form-control text-center" TYPE="text" value="0" onkeyup="controle_numerique(this);"
onblur="formatMonetaire(this);" id="forfaitPlafondGarantie" name="forfaitPlafondGarantie" onChange="">
</td>
<td style='text-align:center; border: 2px solid #939597;'>
<select class="form-select text-center" style="font-size:7pt; border: 2px solid #939597;" id="codePeriodicitePlafondGarantie" name="codePeriodicitePlafondGarantie"
onChange="">
<?= liste_options($periodicite,'',true) ?>
</select>
</td>
<td style='text-align:center; border: 2px solid #939597;'>
<INPUT style='font-size:7pt; border: 2px solid #939597;' class="form-control text-center" TYPE="text" value="0" onkeyup="controle_numerique(this);"
id="nbreTransactionGarantie" name="nbreTransactionGarantie" onChange="">
</td>
<td style='text-align:center; border: 2px solid #939597;'>
<select class="form-select text-center" style="font-size:7pt; border: 2px solid #939597;" id="codePeriodiciteGarantie" name="codePeriodiciteGarantie"
onChange="">
<?= liste_options($periodiciteFiltre,'',true) ?>
</select>
</td>
<td style='text-align:center; border: 2px solid #939597; width:9%;'>
<select class="form-select" style="font-size:7pt; border: 2px solid #939597;" id="codeTypeRemboursement" name="codeTypeRemboursement"
onChange="" required >
<?= liste_options($typeremboursement,"RDTP",true) ?>
</select>
</td>
<td style='text-align:center; border: 2px solid #939597;'>
<INPUT style='font-size:7pt; border: 2px solid #939597;' class="form-control text-center" TYPE="text" value="0" onkeyup="controle_numerique(this);"
id="delaiCarenceFamilleActe" name="delaiCarenceFamilleActe" onChange="">
</td>
<td style='text-align:center; border: 2px solid #939597;' >
<INPUT style='font-size:7pt; border: 2px solid #939597;' class="form-control text-center" TYPE="text" value="<?= $tmBareme ?>" onkeyup="controle_numerique(this);"
id="ticketModerateurFamilleActe" name="ticketModerateurFamilleActe">
</td>
<td width="7%" style='text-align:center; border: 2px solid #939597;'>
<INPUT style='font-size:7pt; border: 2px solid #939597;' class="form-control text-center" TYPE="text" value="0" onkeyup="controle_numerique(this);"
onblur="formatMonetaire(this);" id="forfaitTmGarantie" name="forfaitTmGarantie" onChange="">
</td>
<td style='text-align:center; border: 2px solid #939597;' >
<INPUT style='font-size:7pt; border: 2px solid #939597;' class="form-control text-center" TYPE="number" value="0" onkeyup="controle_numerique(this);"
id="ageMinimumFamilleActe" name="ageMinimumFamilleActe" onChange="">
</td>
<td style='text-align:center; border: 2px solid #939597;'>
<INPUT style='font-size:7pt; border: 2px solid #939597;' class="form-control text-center" TYPE="number" value="0" onkeyup="controle_numerique(this);"
id="ageMaximumFamilleActe" name="ageMaximumFamilleActe" onChange="">
</td>
<td style='text-align:center; border: 2px solid #939597;' width="5%">
<select class="form-select text-center" style="font-size:7pt; border: 2px solid #939597;" id="actifFamilleActe" name="actifFamilleActe" required >
<?= liste_options($actifFamilleActe,"", true) ?>
</select>
</td>
<div class="modal-body bg-body-tertiary p-4">
<input type="hidden" id="datejour" value="<?= dateLang(date('Y/m/d'),$_SESSION['lang']); ?>">
<input type="hidden" id="codeGarantie" value="<?= $codeGarantie; ?>">
<input type="hidden" id="idBaremePriseEnCharge" value="<?= $idBareme ?>">
</tr>
<tr>
<td colspan="16">
<input style='font-size:12pt;' id="btn_familleacte" name="btn_familleacte"
class = "form-control btn btn-primary" type="button" value="<?= _("Insérer une nouvelle ligne dans BAREME GARANTIE") ?>"
onclick="javascript:inserer_bareme_garantie();">
</td>
</tr>
</tbody>
</table>
<div id="div_garanties_bareme" >
</div>
</div>
<hr style="border: 10px double blue; border-radius: 5px; background-color: blue;" />
<div id="div_garanties_lienparente">
<legend class="text-center" style="margin-bottom: 10px; background-color: #a6a6a6; font-size:13pt; font-weight: bold; color: white;">
<?= _("BAREME GARANTIE LIEN PARENTE") ?>
&nbsp
<span id="garantiesbaremepriseenchargelienparente" ></span>
&nbsp &nbsp
<a href="javascript:afficherMasquerGarantiesBaremeLienParente();">
<span id="span_garantie_lienparente" title="<?= _('Cliquez sur le lien pour afficher ou masquer')?>">[-]</span>
</a>
</legend>
<INPUT class="sr-only" TYPE="text" id="masquerGarantieLienParente" NAME="masquerGarantieLienParente" value="1">
<div id="div_maxdateeffetGarantieLienParente">
</div>
<div id="div_garanties_lienparente_masquer">
<table class="table table-bordered table-condensed table-responsive" style="font-size:9pt;" >
<thead style="color: #000;">
<!--
<tr >
<th colspan="13" style='text-align:center; font-size:10pt; font-weight: bold; border: 2px solid #939597;'> <?= _("PARTICULARITES SUR GARANTIE LIEN PARENTE") ?> </th>
</tr>
-->
<tr>
<th rowspan="2" style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;' class="required"> <?= _("Effet") ?> </th>
<th rowspan="2" style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;' class="required"> <?= _("Lien Parenté") ?> </th>
<th rowspan="2" style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Plafond") ?> </th>
<th rowspan="2" style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Périodicité") ?> </th>
<th rowspan="2" style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Nbre") ?> </th>
<th rowspan="2" style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Périodicité") ?> </th>
<!--<th style='text-align:center; border: 2px solid #939597;'> <?= _("Observation") ?> </th>-->
<th rowspan="2" style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Remboursement") ?> </th>
<th rowspan="2" style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Carence") ?> </th>
<th colspan="2" style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("TM") ?> </th>
<th colspan="2" style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Age") ?> </th>
<th rowspan="2" style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;' class="required"> <?= _("Actif") ?> </th>
</tr>
<tr>
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Taux") ?> </th>
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Forfait") ?> </th>
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Min") ?> </th>
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Max") ?> </th>
</tr>
</thead>
<tbody>
<tr>
<td style='text-align:center; border: 2px solid #939597;'>
<INPUT style='text-align:center; font-size:8pt; border: 2px solid #939597;' class="form-control datepicker" TYPE="text" id="dateEffetGarantieLienParente"
NAME="dateEffetGarantieLienParente" value="" required >
</td>
<td style='text-align:center; border: 2px solid #939597;'>
<select class="form-select text-center" style="font-size:8pt; border: 2px solid #939597;" id="codeLienParente" name="codeLienParente" required>
<?= liste_options($lienParente,'',true) ?>
</select>
</td>
<!-- Beneficiaire -->
<td style='text-align:center; border: 2px solid #939597;'>
<INPUT style='font-size:8pt; border: 2px solid #939597;' class="form-control text-center" TYPE="text" value="0" onkeyup="controle_numerique(this);"
onblur="formatMonetaire(this);" id="forfaitPlafondGarantieLienParente" name="forfaitPlafondGarantieLienParente" onChange="">
</td>
<td style='text-align:center; border: 2px solid #939597;'>
<select class="form-select text-center" style="font-size:8pt; border: 2px solid #939597;" id="codePeriodicitePlafondGarantieLienParente" name="codePeriodicitePlafondGarantieLienParente"
onChange="">
<?= liste_options($periodicite,'',true) ?>
</select>
</td>
<td style='text-align:center; border: 2px solid #939597;'>
<INPUT style='font-size:8pt; border: 2px solid #939597;' class="form-control text-center" TYPE="text" value="0" onkeyup="controle_numerique(this);"
id="nbreTransactionGarantieLienParente" name="nbreTransactionGarantieLienParente" onChange="">
</td>
<td style='text-align:center; border: 2px solid #939597;'>
<select class="form-select text-center" style="font-size:8pt; border: 2px solid #939597;" id="codePeriodiciteGarantieLienParente" name="codePeriodiciteGarantieLienParente"
onChange="">
<?= liste_options($periodiciteFiltre,'',true) ?>
</select>
</td>
<td style='text-align:center; border: 2px solid #939597; width:9%;'>
<select class="form-select" style="font-size:8pt; border: 2px solid #939597;" id="codeTypeRemboursementLienParente" name="codeTypeRemboursementLienParente"
onChange="" required >
<?= liste_options($typeremboursement,"RDTP",true) ?>
</select>
</td>
<td style='text-align:center; border: 2px solid #939597;'>
<INPUT style='font-size:8pt; border: 2px solid #939597;' class="form-control text-center" TYPE="text" value="0" onkeyup="controle_numerique(this);"
id="delaiCarenceFamilleActeLienParente" name="delaiCarenceFamilleActeLienParente" onChange="">
</td>
<td style='text-align:center; border: 2px solid #939597; '>
<INPUT style='font-size:8pt; border: 2px solid #939597;' class="form-control text-center" TYPE="text" value="<?= $tmBareme ?>" onkeyup="controle_numerique(this);"
id="ticketModerateurFamilleActeLienParente" name="ticketModerateurFamilleActeLienParente" onChange="">
</td>
<td style='text-align:center; border: 2px solid #939597; '>
<INPUT style='font-size:8pt; border: 2px solid #939597;' class="form-control text-center" TYPE="text" value="0" onkeyup="controle_numerique(this);"
onblur="formatMonetaire(this);" id="forfaitTmGarantieLienParente" name="forfaitTmGarantieLienParente" onChange="">
</td>
<td style='text-align:center; border: 2px solid #939597;'>
<INPUT style='font-size:8pt; border: 2px solid #939597;' class="form-control text-center" TYPE="number" value="0" onkeyup="controle_numerique(this);"
id="ageMinimumFamilleActeLienParente" name="ageMinimumFamilleActeLienParente" onChange="">
</td>
<td style='text-align:center; border: 2px solid #939597; '>
<INPUT style='font-size:8pt; border: 2px solid #939597;' class="form-control text-center" TYPE="number" value="0" onkeyup="controle_numerique(this);"
id="ageMaximumFamilleActeLienParente" name="ageMaximumFamilleActeLienParente" onChange="">
</td>
<td style='text-align:center; border: 2px solid #939597;' width="5%">
<select class="form-select text-center" style="font-size:8pt; border: 2px solid #939597;" id="actifFamilleActeLienParente" name="actifFamilleActeLienParente"
onChange="" required >
<?= liste_options($actifFamilleActe,"") ?>
</select>
</td>
</tr>
<tr>
<td colspan="13">
<input style='font-size:12pt;' id="btn_familleacteLienParente" name="btn_familleacteLienParente"
class = "form-control btn btn-primary" type="button" value="<?= _("Insérer une nouvelle ligne dans BAREME GARANTIE LIEN PARENTE") ?>" onclick="javascript:validiteDateEffetGarantieLienParente();">
</td>
</tr>
</tbody>
</table>
<div id="div_garanties_bareme_lienparente">
</div>
</div>
</div>
</div>
<hr style="border: 10px double blue; border-radius: 5px; background-color: blue;" />
<div id="div_acte">
<legend class="text-center" style="margin-bottom: 10px; background-color: #a6a6a6; font-size:13pt; font-weight: bold; color: white;">
<?= _("BAREME ACTE") ?>
&nbsp
<span id="actesbaremepriseencharge" ></span>
&nbsp &nbsp
<a href="javascript:afficherMasquerActeBareme();">
<span id="span_acte" title="<?= _('Cliquez sur le lien pour afficher ou masquer')?>">[-]</span>
</a>
</legend>
<INPUT class="sr-only" TYPE="text" id="masquerActe" NAME="masquerActe" value="1">
<div id="div_acte_masquer">
<div id="div_maxdateeffetactebareme">
</div>
<table class="table table-bordered table-condensed table-responsive" style="font-size:9pt;" >
<thead style="color: #000;">
<!--
<tr >
<th colspan="16" style='text-align:center; font-size:10pt; font-weight: bold; border: 2px solid #939597;'> <?= _("PARTICULARITES SUR ACTE") ?> </th>
</tr>
-->
<tr>
<td align='center' style='font-size:9pt; font-weight:bold; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;' class="required">
<?= _("Acte") ?>
</td>
<td colspan="15" style='border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'>
<?php if($codeGarantie!="HOS"): ?>
<SELECT style="font-size:10pt; height:30px; border: 2px solid #939597;" class="form-control selectpicker" data-live-search="true" id="codeActe" NAME="codeActe" required autofocus
onChange="">
<?= liste_options($actesadd,"",false) ?>
</SELECT>
<?php else: ?>
<div class="frmSearch" style="background-color: #dff2ff; color: #6A645A; border: 2px solid #939597;">
<input id="searchInputActe" name="searchInputActe" style="font-size:12pt; border: 2px solid #939597;" class="form-control" type="text" placeholder="Veuillez rechercher et sélectionner un acte ici..." autofocus
onkeyup="javascript:affichelisteactes(this.value, 'acte');">
<INPUT class="sr-only" TYPE="text" id="codeActe" NAME="codeActe" value="">
<div id="div_selection_acte">
</div>
</div>
<?php endif; ?>
</td>
<div class="accordion" id="accordionBareme">
</tr>
<tr>
<th rowspan="2" style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;' class="required"> <?= _("Effet") ?> </th>
<th colspan="4" style='text-align:center; border: 2px solid #939597; background-color:#027BE3; color: white;'> <?= _("Famille") ?> </th>
<th colspan="4" style='text-align:center; border: 2px solid #939597; background-color:#726a57;color:white'> <?= _("Bénéficiaire") ?> </th>
<th rowspan="2" style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Remboursement") ?> </th>
<th rowspan="2" style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Carence") ?> </th>
<th colspan="2" style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("TM") ?> </th>
<th colspan="2" style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Age") ?> </th>
<th rowspan="2" style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;' class="required"> <?= _("Actif") ?> </th>
</tr>
<tr>
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Plafond") ?> </th>
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Périodicité") ?> </th>
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Nb Transac") ?> </th>
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Périodicité") ?> </th>
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Plafond") ?> </th>
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Périodicité") ?> </th>
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Nb Transac") ?> </th>
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Périodicité") ?> </th>
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Taux") ?> </th>
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Forfait") ?> </th>
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Min") ?> </th>
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Max") ?> </th>
</tr>
</thead>
<tbody>
<tr>
<td style='text-align:center; border: 2px solid #939597;'>
<INPUT style='text-align:center; font-size:8pt; border: 2px solid #939597;' class="form-control datepicker" TYPE="text" id="dateEffetActe"
NAME="dateEffetActe" value="" required >
</td>
<!-- Adherent -->
<td style='text-align:center; border: 2px solid #939597;'>
<INPUT style='font-size:8pt; border: 2px solid #939597;' class="form-control text-center" TYPE="text" value="0" onkeyup="controle_numerique(this);"
onblur="formatMonetaire(this);" id="forfaitPlafondActeAdherent" name="forfaitPlafondActeAdherent" onChange="">
</td>
<td style='text-align:center; border: 2px solid #939597;'>
<select class="form-select text-center" style="font-size:8pt; border: 2px solid #939597;" id="codePeriodicitePlafondActeAdherent" name="codePeriodicitePlafondActeAdherent"
onChange="">
<?= liste_options($periodicite,'',true) ?>
</select>
</td>
<td style='text-align:center; border: 2px solid #939597;'>
<INPUT style='font-size:8pt; border: 2px solid #939597;' class="form-control text-center" TYPE="text" value="0" onkeyup="controle_numerique(this);"
id="nbreTransactionActeAdherent" name="nbreTransactionActeAdherent" onChange="">
</td>
<td style='text-align:center; border: 2px solid #939597; '>
<select class="form-select text-center" style="font-size:8pt; border: 2px solid #939597;" id="codePeriodiciteActeAdherent" name="codePeriodiciteActeAdherent"
onChange="">
<?= liste_options($periodiciteFiltre,'',true) ?>
</select>
</td>
<!-- Beneficiaire -->
<td style='text-align:center; border: 2px solid #939597;'>
<INPUT style='font-size:8pt; border: 2px solid #939597;' class="form-control text-center" TYPE="text" value="0" onkeyup="controle_numerique(this);"
onblur="formatMonetaire(this);" id="forfaitPlafondActe" name="forfaitPlafondActe" onChange="">
</td>
<td style='text-align:center; border: 2px solid #939597;'>
<select class="form-select text-center" style="font-size:8pt; border: 2px solid #939597;" id="codePeriodicitePlafondActe" name="codePeriodicitePlafondActe"
onChange="">
<?= liste_options($periodicite,'',true) ?>
</select>
</td>
<td style='text-align:center; border: 2px solid #939597;'>
<INPUT style='font-size:8pt; border: 2px solid #939597;' class="form-control text-center" TYPE="text" value="0" onkeyup="controle_numerique(this);"
id="nbreTransactionActe" name="nbreTransactionActe" onChange="">
</td>
<td style='text-align:center; border: 2px solid #939597; '>
<select class="form-select text-center" style="font-size:8pt; border: 2px solid #939597;" id="codePeriodiciteActe" name="codePeriodiciteActe"
onChange="">
<?= liste_options($periodiciteFiltre,'',true) ?>
</select>
</td>
<div class="card border-0 shadow-sm mb-4 rounded-3">
<div class="card-header bg-white py-3 cursor-pointer d-flex justify-content-between align-items-center" onclick="afficherMasquerGarantiesBareme();">
<span class="fw-bold text-dark small text-uppercase">
1. <?= _("Règle Standard de la Famille d'Acte") ?>
<span id="garantiesbaremepriseencharge" class="ms-2 badge bg-light text-primary border"></span>
</span>
<i id="span_bareme" class="fas fa-chevron-down text-muted"></i>
</div>
<input type="hidden" id="masquerGarantie" value="1">
<div id="div_garanties_masquer" class="card-body border-top bg-white" style="display:none;">
<div class="p-4 mb-3 rounded-3 bg-light border-dashed">
<div class="row g-2 mb-3">
<div class="col-md-2">
<label class="lbl-erp required"><?= _("Date Effet") ?></label>
<input type="text" class="form-control datepicker text-center fw-bold border-primary" id="dateEffetFamilleActe" name="dateEffetFamilleActe" required>
</div>
<div class="col-md-3">
<label class="lbl-erp"><?= _("Plafond Famille (Global)") ?></label>
<input type="text" class="form-control text-end fw-bold" id="plafondFamilleActe" name="plafondFamilleActe" onblur="formatMonetaire(this);">
</div>
<div class="col-md-2">
<label class="lbl-erp"><?= _("Périodicité Famille") ?></label>
<select class="form-select" id="periodicitePlafondFamilleActe" name="periodicitePlafondFamilleActe"><?= liste_options($periodicite,"",true) ?></select>
</div>
<div class="col-md-2">
<label class="lbl-erp"><?= _("Nbre Actes Fam.") ?></label>
<input type="number" class="form-control" id="nombreActesFamilleActe" name="nombreActesFamilleActe" value="0">
</div>
<div class="col-md-3">
<label class="lbl-erp"><?= _("Périod. Nbre Fam.") ?></label>
<select class="form-select" id="periodiciteNombreActesFamilleActe" name="periodiciteNombreActesFamilleActe"><?= liste_options($periodicite,"",true) ?></select>
</div>
</div>
<td style='text-align:center; border: 2px solid #939597; width:9%;'>
<select class="form-select" style="font-size:7pt; border: 2px solid #939597;" id="codeTypeRemboursementActe" name="codeTypeRemboursementActe"
onChange="" required >
<?= liste_options($typeremboursement,"RDTP",true) ?>
</select>
</td>
<td style='text-align:center; border: 2px solid #939597; '>
<INPUT style='font-size:8pt; border: 2px solid #939597;' class="form-control text-center" TYPE="text" value="0" onkeyup="controle_numerique(this);"
id="delaiCarenceActe" name="delaiCarenceActe" onChange="">
</td>
<td style='text-align:center; border: 2px solid #939597; '>
<INPUT style='font-size:8pt; border: 2px solid #939597;' class="form-control text-center" TYPE="text" value="<?= $tmBareme ?>" onkeyup="controle_numerique(this);"
id="ticketModerateurActe" name="ticketModerateurActe" onChange="">
</td>
<td style='text-align:center; border: 2px solid #939597;'>
<INPUT style='font-size:8pt; border: 2px solid #939597;' class="form-control text-center" TYPE="text" value="0" onkeyup="controle_numerique(this);"
onblur="formatMonetaire(this);" id="forfaitTmActe" name="forfaitTmActe" onChange="">
</td>
<td style='text-align:center; border: 2px solid #939597;'>
<INPUT style='font-size:8pt; border: 2px solid #939597;' class="form-control text-center" TYPE="number" value="0" onkeyup="controle_numerique(this);"
id="ageMinimumActe" name="ageMinimumActe" onChange="">
</td>
<td style='text-align:center; border: 2px solid #939597; '>
<INPUT style='font-size:8pt; border: 2px solid #939597;' class="form-control text-center" TYPE="number" value="0" onkeyup="controle_numerique(this);"
id="ageMaximumActe" name="ageMaximumActe" onChange="">
</td>
<td style='text-align:center; border: 2px solid #939597;' width="5%">
<select class="form-select text-center" style="font-size:8pt; border: 2px solid #939597;" id="actifActe" name="actifActe"
onChange="" required >
<?= liste_options($actifFamilleActe,"") ?>
</select>
</td>
</tr>
<tr>
<td colspan="16">
<input style='font-size:12pt;' id="btn_acte" name="btn_acte" onclick="javascript:validiteDateEffetActeBareme();"
class = "form-control btn btn-primary" type="button" value="<?= _("Insérer une nouvelle ligne dans BAREME ACTE") ?>">
</td>
</tr>
</tbody>
</table>
<div id="div_actes_bareme">
</div>
</div>
<hr style="border: 10px double blue; border-radius: 5px; background-color: blue;" />
<div id="div_actes_bareme_lienparente" >
<legend class="text-center" style="margin-bottom: 10px; background-color: #a6a6a6; font-size:13pt; font-weight: bold; color: white;">
<?= _("BAREME ACTE LIEN PARENTE") ?>
&nbsp
<span id="actesbaremepriseenchargelienparente" ></span>
&nbsp &nbsp
<a href="javascript:afficherMasquerActeBaremeLienParente();">
<span id="span_acte_lienparente" title="<?= _('Cliquez sur le lien pour afficher ou masquer')?>">[-]</span>
</a>
</legend>
<INPUT class="sr-only" TYPE="text" id="masquerActeLienParente" NAME="masquerActeLienParente" value="1">
<div id="div_maxdateeffetactebaremelienparente">
</div>
<div id="div_acte_lienparente_masquer">
<table class="table table-bordered table-condensed table-responsive" style="font-size:9pt;" >
<thead style="color: #000;">
<!--
<tr >
<th colspan="13" style='text-align:center; font-size:10pt; font-weight: bold; border: 2px solid #939597;'> <?= _("PARTICULARITES SUR ACTE LIEN PARENTE") ?> </th>
</tr>
-->
<tr>
<td style='font-size:9pt;font-weight:bold; text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;' class="required">
<?= _("Acte") ?>
</td>
<td colspan="12" style='border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'>
<?php if($codeGarantie!="HOS"): ?>
<SELECT style="font-size:10pt; height:30px; border: 2px solid #939597;" class="form-control selectpicker" data-live-search="true" id="codeActeLienParente" NAME="codeActeLienParente" required autofocus
onChange="" >
<?= liste_options($actesadd,"",false) ?>
</SELECT>
<?php else: ?>
<div class="frmSearch" style="background-color: #dff2ff; color: #6A645A; border: 2px solid #939597;">
<input id="searchInputLienparente" name="searchInputLienparente" style="font-size:12pt; border: 2px solid #939597;" class="form-control" type="text" placeholder="Veuillez rechercher et sélectionner un acte ici..." autofocus
onkeyup="javascript:affichelisteactes(this.value,'lienparente');">
<INPUT class="sr-only" TYPE="text" id="codeActeLienParente" NAME="codeActeLienParente" value="">
<div id="div_selection_lienparente">
</div>
</div>
<?php endif; ?>
</td>
</tr>
<tr>
<th rowspan="2" style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;' class="required"> <?= _("Effet") ?> </th>
<th rowspan="2" style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;' class="required"> <?= _("Lien Parenté") ?> </th>
<th rowspan="2" style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Plafond") ?> </th>
<th rowspan="2" style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Périodicité") ?> </th>
<th rowspan="2" style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Nb Transaction") ?> </th>
<th rowspan="2" style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Périodicité") ?> </th>
<th rowspan="2" style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Remboursement") ?> </th>
<th rowspan="2" style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Carence") ?> </th>
<th colspan="2" style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("TM") ?> </th>
<th colspan="2" style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Age") ?> </th>
<th rowspan="2" style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;' class="required"> <?= _("Actif") ?> </th>
</tr>
<tr>
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Taux") ?> </th>
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Forfait") ?> </th>
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Min") ?> </th>
<th style='text-align:center; border: 2px solid #939597; background-color: #dff2ff; color: #6A645A;'> <?= _("Max") ?> </th>
</tr>
</thead>
<tbody>
<tr>
<td align='center' style='border: 2px solid #939597;'>
<INPUT style='text-align:center; font-size:8pt; border: 2px solid #939597;' class="form-control datepicker" TYPE="text" id="dateEffetActeLienParente"
NAME="dateEffetActeLienParente" value="" required >
</td>
<td align='center' style='border: 2px solid #939597;'>
<select class="form-select text-center " style="font-size:8pt; border: 2px solid #939597;" id="codeLienParenteActeLienParente" name="codeLienParenteActeLienParente"
onChange="" required >
<?= liste_options($lienParente,'',true) ?>
</select>
</td>
<td style='border: 2px solid #939597;'>
<INPUT style='font-size:8pt; border: 2px solid #939597;' class="form-control text-center" TYPE="text" value="0" onkeyup="controle_numerique(this);"
onblur="formatMonetaire(this);" id="forfaitPlafondActeLienParente" name="forfaitPlafondActeLienParente" onChange="">
</td>
<td align='center' style=''>
<select class="form-select text-center" style="font-size:8pt; border: 2px solid #939597;" id="codePeriodicitePlafondActeLienParente" name="codePeriodicitePlafondActeLienParente"
onChange="">
<?= liste_options($periodicite,'',true) ?>
</select>
</td>
<td align='center' style='font-size:8pt; border: 2px solid #939597;'>
<INPUT style='font-size:8pt; border: 2px solid #939597;' class="form-control text-center" TYPE="text" value="0" onkeyup="controle_numerique(this);"
id="nbreTransactionActeLienParente" name="nbreTransactionActeLienParente" onChange="">
</td>
<td align='center' style='font-size:8pt; border: 2px solid #939597;'>
<select class="form-select text-center" style="font-size:8pt; border: 2px solid #939597;" id="codePeriodiciteActeLienParente" name="codePeriodiciteActeLienParente"
onChange="">
<?= liste_options($periodiciteFiltre,'',true) ?>
</select>
</td>
<td style='text-align:center; border: 2px solid #939597; width:9%;'>
<select class="form-select" style="font-size:7pt; border: 2px solid #939597;" id="codeTypeRemboursementActeLienParente" name="codeTypeRemboursementActeLienParente"
onChange="" required >
<?= liste_options($typeremboursement,"RDTP",true) ?>
</select>
</td>
<td align='center' style='border: 2px solid #939597;'>
<INPUT style='font-size:8pt; border: 2px solid #939597;' class="form-control text-center" TYPE="text" value="0" onkeyup="controle_numerique(this);"
id="delaiCarenceActeLienParente" name="delaiCarenceActeLienParente" onChange="">
</td>
<td align='center' style='border: 2px solid #939597;'>
<INPUT style='font-size:8pt; border: 2px solid #939597;' class="form-control text-center" TYPE="text" value="<?= $tmBareme ?>" onkeyup="controle_numerique(this);"
id="ticketModerateurActeLienParente" name="ticketModerateurActeLienParente" onChange="">
</td>
<td style='border: 2px solid #939597;'>
<INPUT style='font-size:8pt; border: 2px solid #939597;' class="form-control text-center" TYPE="text" value="0" onkeyup="controle_numerique(this);"
onblur="formatMonetaire(this);" id="forfaitTmActeLienParente" name="forfaitTmActeLienParente" onChange="">
</td>
<td align='center' style="border: 2px solid #939597;">
<INPUT style='font-size:8pt; border: 2px solid #939597;' class="form-control text-center" TYPE="number" value="0" onkeyup="controle_numerique(this);"
id="ageMinimumActeLienParente" name="ageMinimumActeLienParente" onChange="">
</td>
<td align='center' style='border: 2px solid #939597;'>
<INPUT style='font-size:8pt; border: 2px solid #939597;' class="form-control text-center" TYPE="number" value="0" onkeyup="controle_numerique(this);"
id="ageMaximumActeLienParente" name="ageMaximumActeLienParente" onChange="">
</td>
<td align='center' width="5%" style='border: 2px solid #939597;'>
<select class="form-select text-center" style="font-size:8pt; border: 2px solid #939597;" id="actifActeLienParente" name="actifActeLienParente"
onChange="" required >
<?= liste_options($actifFamilleActe,"") ?>
</select>
</td>
</tr>
<tr>
<td colspan="15">
<input style='font-size:12pt;' id="btn_actelienparente" name="btn_actelienparente" onclick="javascript:validiteDateEffetActeBaremeLienParente();"
class = "form-control btn btn-primary" type="button" value="<?= _("Insérer une nouvelle ligne dans BAREME ACTE LIEN PARENTE") ?>">
</td>
</tr>
</tbody>
</table>
<div id="div_actes_lienparente">
</div>
</div>
<hr style="border: 10px double blue; border-radius: 5px; background-color: blue;" />
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" id="btn-fermer-modal" class="btn btn-default" data-bs-dismiss="modal" onclick="detail_baremepriseencharge(<?= $_SESSION['idBaremePriseEnCharge']; ?>);">Fermer</button>
</div>
</div>
</div>
<div class="row g-2 mb-3 border-top pt-3">
<div class="col-md-3">
<label class="lbl-erp"><?= _("Plafond par Individu") ?></label>
<input type="text" class="form-control text-end" id="plafondBeneficiaireFamilleActe" name="plafondBeneficiaireFamilleActe" onblur="formatMonetaire(this);">
</div>
<div class="col-md-2">
<label class="lbl-erp"><?= _("Périodicité Indiv.") ?></label>
<select class="form-select" id="periodicitePlafondBeneficiaireFamilleActe" name="periodicitePlafondBeneficiaireFamilleActe"><?= liste_options($periodicite,"",true) ?></select>
</div>
<div class="col-md-2">
<label class="lbl-erp"><?= _("Part Patient (%)") ?></label>
<input type="number" class="form-control text-center text-danger fw-bold" id="ticketModerateurFamilleActe" name="ticketModerateurFamilleActe" value="0">
</div>
<div class="col-md-2">
<label class="lbl-erp"><?= _("Forfait TM") ?></label>
<input type="text" class="form-control text-end" id="forfaitTmGarantie" name="forfaitTmGarantie" onblur="formatMonetaire(this);" value="0">
</div>
<div class="col-md-3">
<label class="lbl-erp"><?= _("Carence (Mois)") ?></label>
<input type="number" class="form-control" id="delaiCarenceFamilleActe" name="delaiCarenceFamilleActe" value="0">
</div>
</div>
<div class="row g-2 align-items-end border-top pt-3">
<div class="col-md-3">
<label class="lbl-erp"><?= _("Âge Minimum") ?></label>
<input type="number" class="form-control" id="ageMinimumFamilleActe" name="ageMinimumFamilleActe" value="0">
</div>
<div class="col-md-3">
<label class="lbl-erp"><?= _("Âge Maximum") ?></label>
<input type="number" class="form-control" id="ageMaximumFamilleActe" name="ageMaximumFamilleActe" value="200">
</div>
<div class="col-md-3">
<label class="lbl-erp"><?= _("Statut Règle") ?></label>
<select class="form-select fw-bold" id="actifFamilleActe" name="actifFamilleActe"><?= liste_options($actifFamilleActe,"1", true) ?></select>
</div>
<div class="col-md-3">
<button type="button" class="btn btn-dark w-100 fw-bold py-2 shadow-sm" id="btn_familleacte" onclick="ajouter_garantie_college();"><i class="fas fa-save me-2"></i><?= _("Enregistrer") ?></button>
</div>
</div>
</div>
<div id="div_liste_garantie_college"></div>
</div>
</div>
<div class="card border-0 shadow-sm mb-4 rounded-3">
<div class="card-header bg-white py-3 cursor-pointer d-flex justify-content-between align-items-center" onclick="afficherMasquerGarantiesBaremeLienParente();">
<span class="fw-bold text-dark small text-uppercase">2. <?= _("Spécificités par Profil (Lien Parenté)") ?> <span id="garantiesbaremepriseenchargelienparente" class="ms-2 badge bg-light text-primary border fw-normal"></span></span>
<i id="span_garantie_lienparente" class="fas fa-chevron-down text-muted"></i>
</div>
<input type="hidden" id="masquerGarantieLienParente" value="1">
<div id="div_garanties_lienparente_masquer" class="card-body border-top bg-white" style="display:none;">
<div class="p-4 mb-3 rounded-3 bg-light border-dashed">
<div class="row g-2 mb-3">
<div class="col-md-2">
<label class="lbl-erp required"><?= _("Date Effet") ?></label>
<input type="text" class="form-control datepicker text-center border-primary" id="dateEffetFamilleActeLienParente" name="dateEffetFamilleActeLienParente">
</div>
<div class="col-md-3">
<label class="lbl-erp"><?= _("Profil / Lien Parenté") ?></label>
<select class="form-select fw-bold border-secondary" id="codeLienParente" name="codeLienParente"><?= liste_options($liens, "", true) ?></select>
</div>
<div class="col-md-3">
<label class="lbl-erp"><?= _("Plafond Profil") ?></label>
<input type="text" class="form-control text-end fw-bold" id="plafondGarantieLienParente" name="plafondGarantieLienParente" onblur="formatMonetaire(this);">
</div>
<div class="col-md-2">
<label class="lbl-erp"><?= _("Périodicité") ?></label>
<select class="form-select" id="periodicitePlafondGarantieLienParente" name="periodicitePlafondGarantieLienParente"><?= liste_options($periodicite,"",true) ?></select>
</div>
<div class="col-md-2">
<label class="lbl-erp"><?= _("Part Patient (%)") ?></label>
<input type="number" class="form-control text-center" id="ticketModerateurGarantieLienParente" name="ticketModerateurGarantieLienParente" value="0">
</div>
</div>
<div class="row g-2 align-items-end border-top pt-3">
<div class="col-md-2">
<label class="lbl-erp"><?= _("Nombre Actes") ?></label>
<input type="number" class="form-control" id="nombreActesGarantieLienParente" name="nombreActesGarantieLienParente" value="0">
</div>
<div class="col-md-2">
<label class="lbl-erp"><?= _("Période Nbre") ?></label>
<select class="form-select" id="periodiciteNombreActesGarantieLienParente" name="periodiciteNombreActesGarantieLienParente"><?= liste_options($periodicite,"",true) ?></select>
</div>
<div class="col-md-2">
<label class="lbl-erp"><?= _("Forfait TM") ?></label>
<input type="text" class="form-control text-end" id="forfaitTmGarantieLienParente" name="forfaitTmGarantieLienParente" onblur="formatMonetaire(this);" value="0">
</div>
<div class="col-md-2">
<label class="lbl-erp"><?= _("Âge Min") ?></label>
<input type="number" class="form-control" id="ageMinimumFamilleActeLienParente" name="ageMinimumFamilleActeLienParente" value="0">
</div>
<div class="col-md-2">
<label class="lbl-erp"><?= _("Âge Max") ?></label>
<input type="number" class="form-control" id="ageMaximumFamilleActeLienParente" name="ageMaximumFamilleActeLienParente" value="200">
</div>
<div class="col-md-2">
<button type="button" class="btn btn-dark w-100 fw-bold shadow-sm" id="btn_familleacteLienParente" onclick="ajouter_garantie_lienparente_college();"><?= _("Enregistrer") ?></button>
</div>
</div>
</div>
<div id="div_liste_garantie_lienparente_college"></div>
</div>
</div>
<div class="card border-0 shadow-sm mb-4 rounded-3">
<div class="card-header bg-white py-3 cursor-pointer d-flex justify-content-between align-items-center" onclick="afficherMasquerActeBareme();">
<span class="fw-bold text-dark small text-uppercase">3. <?= _("Exceptions par Acte Médical") ?> <span id="actesbaremepriseencharge" class="ms-2 badge bg-light text-primary border fw-normal"></span></span>
<i id="span_acte" class="fas fa-chevron-down text-muted"></i>
</div>
<input type="hidden" id="masquerActe" value="1">
<div id="div_acte_masquer" class="card-body border-top bg-white" style="display:none;">
<div id="div_maxdateeffetactebareme"></div>
<div class="p-4 mb-3 rounded-3 bg-light border-dashed">
<div class="row g-2 mb-3">
<div class="col-12">
<label class="lbl-erp required"><?= _("Sélection de l'Acte") ?></label>
<?php if($codeGarantie != "HOS"): ?>
<select class="form-select selectpicker" data-live-search="true" id="codeActe" name="codeActe"><?= liste_options($actesadd,"",false) ?></select>
<?php else: ?>
<div class="input-group"><span class="input-group-text bg-white border-0"><i class="fas fa-search"></i></span><input id="searchInputActe" name="searchInputActe" class="form-control border-0" type="text" placeholder="<?= _("Rechercher un acte...") ?>" onkeyup="affichelisteactes(this.value, 'acte');"></div><input type="hidden" id="codeActe">
<?php endif; ?>
</div>
</div>
<div class="row g-2 align-items-end border-top pt-3">
<div class="col-md-2"><label class="lbl-erp"><?= _("Plafond Acte") ?></label><input type="text" class="form-control text-end fw-bold" id="plafondActe" name="plafondActe" onblur="formatMonetaire(this);"></div>
<div class="col-md-2"><label class="lbl-erp"><?= _("Part Patient %") ?></label><input type="number" class="form-control text-center" id="ticketModerateurActe" name="ticketModerateurActe" value="0"></div>
<div class="col-md-2"><label class="lbl-erp"><?= _("Forfait TM") ?></label><input type="text" class="form-control text-end" id="forfaitTmActe" name="forfaitTmActe" onblur="formatMonetaire(this);" value="0"></div>
<div class="col-md-2"><label class="lbl-erp"><?= _("Âge Min") ?></label><input type="number" class="form-control" id="ageMinimumActe" name="ageMinimumActe" value="0"></div>
<div class="col-md-2"><label class="lbl-erp"><?= _("Âge Max") ?></label><input type="number" class="form-control" id="ageMaximumActe" name="ageMaximumActe" value="200"></div>
<div class="col-md-2"><button type="button" class="btn btn-dark w-100 fw-bold shadow-sm" id="btn_actebareme" onclick="ajouter_acte_college();"><?= _("Valider") ?></button></div>
</div>
</div>
<div id="div_liste_actebareme_college"></div>
</div>
</div>
<div class="card border-0 shadow-sm mb-4 rounded-3 border-start border-danger border-4">
<div class="card-header bg-white py-3 cursor-pointer d-flex justify-content-between align-items-center" onclick="afficherMasquerActeBaremeLienParente();">
<span class="fw-bold text-danger small text-uppercase">4. <?= _("Précisions Acte & Profil (Priorité Max)") ?> <span id="actesbaremepriseenchargelienparente" class="ms-2 badge bg-danger-light text-danger border border-danger-subtle fw-normal"></span></span>
<i id="span_acte_lienparente" class="fas fa-chevron-down text-muted"></i>
</div>
<input type="hidden" id="masquerActeLienParente" value="1">
<div id="div_acte_lienparente_masquer" class="card-body border-top bg-white" style="display:none;">
<div id="div_maxdateeffetactebaremelienparente"></div>
<div class="p-4 mb-3 rounded-3 bg-light border-dashed">
<div class="row g-2 mb-3">
<div class="col-md-8"><label class="lbl-erp"><?= _("Acte") ?></label><select class="form-select selectpicker" data-live-search="true" id="codeActeLienParente" name="codeActeLienParente"><?= liste_options($actesadd,"",false) ?></select></div>
<div class="col-md-4"><label class="lbl-erp"><?= _("Profil / Bénéficiaire") ?></label><select class="form-select fw-bold" id="codeLienParenteActe" name="codeLienParenteActe"><?= liste_options($liens, "", true) ?></select></div>
</div>
<div class="row g-2 align-items-end border-top pt-3">
<div class="col-md-2"><label class="lbl-erp"><?= _("Plafond") ?></label><input type="text" class="form-control text-end fw-bold" id="plafondActeLienParente" name="plafondActeLienParente" onblur="formatMonetaire(this);"></div>
<div class="col-md-2"><label class="lbl-erp"><?= _("Part Patient %") ?></label><input type="number" class="form-control text-center" id="ticketModerateurActeLienParente" name="ticketModerateurActeLienParente" value="0"></div>
<div class="col-md-2"><label class="lbl-erp"><?= _("Forfait TM") ?></label><input type="text" class="form-control text-end" id="forfaitTmActeLienParente" name="forfaitTmActeLienParente" onblur="formatMonetaire(this);" value="0"></div>
<div class="col-md-2"><label class="lbl-erp"><?= _("Âge Min") ?></label><input type="number" class="form-control" id="ageMinimumActeLienParente" name="ageMinimumActeLienParente" value="0"></div>
<div class="col-md-2"><label class="lbl-erp"><?= _("Âge Max") ?></label><input type="number" class="form-control" id="ageMaximumActeLienParente" name="ageMaximumActeLienParente" value="200"></div>
<div class="col-md-2"><button type="button" class="btn btn-danger w-100 fw-bold shadow-sm" id="btn_actebaremelienparente" onclick="ajouter_actebaremelienparente_college();"><?= _("Appliquer") ?></button></div>
</div>
</div>
<div id="div_liste_actebaremelienparente_college"></div>
</div>
</div>
</div>
</div>
<div class="modal-footer bg-light border-0 px-4 py-3">
<button type="button" class="btn btn-secondary rounded-pill px-4" data-bs-dismiss="modal" onclick="detail_baremepriseencharge(<?= $idBareme ?>);"><?= _("Fermer le paramétrage") ?></button>
</div>
</div>
</div>
<style>
.bg-body-tertiary { background-color: #f8f9fa !important; }
.lbl-erp { font-size: 7.5pt; font-weight: 800; color: #4b5563; text-transform: uppercase; margin-bottom: 3px; display: block; }
.required::after { content: " *"; color: #ef4444; }
.form-control, .form-select { font-size: 9pt !important; font-weight: 600 !important; border-radius: 6px !important; border: 1px solid #d1d5db !important; }
.border-dashed { border: 1px dashed #9ca3af !important; }
.cursor-pointer { cursor: pointer; }
.bg-danger-light { background-color: rgba(220, 53, 69, 0.05); }
/* SelectPicker SaaS Adaptation */
.bootstrap-select .btn { background-color: #fff !important; border: 1px solid #d1d5db !important; height: 38px !important; font-weight: 600 !important; font-size: 9pt !important; }
</style>

View File

@ -1,70 +1,58 @@
<?php
$this->titre = "INTER SANTE - Barème de prise en charge initial";
$nbreTotal = count($baremes);
if($nbreTotal < 10){
$nbreTotal = '0'.$nbreTotal;
}else{
$nbreTotal = format_N($nbreTotal);
}
$nbreTotal = count($baremes);
$displayTotal = ($nbreTotal < 10) ? '0'.$nbreTotal : format_N($nbreTotal);
?>
<table style="margin: auto" class="table-responsive">
<tbody>
<td><input class="form-control" style="text-align: center; font-size:10pt;" type="text" id="nbreTotal" name="nbreTotal" value="Total enregistré : <?= $nbreTotal; ?>" readonly> </td>
</tbody>
</table>
<div class="d-flex justify-content-center mb-3">
<span class="badge bg-primary-ghost text-primary px-4 py-2 rounded-pill border shadow-sm fs-6">
<i class="fas fa-list-ol me-2"></i><?= _("Total enregistré :") ?> <span class="fw-bold"><?= $displayTotal; ?></span>
</span>
</div>
<input type="hidden" id="total" value="<?= $nbreTotal; ?>">
<table class="table table-striped table-bordered table-hover table-condensed table-responsive tabliste compact" style="font-size:10pt;">
<thead>
<tr>
<th style="text-align:center" > <?= _("ID") ?> </th>
<th style="text-align:center" > <?= _("Libellé") ?> </th>
<th style="text-align:center" > <?= _("Garant") ?> </th>
<th style="text-align:center" > <?= _("Taux") ?> </th>
<th style="text-align:center" > <?= _("Territoire") ?> </th>
<th style="text-align:center"> <?= _("Modifier") ?> </th>
<th style="text-align:center"> <?= _("Configurer") ?> </th>
</tr>
</thead>
<tbody>
<?php
$i = 0;
foreach ($baremes as $v):
$idBaremes = $this->nettoyer($v['id']);
$observation = $this->nettoyer($v['observationBareme']);
if(!empty($observation)){
$libelle = $observation;
}else{
$libelle = $this->nettoyer($v['libelle']);
}
$archiver = $this->nettoyer($v['archiver']);
$nbBaremeCollege = $this->nettoyer($v['nbBaremeCollege']);
$dansCollege = ($nbBaremeCollege=="0") ? "Non" : "Oui";
$territoire = $this->nettoyer($v['territoire']);
if (est_anglophone()){
$territoire = $this->nettoyer($v['territoireEng']);
}
?>
<tr valign="top">
<td align="center"> <?= $idBaremes ?> </td>
<td> <?= $libelle ?> </td>
<td > <?= $this->nettoyer($v['garant']) ?> </td>
<td align="center"> <?= $this->nettoyer($v['tauxRemboursement']) ?> </td>
<td align="center"> <?= $territoire ?> </td>
<td align="center" width="10%"> <input class = "form-control btn btn-primary" style="font-size:10pt;" type="button" value="<?= _("Modifier") ?>" onclick="javascript:modifier_baremepriseencharge(<?= $idBaremes ?>);"> </td>
<td align="center" width="10%"> <input class = "form-control btn btn-success" style="font-size:10pt;" type="button" value="<?= _("Configurer") ?>" onclick="javascript:detail_baremepriseencharge(<?= $idBaremes ?>);"> </td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<div class="card border-0 shadow-sm overflow-hidden">
<div class="table-responsive">
<table class="table table-hover align-middle mb-0" style="font-size: 9.5pt;">
<thead class="bg-light border-bottom">
<tr>
<th class="text-center ps-3 py-3" width="80px">ID</th>
<th><?= _("Libellé du Barème") ?></th>
<th><?= _("Garant") ?></th>
<th class="text-center"><?= _("Taux (%)") ?></th>
<th class="text-center"><?= _("Territoire") ?></th>
<th class="text-center py-3" width="220px"><?= _("Actions") ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($baremes as $v):
$id = $this->nettoyer($v['id']);
$libelle = !empty($v['observationBareme']) ? $v['observationBareme'] : $v['libelle'];
$territoire = est_anglophone() ? $v['territoireEng'] : $v['territoire'];
?>
<tr>
<td class="text-center"><span class="badge bg-light text-muted border"><?= $id ?></span></td>
<td class="fw-bold text-dark"><?= $this->nettoyer($libelle) ?></td>
<td><span class="small text-muted"><?= $this->nettoyer($v['garant']) ?></span></td>
<td class="text-center">
<span class="badge bg-success-light text-success fs-6 rounded-pill">
<?= $this->nettoyer($v['tauxRemboursement']) ?>
</span>
</td>
<td class="text-center">
<span class="small"><i class="fas fa-globe-africa me-1 text-muted"></i><?= $this->nettoyer($territoire) ?></span>
</td>
<td class="text-center">
<div class="btn-group gap-2">
<button class="btn btn-sm btn-outline-primary rounded-pill px-3 fw-bold" onclick="modifier_baremepriseencharge(<?= $id ?>);">
<i class="fas fa-edit me-1"></i> <?= _("Modifier") ?>
</button>
<button class="btn btn-sm btn-success rounded-pill px-3 fw-bold" onclick="detail_baremepriseencharge(<?= $id ?>);">
<i class="fas fa-cogs me-1"></i> <?= _("Configurer") ?>
</button>
</div>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>

View File

@ -1,59 +1,74 @@
<?php
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content border-0 shadow-lg">
<div class="modal-header bg-primary text-white border-0">
<h5 class="modal-title fw-bold text-uppercase small">
<i class="fas fa-copy me-2"></i><?= _("Dupliquer le réseau de soins") ?>
</h5>
<button type="button" class="btn p-2 border-0 shadow-none d-flex align-items-center justify-content-center"
data-bs-dismiss="modal" aria-label="Close"
style="background: transparent; transition: transform 0.2s ease;">
<i class="fas fa-times text-white fs-4"></i>
</button>
</div>
<div class="modal-body p-4">
<div class="card border-0 bg-light mb-4">
<div class="card-body p-3">
<h6 class="text-success fw-bold text-uppercase small mb-3 border-bottom pb-2">
<i class="fas fa-history me-2"></i><?= _("Réseau source (À dupliquer)") ?>
</h6>
<div class="row g-2">
<div class="col-md-4">
<label class="form-label smaller text-muted fw-bold">Code</label>
<input type="text" id="codeold" name="codeold"
value="<?= $this->nettoyer($reseausoins['codeReseau']) ?>"
class="form-control form-control-sm border-0 bg-white fw-bold" readonly>
</div>
<div class="col-md-8">
<label class="form-label smaller text-muted fw-bold"><?= _("Libellé actuel") ?></label>
<input type="text" id="libelleold" name="libelleold"
value="<?= $this->nettoyer($reseausoins['libelle']) ?>"
class="form-control form-control-sm border-0 bg-white fw-bold" readonly>
</div>
</div>
</div>
</div>
?>
<div class="card border-primary-ghost shadow-sm">
<div class="card-body p-3">
<h6 class="text-primary fw-bold text-uppercase small mb-3 border-bottom pb-2">
<i class="fas fa-plus-circle me-2"></i><?= _("Nouveau réseau (Destination)") ?>
</h6>
<div class="mb-3">
<label class="form-label small fw-bold text-dark required"><?= _("Nom du nouveau réseau") ?></label>
<div class="input-group">
<span class="input-group-text bg-white border-2 border-end-0 text-primary">
<i class="fas fa-edit"></i>
</span>
<input type="text" id="libelle" name="libelle"
class="form-control border-2 border-start-0 shadow-none fw-bold majuscule"
placeholder="<?= _("Saisir le libellé...") ?>" required autofocus>
</div>
</div>
<button type="button" id="btn-dupliquer-reseau"
class="btn btn-primary w-100 fw-bold py-2 shadow-sm rounded-pill mt-2"
onclick="duplicationreseausoins();">
<i class="fas fa-check-circle me-1"></i> <?= _("Valider la duplication") ?>
</button>
</div>
</div>
</div>
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-bs-dismiss="modal">&times;</button>
<legend class="modal-title" id="user" style="text-align:center;"> <?= _("Dupliquer le réseau de soins") ?></legend>
</div>
<div class="modal-body">
<table width="100%" cellpadding="0" cellspacing="0" class="table table-responsive table-condensed">
<tbody>
<tr>
<td align="center" colspan="4" style="font-size:12pt; background-color: green; color: white; font-weight: bold;">
<?= _("RESEAU DE SOINS A DUPLIQUER") ?>
</td>
</tr>
<tr>
<td width="6%" > Code </td>
<td width="15%" ><INPUT font style="text-transform: uppercase;" value="<?= $this->nettoyer($reseausoins['codeReseau']) ?>" class="form-control" TYPE="text" id="codeold" NAME="codeold" readonly ></td>
<td width="12%" align="center" > <?= _("Libellé") ?> </td>
<td ><INPUT style="font-size:10pt;" class="form-control majuscule" TYPE="text" id="libelleold" NAME="libelleold" value="<?= $this->nettoyer($reseausoins['libelle']) ?>" readonly></td>
</tr>
</tbody>
</table>
<table width="100%" cellpadding="0" cellspacing="0" class="table table-responsive table-condensed">
<tbody>
<tr>
<td align="center" colspan="4" style="font-size:12pt; background-color: green; color: white; font-weight: bold;">
<?= _("NOUVEAU RESEAU DE SOINS") ?>
</td>
</tr>
<tr>
<td width="12%" class="required"> <?= _("Libellé") ?> </td>
<td ><INPUT style="font-size:10pt;" class="form-control majuscule" TYPE="text" id="libelle" NAME="libelle" required AUTOFOCUS></td>
</tr>
<tr>
<td colspan="4" height="20px"> </td>
</tr>
<tr>
<td colspan="4">
<input style='text-align:center; font-size:10pt;' type="button" name="btn-dupliquer-reseau" id="btn-dupliquer-reseau" class="btn btn-primary form-control" value="<?= _("Valider")?>"
onclick="JAVASCRIPT:duplicationreseausoins();">
</td>
</tr>
</tbody>
</table>
</div>
<div class="modal-footer">
<button type="button" id="" class="btn btn-default" data-bs-dismiss="modal"><?= _("Fermer")?></button>
</div>
</div>
<div class="modal-footer border-0 bg-light">
<button type="button" class="btn btn-link text-muted fw-bold text-decoration-none" data-bs-dismiss="modal">
<?= _("Annuler") ?>
</button>
</div>
</div>
</div>
<style>
.border-primary-ghost { border: 2px dashed rgba(33, 46, 83, 0.2); }
.smaller { font-size: 0.75rem; }
</style>

View File

@ -1,22 +1,8 @@
<table >
<tbody>
<tr>
<td width="90%"></td>
<?php if (est_anglophone()) : ?>
<td width="5%">
<button id="btn-fermer" class="form-control btn btn-primary" onclick="JAVASCRIPT:fermeFormulaire();">Close</button>
</td>
<td width="5%">
<button id="btn-action" class="form-control btn btn-primary" onclick="JAVASCRIPT:formAjoutTableRef();">Add</button>
</td>
<?php else: ?>
<td width="5%">
<button id="btn-fermer" class="form-control btn btn-primary" onclick="JAVASCRIPT:fermeFormulaire();">Fermer</button>
</td>
<td width="5%">
<button id="btn-action" class="form-control btn btn-primary" onclick="JAVASCRIPT:formAjoutTableRef();">Ajouter</button>
</td>
<?php endif; ?>
</tr>
</tbody>
</table>
<div class="d-flex justify-content-end gap-2 mb-1">
<button type="button" id="btn-fermer" class="btn btn-light border fw-bold shadow-sm" onclick="fermeFormulaire();" style="display:none;">
<i class="fas fa-times me-1"></i> <?= _("Fermer") ?>
</button>
<button type="button" id="btn-action" class="btn btn-success fw-bold shadow-sm px-4" onclick="formAjoutTableRef();">
<i class="fas fa-plus-circle me-1"></i> <?= est_anglophone() ? "Add" : "Ajouter" ?>
</button>
</div>

View File

@ -1,4 +1,3 @@
<SELECT style="font-size:10pt; height:30px;" class="form-control selectpicker" data-live-search="true" id="codeProduit" NAME="codeProduit" required AUTOCOMPLETE="OFF" autofocus
onChange="javascript:afficher_primes_categorie_lien_parente();libelleProduitBareme(this);">
<?php liste_options($produits,"",false); ?>
</SELECT>
<select class="selectpicker form-control border-2" data-live-search="true" id="codeProduit" name="codeProduit" required onchange="libelleProduitBareme(this); if(typeof afficher_primes_categorie_lien_parente === 'function') afficher_primes_categorie_lien_parente();">
<?php liste_options($produits,"",false); ?>
</select>

View File

@ -1,8 +1,14 @@
<?php
$codeProduit = isset($_SESSION['codeProduit']) ? $_SESSION['codeProduit']:"";
// Récupération sécurisée du produit en session si existant
$codeProduit = isset($_SESSION['codeProduit']) ? $_SESSION['codeProduit'] : "";
?>
<SELECT style="font-size:10pt; height:30px;" class="form-control selectpicker" data-live-search="true" id="codeProduit" NAME="codeProduit" required autofocus onChange="javascript:afficher_bareme_produit();">
<?php liste_options($produits, $codeProduit); ?>
</SELECT>
<select class="selectpicker form-control border-2 shadow-none"
id="codeProduit"
name="codeProduit"
data-live-search="true"
data-container="body"
required
onchange="afficher_bareme_produit();">
<?php liste_options($produits, $codeProduit); ?>
</select>

View File

@ -1,3 +1,8 @@
<SELECT style="font-size:10pt; height:30px;" class="form-control selectpicker" data-live-search="true" id="codeProduit" NAME="codeProduit" required autofocus onChange="javascript:afficher_reseau_categorie();">
<?php liste_options($produits,"",false); ?>
</SELECT>
<select class="selectpicker form-control border-2"
data-live-search="true"
id="codeProduit"
name="codeProduit"
required
onchange="afficher_reseau_categorie();">
<?php liste_options($produits, "", false); ?>
</select>

View File

@ -1,5 +1,3 @@
<div id="div_souscripteur">
<select name="numeroClient" id="numeroClient" class="form-select" onchange="libelleClientBareme(this);">
<?= liste_options($clients,'',false) ?>
</select>
</div>
<select name="numeroClient" id="numeroClient" class="selectpicker form-control border-2" data-live-search="true" onchange="libelleClientBareme(this);">
<?= liste_options($clients,'',false) ?>
</select>

View File

@ -1,3 +1,3 @@
<select style="font-size:15pt;" name="listetables" id="listetables" class="form-control selectpicker" data-live-search="true" onchange="JAVASCRIPT:chargerFichiersTable();" autofocus>
<?= liste_options($autrestables,'',false) ?>
<select name="listetables" id="listetables" class="form-control" onchange="chargerFichiersTable();">
<?= liste_options($autrestables, '', false) ?>
</select>

View File

@ -1,81 +1,107 @@
<?php
$superUser = $_SESSION['superUser'];
$nbreTotal = count($produits);
if($nbreTotal < 10){
$nbreTotal = '0'.$nbreTotal;
}else{
$nbreTotal = format_N($nbreTotal);
}
$superUser = $_SESSION['superUser'];
$nbreTotal = count($produits);
$displayTotal = ($nbreTotal < 10) ? '0'.$nbreTotal : format_N($nbreTotal);
?>
<table style="margin: auto" class="table-responsive">
<tbody>
<td><input class="form-control" style="text-align: center; font-size:10pt;" type="text" id="nbreTotal" name="nbreTotal" value="Total enregistré : <?= $nbreTotal; ?>" readonly> </td>
</tbody>
</table>
<div class="animate__animated animate__fadeIn">
<div class="d-flex justify-content-end mb-3">
<span class="badge bg-white border text-primary rounded-pill px-3 py-2 shadow-xs">
<i class="fas fa-layer-group me-2"></i><?= _("Total enregistré :") ?> <span class="fw-bold"><?= $displayTotal ?></span>
</span>
</div>
<input type="hidden" id="total" value="<?= $nbreTotal; ?>">
<input type="hidden" id="total" value="<?= $displayTotal ?>">
<table class="table table-striped table-bordered table-hover table-condensed table-responsive tabliste compact" style="font-size:10pt;">
<thead>
<tr>
<th style="text-align:center" > <?= _("Code") ?> </th>
<th style="text-align:center" > <?= _("Produit") ?> </th>
<th style="text-align:center" > <?= _("Mode Calcul Prime") ?> </th>
<th style="text-align:center" > <?= _("Action") ?> </th>
<th style="text-align:center" > <?= _("Archivage") ?> </th>
<th style="text-align:center" > <?= _("Garanties") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($produits as $produit):
$idProduit = $this->nettoyer($produit['id']);
$codeModecalculPrime = $this->nettoyer($produit['codeModecalculPrime']);
$libelleProduit = $this->nettoyer($produit['libelle']);
$modeprime = $this->nettoyer($produit['modeprime']);
if (est_anglophone()){
$libelleProduit = $this->nettoyer($produit['libelleEng']);
$modeprime = $this->nettoyer($produit['modeprimeEng']);
}
$produitArchive = $this->nettoyer($produit['produitArchive']);
$dansBareme = $this->nettoyer($produit['dansBareme']);
$aGarantie = $this->nettoyer($produit['aGarantie']);
?>
<?php if($codeModecalculPrime=='TA'): ?>
<tr valign="top" style="background-color: #ffefd5;">
<?php else: ?>
<tr valign="top">
<?php endif; ?>
<td align="center" width="10%"> <?= $this->nettoyer($produit['codeProduit']) ?> </td>
<td> <?= $libelleProduit ?> </td>
<td style='text-align:center' width="20%"> <?= $modeprime ?> </td>
<?php if($produitArchive =='1'): ?>
<td width="8%"> <input class = "form-control btn btn-info" style="font-size:10pt;" type="button" value="<?= _("Consulter") ?>" onClick="javascript:consulter_produit(<?= $idProduit ?>);"> </td>
<?php if ($superUser=="1"): ?>
<td width="8%"> <input style="font-size:10pt;" class = "form-control btn btn-danger" type="button" value="<?= _("Désarchiver") ?>" onClick="javascript:de_archiver_produit('<?= $idProduit ?>', '<?= $dansBareme ?>');"></td>
<?php else : ?>
<td width="8%"> </td>
<?php endif; ?>
<?php else: ?>
<td width="8%"> <input class = "form-control btn btn-primary" style="font-size:10pt;" type="button" value="<?= _("Modifier") ?>" onClick="javascript:modifier_produit(<?= $idProduit ?>);"> </td>
<?php if($aGarantie =='1'): ?>
<td width="8%"> <input style="font-size:10pt; color: white; background-color: orange;" class = "form-control btn" type="button" value="<?= _("Archiver") ?>" onClick="javascript:archiver_produit('<?= $idProduit ?>');"></td>
<?php else : ?>
<td width="8%"> </td>
<?php endif; ?>
<?php endif; ?>
<td width="8%" align="center"> <input class = "form-control btn btn-success" style="font-size:10pt;" type="button" value="<?= _("Garanties") ?>" onClick="javascript:garanties_produit(<?= $idProduit ?>);"> </td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<div class="card border-0 shadow-sm">
<div class="card-body p-0">
<div class="table-responsive">
<table class="table table-hover align-middle mb-0 datatable-produits" style="width:100%; font-size: 9.5pt;">
<thead class="bg-light">
<tr>
<th class="py-3 ps-3" width="10%"><?= _("Code") ?></th>
<th class="py-3"><?= _("Libellé du Produit") ?></th>
<th class="py-3 text-center"><?= _("Mode Calcul Prime") ?></th>
<th class="py-3 text-center" width="200px"><?= _("Actions") ?></th>
<th class="py-3 text-center" width="120px"><?= _("Garanties") ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($produits as $produit):
$idProduit = $this->nettoyer($produit['id']);
$codeModecalculPrime = $this->nettoyer($produit['codeModecalculPrime']);
$libelleProduit = est_anglophone() ? $this->nettoyer($produit['libelleEng']) : $this->nettoyer($produit['libelle']);
$modeprime = est_anglophone() ? $this->nettoyer($produit['modeprimeEng']) : $this->nettoyer($produit['modeprime']);
$isArchive = ($this->nettoyer($produit['produitArchive']) == '1');
$dansBareme = $this->nettoyer($produit['dansBareme']);
$aGarantie = ($this->nettoyer($produit['aGarantie']) == '1');
// Style spécifique pour les types 'TA'
$rowClass = ($codeModecalculPrime == 'TA') ? 'bg-warning-ghost' : '';
?>
<tr class="<?= $rowClass ?>">
<td class="ps-3 fw-bold text-primary"><?= $this->nettoyer($produit['codeProduit']) ?></td>
<td>
<div class="fw-bold"><?= $libelleProduit ?></div>
<?php if($isArchive): ?>
<span class="badge bg-danger-light text-danger" style="font-size: 7pt;"><?= _("ARCHIVÉ") ?></span>
<?php endif; ?>
</td>
<td class="text-center">
<span class="badge bg-light text-dark border fw-normal px-2"><?= $modeprime ?></span>
</td>
<td class="text-center">
<div class="btn-group shadow-xs rounded-pill bg-white border p-1">
<?php if($isArchive): ?>
<button class="btn btn-link btn-sm text-info p-1 mx-1 action-icon" title="<?= _("Consulter") ?>" onclick="consulter_produit(<?= $idProduit ?>);">
<i class="fas fa-search"></i>
</button>
<?php if ($superUser == "1"): ?>
<button class="btn btn-link btn-sm text-success p-1 mx-1 action-icon" title="<?= _("Désarchiver") ?>" onclick="de_archiver_produit('<?= $idProduit ?>', '<?= $dansBareme ?>');">
<i class="fas fa-box-open"></i>
</button>
<?php endif; ?>
<?php else: ?>
<button class="btn btn-link btn-sm text-primary p-1 mx-1 action-icon" title="<?= _("Modifier") ?>" onclick="modifier_produit(<?= $idProduit ?>);">
<i class="fas fa-edit"></i>
</button>
<?php if($aGarantie == '1'): ?>
<button class="btn btn-link btn-sm text-warning p-1 mx-1 action-icon" title="<?= _("Archiver") ?>" onclick="archiver_produit('<?= $idProduit ?>');">
<i class="fas fa-archive"></i>
</button>
<?php endif; ?>
<?php endif; ?>
</div>
</td>
<td class="text-center">
<button class="btn btn-success btn-sm rounded-pill shadow-xs w-100" style="font-size: 8pt;" onclick="garanties_produit(<?= $idProduit ?>);">
<i class="fas fa-list-check me-1"></i> <?= _("Détails") ?>
</button>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
<style>
.bg-warning-ghost { background-color: rgba(255, 239, 213, 0.4) !important; }
.bg-danger-light { background-color: rgba(220, 53, 69, 0.1); }
.btn-link { text-decoration: none; border: none; background: transparent; transition: all 0.2s; }
.action-icon:hover { transform: scale(1.2); }
</style>
<script>
var checkDTProd = setInterval(function() {
if (typeof initSmartTable === 'function') {
initSmartTable('.datatable-produits', 'Liste_Produits_Garant', false);
clearInterval(checkDTProd);
}
}, 100);
</script>

View File

@ -1,10 +1,13 @@
<div id="div_unicite_login">
<INPUT class="sr-only" TYPE="text" id="uniciteLogin" NAME="uniciteLogin" value="<?= $uniciteLogin ?>" >
<?php if (isset($msgErreur)): ?>
<div class="alert alert-danger" style="height:30px; padding:5px;" >
<H4><?= $msgErreur ?></H4>
</div>
<?php endif; ?>
</div>
<input type="hidden" id="uniciteLogin" name="uniciteLogin" value="<?= $uniciteLogin ?>">
<?php if (isset($msgErreur) && $msgErreur != ""): ?>
<div class="animate__animated animate__shakeX border-start border-danger border-3 p-2 bg-danger-light text-danger small mb-3">
<i class="fas fa-exclamation-triangle me-2"></i> <?= $msgErreur ?>
</div>
<?php endif; ?>
</div>
<style>
.bg-danger-light { background-color: rgba(220, 53, 69, 0.08); }
</style>

View File

@ -1,51 +1,67 @@
<?php
$adminProd = $_SESSION['adminProd'];
$adminProd = $_SESSION['adminProd'];
$isAnglais = est_anglophone();
?>
<INPUT class="sr-only" TYPE="text" id="maxDateEffetBareme" name="maxDateEffetBareme" value="<?= $maxDateEffetBareme; ?>">
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:12pt;">
<thead >
<tr >
<th style='text-align:center; border: 2px solid #ddd;'> <?= _("Effet") ?> </th>
<th style='text-align:center; border: 2px solid #ddd;'> <?= _("Ticket Modérateur") ?> </th>
<th style='text-align:center; border: 2px solid #ddd;'> <?= _("Actif") ?> </th>
<th style='text-align:center; border: 2px solid #fff;'> <?= _("Suppr") ?> </th>
</tr>
</thead>
<tbody>
<tbody>
<?php foreach ($detailbareme as $v):
$idDetail = $v['id'];
$supprime = $v['supprime'];
if($this->nettoyer($v['actif'])=="1"){
$actif = "Oui";
}else{
$actif = "Non";
}
?>
<?php if($supprime=='1'): ?>
<tr valign="top" style="text-decoration: line-through red;">
<?php else: ?>
<tr valign="top">
<?php endif; ?>
<td style='text-align:center; border: 2px solid #ddd;'><?= datefr($this->nettoyer($v['dateEffet'])); ?></td>
<td style='text-align:center; border: 2px solid #ddd;'><?= $this->nettoyer($v['ticketModerateur']);?></td>
<td style='text-align:center; border: 2px solid #ddd;'><?= $actif;?></td>
<?php if($supprime=='0'): ?>
<td>
<button type="button" class="form-control btn btn-danger" onClick="javascript:supprimer_detailbareme('<?= $adminProd?>',<?= $idDetail ?>);">
<i class="fa fa-times" aria-hidden="true"></i>
</button>
</td>
<?php else: ?>
<td> </td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<input type="hidden" id="maxDateEffetBareme" name="maxDateEffetBareme" value="<?= $maxDateEffetBareme; ?>">
<div class="table-responsive animate__animated animate__fadeIn">
<table class="table table-hover align-middle mb-0" style="font-size: 9.5pt;">
<thead class="bg-light border-bottom">
<tr>
<th class="ps-3 py-3 text-center" width="25%"><?= _("Date d'Effet") ?></th>
<th class="text-center py-3" width="25%"><?= _("Part Patient (TM)") ?></th>
<th class="text-center py-3" width="25%"><?= _("État / Actif") ?></th>
<th class="text-center py-3 pe-3" width="15%"><?= _("Action") ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($detailbareme as $v):
$idDetail = $v['id'];
$supprime = (int)$v['supprime'];
$isActif = ($v['actif'] == "1");
// Style spécifique pour les lignes supprimées
$rowStyle = ($supprime === 1) ? 'style="background-color: #fff5f5; opacity: 0.6; text-decoration: line-through text-decoration-color: #dc3545;"' : '';
?>
<tr <?= $rowStyle ?>>
<td class="text-center fw-bold text-dark">
<i class="fas fa-calendar-alt me-2 text-muted small"></i><?= datefr($this->nettoyer($v['dateEffet'])); ?>
</td>
<td class="text-center">
<span class="badge bg-primary-ghost text-primary px-3 py-2 rounded-pill fw-bold fs-6">
<?= $this->nettoyer($v['ticketModerateur']); ?> %
</span>
</td>
<td class="text-center">
<?php if ($supprime === 0): ?>
<span class="badge <?= $isActif ? 'bg-success' : 'bg-light text-muted border' ?> rounded-pill px-3 py-2 fw-bold">
<i class="fas <?= $isActif ? 'fa-check-circle' : 'fa-clock' ?> me-1"></i>
<?= $isActif ? _("En vigueur") : _("Futur / Passé") ?>
</span>
<?php else: ?>
<span class="badge bg-danger-light text-danger rounded-pill px-3 py-2 fw-bold small">
<?= _("Supprimé") ?>
</span>
<?php endif; ?>
</td>
<td class="text-center pe-3">
<?php if ($supprime === 0): ?>
<button type="button" class="btn btn-sm btn-danger-light rounded-circle action-icon shadow-none"
onclick="supprimer_detailbareme('<?= $adminProd ?>', <?= $idDetail ?>);"
title="<?= _('Supprimer cette révision') ?>">
<i class="fas fa-trash-alt"></i>
</button>
<?php endif; ?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<style>
.bg-danger-light { background-color: rgba(220, 53, 69, 0.1); color: #dc3545; }
.action-icon { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; transition: all 0.2s; }
.action-icon:hover { background-color: #dc3545; color: white; transform: scale(1.1); }
</style>

View File

@ -1,46 +1,88 @@
<?php
$nbligne = count($garants);
$superUser = $_SESSION['superUser'];
$nbligne = count($garants);
$superUser = $_SESSION['superUser'] ?? "0";
?>
<div class="card border-0 shadow-sm overflow-hidden animate__animated animate__fadeIn">
<div class="card-header bg-white py-3 d-flex justify-content-between align-items-center">
<h6 class="mb-0 fw-bold text-muted text-uppercase small">
<i class="fas fa-list me-2"></i><?= _("Liste des Porteurs de Risque") ?>
</h6>
<span class="badge bg-primary-ghost text-primary rounded-pill px-3 py-2 fw-bold" id="badge-total-garants">
<?= $nbligne ?> <?= ($nbligne > 1) ? _("Lignes") : _("Ligne") ?>
</span>
</div>
<div id="div_gcs">
<table class="table table-striped table-bordered table-hover table-condensed table-responsive tabspeciale compact" style="font-size:8pt;">
<thead>
<tr>
<th style="text-align:center" width="10%" > Code </th>
<th width="50%" style="text-align:center" > <?= _("Nom") ?> </th>
<th width="30%" style="text-align:center" > <?= _("Type Garant") ?> </th>
<th width="10%" style="text-align:center" > <?= _("Nombre Police") ?> </th>
<!--
<?php if($superUser=="1"):?>
<th width="10%" style="text-align:center" > <?= _("Action") ?> </th>
<?php endif;?>
-->
</tr>
</thead>
<tbody>
<?php foreach ($garants as $gc):
$idGc = $this->nettoyer($gc['id']);
$codeGcAssureur = $this->nettoyer($gc['codeGcAssureur']);
$nbPoliceGarant = $this->nettoyer($gc['nbPoliceGarant']);
?>
<tr ondblclick="javascript:afficher_gc_assureur('<?=$idGc?>');" valign="top">
<td align="center"> <input type="button" style='font-size:10pt;' class = "form-control btn btn-primary" value="<?= $codeGcAssureur ?>" onClick="javascript:afficher_gc_assureur('<?=$idGc?>');" title="Fiche Garant"> </td>
<td align="center"> <?= $this->nettoyer($gc['libelle']) ?> </td>
<td align="center"> <?= $this->nettoyer($gc['typegc']) ?> </td>
<td align="center"> <?= $nbPoliceGarant ?> </td>
<!--
<?php if($superUser=="1"):?>
<td align="center">
<button type="button" class="form-control btn btn-danger" onclick="javascript:desactive_gc_assureur('<?=$idGc?>');" style='font-size:10pt;' > <?= _("Désactiver") ?> </button>
</td>
<?php endif;?>
-->
</tr>
<?php endforeach; ?>
</tbody>
</table>
<input class="sr-only" type="text" id="nbligne_info" name="nbligne_info" value="<?= $nbligne ?>" >
<div class="table-responsive">
<table id="tableGarants" class="table table-hover align-middle mb-0" style="font-size: 9pt;">
<thead class="bg-light">
<tr>
<th class="text-center py-3" width="12%"><?= _("Code") ?></th>
<th class="py-3" width="40%"><?= _("Nom / Raison Sociale") ?></th>
<th class="py-3" width="28%"><?= _("Type") ?></th>
<th class="text-center py-3" width="10%"><?= _("Polices") ?></th>
<?php if($superUser == "1"): ?>
<th class="text-center py-3" width="10%"><?= _("Action") ?></th>
<?php endif; ?>
</tr>
</thead>
<tbody>
<?php foreach ($garants as $gc):
$idGc = $this->nettoyer($gc['id']);
$code = $this->nettoyer($gc['codeGcAssureur']);
$libelle = $this->nettoyer($gc['libelle']);
$type = $this->nettoyer($gc['typegc']);
$nbPolice = (int)$gc['nbPoliceGarant'];
?>
<tr ondblclick="afficher_gc_assureur('<?= $idGc ?>');" style="cursor: pointer;">
<td class="text-center">
<span class="badge bg-primary px-3 py-2 rounded-pill shadow-xs"
onclick="afficher_gc_assureur('<?= $idGc ?>');"
title="<?= _("Voir la fiche") ?>" style="cursor: pointer;">
<?= $code ?>
</span>
</td>
<td class="fw-bold text-dark text-uppercase"><?= $libelle ?></td>
<td>
<span class="text-muted"><i class="fas fa-tag me-1 opacity-50"></i> <?= $type ?></span>
</td>
<td class="text-center">
<span class="badge bg-light text-dark border fw-normal px-2">
<?= $nbPolice ?>
</span>
</td>
<?php if($superUser == "1"): ?>
<td class="text-center">
<button type="button" class="btn btn-outline-danger btn-sm rounded-pill"
onclick="desactive_gc_assureur('<?= $idGc ?>');"
title="<?= _("Désactiver") ?>">
<i class="fas fa-ban"></i>
</button>
</td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
<input type="hidden" id="nbligne_info" value="<?= $nbligne ?>">
<style>
/* Table Styling Neutral Pro */
#tableGarants thead th {
border-bottom: 2px solid #f1f4f6;
color: #6c757d;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.5px;
}
#tableGarants tbody tr {
transition: background-color 0.2s ease;
}
#tableGarants tbody tr:hover {
background-color: rgba(33, 46, 83, 0.02) !important;
}
.bg-primary-ghost { background-color: rgba(33, 46, 83, 0.08) !important; }
</style>

View File

@ -1,82 +1,100 @@
<?php
$nbligne = 0;
if (est_anglophone()){
if($existeselection){
$libbouton = "Uncheck all";
}else{
$libbouton = "Check all";
}
}else{
if($existeselection){
$libbouton = "Décocher tous";
}else{
$libbouton = "Cocher tous";
}
}
$nbligne = 0;
$isAnglais = est_anglophone();
// Libellé du bouton de sélection globale
if ($isAnglais) {
$libbouton = $existeselection ? "Uncheck all" : "Check all";
} else {
$libbouton = $existeselection ? "Décocher tous" : "Cocher tous";
}
?>
<div id="div_liste_prestataire">
<input class="sr-only" type="text" id="fichier_lister" name="fichier_lister" value="Ajaxlisteprestataireparlot" >
<div id="div_nblignes_cochee" style="width:20%; margin:auto;">
<table class="table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<tr>
<td>
<input class="form-control" style="text-align: center; font-size:10pt;" type="text" id="nbcoche"
name="nbcoche" value="Lignes Cochées : <?= format_N($this->nettoyer($nbreprestataire['nbcoche'])) ?>" readonly>
</td>
</tr>
</tbody>
</table>
</div>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive tabspeciale compact" style="font-size:10pt;">
<thead>
<tr>
<th > <?= _("Nom") ?> </th>
<th style="text-align:center" width="5%" >Code</th>
<th style="text-align:center"> <?= _("Catégorie") ?> </th>
<th style="text-align:center" > Type </th>
<th style="text-align:center" > <?= _("Ville") ?> </th>
<th style="text-align:center"> <?= _("Pays") ?> </th>
<th class="text-center">
<button
type="button" id="btn-coche" class="form-control btn btn-primary"
onclick="javascript:selection_prestataire_lot();" > <?= $libbouton; ?>
</button>
</th>
</tr>
</thead>
<tbody>
<?php foreach ($prestataires as $prestataire):
$id = $this->nettoyer($prestataire['id']);
$codePrestataire = $this->nettoyer($prestataire['codePrestataire']);
$nbligne++;
?>
<tr ondblclick="javascript:afficher_prestataire_id(<?= $id ?>);" valign="top">
<td><?= $this->nettoyer($prestataire['libelle']) ?></td>
<td align="center"><?= $this->nettoyer($prestataire['codePrestataire']) ?></td>
<td align="center"><?= $this->nettoyer($prestataire['libelleCategorie']) ?></td>
<td align="center"><?= $this->nettoyer($prestataire['typeprestataire']) ?></td>
<td align="center"><?= $this->nettoyer($prestataire['localite']) ?></td>
<td align="center"><?= $this->nettoyer($prestataire['codePays']) ?></td>
<td class="text-center" width="10%">
<?php
if($this->nettoyer($prestataire['choix'] == '0')){
$check ='';
}
else{
$check = 'checked';
}
?>
<INPUT TYPE="checkbox" class="custom-control-input" style="width: 2rem;height: 2rem;" id="choix"
NAME="choix" value="<?=(($this->nettoyer($prestataire['choix'])==0)? 0 : 1);?>"
onclick="if (this.checked) this.value=1; else this.value=0;cocherDecocherUn($('#fichier_lister').val(),<?= $id; ?>);" <?= $check;?>>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<input class="sr-only" type="text" id="nbligne_info" name="nbligne_info" value="<?= $nbligne ?>" >
<div class="animate__animated animate__fadeIn">
<input type="hidden" id="fichier_lister" name="fichier_lister" value="Ajaxlisteprestataireparlot">
<div class="d-flex justify-content-center mb-3">
<div class="badge bg-warning text-dark border shadow-sm px-4 py-2 rounded-pill fs-6">
<i class="fas fa-check-square me-2"></i>
<?= _("Lignes Cochées :") ?> <span class="fw-bold" id="nbcoche_display"><?= format_N($this->nettoyer($nbreprestataire['nbcoche'])) ?></span>
<input type="hidden" id="nbcoche" name="nbcoche" value="<?= $this->nettoyer($nbreprestataire['nbcoche']) ?>">
</div>
</div>
<div class="card border-0 shadow-sm">
<div class="table-responsive">
<table class="table table-hover align-middle mb-0 tabspeciale" style="font-size: 9.5pt;">
<thead class="bg-light">
<tr>
<th class="ps-3 py-3"><?= _("Nom du Prestataire") ?></th>
<th class="text-center">Code</th>
<th class="text-center"><?= _("Catégorie") ?></th>
<th class="text-center">Type</th>
<th class="text-center"><?= _("Ville / Pays") ?></th>
<th class="text-center py-3" width="150px">
<button type="button" id="btn-coche"
class="btn btn-sm <?= $existeselection ? 'btn-danger' : 'btn-primary' ?> rounded-pill px-3 fw-bold shadow-sm"
onclick="selection_prestataire_lot();">
<i class="fas <?= $existeselection ? 'fa-times-circle' : 'fa-check-circle' ?> me-1"></i>
<?= $libbouton; ?>
</button>
</th>
</tr>
</thead>
<tbody>
<?php foreach ($prestataires as $v):
$id = $this->nettoyer($v['id']);
$check = ($v['choix'] == '1') ? 'checked' : '';
$nbligne++;
?>
<tr ondblclick="afficher_prestataire_id(<?= $id ?>);">
<td class="ps-3 fw-bold text-dark text-uppercase"><?= $this->nettoyer($v['libelle']) ?></td>
<td class="text-center"><span class="badge bg-light text-muted border"><?= $this->nettoyer($v['codePrestataire']) ?></span></td>
<td class="text-center small"><?= $this->nettoyer($v['libelleCategorie']) ?></td>
<td class="text-center">
<span class="badge bg-primary-ghost text-primary fw-normal"><?= $this->nettoyer($v['typeprestataire']) ?></span>
</td>
<td class="text-center">
<div class="fw-bold"><?= $this->nettoyer($v['localite']) ?></div>
<div class="text-muted smaller text-uppercase"><?= $this->nettoyer($v['codePays']) ?></div>
</td>
<td class="text-center">
<div class="form-check form-switch d-flex justify-content-center">
<input class="form-check-input custom-switch-lg cursor-pointer"
type="checkbox"
role="switch"
id="choix_<?= $id ?>"
value="<?= ($v['choix'] == 0 ? 0 : 1) ?>"
onclick="this.value = this.checked ? 1 : 0; cocherDecocherUn('Ajaxlisteprestataireparlot', <?= $id; ?>);"
<?= $check ?>>
</div>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
<input type="hidden" id="nbligne_info" name="nbligne_info" value="<?= $nbligne ?>">
</div>
<style>
/* Switch de grande taille pour une meilleure ergonomie */
.custom-switch-lg {
width: 3.5rem !important;
height: 1.75rem !important;
cursor: pointer;
}
.custom-switch-lg:checked {
background-color: var(--bs-primary);
border-color: var(--bs-primary);
}
.tabspeciale tbody tr:hover {
background-color: rgba(33, 46, 83, 0.03);
}
.smaller { font-size: 0.8rem; }
.bg-primary-ghost { background-color: rgba(33, 46, 83, 0.08) !important; }
</style>

View File

@ -1,32 +1,113 @@
<div id="div_messagerie">
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style='font-size:8pt;' >
<thead>
<tr>
<th style="text-align:center"> Id </th>
<th style="text-align:center"> Date </th>
<th style="text-align:center"> <?= _("Prestataire") ?> </th>
<th style="text-align:center"> <?= _("Expéditeur") ?> </th>
<th width="40%" style="text-align:center"> Message </th>
<th style="text-align:center"> <?= _("Lu") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($messagesnonlus as $messagesnonlu):
$idMessagerie = $this->nettoyer($messagesnonlu['idMessagerie']);
?>
<tr valign="top">
<td align="center"> <?= $idMessagerie ?> </td>
<td align='center'><?= dateheureLang($this->nettoyer($messagesnonlu['dateSysteme'])) ?></td>
<td> <?= $this->nettoyer($messagesnonlu['prestataire']) ?> </td>
<td> <?= $this->nettoyer($messagesnonlu['expediteur']) ?> </td>
<td> <textarea rows="4" cols="60" readonly ><?= $this->nettoyer($messagesnonlu['textMessage']) ?></textarea> </td>
<td align="center"> <input type="button" style='font-size:8pt;' class = "form-control btn btn-primary" value="Read" onClick="javascript:marquer_message_comme_lu(<?=$idMessagerie?>, this);"> </td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php
$nbligne = count($messagesnonlus);
?>
<div id="div_messagerie" class="animate__animated animate__fadeIn">
<div class="d-flex justify-content-between align-items-center mb-3 px-2">
<h6 class="mb-0 fw-bold text-muted text-uppercase small">
<i class="fas fa-envelope-open-text me-2 text-primary"></i><?= _("Nouveaux messages reçus") ?>
</h6>
<span class="badge bg-primary-ghost text-primary rounded-pill px-3 py-2 fw-bold" id="container-badge-msg">
<span id="txt-nbre-msg"><?= $nbligne ?></span>
<span id="label-nbre-msg"><?= ($nbligne > 1) ? _("Messages") : _("Message") ?></span>
</span>
</div>
<div class="table-responsive">
<table class="table table-hover align-middle mb-0" id="table-messagerie" style="font-size: 8.5pt;">
<thead class="bg-primary text-white">
<tr>
<th class="text-center py-3 border-0" width="8%">ID</th>
<th class="text-center py-3 border-0" width="18%"><?= _("Date & Heure") ?></th>
<th class="py-3 border-0" width="20%"><?= _("Origine") ?></th>
<th class="py-3 border-0" width="39%"><?= _("Message") ?></th>
<th class="text-center py-3 border-0" width="15%"><?= _("Action") ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($messagesnonlus as $msg):
$idMessagerie = $this->nettoyer($msg['idMessagerie']);
?>
<tr class="message-row" id="row-msg-<?= $idMessagerie ?>">
<td class="text-center fw-bold text-muted">#<?= $idMessagerie ?></td>
<td class="text-center">
<div class="fw-bold text-nowrap"><?= dateheureLang($this->nettoyer($msg['dateSysteme'])) ?></div>
</td>
<td>
<div class="fw-bold text-primary text-uppercase"><?= $this->nettoyer($msg['prestataire']) ?></div>
<div class="text-muted small"><i class="fas fa-user-edit me-1 text-info"></i><?= $this->nettoyer($msg['expediteur']) ?></div>
</td>
<td>
<div class="message-content-box p-2 rounded border-start border-3 border-info bg-light">
<?= nl2br($this->nettoyer($msg['textMessage'])) ?>
</div>
</td>
<td class="text-center">
<button type="button"
class="btn btn-primary btn-sm rounded-pill shadow-sm px-3 fw-bold"
onclick="marquer_message_comme_lu(<?= $idMessagerie ?>, this);">
<i class="fas fa-check-double me-1"></i> <?= _("Lu") ?>
</button>
</td>
</tr>
<?php endforeach; ?>
<tr id="no-message-row" style="<?= ($nbligne > 0) ? 'display:none;' : '' ?>">
<td colspan="5" class="text-center py-5 text-muted">
<i class="fas fa-check-circle fa-3x mb-3 opacity-25"></i>
<p class="fw-bold"><?= _("Aucun nouveau message non lu") ?></p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<style>
/* Conteneur principal */
.bg-primary-ghost {
background-color: rgba(33, 46, 83, 0.08) !important;
}
.message-row {
transition: all 0.2s ease;
}
.message-row:hover {
background-color: rgba(33, 46, 83, 0.03) !important;
}
/* Boîte de contenu du message */
.message-content-box {
font-family: 'Inter', sans-serif;
line-height: 1.5;
color: #444;
max-height: 120px;
overflow-y: auto;
word-wrap: break-word;
white-space: pre-line;
}
/* Scrollbar minimaliste */
.message-content-box::-webkit-scrollbar {
width: 4px;
}
.message-content-box::-webkit-scrollbar-thumb {
background: #ced4da;
border-radius: 10px;
}
/* Bordures épurées */
.table-hover tbody tr td {
border-bottom: 1px solid #f1f4f6;
padding: 12px 8px;
}
/* État pendant le traitement AJAX */
.is-processing {
opacity: 0.6;
pointer-events: none;
background-color: #f8f9fa !important;
}
</style>

View File

@ -1,41 +1,73 @@
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-bs-dismiss="modal">&times;</button>
<legend class="modal-title text-center"><?= _("Modifier un Type de Garant") ?></legend>
</div>
<div class="modal-body">
<form id="formModal">
<INPUT class="sr-only" TYPE="text" id = "id" name = "id" value="<?=$gc_typegarant['id']?>">
<table class="table table-responsive table-condensed">
<tbody>
<tr>
<td width="13%" >Code</td>
<td colspan="3" ><INPUT class="form-control majuscule" TYPE="text" id="codeTypeGarant" NAME="codeTypeGarant" disabled value="<?=$gc_typegarant['codeTypeGarant']?>"></td>
</tr>
<tr>
<td class="required"><?= _("Libellé") ?></td>
<td colspan="3"><INPUT class="form-control majuscule" TYPE="text" id="libelle" NAME="libelle" required AUTOCOMPLETE="OFF" value="<?=$gc_typegarant['libelle']?>" autofocus></td>
</tr>
<tr>
<td colspan="4" align="center" height="50" style="vertical-align: top; color: #551210; background-color: #ffffff; font-size: 20px;">
</td>
</tr>
<tr>
<td colspan="4">
<input type="button" name="btn-enreg-typegarant" id="btn-enreg-typegarant" class="btn btn-primary form-control" value="Enregistrer"
onclick="JAVASCRIPT:enregistrerTypeGarant();">
</td>
</tr>
</tbody>
</table>
</form>
</div>
<div class="modal-footer">
<button type="button" id="btn-fermer-modal" class="btn btn-default" data-bs-dismiss="modal">Fermer</button>
</div>
</div>
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content border-0 shadow-lg">
<div class="modal-header bg-primary text-white py-3">
<h6 class="modal-title fw-bold text-uppercase small">
<i class="fas fa-edit me-2"></i><?= _("Modifier le Type de Garant") ?>
</h6>
<button type="button" class="btn p-2 border-0 shadow-none d-flex align-items-center justify-content-center"
data-bs-dismiss="modal" aria-label="Close"
style="background: transparent; transition: transform 0.2s ease;">
<i class="fas fa-times text-white fs-4"></i>
</button>
</div>
<div class="modal-body p-4">
<form id="formModal">
<input type="hidden" id="id" name="id" value="<?= $this->nettoyer($gc_typegarant['id']) ?>">
<div class="row g-3">
<div class="col-md-4">
<label class="form-label small fw-bold text-muted text-uppercase">
<?= _("Code") ?>
</label>
<input class="form-control bg-light border-2 fw-bold shadow-none"
type="text"
id="codeTypeGarant"
name="codeTypeGarant"
value="<?= $this->nettoyer($gc_typegarant['codeTypeGarant']) ?>"
disabled>
</div>
<div class="col-md-8">
<label class="form-label small fw-bold text-muted text-uppercase">
<?= _("Libellé") ?> <span class="text-danger">*</span>
</label>
<input class="form-control majuscule shadow-none border-2"
type="text"
id="libelle"
name="libelle"
value="<?= $this->nettoyer($gc_typegarant['libelle']) ?>"
required
autocomplete="OFF"
autofocus>
</div>
</div>
<div id="msg_info_modal" class="mt-3 text-center small fw-bold" style="display:none;"></div>
</form>
</div>
<div class="modal-footer bg-light border-0 py-3">
<button type="button" class="btn btn-light rounded-pill px-4 fw-bold text-muted shadow-xs" data-bs-dismiss="modal">
<?= _("Fermer") ?>
</button>
<button type="button"
id="btn-enreg-typegarant"
class="btn btn-primary rounded-pill px-4 fw-bold shadow-sm"
onclick="enregistrerTypeGarant();">
<i class="fas fa-save me-2"></i> <?= _("Enregistrer") ?>
</button>
</div>
</div>
</div>
<style>
.majuscule { text-transform: uppercase; }
/* Style Neutral Pro : désactivation visuelle propre */
input:disabled {
cursor: not-allowed;
background-color: #f8f9fa !important;
color: #adb5bd !important;
}
</style>

View File

@ -1,40 +1,72 @@
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-bs-dismiss="modal">&times;</button>
<legend class="modal-title text-center"><?= _("Ajouter un Collège Type") ?></legend>
</div>
<div class="modal-body">
<form id="formModal">
<table class="table table-responsive table-condensed">
<tbody>
<tr>
<td width="15%" class="required"><?= _("Libellé")?></td>
<td ><INPUT class="form-control majuscule" TYPE="text" id="libelle" NAME="libelle" autofocus required AUTOCOMPLETE="OFF"></td>
</tr>
<tr>
<td width="15%" class="required"><?= _("Libellé Anglais")?></td>
<td ><INPUT class="form-control majuscule" TYPE="text" id="libelleEng" NAME="libelleEng" required AUTOCOMPLETE="OFF"></td>
</tr>
<tr>
<td colspan="2">
<input type="button" name="btn-enreg" id="btn-enreg" class="btn btn-primary form-control" value="Enregistrer"
onclick="JAVASCRIPT:ajoutercollegetype();">
</td>
</tr>
</tbody>
</table>
</form>
</div>
<div class="modal-footer">
<button type="button" id="btn-fermer-modal" class="btn btn-default" data-bs-dismiss="modal">Fermer</button>
</div>
</div>
</div>
</div>
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content border-0 shadow-lg animate__animated animate__fadeInDown">
<div class="modal-header bg-white border-bottom border-primary border-3">
<div class="d-flex align-items-center">
<div class="icon-shape bg-primary-ghost text-primary rounded-circle me-3" style="width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;">
<i class="fas fa-users-cog"></i>
</div>
<h5 class="modal-title fw-bold text-uppercase mb-0" style="font-size: 11pt;">
<?= _("Ajouter un Collège Type") ?>
</h5>
</div>
<button type="button" class="btn p-2 border-0 shadow-none d-flex align-items-center justify-content-center"
data-bs-dismiss="modal" aria-label="Close"
style="background: transparent; transition: transform 0.2s ease;">
<i class="fas fa-times text-white fs-4"></i>
</button>
</div>
<div class="modal-body p-4">
<form id="formModal">
<div class="row g-4">
<div class="col-12">
<label class="form-label small fw-bold text-muted text-uppercase mb-1">
<?= _("Libellé (Français)") ?> <span class="text-danger">*</span>
</label>
<div class="input-group">
<span class="input-group-text bg-light border-2 border-end-0"><i class="fas fa-signature text-muted"></i></span>
<input class="form-control border-2 border-start-0 shadow-none majuscule fw-bold"
type="text" id="libelle" name="libelle" required autocomplete="off">
</div>
</div>
<div class="col-12">
<label class="form-label small fw-bold text-muted text-uppercase mb-1">
<?= _("Libellé (Anglais)") ?> <span class="text-danger">*</span>
</label>
<div class="input-group">
<span class="input-group-text bg-light border-2 border-end-0"><i class="fas fa-language text-muted"></i></span>
<input class="form-control border-2 border-start-0 shadow-none majuscule fw-bold"
type="text" id="libelleEng" name="libelleEng" required autocomplete="off">
</div>
</div>
</div>
</form>
</div>
<div class="modal-footer bg-light border-0 py-3">
<button type="button" class="btn btn-light rounded-pill px-4 fw-bold text-muted border shadow-xs btn-sm" data-bs-dismiss="modal">
<i class="fas fa-times me-1"></i> <?= _("Annuler") ?>
</button>
<button type="button" id="btn-enreg" class="btn btn-primary rounded-pill px-4 fw-bold shadow-sm btn-sm" onclick="ajoutercollegetype();">
<i class="fas fa-save me-1"></i> <?= _("Enregistrer") ?>
</button>
</div>
</div>
</div>
<style>
.bg-primary-ghost { background-color: rgba(33, 46, 83, 0.08); }
.majuscule { text-transform: uppercase; }
.modal-content { border-radius: 15px; }
/* Focus sur les inputs */
.form-control:focus {
border-color: var(--bs-primary);
background-color: #fff;
}
</style>

View File

@ -1,40 +1,72 @@
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-bs-dismiss="modal">&times;</button>
<legend class="modal-title text-center"><?= _("Ajouter un Type de Garant") ?></legend>
</div>
<div class="modal-body">
<form id="formModal">
<table class="table table-responsive table-condensed">
<tbody>
<tr>
<!--
<td width="10%" align="center" class="required">Code</td>
<td width="15%" ><INPUT class="form-control majuscule" TYPE="text" id="codeTypeGarant" NAME="codeTypeGarant" autofocus required AUTOCOMPLETE="OFF" onchange="javascript:test_code(this,this.value);recherchecode(this,this.value,'typegarant');"></td>
-->
<td width="12%" class="required"><?= _("Libellé") ?></td>
<td width="88%"><INPUT class="form-control majuscule" TYPE="text" id="libelle" NAME="libelle" required AUTOCOMPLETE="OFF"></td>
</tr>
<tr>
<td colspan="4" align="center" height="50" style="vertical-align: top; color: #551210; background-color: #ffffff; font-size: 20px;">
</td>
</tr>
<tr>
<td colspan="4">
<input type="button" name="btn-enreg-typegarant" id="btn-enreg-typegarant" class="btn btn-primary form-control" value="Enregistrer"
onclick="JAVASCRIPT:enregistrerTypeGarant();">
</td>
</tr>
</tbody>
</table>
</form>
</div>
<div class="modal-footer">
<button type="button" id="btn-fermer-modal" class="btn btn-default" data-bs-dismiss="modal">Fermer</button>
</div>
</div>
</div>
</div>
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content border-0 shadow-lg">
<div class="modal-header bg-primary text-white py-3">
<h6 class="modal-title fw-bold text-uppercase small">
<i class="fas fa-plus-circle me-2"></i><?= _("Ajouter un Type de Garant") ?>
</h6>
<button type="button" class="btn p-2 border-0 shadow-none d-flex align-items-center justify-content-center"
data-bs-dismiss="modal" aria-label="Close"
style="background: transparent; transition: transform 0.2s ease;">
<i class="fas fa-times text-white fs-4"></i>
</button>
</div>
<div class="modal-body p-4">
<form id="formModal">
<div class="row g-3">
<div class="col-md-4">
<label class="form-label small fw-bold text-muted text-uppercase">
<?= _("Code") ?> <span class="text-danger">*</span>
</label>
<input class="form-control majuscule shadow-none border-2"
type="text"
id="codeTypeGarant"
name="codeTypeGarant"
placeholder="Ex: CIE"
required
autocomplete="OFF"
onchange="test_code(this,this.value); recherchecode(this,this.value,'typegarant');">
</div>
<div class="col-md-8">
<label class="form-label small fw-bold text-muted text-uppercase">
<?= _("Libellé") ?> <span class="text-danger">*</span>
</label>
<input class="form-control majuscule shadow-none border-2"
type="text"
id="libelle"
name="libelle"
placeholder="<?= _("Saisir le nom...") ?>"
required
autocomplete="OFF">
</div>
</div>
<div id="msg_info_modal" class="mt-3 text-center small fw-bold" style="display:none;"></div>
</form>
</div>
<div class="modal-footer bg-light border-0 py-3">
<button type="button" class="btn btn-light rounded-pill px-4 fw-bold text-muted shadow-xs" data-bs-dismiss="modal">
<?= _("Annuler") ?>
</button>
<button type="button"
id="btn-enreg-typegarant"
class="btn btn-primary rounded-pill px-4 fw-bold shadow-sm"
onclick="enregistrerTypeGarant();">
<i class="fas fa-save me-2"></i> <?= _("Enregistrer") ?>
</button>
</div>
</div>
</div>
<style>
/* Forcer la majuscule sur les champs identifiés */
.majuscule { text-transform: uppercase; }
/* Style Neutral Pro pour les inputs au focus */
.modal-content .form-control:focus {
border-color: var(--bs-primary);
background-color: #fff;
}
</style>

View File

@ -1,126 +1,131 @@
<?php
$superUser = $_SESSION['superUser'];
?>
<?php $superUser = $_SESSION['superUser']; ?>
<input class="sr-only" type="text" id="codeGcAssureur" name="codeGcAssureur" value="<?= $this->nettoyer($parametres['codeGcAssureur']) ?>" >
<input type="hidden" id="codeGcAssureur" name="codeGcAssureur" value="<?= $this->nettoyer($parametres['codeGcAssureur']) ?>">
<?php if($nbLigne == "0" && $superUser == "1"):?>
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<tr>
<td > <?= _("Nbre Famille Estimé") ?> </td>
<td>
<INPUT style='font-size:10pt;' class="form-control" id="nbAdherent" NAME="nbAdherent" TYPE="text" value="<?= format_N($this->nettoyer($parametres['nbAdherent'])) ?>"
onfocus="formatNumerique(this);" onkeyup="controle_numerique(this);" onblur="formatMonetaire(this);">
</td>
<td align="center"> <?= _("Nbre Bénéficiaire Estimé") ?> </td>
<td>
<INPUT style='font-size:10pt;' class="form-control" id="nbBeneficiaire" NAME="nbBeneficiaire" TYPE="text" value="<?= format_N($this->nettoyer($parametres['nbBeneficiaire'])) ?>"
onfocus="formatNumerique(this);" onkeyup="controle_numerique(this);" onblur="formatMonetaire(this);">
</td>
<td align="center"> <?= _("Forfait Honoraire") ?> </td>
<td>
<INPUT style='font-size:10pt;' class="form-control" id="forfaitHonoraire" NAME="forfaitHonoraire" TYPE="text" value="<?= format_N($this->nettoyer($parametres['forfaitHonoraire'])) ?>"
onfocus="formatNumerique(this);" onkeyup="controle_numerique(this);" onblur="formatMonetaire(this);">
</td>
</tr>
<tr>
<td ><?= _("Budget") ?></td>
<td >
<INPUT style='font-size:10pt;' class="form-control" TYPE="text" name="montantBudget" id="montantBudget" class="form-control"
value="<?= format_N($this->nettoyer($parametres['montantBudget'])) ?>"
onfocus="formatNumerique(this);" onkeyup="controle_numerique(this);" onblur="formatMonetaire(this);">
</td>
<td align="center"><?= _("Budget Enfant Supplémentaire") ?></td>
<td >
<INPUT style='font-size:10pt;' class="form-control" TYPE="text" name="montantBudgetEnfantSupl" id="montantBudgetEnfantSupl" class="form-control"
value="<?= format_N($this->nettoyer($parametres['montantBudgetEnfantSupl'])) ?>"
onfocus="formatNumerique(this);" onkeyup="controle_numerique(this);" onblur="formatMonetaire(this);">
</td>
<td align="center"><?= _("Budget Conjoint Supplémentaire") ?></td>
<td >
<INPUT style='font-size:10pt;' class="form-control" TYPE="text" name="montantBudgetConjointSupl" id="montantBudgetConjointSupl" class="form-control"
value="<?= format_N($this->nettoyer($parametres['montantBudgetConjointSupl'])) ?>"
onfocus="formatNumerique(this);" onkeyup="controle_numerique(this);" onblur="formatMonetaire(this);">
</td>
</tr>
<tr>
<td > <?= _("Taux Frais Réel (%)") ?> </td>
<td> <INPUT style='font-size:10pt;' class="form-control" id="gcTauxFraisReel" NAME="gcTauxFraisReel" TYPE="number" value="<?= $this->nettoyer($parametres['gcTauxFraisReel']) ?>" ></td>
<td align="center"> <?= _("Taux Redressement (%)") ?> </td>
<td> <INPUT style='font-size:10pt;' class="form-control" id="gcTauxRedressement" NAME="gcTauxRedressement" TYPE="number" value="<?= $this->nettoyer($parametres['gcTauxRedressement']) ?>" ></td>
<td align="center"> <?= _("Taux Commission Gérant (%)") ?> </td>
<td> <INPUT style='font-size:10pt;' class="form-control" id="gcTauxCommissionGerant" NAME="gcTauxCommissionGerant" TYPE="number" value="<?= $this->nettoyer($parametres['gcTauxCommissionGerant']) ?>" ></td>
</tr>
<tr>
<td colspan="2"> <input id="btn_enreg" name="btn_enreg" onClick="inserer_param_fact_produit();" class = "form-control btn btn-primary" type="button" value="<?= _("Enregistrer") ?>" style='font-size:10pt;' > </td>
<td colspan="2"></td>
<td colspan="2"> <input class = "form-control btn btn-warning" type="button" value="<?= _("Annuler") ?>" onClick="javascript:retour_param_fact_garant();" style='font-size:9pt;' > </td>
</tr>
</tbody>
</table>
<?php else:?>
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<tr>
<td > <?= _("Nbre Famille Estimé") ?> </td>
<td> <INPUT style='font-size:10pt;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($parametres['nbAdherent'])) ?>" disabled></td>
<td align="center"> <?= _("Nbre Bénéficiaire Estimé") ?> </td>
<td> <INPUT style='font-size:10pt;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($parametres['nbBeneficiaire'])) ?>" disabled></td>
<td align="center"> <?= _("Nbre Forfait Honoraire") ?> </td>
<td> <INPUT style='font-size:10pt;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($parametres['forfaitHonoraire'])) ?>" disabled></td>
</tr>
<tr>
<td ><?= _("Budget") ?></td>
<td >
<INPUT style='font-size:10pt;' class="form-control" TYPE="text" class="form-control"
value="<?= format_N($this->nettoyer($parametres['montantBudget'])) ?>" disabled >
</td>
<td align="center"><?= _("Budget Enfant Supplémentaire") ?></td>
<td >
<INPUT style='font-size:10pt;' class="form-control" TYPE="text" class="form-control"
value="<?= format_N($this->nettoyer($parametres['montantBudgetEnfantSupl'])) ?>" disabled >
</td>
<td align="center"><?= _("Budget Conjoint Supplémentaire") ?></td>
<td >
<INPUT style='font-size:10pt;' class="form-control" TYPE="text" class="form-control"
value="<?= format_N($this->nettoyer($parametres['montantBudgetConjointSupl'])) ?>" disabled >
</td>
</tr>
<tr>
<td > <?= _("Taux Frais Réel (%)") ?> </td>
<td> <INPUT style='font-size:10pt;' class="form-control" TYPE="number" value="<?= $this->nettoyer($parametres['gcTauxFraisReel']) ?>" disabled></td>
<td align="center"> <?= _("Taux Redressement (%)") ?> </td>
<td> <INPUT style='font-size:10pt;' class="form-control" TYPE="number" value="<?= $this->nettoyer($parametres['gcTauxRedressement']) ?>" disabled></td>
<td align="center"> <?= _("Taux Commission Gérant (%)") ?> </td>
<td> <INPUT style='font-size:10pt;' class="form-control" TYPE="number" value="<?= $this->nettoyer($parametres['gcTauxCommissionGerant']) ?>" disabled></td>
</tr>
<tr>
<td colspan="2"> <input id="btn_enreg" name="btn_enreg" onClick="modifier_param_fact_produit('<?= $superUser ?>');" class = "form-control btn btn-primary" type="button" value="<?= _("Modifier") ?>" style='font-size:10pt;' > </td>
<td colspan="2"></td>
<td colspan="2"> <input class = "form-control btn btn-warning" type="button" value="<?= _("Annuler") ?>" onClick="javascript:retour_param_fact_garant();" style='font-size:9pt;' > </td>
</tr>
</tbody>
</table>
<?php endif;?>
<div class="animate__animated animate__fadeIn">
<div class="d-flex justify-content-between align-items-center bg-white p-3 mb-1 shadow-sm rounded border-bottom">
<?php if($nbLigne == "0" && $superUser == "1"): ?>
<h6 class="mb-0 fw-bold text-uppercase small">
<i class="fas fa-sliders-h me-2"></i><?= _("Configuration spécifique du produit") ?>
</h6>
<?php else: ?>
<h6 class="mb-0 fw-bold text-uppercase small text-warning">
<i class="fas fa-sliders-h me-2"></i><?= _("Configuration spécifique du produit") ?>
</h6>
<?php endif; ?>
<div class="d-flex gap-2">
<button type="button" class="btn btn-light btn-sm rounded-pill px-3 border shadow-xs fw-bold" onClick="retour_param_fact_garant();">
<?= _("Annuler") ?>
</button>
<?php if($nbLigne == "0" && $superUser == "1"): ?>
<button type="button" class="btn btn-primary btn-sm rounded-pill px-4 shadow-sm fw-bold" onClick="inserer_param_fact_produit();">
<i class="fas fa-save me-1"></i> <?= _("Enregistrer") ?>
</button>
<?php else: ?>
<button type="button" class="btn btn-warning btn-sm rounded-pill px-4 shadow-sm fw-bold text-dark" onClick="modifier_param_fact_produit('<?= $superUser ?>');">
<i class="fas fa-edit me-1"></i> <?= _("Mettre à jour") ?>
</button>
<?php endif; ?>
</div>
</div>
<div class="row g-2">
<div class="col-md-12">
<div class="card border-0 shadow-sm">
<div class="card-body">
<div class="row g-3">
<div class="col-md-4">
<label class="form-label small fw-bold text-muted"><?= _("Nombre Famille Estimé") ?></label>
<input class="form-control border-2 <?= ($nbLigne != '0') ? 'bg-light' : '' ?>"
id="nbAdherent" name="nbAdherent" type="text"
value="<?= format_N($this->nettoyer($parametres['nbAdherent'])) ?>"
<?= ($nbLigne != '0') ? 'disabled' : 'onfocus="formatNumerique(this);" onkeyup="controle_numerique(this);" onblur="formatMonetaire(this);"' ?>>
</div>
<div class="col-md-4">
<label class="form-label small fw-bold text-muted"><?= _("Nombre Bénéficiaire Estimé") ?></label>
<input class="form-control border-2 <?= ($nbLigne != '0') ? 'bg-light' : '' ?>"
id="nbBeneficiaire" name="nbBeneficiaire" type="text"
value="<?= format_N($this->nettoyer($parametres['nbBeneficiaire'])) ?>"
<?= ($nbLigne != '0') ? 'disabled' : 'onfocus="formatNumerique(this);" onkeyup="controle_numerique(this);" onblur="formatMonetaire(this);"' ?>>
</div>
<div class="col-md-4">
<label class="form-label small fw-bold text-muted"><?= _("Forfait Honoraires") ?></label>
<input class="form-control border-2 <?= ($nbLigne != '0') ? 'bg-light' : '' ?>"
id="forfaitHonoraire" name="forfaitHonoraire" type="text"
value="<?= format_N($this->nettoyer($parametres['forfaitHonoraire'])) ?>"
<?= ($nbLigne != '0') ? 'disabled' : 'onfocus="formatNumerique(this);" onkeyup="controle_numerique(this);" onblur="formatMonetaire(this);"' ?>>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-12">
<div class="card border-0 shadow-sm border-start border-4 border-info">
<div class="card-body">
<div class="row g-3">
<div class="col-md-4">
<label class="form-label small fw-bold text-muted"><?= _("Budget Global") ?></label>
<input class="form-control border-2 fw-bold text-primary <?= ($nbLigne != '0') ? 'bg-light' : '' ?>"
name="montantBudget" id="montantBudget" type="text"
value="<?= format_N($this->nettoyer($parametres['montantBudget'])) ?>"
<?= ($nbLigne != '0') ? 'disabled' : 'onfocus="formatNumerique(this);" onkeyup="controle_numerique(this);" onblur="formatMonetaire(this);"' ?>>
</div>
<div class="col-md-4">
<label class="form-label small fw-bold text-muted"><?= _("Budget Enfant Supplémentaire") ?></label>
<input class="form-control border-2 <?= ($nbLigne != '0') ? 'bg-light' : '' ?>"
name="montantBudgetEnfantSupl" id="montantBudgetEnfantSupl" type="text"
value="<?= format_N($this->nettoyer($parametres['montantBudgetEnfantSupl'])) ?>"
<?= ($nbLigne != '0') ? 'disabled' : 'onfocus="formatNumerique(this);" onkeyup="controle_numerique(this);" onblur="formatMonetaire(this);"' ?>>
</div>
<div class="col-md-4">
<label class="form-label small fw-bold text-muted"><?= _("Budget Conjoint Supplémentaire") ?></label>
<input class="form-control border-2 <?= ($nbLigne != '0') ? 'bg-light' : '' ?>"
name="montantBudgetConjointSupl" id="montantBudgetConjointSupl" type="text"
value="<?= format_N($this->nettoyer($parametres['montantBudgetConjointSupl'])) ?>"
<?= ($nbLigne != '0') ? 'disabled' : 'onfocus="formatNumerique(this);" onkeyup="controle_numerique(this);" onblur="formatMonetaire(this);"' ?>>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-12 mb-4">
<div class="card border-0 shadow-sm">
<div class="card-body">
<div class="row g-3">
<div class="col-md-4">
<label class="form-label small fw-bold text-muted"><?= _("Taux Frais Réels (%)") ?></label>
<input class="form-control border-2 <?= ($nbLigne != '0') ? 'bg-light' : '' ?>"
id="gcTauxFraisReel" name="gcTauxFraisReel" type="number"
value="<?= $this->nettoyer($parametres['gcTauxFraisReel']) ?>"
<?= ($nbLigne != '0') ? 'disabled' : '' ?>>
</div>
<div class="col-md-4">
<label class="form-label small fw-bold text-muted"><?= _("Taux Redressement (%)") ?></label>
<input class="form-control border-2 <?= ($nbLigne != '0') ? 'bg-light' : '' ?>"
id="gcTauxRedressement" name="gcTauxRedressement" type="number"
value="<?= $this->nettoyer($gc['gcTauxRedressement']) ?>"
<?= ($nbLigne != '0') ? 'disabled' : '' ?>>
</div>
<div class="col-md-4">
<label class="form-label small fw-bold text-muted"><?= _("Taux Commission Gérant (%)") ?></label>
<input class="form-control border-2 <?= ($nbLigne != '0') ? 'bg-light' : '' ?>"
id="gcTauxCommissionGerant" name="gcTauxCommissionGerant" type="number"
value="<?= $this->nettoyer($parametres['gcTauxCommissionGerant']) ?>"
<?= ($nbLigne != '0') ? 'disabled' : '' ?>>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<style>
.bg-warning-light { background-color: rgba(255, 193, 7, 0.15); }
.card { border-radius: 10px; }
.form-control:disabled { opacity: 0.8; cursor: not-allowed; }
</style>

View File

@ -0,0 +1,92 @@
<div class="row g-3">
<div class="col-lg-5">
<div class="card border-0 shadow-sm h-100">
<div class="card-header bg-light py-3 d-flex justify-content-between align-items-center">
<h6 class="mb-0 fw-bold text-primary text-uppercase"><i class="fas fa-list me-2"></i><?= _("Garanties Disponibles") ?></h6>
<button class="btn btn-xs btn-outline-primary rounded-pill fw-bold" onclick="ajouter_tous_garantie_produit();">
<?= _("Tout ajouter") ?> <i class="fas fa-angle-double-right ms-1"></i>
</button>
</div>
<div class="card-body p-0">
<div class="table-responsive" style="max-height: 600px; overflow-y: auto;">
<table class="table table-hover align-middle mb-0" style="font-size: 9.5pt;">
<thead class="bg-white sticky-top">
<tr>
<th class="ps-3 py-2 border-bottom"><?= _("Libellé Garantie") ?></th>
<th class="text-center border-bottom" width="15%"><?= _("Action") ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($garanties_sans_seuils as $v): $code = $v['codeGarantie']; ?>
<tr>
<td class="ps-3"><?= $this->nettoyer($v['garantie']) ?></td>
<td class="text-center">
<button class="btn btn-sm btn-primary-ghost rounded-circle action-btn" onclick="ajouter_un_garantie_produit('<?=$code?>');" title="<?= _("Ajouter") ?>">
<i class="fas fa-chevron-right"></i>
</button>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="col-lg-7">
<div class="card border-0 shadow-sm h-100 border-start border-warning border-4">
<div class="card-header bg-white py-3 d-flex justify-content-between align-items-center border-bottom border-2">
<h6 class="mb-0 fw-bold text-warning text-uppercase"><i class="fas fa-check-circle me-2"></i><?= _("Garanties affectées au Produit Santé") ?></h6>
<button class="btn btn-xs btn-outline-warning rounded-pill fw-bold" onclick="retirer_tous_garantie_produit();">
<i class="fas fa-angle-double-left me-1"></i> <?= _("Tout retirer") ?>
</button>
</div>
<div class="card-body p-0">
<div class="table-responsive" style="max-height: 600px; overflow-y: auto;">
<table class="table table-hover align-middle mb-0" style="font-size: 9pt;">
<thead class="bg-primary-ghost text-primary sticky-top">
<tr>
<th class="ps-3 py-2 border-bottom" width="10%"><?= _("Retirer") ?></th>
<th class="py-2 border-bottom"><?= _("Libellé") ?></th>
<th class="text-center border-bottom" width="20%"><?= _("Seuil Taux (%)") ?></th>
<th class="text-center border-bottom" width="25%"><?= _("Seuil Valeur") ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($garanties_avec_seuils as $v): $id = $v['id']; ?>
<tr>
<td class="ps-3 text-center">
<button class="btn btn-sm btn-warning-light rounded-circle action-btn" onclick="retirer_un_garantie_produit('<?=$id?>');" title="<?= _("Retirer") ?>">
<i class="fas fa-chevron-left"></i>
</button>
</td>
<td class="fw-bold"><?= $this->nettoyer($v['garantie']) ?></td>
<td>
<div class="input-group input-group-sm">
<input class="form-control text-center border-2 fw-bold input-editable"
type="number" value="<?= $v['tauxSeuilAlerte'] ?>"
onchange="this.value=supprimer_espace_nombre(this.value); if(controle_numerique(this)){maj_taux_seuil_alerte_garantie('<?=$id?>', this.value);}">
<span class="input-group-text bg-white border-2 border-start-0">%</span>
</div>
</td>
<td class="pe-3">
<input class="form-control form-control-sm text-center border-2 fw-bold text-primary input-editable"
type="text" value="<?= format_N($v['seuilAlerte']) ?>"
onfocus="formatNumerique(this);" onkeyup="controle_numerique(this);"
onblur="formatMonetaire(this); maj_seuil_alerte_garantie('<?=$id?>', supprimer_espace_string(this.value));">
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>

View File

@ -1,79 +1,117 @@
<div class="row">
<div id="div_sans_seuil" class="col-5" >
<legend> <?= _("Sans seuil") ?> </legend>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:10pt;">
<thead>
<tr>
<th style='text-align:center'> <?= _("Garantie") ?> </th>
<th width="20%" style='text-align:center'> => </th>
</tr>
<div class="row g-2">
<div id="div_sans_seuil" class="col-md-5">
<div class="card border-0 shadow-sm" style="border-radius: var(--radius-md);">
<div class="card-header bg-white border-0 py-3 d-flex align-items-center justify-content-between">
<h6 class="mb-0 fw-bold text-uppercase text-muted small">
<i class="fas fa-list-ul me-2"></i><?= _("Garanties Sans seuil") ?>
</h6>
<span class="badge bg-light text-dark rounded-pill"><?= count($garanties_sans_seuils) ?></span>
</div>
<div class="p-2 border-top border-bottom bg-light">
<button type="button" class="btn btn-primary btn-sm w-100 fw-bold shadow-sm" onclick="javascript:ajouter_tous_garantie_produit();">
<?= _("Tout Ajouter") ?> <i class="fas fa-angle-double-right ms-2"></i>
</button>
</div>
<tr>
<th colspan="2"> <button type="button" style="font-size:10pt;" class="form-control btn btn-primary" onclick="javascript:ajouter_tous_garantie_produit();" > <?= _("Ajouter tous"). " ==>" ?> </button> </th>
</tr>
</thead>
<div class="table-responsive" style="max-height: 500px; overflow-y: auto;">
<table class="table table-hover align-middle mb-0" style="font-size: 9pt;">
<thead class="bg-white sticky-top shadow-xs">
<tr>
<th class="ps-3"><?= _("Libellé Garantie") ?></th>
<th width="15%" class="text-center"><?= _("Action") ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($garanties_sans_seuils as $v): $codeGarantie = $v['codeGarantie']; ?>
<tr>
<td class="ps-3 fw-medium text-dark"><?= $this->nettoyer($v['garantie']) ?></td>
<td class="text-center">
<button class="btn btn-outline-primary btn-xs rounded-circle" title="<?= _('Ajouter') ?>"
onClick="javascript:ajouter_un_garantie_produit('<?=$codeGarantie?>');">
<i class="fas fa-chevron-right"></i>
</button>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>
<tbody>
<?php foreach ($garanties_sans_seuils as $garanties_sans_seuil):
$codeGarantie = $garanties_sans_seuil['codeGarantie'];
?>
<tr valign="top">
<td align='center'><?= $this->nettoyer($garanties_sans_seuil['garantie']) ?></td>
<td align='center'> <input type="button" value="=>" onClick="javascript:ajouter_un_garantie_produit('<?=$codeGarantie?>');" ></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<div id="div_avec_seuil" class="col-md-7">
<div class="card border-0 shadow-sm" style="border-radius: var(--radius-md);">
<div class="card-header bg-white border-0 py-3 d-flex align-items-center justify-content-between">
<h6 class="mb-0 fw-bold text-uppercase text-warning small">
<i class="fas fa-check-double me-2"></i><?= _("Garanties avec Seuil d'alerte") ?>
</h6>
<button type="button" class="btn btn-outline-danger btn-xs fw-bold px-3" onclick="javascript:retirer_tous_garantie_produit();">
<i class="fas fa-trash-alt me-1"></i> <?= _("Tout Retirer") ?>
</button>
</div>
<div id="div_avec_seuil" class="col-7" >
<legend> <?= _("Avec seuil") ?> </legend>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:10pt;">
<thead>
<tr>
<th rowspan="2" width="10%" style='text-align:center'> <= </th>
<th rowspan="2" style='text-align:center'> <?= _("Garantie") ?> </th>
<th colspan="4" style='text-align:center'> <?= _("Seuil") ?> </th>
</tr>
<tr>
<th colspan="2" style='text-align:center'> <?= _("Taux") ?> </th>
<th colspan="2" style='text-align:center'> <?= _("Forfait") ?> </th>
</tr>
<tr>
<td colspan="6"> <button type="button" style="font-size:10pt;" class="form-control btn btn-danger" onclick="javascript:retirer_tous_garantie_produit();" > <?= "<== " . _("Retirer tous") ?> </button> </td>
</tr>
</thead>
<div class="table-responsive">
<table id="tableSeuilsModif" class="table table-hover align-middle mb-0" style="font-size: 9pt;">
<thead class="bg-light text-muted small">
<tr>
<th width="5%" class="text-center">#</th>
<th><?= _("Garantie") ?></th>
<th width="20%" class="text-center"><?= _("Taux (%)") ?></th>
<th width="25%" class="text-center"><?= _("Forfait (Montant)") ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($garanties_avec_seuils as $v):
$id = $v['id'];
$taux = $v['tauxSeuilAlerte'];
$montant = $v['seuilAlerte'];
?>
<tr>
<td class="text-center">
<button class="btn btn-link text-danger p-0" title="<?= _('Retirer') ?>"
onClick="javascript:retirer_un_garantie_produit('<?=$id?>');">
<i class="fas fa-minus-circle"></i>
</button>
</td>
<td class="fw-bold text-dark"><?= $this->nettoyer($v['garantie']) ?></td>
<td>
<div class="input-group input-group-sm">
<input type="number" class="form-control text-center border-warning-subtle fw-bold" value="<?= $taux ?>"
onchange="if(controle_numerique(this)){maj_taux_seuil_alerte_garantie('<?=$id?>', this.value);}">
<span class="input-group-text bg-white"><i class="fas fa-percent text-muted small"></i></span>
</div>
</td>
<td>
<div class="input-group input-group-sm">
<input type="number" class="form-control text-end pe-2 border-warning-subtle fw-bold" value="<?= $montant ?>"
onchange="if(controle_numerique(this)){maj_seuil_alerte_garantie('<?=$id?>', this.value);}">
<span class="input-group-text bg-white small">CFA</span>
</div>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
<tbody>
<?php foreach ($garanties_avec_seuils as $garanties_avec_seuil):
$id = $garanties_avec_seuil['id'];
$tauxSeuilAlerte = $garanties_avec_seuil['tauxSeuilAlerte'];
$seuilAlerte = $garanties_avec_seuil['seuilAlerte'];
?>
<tr valign="top">
<td align='center'> <input type="button" value="<=" onClick="javascript:retirer_un_garantie_produit('<?=$id?>');" ></td>
<td align='center'><?= $this->nettoyer($garanties_avec_seuil['garantie']) ?></td>
<style>
/* Style spécifique pour les inputs de modification */
#tableSeuilsModif .form-control:focus {
background-color: #fff9f0;
border-color: #f39c12;
box-shadow: none;
}
<td <th width="10%" align='center'><?= $tauxSeuilAlerte ?></td>
<td <th width="15%" >
<INPUT style="font-size:10pt; text-align:center;" class="form-control" TYPE="number" value="<?= $tauxSeuilAlerte ?>"
onChange="this.value=supprimer_espace_nombre(this.value);if(controle_numerique(this)){maj_taux_seuil_alerte_garantie('<?=$id?>', this.value);}">
</td>
<td <th width="15%" align='center'><?= format_N($seuilAlerte) ?></td>
<td <th width="20%" >
<INPUT style="font-size:10pt; text-align:center;" class="form-control" TYPE="number" value="<?= $seuilAlerte ?>"
onChange="this.value=supprimer_espace_nombre(this.value);if(controle_numerique(this)){maj_seuil_alerte_garantie('<?=$id?>', this.value);}">
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
#tableSeuilsModif .form-control {
background-color: #fafafa;
border-radius: 4px;
}
/* Scroll personnalisé pour la liste de gauche */
#div_sans_seuil .table-responsive::-webkit-scrollbar { width: 6px; }
#div_sans_seuil .table-responsive::-webkit-scrollbar-thumb { background: #dcdcdc; border-radius: 10px; }
</style>

View File

@ -1,31 +1,73 @@
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:10pt;">
<thead>
<tr>
<th rowspan="2" style='text-align:center'> <?= _("Garantie") ?> </th>
<th colspan="2" style='text-align:center'> <?= _("Seuil") ?> </th>
</tr>
<tr>
<th style='text-align:center'> <?= _("Taux") ?> </th>
<th style='text-align:center'> <?= _("Forfait") ?> </th>
</tr>
</thead>
<div class="card border-0 shadow-sm overflow-hidden" style="border-radius: var(--radius-md);">
<div class="card-body p-0">
<div class="table-responsive">
<table id="tableSeuils" class="table table-hover align-middle mb-0 datatable-inter" style="font-size: 10pt;">
<thead class="bg-light text-muted small text-uppercase">
<tr>
<th rowspan="2" class="ps-4 text-dark fw-bold border-bottom-0" style="vertical-align: middle;">
<i class="fas fa-shield-alt me-2"></i><?= _("Garantie") ?>
</th>
<th colspan="2" class="text-center border-bottom text-dark fw-bold">
<?= _("Paramètres du Seuil d'Alerte") ?>
</th>
</tr>
<tr>
<th class="text-center border-top-0"><?= _("Taux (%)") ?></th>
<th class="text-center border-top-0"><?= _("Forfait (Montant)") ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($garanties_avec_seuils as $garanties_avec_seuil):
$id = $garanties_avec_seuil['id'];
$tauxSeuilAlerte = $garanties_avec_seuil['tauxSeuilAlerte'];
$seuilAlerte = $garanties_avec_seuil['seuilAlerte'];
?>
<tr valign="top">
<td align='center'><?= $this->nettoyer($garanties_avec_seuil['garantie']) ?></td>
<tbody>
<?php foreach ($garanties_avec_seuils as $garanties_avec_seuil):
$id = $garanties_avec_seuil['id'];
$tauxSeuilAlerte = $garanties_avec_seuil['tauxSeuilAlerte'];
$seuilAlerte = $garanties_avec_seuil['seuilAlerte'];
?>
<tr>
<td class="ps-4 fw-medium text-dark">
<?= $this->nettoyer($garanties_avec_seuil['garantie']) ?>
</td>
<td width="15%" align='center'><?= $tauxSeuilAlerte ?></td>
<td width="20%" align='center'><?= format_N($seuilAlerte) ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<td width="20%" class="text-center">
<span class="badge bg-info-ghost text-info px-3 py-2 fw-bold" style="min-width: 60px;">
<?= $tauxSeuilAlerte ?> %
</span>
</td>
<td width="20%" class="text-center">
<div class="fw-bold text-primary">
<?= format_N($seuilAlerte) ?> <small class="text-muted fw-normal">FCFA</small>
</div>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
<div class="card-footer bg-white border-top-0 py-3">
<div class="d-flex align-items-center text-muted small">
<i class="fas fa-info-circle me-2 text-primary"></i>
<?= _("Ces seuils déclenchent une alerte automatique lors de la saisie des prestations si la consommation dépasse les limites fixées.") ?>
</div>
</div>
</div>
<style>
/* Style local pour l'alignement des colonnes à double entête */
#tableSeuils thead th {
padding-top: 12px;
padding-bottom: 12px;
border-color: #f1f4f6 !important;
}
#tableSeuils tbody td {
border-color: #f1f4f6;
}
.bg-info-ghost {
background: rgba(0, 184, 212, 0.1) !important;
color: #00b8d4 !important;
}
</style>

View File

@ -2,119 +2,152 @@
$codeReseau = $this->nettoyer($reseau['codeReseau']);
$idReseau = $this->nettoyer($reseau['id']);
$nomReseau = $this->nettoyer($reseau['libelle']);
// Extraction unique des types pour les selects (Optionnel)
$typesDispo = est_anglophone()
? array_unique(array_column($prestatairesdispo, 'typeprestataireEng'))
: array_unique(array_column($prestatairesdispo, 'typeprestataire'));
sort($typesDispo);
$typesAffect = est_anglophone()
? array_unique(array_column($prestatairesreseau, 'typeprestataireEng'))
: array_unique(array_column($prestatairesreseau, 'typeprestataire'));
sort($typesAffect);
?>
<input class="sr-only" type="text" id="codeReseau" name="codeReseau" value="<?= $codeReseau ?>">
<input class="sr-only" type="text" id="idReseau" name="idReseau" value="<?= $idReseau ?>">
<input class="sr-only" type="text" id="codeReseau" name="codeReseau" value="<?= $codeReseau ?>" >
<input class="sr-only" type="text" id="idReseau" name="idReseau" value="<?= $idReseau ?>" >
<div id="div_prestataires_reseau" class="col-lg-20">
<div id="div_prestataire_1" class="table-responsive">
<table id="tab_ent_prestataire_1" class="table table-condensed table-responsive">
<tbody>
<tr valign="top">
<td align='center' colspan="2">
<button type="button" style="font-size:10pt;" class="form-control btn btn-primary"
onclick="javascript:afficher_prestataires_reseau();" > <?= _("Actualiser...") ?>
</button>
</td>
</tr>
<tr>
<td align='center' style="font-size:18pt; font-weight:bold; vertical-align: middle;"><?= _("Prestataires disponibles") ?></td>
<td>
<input class="form-control" style="text-align: center; font-size:10pt;" type="text" id="nbligne1" name="nbligne1" value="Nbre Lignes :<?= format_N(count($prestatairesdispo));?>" readonly>
</td>
</tr>
</tbody>
</table>
<table id="tab_prestataire_1" class="table table-striped table-bordered table-hover table-condensed table-responsive tabliste compact" style="font-size:8pt;">
<thead>
<tr>
<th style='text-align:center'> <?= _("Nom") ?> </th>
<th style='text-align:center'> <?= _("Type") ?> </th>
<th style='text-align:center'> <?= _("Ville") ?> </th>
<th style='text-align:center'> => </th>
</tr>
<tr>
<td colspan="4">
<button type="button" style="font-size:10pt; width:100%;" class="form-control btn btn-primary"
onclick="javascript:ajouter_tous_prestataires_reseau();" >
<?= "============================ "._("Ajouter Tous")." ============================>" ?>
</button>
</td>
</tr>
</thead>
<div class="col-lg-5">
<div class="card border-0 shadow-sm h-100">
<div class="card-header bg-white py-3 border-bottom">
<div class="d-flex justify-content-between align-items-center mb-3">
<h6 class="mb-0 fw-bold text-primary text-uppercase">
<i class="fas fa-list-ul me-2"></i><?= _("Disponibles") ?>
</h6>
<span class="badge bg-light text-primary border rounded-pill" id="count_dispo">
<?= count($prestatairesdispo) ?>
</span>
</div>
<tbody>
<?php foreach ($prestatairesdispo as $v):
$idPrestataire = $v['id'];
$codePrestataire = $v['codePrestataire'];
?>
<tr ondblclick="javascript:prestatairereseausoins_id(<?= $idPrestataire ?>);" valign="top">
<td><?= $this->nettoyer($v['libelle']) ?></td>
<td><?= $this->nettoyer($v['typeprestataire']) ?></td>
<td><?= $this->nettoyer($v['localite']) ?></td>
<td align='center'>
<input type="button" value="=>" onClick="javascript:ajouter_un_prestataire_reseau('<?=$codePrestataire?>');"
style="font-size:10pt; width:30px;" >
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<div class="bg-primary-ghost-light p-2 rounded mb-2 border border-primary-subtle">
<div class="row g-1">
<div class="col-12 mb-1">
<input type="text" id="search_nom_dispo" class="form-control form-control-sm border-2 shadow-none" placeholder="<?= _("Nom du prestataire...") ?>" onkeyup="rechercheServeur('dispo')">
</div>
<div class="col-6">
<input type="text" id="search_ville_dispo" class="form-control form-control-sm border-2 shadow-none" placeholder="<?= _("Ville...") ?>" onkeyup="rechercheServeur('dispo')">
</div>
<div class="col-6">
<select id="search_type_dispo" class="form-control selectpicker border-2" data-live-search="true" data-style="btn-white btn-sm" onchange="rechercheServeur('dispo')">
<option value=""><?= _("Tous les types") ?></option>
<?php foreach($typesDispo as $t): ?> <option value="<?= $t ?>"><?= $t ?></option> <?php endforeach; ?>
</select>
</div>
</div>
</div>
<button class="btn btn-primary-ghost btn-sm w-100 rounded-pill fw-bold" onclick="ajouter_tous_prestataires_reseau();">
<?= _("Tout ajouter") ?> <i class="fas fa-angle-double-right ms-1"></i>
</button>
</div>
<div class="card-body p-0">
<div class="table-responsive" style="max-height: 500px; overflow-y: auto;">
<table class="table table-hover align-middle mb-0" id="tab_dispo" style="font-size: 8.5pt;">
<thead class="bg-light sticky-top">
<tr>
<th class="ps-3 py-2"><?= _("Nom & Détails") ?></th>
<th class="text-center py-2" width="50px"></th>
</tr>
</thead>
<tbody>
<?php foreach ($prestatairesdispo as $v): $codePres = $v['codePrestataire']; ?>
<tr>
<td class="ps-3">
<div class="fw-bold text-dark search-target"><?= $this->nettoyer($v['libelle']) ?></div>
<div class="text-muted smaller">
<span class="search-target"><?= $this->nettoyer($v['localite']) ?></span> |
<span class="text-primary search-target"><?= $this->nettoyer($v['typeprestataire']) ?></span>
</div>
</td>
<td class="text-center pe-3">
<button class="btn btn-sm btn-primary-ghost rounded-circle action-icon" onclick="ajouter_un_prestataire_reseau('<?=$codePres?>');">
<i class="fas fa-chevron-right"></i>
</button>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div id="div_prestataire_2" class="table-responsive">
<table class="table table-condensed table-responsive">
<tbody>
<tr>
<td align='center' colspan="2"><INPUT style="font-size:12pt;" class="form-control text-center" TYPE="text" value="Réseau: <?= $nomReseau ?> " disabled ></td>
</tr>
<tr>
<td align='center' style="font-size:18pt; font-weight:bold; vertical-align: middle;">
<?= _("Prestataires ajoutés") ?>
</td>
<td >
<input class="form-control" style="text-align: center; font-size:10pt;" type="text" id="nbligne2" name="nbligne2"
value="Nbre Lignes : <?= Format_N(count($prestatairesreseau))?>" readonly>
</td>
</tr>
</tbody>
</table>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive tabliste compact" style="font-size:8pt;">
<thead>
<tr>
<th style='text-align:center'> <= </th>
<th style='text-align:center'> <?= _("Nom") ?> </th>
<th style='text-align:center'> <?= _("Ville") ?> </th>
</tr>
<tr>
<td colspan="4">
<button type="button" style="font-size:10pt; width:100%;" class="form-control btn btn-danger" onclick="javascript:retirer_tous_prestataires_du_site();" >
<?= "<================== " . _("Retirer Tous")." ==================" ?>
</button>
</td>
</tr>
</thead>
<tbody>
<?php foreach ($prestatairesreseau as $v):
$idPrestataire = $v['id'];
$codePrestataire = $v['codePrestataire'];
?>
<tr valign="top">
<td align='center'>
<input type="button" value="<=" onclick="javascript:retirer_un_prestataire_reseau('<?=$codePrestataire?>');"
style="font-size:10pt; width:30px;">
</td>
<td><?= $this->nettoyer($v['libelle']) ?></td>
<td><?= $this->nettoyer($v['localite']) ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<div class="col-lg-7">
<div class="card border-0 shadow-sm h-100 border-start border-success border-4">
<div class="card-header bg-white py-3 border-bottom">
<div class="d-flex justify-content-between align-items-center mb-3">
<h6 class="mb-0 fw-bold text-success text-uppercase">
<i class="fas fa-check-double me-2"></i><?= _("Affectés au réseau") ?>
</h6>
<span class="badge bg-success-light text-success rounded-pill px-3" id="count_affect">
<?= count($prestatairesreseau) ?>
</span>
</div>
<div class="bg-success-ghost p-2 rounded mb-2 border border-success-subtle">
<div class="row g-1">
<div class="col-12 mb-1">
<input type="text" id="search_nom_affect" class="form-control form-control-sm border-2 shadow-none" placeholder="<?= _("Rechercher dans la liste...") ?>" onkeyup="rechercheServeur('affect');">
</div>
<div class="col-6">
<input type="text" id="search_ville_affect" class="form-control form-control-sm border-2 shadow-none" placeholder="<?= _("Filtrer par ville...") ?>" onkeyup="rechercheServeur('affect');">
</div>
<div class="col-6">
<select id="search_type_affect" class="form-control selectpicker border-2" data-live-search="true" data-style="btn-white btn-sm" onchange="rechercheServeur('affect')">
<option value=""><?= _("Tous les types") ?></option>
<?php foreach($typesAffect as $t): ?> <option value="<?= $t ?>"><?= $t ?></option> <?php endforeach; ?>
</select>
</div>
</div>
</div>
<button class="btn btn-danger-light btn-sm w-100 rounded-pill fw-bold" onclick="retirer_tous_prestataires_du_site();">
<i class="fas fa-angle-double-left me-1"></i> <?= _("Retirer tous les prestataires") ?>
</button>
</div>
<div class="card-body p-0">
<div class="table-responsive" style="max-height: 500px; overflow-y: auto;">
<table class="table table-hover align-middle mb-0" id="tab_affect" style="font-size: 8.5pt;">
<thead class="bg-success-light text-success sticky-top">
<tr>
<th class="ps-3 py-2" width="50px"></th>
<th class="py-2"><?= _("Nom du Prestataire") ?></th>
<th class="py-2 pe-3"><?= _("Ville & Type") ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($prestatairesreseau as $v): $codePres = $v['codePrestataire']; ?>
<tr>
<td class="ps-3 text-center">
<button class="btn btn-sm btn-danger-light rounded-circle action-icon" onclick="retirer_un_prestataire_reseau('<?=$codePres?>');">
<i class="fas fa-chevron-left"></i>
</button>
</td>
<td class="fw-bold text-dark text-uppercase search-target"><?= $this->nettoyer($v['libelle']) ?></td>
<td class="pe-3 search-target">
<span class="text-muted"><i class="fas fa-map-marker-alt me-1"></i><?= $this->nettoyer($v['localite']) ?></span>
<span class="badge bg-light text-muted fw-normal ms-2 search-target"><?= $this->nettoyer($v['typeprestataire']) ?></span>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>

View File

@ -0,0 +1,13 @@
<?php if (isset($prestatairesreseau)): ?>
<?php foreach ($prestatairesreseau as $v): $code = $v['codePrestataire']; ?>
<tr>
<td class="ps-3 text-center">
<button class="btn btn-sm btn-danger-light rounded-circle action-icon" onclick="retirer_un_prestataire_reseau('<?=$code?>');">
<i class="fas fa-chevron-left"></i>
</button>
</td>
<td class="fw-bold text-dark text-uppercase"><?= $this->nettoyer($v['libelle']) ?></td>
<td class="pe-3 small text-muted"><?= $this->nettoyer($v['localite']) ?> <span class="badge bg-light text-muted ms-1"><?= $this->nettoyer($v['typeprestataire']) ?></span></td>
</tr>
<?php endforeach; ?>
<?php endif; ?>

View File

@ -0,0 +1,15 @@
<?php if (isset($prestatairesdispo)): ?>
<?php foreach ($prestatairesdispo as $v): $code = $v['codePrestataire']; ?>
<tr>
<td class="ps-3">
<div class="fw-bold text-dark"><?= $this->nettoyer($v['libelle']) ?></div>
<div class="text-muted small"><?= $this->nettoyer($v['localite']) ?> | <?= $this->nettoyer($v['typeprestataire']) ?></div>
</td>
<td class="text-center">
<button class="btn btn-sm btn-primary-ghost rounded-circle action-icon" onclick="ajouter_un_prestataire_reseau('<?=$code?>');">
<i class="fas fa-chevron-right"></i>
</button>
</td>
</tr>
<?php endforeach; ?>
<?php endif; ?>

View File

@ -1,97 +1,95 @@
<table id="tab_prime_categorie" class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:10pt;">
<thead>
<tr>
<th style='text-align:center '> <?= _("Lien Parenté") ?> </th>
<th style='text-align:center;'> <?= _("Prime de Base") ?> </th>
<th style='text-align:center'> <?= _("Plafond") ?> </th>
<th style='text-align:center'> <?= _("Maximum par Famille") ?> </th>
<th style='text-align:center'> <?= _("Autoriser Plus?") ?> </th>
<th style='text-align:center'> <?= _("Surprime") ?> </th>
<th style='text-align:center'> <?= _("Âge Min") ?> </th>
<th style='text-align:center'> <?= _("Âge Max") ?> </th>
</tr>
</thead>
<div class="card border-0 shadow-sm animate__animated animate__fadeIn">
<div class="table-responsive">
<table id="tab_prime_categorie" class="table table-hover align-middle mb-0" style="font-size: 9pt;">
<thead class="bg-primary-ghost text-primary small fw-bold text-uppercase">
<tr>
<th class="py-3 ps-3"><?= _("Lien Parenté") ?></th>
<th class="text-center"><?= _("Prime Base") ?></th>
<th class="text-center"><?= _("Plafond") ?></th>
<th class="text-center"><?= _("Max/Fam") ?></th>
<th class="text-center"><?= _("Plus ?") ?></th>
<th class="text-center"><?= _("Surprime") ?></th>
<th class="text-center"><i class="fas fa-hourglass-start me-1"></i><?= _("Âge Min") ?></th>
<th class="text-center pe-3"><i class="fas fa-hourglass-end me-1"></i><?= _("Âge Max") ?></th>
</tr>
</thead>
<tbody>
<?php
$i = 0;
foreach ($primeLienParente as $v):
$idPrime = $this->nettoyer($v['id']);
$codeLienParente = $this->nettoyer($v['codeLienParente']);
$lien = est_anglophone() ? $this->nettoyer($v['lienparenteEng']) : $this->nettoyer($v['lienparente']);
$i++;
?>
<tr class="<?= ($codeLienParente == 'A') ? 'bg-primary-ghost-light fw-bold' : '' ?>">
<td class="ps-3 text-dark">
<i class="fas <?= ($codeLienParente == 'A') ? 'fa-user-tie' : 'fa-users' ?> me-2 opacity-50"></i>
<?= $lien ?>
</td>
<td>
<input class="form-control form-control-sm text-center border-2 fw-bold text-primary input-editable"
type="text" value="<?= format_N($v['prime']) ?>"
onfocus="formatNumerique(this);" onkeyup="controle_numerique(this);" onblur="formatMonetaire(this);"
onchange="ajax_maj_prime_produit_lienparente('<?=$idPrime?>', this.value, this);">
</td>
<tbody>
<?php
$i = 0;
foreach ($primeLienParente as $v):
$idPrime=$this->nettoyer($v['id']);
$codeLienParente=$this->nettoyer($v['codeLienParente']);
$lienparente = $this->nettoyer($v['lienparente']);
if (est_anglophone()){
$lienparente = $this->nettoyer($v['lienparenteEng']);
}
$ageMin = $this->nettoyer($v['ageMinimum']);
$ageMax = $this->nettoyer($v['ageMaximum']);
++$i;
?>
<tr valign="top">
<td width="20%"><?= $lienparente ?></td>
<td align='center'>
<INPUT class="form-control text-center" id="tabPrime<?=$i;?>" TYPE="text" value="<?= format_N($this->nettoyer($v['prime'])); ?>"
onChange="ajax_maj_prime_produit_lienparente('<?=$idPrime?>', this.value, this);" onkeyup="controle_numerique(this);"
onblur="formatMonetaire(this);" onfocus="formatNumerique(this);">
</td>
<td>
<input class="form-control form-control-sm text-center border-2 input-editable"
type="text" value="<?= format_N($v['plafondBeneficiaire']) ?>"
onfocus="formatNumerique(this);" onkeyup="controle_numerique(this);" onblur="formatMonetaire(this);"
onchange="ajax_maj_plafond_produit_lienparente('<?=$idPrime?>', this.value, this);">
</td>
<?php if($codeLienParente != "A"): ?>
<td>
<input class="form-control form-control-sm text-center border-2 input-editable"
type="text" value="<?= $v['nbreParFamille'] ?>"
onfocus="formatNumerique(this);" onkeyup="controle_numerique(this);" onblur="formatMonetaire(this);"
onchange="ajax_maj_nbrefamille_produit_lienparente('<?=$idPrime?>', this.value, this);">
</td>
<td>
<select class="form-select form-select-sm border-2 input-editable text-center"
onchange="ajax_maj_autoriser_produit_lienparente('<?=$idPrime?>', this.value, this, <?=$i;?>);">
<?php liste_options($ouinonautoriser, $this->nettoyer($v['autoriserSupplement']), true); ?>
</select>
</td>
<td>
<input class="form-control form-control-sm text-center border-2 input-editable"
type="text" value="<?= format_N($v['primeSupplementaire']) ?>"
onfocus="formatNumerique(this);" onkeyup="controle_numerique(this);" onblur="formatMonetaire(this);"
onchange="ajax_maj_supplementaire_produit_lienparente('<?=$idPrime?>', this.value, this);">
</td>
<?php else: ?>
<td class="text-center"><span class="text-muted small">---</span></td>
<td class="text-center"><span class="badge bg-light text-muted">FIXE</span></td>
<td class="text-center"><span class="text-muted small">---</span></td>
<?php endif; ?>
<td align='center'>
<INPUT class="form-control text-center" TYPE="text" id="tabPlafond<?=$i;?>" value="<?= format_N($v['plafondBeneficiaire']); ?>"
onkeyup="controle_numerique(this);" onblur="formatMonetaire(this);"
onChange="ajax_maj_plafond_produit_lienparente('<?=$idPrime?>', this.value, this);" onfocus="formatNumerique(this);">
</td>
<?php if($codeLienParente!="A"):?>
<td align='center'>
<INPUT class="form-control text-center" TYPE="text" id="tabnbreParFamille<?=$i;?>" value="<?= $v['nbreParFamille']; ?>"
onkeyup="controle_numerique(this);" onblur="formatMonetaire(this);"
onChange="ajax_maj_nbrefamille_produit_lienparente('<?=$idPrime?>', this.value, this);" onfocus="formatNumerique(this);">
</td>
<td align='center'>
<select class="form-select text-center" id="tabAutoriser<?=$i;?>" onChange="ajax_maj_autoriser_produit_lienparente('<?=$idPrime?>', this.value, this, <?=$i;?>);">
<?php liste_options($ouinonautoriser, $this->nettoyer($v['autoriserSupplement']), true); ?>
</SELECT>
</td>
<td align='center'>
<INPUT class="form-control text-center" TYPE="text" id="tabprimeSupplementaire<?=$i;?>" value="<?= format_N($v['primeSupplementaire']); ?>"
onkeyup="controle_numerique(this);" onblur="formatMonetaire(this);"
onChange="ajax_maj_supplementaire_produit_lienparente('<?=$idPrime?>', this.value, this);" onfocus="formatNumerique(this);">
</td>
<?php else:?>
<td align='center'>
<INPUT class="form-control text-center" TYPE="text" value="<?= $v['nbreParFamille']; ?>" disabled>
</td>
<td align='center'>
<select class="form-select text-center" disabled>
<?php liste_options($ouinonautoriser, $this->nettoyer($v['autoriserSupplement']), true); ?>
</SELECT>
</td>
<td align='center'>
<INPUT class="form-control text-center" TYPE="text" id="tabprimeSupplementaire<?=++$i;?>"
value="<?= format_N($v['primeSupplementaire']); ?>" disabled>
</td>
<?php endif;?>
<td align='center'>
<INPUT class="form-control text-center" TYPE="text" id="tabAgeMin<?=$i;?>" value="<?= $ageMin; ?>"
onkeyup="controle_numerique(this);" onChange="ajax_maj_Agemin_produit_lienparente('<?=$idPrime?>', this.value, this);">
</td>
<td align='center'>
<INPUT class="form-control text-center" TYPE="text" id="tabAgeMax<?=$i;?>" value="<?= $ageMax; ?>"
onkeyup="controle_numerique(this);" onChange="ajax_maj_Agemax_produit_lienparente('<?=$idPrime?>', this.value, this);">
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<td>
<input class="form-control form-control-sm text-center border-2 input-editable"
type="text" value="<?= $this->nettoyer($v['ageMinimum']) ?>"
onkeyup="controle_numerique(this);"
onchange="ajax_maj_Agemin_produit_lienparente('<?=$idPrime?>', this.value, this);">
</td>
<td class="pe-3">
<input class="form-control form-control-sm text-center border-2 input-editable"
type="text" value="<?= $this->nettoyer($v['ageMaximum']) ?>"
onkeyup="controle_numerique(this);"
onchange="ajax_maj_Agemax_produit_lienparente('<?=$idPrime?>', this.value, this);">
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
<style>
.bg-primary-ghost { background-color: rgba(33, 46, 83, 0.05) !important; }
.bg-primary-ghost-light { background-color: rgba(33, 46, 83, 0.02) !important; }
.input-editable { border-color: #eee; transition: all 0.2s; background-color: #fdfdfd; }
.input-editable:focus { border-color: var(--bs-primary); background-color: #fff !important; box-shadow: 0 0 0 0.2rem rgba(33, 46, 83, 0.1); }
.table-hover tbody tr:hover { background-color: rgba(33, 46, 83, 0.03); }
</style>

View File

@ -1,134 +1,122 @@
<div id="div_trancheage">
<div class="row">
<div id="div_prime_lien" class="col-8">
<table id="tab_prime_categorie" class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:11pt; margin-top:5px;">
<thead>
<tr>
<th style='text-align:center '><?= _("Lien Parenté") ?> </th>
<th style='text-align:center'> <?= _("Plafond") ?> </th>
<th style='text-align:center'> <?= _("Maximum par Famille") ?> </th>
<th style='text-align:center'> <?= _("Autoriser Plus?") ?> </th>
<th style='text-align:center'> <?= _("Surprime") ?> </th>
<th style='text-align:center'> <?= _("Âge Min") ?> </th>
<th style='text-align:center'> <?= _("Âge Max") ?> </th>
</tr>
</thead>
<div id="div_trancheage_content" class="animate__animated animate__fadeIn">
<div class="row g-2">
<div id="div_prime_lien" class="col-lg-8">
<div class="table-responsive border rounded shadow-sm bg-white">
<table id="tab_prime_categorie" class="table table-hover align-middle mb-0" style="font-size: 8pt;">
<thead class="bg-primary-ghost text-primary small fw-bold text-uppercase">
<tr>
<th class="py-3 ps-3"><?= _("Lien Parenté") ?></th>
<th class="text-center"><?= _("Plafond") ?></th>
<th class="text-center"><?= _("Max/Fam") ?></th>
<th class="text-center"><?= _("Plus ?") ?></th>
<th class="text-center"><?= _("Surprime") ?></th>
<th class="text-center"><?= _("Âge Min") ?></th>
<th class="text-center"><?= _("Âge Max") ?></th>
</tr>
</thead>
<tbody>
<?php
$i = 0;
foreach ($primeLienParente as $v):
$idPrime = $this->nettoyer($v['id']);
$codeLienParente = $this->nettoyer($v['codeLienParente']);
$lienparente = est_anglophone() ? $this->nettoyer($v['lienparenteEng']) : $this->nettoyer($v['lienparente']);
$i++;
?>
<tr>
<td class="ps-3 fw-bold text-dark"><?= $lienparente ?></td>
<td>
<input class="form-control form-control-sm text-center border-2 input-editable" type="text"
value="<?= format_N($v['plafondBeneficiaire']) ?>"
onfocus="formatNumerique(this);" onkeyup="controle_numerique(this);" onblur="formatMonetaire(this);"
onchange="ajax_maj_plafond_produit_lienparente('<?=$idPrime?>', this.value, this);">
</td>
<?php if($codeLienParente != "A"): ?>
<td>
<input class="form-control form-control-sm text-center border-2 input-editable" type="text"
value="<?= $v['nbreParFamille'] ?>"
onfocus="formatNumerique(this);" onkeyup="controle_numerique(this);" onblur="formatMonetaire(this);"
onchange="ajax_maj_nbrefamille_produit_lienparente('<?=$idPrime?>', this.value, this);">
</td>
<td>
<select class="form-select form-select-sm border-2 input-editable"
onchange="ajax_maj_autoriser_produit_lienparente('<?=$idPrime?>', this.value, this, <?=$i;?>);">
<?php liste_options($ouinonautoriser, $this->nettoyer($v['autoriserSupplement']), true); ?>
</select>
</td>
<td>
<input class="form-control form-control-sm text-center border-2 input-editable fw-bold text-primary" type="text"
value="<?= format_N($v['primeSupplementaire']) ?>"
onfocus="formatNumerique(this);" onkeyup="controle_numerique(this);" onblur="formatMonetaire(this);"
onchange="ajax_maj_supplementaire_produit_lienparente('<?=$idPrime?>', this.value, this);">
</td>
<?php else: ?>
<td><input class="form-control form-control-sm text-center bg-light border-0" value="<?= $v['nbreParFamille'] ?>" disabled></td>
<td><input class="form-control form-control-sm text-center bg-light border-0" value="<?= ($v['autoriserSupplement'] == 1) ? 'OUI' : 'NON' ?>" disabled></td>
<td><input class="form-control form-control-sm text-center bg-light border-0 fw-bold" value="<?= format_N($v['primeSupplementaire']) ?>" disabled></td>
<?php endif; ?>
<tbody>
<?php
$i = 0;
foreach ($primeLienParente as $v):
$idPrime=$this->nettoyer($v['id']);
$codeLienParente=$this->nettoyer($v['codeLienParente']);
$lienparente = $this->nettoyer($v['lienparente']);
if (est_anglophone()){
$lienparente = $this->nettoyer($v['lienparenteEng']);
}
$ageMin = $this->nettoyer($v['ageMinimum']);
$ageMax = $this->nettoyer($v['ageMaximum']);
++$i;
?>
<tr valign="top">
<td width="20%"><?= $lienparente ?></td>
<td align='center'>
<INPUT class="form-control text-center" TYPE="text" id="tabPlafond<?=$i;?>" value="<?= format_N($v['plafondBeneficiaire']); ?>"
onkeyup="controle_numerique(this);" onblur="formatMonetaire(this);"
onChange="ajax_maj_plafond_produit_lienparente('<?=$idPrime?>', this.value, this);" onfocus="formatNumerique(this);">
</td>
<?php if($codeLienParente!="A"):?>
<td align='center'>
<INPUT class="form-control text-center" TYPE="text" id="tabnbreParFamille<?=$i;?>" value="<?= $v['nbreParFamille']; ?>"
onkeyup="controle_numerique(this);" onblur="formatMonetaire(this);"
onChange="ajax_maj_nbrefamille_produit_lienparente('<?=$idPrime?>', this.value, this);" onfocus="formatNumerique(this);">
</td>
<td align='center'>
<select class="form-select text-center" id="tabAutoriser<?=$i;?>" onChange="ajax_maj_autoriser_produit_lienparente('<?=$idPrime?>', this.value, this, <?=$i;?>);">
<?php liste_options($ouinonautoriser, $this->nettoyer($v['autoriserSupplement']), true); ?>
</SELECT>
</td>
<td align='center'>
<INPUT class="form-control text-center" TYPE="text" id="tabprimeSupplementaire<?=$i;?>" value="<?= format_N($v['primeSupplementaire']); ?>"
onkeyup="controle_numerique(this);" onblur="formatMonetaire(this);"
onChange="ajax_maj_supplementaire_produit_lienparente('<?=$idPrime?>', this.value, this);" onfocus="formatNumerique(this);">
</td>
<?php else:?>
<td align='center'>
<INPUT class="form-control text-center" TYPE="text" value="<?= $v['nbreParFamille']; ?>" disabled>
</td>
<td align='center'>
<select class="form-select text-center" disabled>
<?php liste_options($ouinonautoriser, $this->nettoyer($v['autoriserSupplement']), true); ?>
</SELECT>
</td>
<td align='center'>
<INPUT class="form-control text-center" TYPE="text" id="tabprimeSupplementaire<?=++$i;?>"
value="<?= format_N($v['primeSupplementaire']); ?>" disabled>
</td>
<?php endif;?>
<td align='center'>
<INPUT class="form-control text-center" TYPE="text" id="tabAgeMin<?=$i;?>" value="<?= $ageMin; ?>"
onkeyup="controle_numerique(this);" onChange="ajax_maj_Agemin_produit_lienparente('<?=$idPrime?>', this.value, this);">
</td>
<td align='center'>
<INPUT class="form-control text-center" TYPE="text" id="tabAgeMax<?=$i;?>" value="<?= $ageMax; ?>"
onkeyup="controle_numerique(this);" onChange="ajax_maj_Agemax_produit_lienparente('<?=$idPrime?>', this.value, this);">
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<div id="div_prime_trancheage" class="col-4">
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:11pt; margin-top:5px;" >
<thead>
<tr>
<th style="text-align:center" > <?= _("Tranche Âge") ?> </th>
<th style="text-align:center" > <?= _("Prime de Base") ?> </th>
</tr>
</thead>
<tbody>
<?php
$i=0;
foreach ($primeTrancheage as $v):
$idPrime = $this->nettoyer($v['id']);
$libelle = $this->nettoyer($v['libelleTrancheAge']);
if (est_anglophone()){
$libelle = $this->nettoyer($v['libelleTrancheAgeEng']);
}
$i++;
?>
<tr valign="top">
<td style="text-align:center" width="50%"> <?= $libelle ?> </td>
<td style='text-align:center' >
<INPUT style='text-align:center; font-size:10pt;' class="form-control text-center" TYPE="text" id="prime<?=$i;?>" value="<?= format_N($this->nettoyer($v['prime'])); ?>"
onkeyup="controle_numerique(this);" onblur="formatMonetaire(this);" onChange="ajax_maj_prime_produit('<?=$idPrime?>', this.value, this);" onfocus="formatNumerique(this);">
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
<td>
<input class="form-control form-control-sm text-center border-2 input-editable" type="text"
value="<?= $this->nettoyer($v['ageMinimum']) ?>"
onkeyup="controle_numerique(this);"
onchange="ajax_maj_Agemin_produit_lienparente('<?=$idPrime?>', this.value, this);">
</td>
<td class="pe-2">
<input class="form-control form-control-sm text-center border-2 input-editable" type="text"
value="<?= $this->nettoyer($v['ageMaximum']) ?>"
onkeyup="controle_numerique(this);"
onchange="ajax_maj_Agemax_produit_lienparente('<?=$idPrime?>', this.value, this);">
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
<div id="div_prime_trancheage" class="col-lg-4">
<div class="table-responsive border rounded shadow-sm bg-white">
<table class="table table-hover align-middle mb-0" style="font-size: 9.5pt;">
<thead class="bg-primary text-white small fw-bold text-uppercase">
<tr>
<th class="py-3 ps-3"><?= _("Tranche d'Âge") ?></th>
<th class="py-3 text-center pe-3"><?= _("Prime de Base") ?></th>
</tr>
</thead>
<tbody>
<?php
$j = 0;
foreach ($primeTrancheage as $v):
$idPrimeBase = $this->nettoyer($v['id']);
$libAge = est_anglophone() ? $this->nettoyer($v['libelleTrancheAgeEng']) : $this->nettoyer($v['libelleTrancheAge']);
$j++;
?>
<tr>
<td class="ps-3 fw-bold text-muted"><?= $libAge ?></td>
<td class="pe-3">
<input class="form-control form-control-sm text-center border-2 input-editable fw-bold text-primary"
style="font-size: 10pt;" type="text"
value="<?= format_N($this->nettoyer($v['prime'])) ?>"
onfocus="formatNumerique(this);" onkeyup="controle_numerique(this);" onblur="formatMonetaire(this);"
onchange="ajax_maj_prime_produit('<?=$idPrimeBase?>', this.value, this);">
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
<style>
.input-editable { border-color: #eee; transition: all 0.2s; }
.input-editable:focus { border-color: var(--bs-primary); background-color: #fff !important; }
.bg-primary-ghost { background-color: rgba(33, 46, 83, 0.05) !important; }
/* Animation lors de la modification réussie (à appeler dans vos fonctions AJAX de maj) */
.save-success { border-color: #198754 !important; background-color: rgba(25, 135, 84, 0.1) !important; }
</style>

View File

@ -1,16 +1,37 @@
<table class="table table-responsive table-condensed">
<tbody>
<tr>
<td width="10%" class="required"><?= _("Type Tranche Âge")?></td>
<td >
<select class="form-control selectpicker" data-live-search="true" id="codeEnteteTrancheAge" NAME="codeEnteteTrancheAge" required AUTOCOMPLETE="OFF" autofocus onChange="javascript:trancheage();" style="font-size:12pt;">
<?php liste_options($typesTranches,""); ?>
</SELECT>
</td>
</tr>
</tbody>
</table>
<div id="div_trancheage" class="col-12">
<div class="card border-0 shadow-sm mb-3 animate__animated animate__fadeIn">
<div class="card-body p-3 bg-primary-ghost-light">
<div class="row align-items-center">
<div class="col-md-3">
<label class="form-label small fw-bold text-muted text-uppercase mb-md-0">
<?= _("Catégorie Tranche d'Âge") ?> <span class="text-danger">*</span>
</label>
</div>
<div class="col-md-9">
<div class="input-group">
<span class="input-group-text bg-white border-2 border-end-0 text-primary">
<i class="fas fa-calendar-alt"></i>
</span>
<select class="form-control selectpicker border-2 border-start-0"
id="codeEnteteTrancheAge"
name="codeEnteteTrancheAge"
data-live-search="true"
required
onchange="trancheage();">
<?php liste_options($typesTranches, ""); ?>
</select>
</div>
</div>
</div>
</div>
</div>
<div id="div_trancheage" class="mt-3"></div>
<style>
.bg-primary-ghost-light { background-color: rgba(33, 46, 83, 0.02) !important; }
/* Correction visuelle pour le selectpicker dans un input-group */
.bootstrap-select.form-control.border-2 {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
</style>

View File

@ -1,71 +1,97 @@
<div id="div_produitreseau">
<div id="div_produitreseau" class="animate__animated animate__fadeIn">
<div class="row g-3">
<div class="col-lg-6">
<div class="card border-0 shadow-sm h-100">
<div class="card-header bg-white py-3 border-bottom">
<div class="d-flex justify-content-between align-items-center mb-3">
<h6 class="mb-0 fw-bold text-primary text-uppercase">
<i class="fas fa-unlock me-2"></i><?= _("Réseaux Disponibles") ?>
</h6>
</div>
<button type="button" class="btn btn-primary-ghost btn-sm w-100 rounded-pill fw-bold" onclick="ajouter_tous_reseaus_produit();">
<?= _("Ajouter tous") ?> <i class="fas fa-angle-double-right ms-1"></i>
</button>
</div>
<div class="card-body p-0">
<div class="table-responsive" style="max-height: 450px;">
<table class="table table-hover align-middle mb-0" style="font-size: 9.5pt;">
<thead class="bg-light sticky-top">
<tr>
<th class="ps-3 py-2"><?= _("Libellé du Réseau") ?></th>
<th class="text-center py-2" width="70px"><?= _("Action") ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($reseausnonaccessibles as $v): $code = $v['codeReseau']; ?>
<tr>
<td class="ps-3 fw-bold text-dark"><?= $this->nettoyer($v['libelle']) ?></td>
<td class="text-center">
<button class="btn btn-sm btn-primary-ghost rounded-circle action-icon"
onclick="ajouter_un_reseau_produit('<?= $code ?>');" title="Ajouter">
<i class="fas fa-chevron-right"></i>
</button>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="row">
<div id="div_adherents_importes_1" class="col-6" >
<table class="table table-striped table-bordered table-hover table-condensed table-responsive tabliste" style="font-size:10pt;">
<thead>
<tr>
<th style='text-align:center'> <?= _("RESEAUX DE SOINS DISPONIBLES") ?> </th>
<!--<th width="20%" style='text-align:center'> <?= _("T M") ?> </th>-->
<th style='text-align:center'> => </th>
</tr>
<tr>
<th colspan="2"> <button type="button" style="font-size:10pt;" class="form-control btn btn-primary" onclick="javascript:ajouter_tous_reseaus_produit();" > <?= _("Ajouter tous"). " ==>" ?> </button> </th>
</tr>
</thead>
<div class="col-lg-6">
<div class="card border-0 shadow-sm h-100 border-start border-success border-4">
<div class="card-header bg-white py-3 border-bottom">
<div class="d-flex justify-content-between align-items-center mb-3">
<h6 class="mb-0 fw-bold text-success text-uppercase">
<i class="fas fa-check-circle me-2"></i><?= _("Réseaux Accessibles") ?>
</h6>
</div>
<button type="button" class="btn btn-danger-light btn-sm w-100 rounded-pill fw-bold" onclick="retirer_tous_reseau_produit();">
<i class="fas fa-angle-double-left me-1"></i> <?= _("Retirer tous les réseaux") ?>
</button>
</div>
<div class="card-body p-0">
<div class="table-responsive" style="max-height: 450px;">
<table class="table table-hover align-middle mb-0" style="font-size: 9.5pt;">
<thead class="bg-success-light text-success sticky-top">
<tr>
<th class="text-center py-2" width="70px"><?= _("Action") ?></th>
<th class="py-2"><?= _("Libellé du Réseau") ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($reseausaccessibles as $v): $code = $v['codeReseau']; ?>
<tr>
<td class="text-center">
<button class="btn btn-sm btn-danger-light rounded-circle action-icon"
onclick="retirer_un_reseau_produit('<?= $code ?>');" title="Retirer">
<i class="fas fa-chevron-left"></i>
</button>
</td>
<td class="fw-bold text-dark text-uppercase"><?= $this->nettoyer($v['reseausoin']) ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<tbody>
<?php foreach ($reseausnonaccessibles as $reseausnonaccessible):
$codeReseau = $reseausnonaccessible['codeReseau'];
?>
<tr valign="top">
<td align='center'><?= $this->nettoyer($reseausnonaccessible['libelle']) ?></td>
<!--<td align='center'><?= $this->nettoyer($reseausnonaccessible['tm']) ?></td>-->
<td align='center'> <input type="button" value="=>" onClick="javascript:ajouter_un_reseau_produit('<?=$codeReseau?>');" ></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<div id="div_adherents_importes_2" class="col-6" >
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:10pt;">
<thead>
<tr>
<th style='text-align:center'> <= </th>
<th style='text-align:center'> <?= _("RESEAUX DE SOINS AJOUTES") ?> </th>
<!--<th colspan="2" style='text-align:center'> <?= _("T M") ?> </th>-->
</tr>
<tr>
<td colspan="2"> <button type="button" style="font-size:10pt;" class="form-control btn btn-danger" onclick="javascript:retirer_tous_reseau_produit();" > <?= "<== " . _("Retirer tous les réseaux") ?> </button> </td>
</tr>
</thead>
<tbody>
<?php foreach ($reseausaccessibles as $reseausaccessible):
$codeReseau = $reseausaccessible['codeReseau'];
?>
<tr valign="top">
<td align='center'> <input type="button" value="<=" onClick="javascript:retirer_un_reseau_produit('<?=$codeReseau?>');" ></td>
<td align='center'><?= $this->nettoyer($reseausaccessible['reseausoin']) ?></td>
<!--
<td <th width="15%" align='center'><?= $this->nettoyer($reseausaccessible['tm']) ?></td>
<td <th width="15%" >
<INPUT style="font-size:10pt; text-align:center;" class="form-control" TYPE="number" value="<?= $this->nettoyer($reseausaccessible['tm']) ?>"
onChange="this.value=supprimer_espace_nombre(this.value);if(controle_numerique(this)){maj_tm_produit_reseau('<?=$codeReseau?>', this.value);}">
</td>
-->
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>
<style>
.btn-primary-ghost { background-color: rgba(33, 46, 83, 0.08) !important; }
.bg-success-light { background-color: rgba(25, 135, 84, 0.08) !important; }
.btn-danger-light { color: #dc3545; background-color: rgba(220, 53, 69, 0.1); border: none; }
.action-icon { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; transition: all 0.2s; }
.action-icon:hover { transform: scale(1.1); }
/* Scrollbar personnalisée */
.table-responsive::-webkit-scrollbar { width: 5px; }
.table-responsive::-webkit-scrollbar-thumb { background: #cbd5e0; border-radius: 10px; }
</style>

View File

@ -1,12 +1,31 @@
<?php if ($codeModeGenerationPass=="0"): ?>
<td> <?= _("Mot de passe") ?> </td>
<td><INPUT style='font-size:10pt;' onBlur="controle_longeur_passe(this);" class="form-control" TYPE="password" id="nvmdp" NAME="nvmdp" placeholder="Mot de Passe / Pass Word" required AUTOCOMPLETE="OFF"></td>
<td align="center"> <?= _("Confirmer MDP") ?> </td>
<td colspan="3" ><INPUT style='font-size:10pt;' onBlur="controle_new_pass();" class="form-control" TYPE="password" id="cfnvmdp" NAME="cfnvmdp" placeholder="Confirmation" required AUTOCOMPLETE="OFF"></td>
<?php if ($codeModeGenerationPass == "0"): ?>
<div class="row g-2 animate__animated animate__fadeIn">
<div class="col-md-6">
<label class="form-label small fw-bold text-muted"><?= _("Mot de passe") ?> <span class="text-danger">*</span></label>
<div class="input-group">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-lock text-muted"></i></span>
<input class="form-control border-2 border-start-0 shadow-none"
type="password" id="nvmdp" name="nvmdp"
placeholder="<?= _("Saisir le mot de passe") ?>"
onBlur="controle_longeur_passe(this);" required autocomplete="new-password">
</div>
</div>
<div class="col-md-6">
<label class="form-label small fw-bold text-muted"><?= _("Confirmer le mot de passe") ?> <span class="text-danger">*</span></label>
<div class="input-group">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-check-double text-muted"></i></span>
<input class="form-control border-2 border-start-0 shadow-none"
type="password" id="cfnvmdp" name="cfnvmdp"
placeholder="<?= _("Confirmer") ?>"
onBlur="controle_new_pass();" required autocomplete="new-password">
</div>
</div>
</div>
<?php else : ?>
<td>
<INPUT class="sr-only" TYPE="text" id="nvmdp" NAME="nvmdp">
<INPUT class="sr-only" TYPE="text" id="cfnvmdp" NAME="cfnvmdp">
</td>
<input type="hidden" id="nvmdp" name="nvmdp" value="">
<input type="hidden" id="cfnvmdp" name="cfnvmdp" value="">
<div class="alert alert-info border-0 shadow-sm mb-0">
<i class="fas fa-magic me-2"></i>
<?= _("Le mot de passe sera généré automatiquement par le système.") ?>
</div>
<?php endif; ?>

View File

@ -1,16 +1,75 @@
<form id="formData">
<legend id="titre_formData"><?= _("Ajouter des données") ?></legend>
<table class="table table-responsive table-condensed">
<tbody>
<tr>
<td width="5%" align="center" class="required"><?= _("Libellé Fr") ?></td>
<td width="28%" ><INPUT class="form-control majuscule" TYPE="text" id="libelle" NAME="libelle" required AUTOCOMPLETE="OFF" ></td>
<td width="5%" align="center"><?= _("Libellé Eng") ?></td>
<td width="27%"><INPUT class="form-control majuscule" TYPE="text" id="libelleEng" NAME="libelleEng"></td>
</tr>
</tbody>
</table>
</form>
<div class="card border-0 shadow-sm border-start border-4 border-primary">
<div class="card-header bg-white py-3 border-bottom">
<h6 class="mb-0 fw-bold text-uppercase text-success small" id="titre_formData">
<i class="fas fa-briefcase me-2"></i><?= _("Ajouter une nouvelle activité de soins") ?>
</h6>
</div>
<div class="card-body p-4">
<form id="formData" class="container-fluid p-0">
<div class="row g-4">
<div class="col-md-6">
<label class="form-label fw-bold text-muted small required"><?= _("Libellé (Fr)") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0">
<img src="../Bootstrap_new/images/france.png" width="16" alt="FR">
</span>
<input type="text"
class="form-control border-2 border-start-0 majuscule fw-bold"
id="libelle"
name="libelle"
required
autocomplete="OFF">
</div>
</div>
<div class="col-md-6">
<label class="form-label fw-bold text-muted small"><?= _("Libellé (Eng)") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0">
<img src="../Bootstrap_new/images/england.png" width="16" alt="EN">
</span>
<input type="text"
class="form-control border-2 border-start-0 majuscule"
id="libelleEng"
name="libelleEng"
autocomplete="OFF">
</div>
</div>
</div>
</form>
</div>
</div>
<script>
$(document).ready(function() {
// Règle d'Or Neutral Pro : Focus différé de 200ms sur le premier champ
setTimeout(function() {
$('#libelle').focus();
}, 200);
});
</script>
<style>
/* Identité Visuelle Neutral Pro */
.border-primary { border-color: #212e53 !important; }
.shadow-xs { box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.form-control.border-2, .input-group-text.border-2 {
border-width: 2px !important;
border-color: #dee2e6;
}
.form-control:focus {
border-color: #212e53;
box-shadow: 0 0 0 0.25rem rgba(33, 46, 83, 0.1);
}
.majuscule { text-transform: uppercase; }
.required:after {
content: " *";
color: #dc3545;
font-weight: bold;
}
</style>

View File

@ -1,21 +1,79 @@
<form id="formData">
<legend id="titre_formData"><?= _("Ajouter des données") ?></legend>
<table class="table table-responsive table-condensed">
<tbody>
<tr>
<td width="5%" align="center" class="required"><?= _("Type") ?></td>
<td width="15%">
<select name="codeTypeAffection" id="codeTypeAffection" class="form-select" required AUTOCOMPLETE="OFF">
<?= liste_options($typeaffection,'',false) ?>
</select>
</td>
<td width="5%" align="center" class="required"><?= _("Libellé") ?></td>
<td width="30%" ><INPUT class="form-control majuscule" TYPE="text" id="libelle" NAME="libelle" required AUTOCOMPLETE="OFF" ></td>
<td width="5%" align="center"><?= _("Libellé Eng") ?></td>
<td width="27%" ><INPUT class="form-control majuscule" TYPE="text" id="libelleEng" NAME="libelleEng"></td>
</tr>
</tbody>
</table>
</form>
<div class="card border-0 shadow-sm border-start border-4 border-primary">
<div class="card-header bg-white py-3 border-bottom">
<h6 class="mb-0 fw-bold text-uppercase text-success small" id="titre_formData">
<i class="fas fa-hand-holding-medical me-2"></i><?= _("Ajouter une nouvelle affection") ?>
</h6>
</div>
<div class="card-body p-4">
<form id="formData" class="container-fluid p-0">
<div class="row g-4 align-items-end">
<div class="col-md-3">
<label class="form-label fw-bold text-muted small required"><?= _("Type") ?></label>
<select name="codeTypeAffection" id="codeTypeAffection" class="selectpicker form-control border-2 shadow-xs" data-live-search="true" data-container="body" required>
<?= liste_options($typeaffection, '', false) ?>
</select>
</div>
<div class="col-md-4">
<label class="form-label fw-bold text-muted small required"><?= _("Libellé (Fr)") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0">
<img src="../Bootstrap_new/images/france.png" width="16" alt="FR">
</span>
<input type="text"
class="form-control border-2 border-start-0 majuscule fw-bold"
id="libelle"
name="libelle"
required
autocomplete="OFF">
</div>
</div>
<div class="col-md-5">
<label class="form-label fw-bold text-muted small"><?= _("Libellé (Eng)") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0">
<img src="../Bootstrap_new/images/england.png" width="16" alt="EN">
</span>
<input type="text"
class="form-control border-2 border-start-0 majuscule"
id="libelleEng"
name="libelleEng"
autocomplete="OFF">
</div>
</div>
</div>
</form>
</div>
</div>
<script>
$(document).ready(function() {
// Initialisation du SelectPicker selon le standard (Règle d'or)
actualiserSelectPicker('#codeTypeAffection', false);
// Focus UX Neutral Pro : 200ms sur le premier champ (Libellé FR)
setTimeout(function() {
$('#libelle').focus();
}, 200);
});
</script>
<style>
/* Identité Visuelle Neutral Pro */
.border-primary { border-color: #212e53 !important; }
.shadow-xs { box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.form-control.border-2, .input-group-text.border-2 { border-width: 2px !important; }
.majuscule { text-transform: uppercase; }
.required:after { content: " *"; color: #dc3545; font-weight: bold; }
/* Style spécifique SelectPicker pour cohérence 2px */
.bootstrap-select > .dropdown-toggle {
border-width: 2px !important;
height: 38px !important;
background-color: #fff !important;
}
</style>

View File

@ -1,30 +1,88 @@
<form id="formData">
<legend id="titre_formData"><?= _("Ajouter des données") ?></legend>
<table class="table table-responsive table-condensed">
<tbody>
<tr>
<td width="5%" align="center" class="required"><?= _("Libellé") ?></td>
<td width="20%" ><INPUT class="form-control majuscule" TYPE="text" id="libelle" NAME="libelle" required AUTOCOMPLETE="OFF" ></td>
<td width="5%" align="center">code Swift</td>
<td width="20%" ><INPUT class="form-control majuscule" TYPE="text" id="codeSwift" NAME="codeSwift"></td>
</tr>
<tr>
<td width="5%" align="center"> Compte Cpt</td>
<td width="20%" ><INPUT class="form-control majuscule" TYPE="text" id="numeroCompteCpt" NAME="numeroCompteCpt"></td>
<div class="card border-0 shadow-sm border-start border-4 border-primary">
<div class="card-header bg-white py-3 border-bottom">
<h6 class="mb-0 fw-bold text-uppercase text-success small" id="titre_formData">
<i class="fas fa-university me-2"></i><?= _("Ajouter une nouvelle banque") ?>
</h6>
</div>
<div class="card-body p-4">
<form id="formData" class="container-fluid p-0">
<div class="row g-3">
<div class="col-md-8">
<label class="form-label fw-bold text-muted small required"><?= _("Libellé") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-landmark text-primary"></i></span>
<input type="text" class="form-control border-2 border-start-0 majuscule fw-bold"
id="libelle" name="libelle" required autocomplete="OFF">
</div>
</div>
<td width="5%" align="center"> Compte Bancaire</td>
<td width="20%" ><INPUT class="form-control majuscule" TYPE="text" id="numeroCompteBancaire" NAME="numeroCompteBancaire"></td>
<td width="5%" align="center">Banque Société</td>
<td width="5%">
<select name="banqueSociete" id="banqueSociete" class="form-select">
<?= liste_options($ouinonoptionnelle,'1',true) ?>
</select>
</td>
</tr>
</tbody>
</table>
</form>
<div class="col-md-4">
<label class="form-label fw-bold text-muted small"><?= _("Code Swift") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-random text-muted"></i></span>
<input type="text" class="form-control border-2 border-start-0 majuscule"
id="codeSwift" name="codeSwift">
</div>
</div>
<div class="col-md-4">
<label class="form-label fw-bold text-muted small"><?= _("N° Compte Comptable") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-calculator text-muted"></i></span>
<input type="text" class="form-control border-2 border-start-0 majuscule fw-bold text-primary"
id="numeroCompteCpt" name="numeroCompteCpt">
</div>
</div>
<div class="col-md-4">
<label class="form-label fw-bold text-muted small"><?= _("N° Compte Bancaire") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-credit-card text-muted"></i></span>
<input type="text" class="form-control border-2 border-start-0 majuscule"
id="numeroCompteBancaire" name="numeroCompteBancaire">
</div>
</div>
<div class="col-md-4">
<label class="form-label fw-bold text-muted small"><?= _("Banque Société") ?></label>
<div class="shadow-xs">
<select name="banqueSociete" id="banqueSociete" class="selectpicker form-control border-2" data-container="body">
<?= liste_options($ouinonoptionnelle, '1', true) ?>
</select>
</div>
</div>
</div>
</form>
</div>
</div>
<script>
$(document).ready(function() {
// Initialisation du SelectPicker (Standard Neutral Pro)
$('.selectpicker').selectpicker();
// Focus UX Neutral Pro : 200ms sur le premier champ modifiable
setTimeout(function() {
$('#libelle').focus();
}, 200);
});
</script>
<style>
/* Identité Visuelle Neutral Pro */
.border-primary { border-color: #212e53 !important; }
.shadow-xs { box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.form-control.border-2, .input-group-text.border-2 { border-width: 2px !important; }
.majuscule { text-transform: uppercase; }
.required:after { content: " *"; color: #dc3545; font-weight: bold; }
/* Harmonisation SelectPicker pour cohérence 2px */
.bootstrap-select > .dropdown-toggle {
border-width: 2px !important;
height: 38px !important;
background-color: #fff !important;
}
</style>

View File

@ -1,32 +1,111 @@
<form id="formData">
<legend id="titre_formData"><?= _("Ajouter des données") ?></legend>
<table class="table table-responsive table-condensed">
<tbody>
<tr>
<td width="5%" align="center" class="required"><?= _("Libellé") ?></td>
<td width="30%" ><INPUT class="form-control majuscule" TYPE="text" id="libelle" NAME="libelle" required AUTOCOMPLETE="OFF" ></td>
<td width="5%" align="center"><?= _("Nom Responsable") ?></td>
<td width="30%" ><INPUT class="form-control majuscule" TYPE="text" id="nomRespon" NAME="nomRespon"></td>
</tr>
<tr>
<td width="5%" align="center"><?= _("Prénoms Responsable") ?></td>
<td width="30%" ><INPUT class="form-control majuscule" TYPE="text" id="prenomRespon" NAME="prenomRespon"></td>
<div class="card border-0 shadow-sm border-start border-4 border-primary">
<div class="card-header bg-white py-3 border-bottom">
<h6 class="mb-0 fw-bold text-uppercase text-success small" id="titre_formData">
<i class="fas fa-plus-circle me-2"></i><?= _("Ajouter un nouveau Bureau") ?>
</h6>
</div>
<div class="card-body p-4">
<form id="formData" class="container-fluid p-0">
<div class="row g-4">
<div class="col-md-6">
<label class="form-label fw-bold text-muted small required"><?= _("Libellé") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-tag text-primary"></i></span>
<input type="text"
class="form-control border-2 border-start-0 majuscule fw-bold"
id="libelle"
name="libelle"
required
autocomplete="OFF">
</div>
</div>
<td width="5%" align="center"><?= _("Tél. Fixe") ?></td>
<td width="30%" ><INPUT class="form-control" TYPE="tel" id="telephoneFixe" NAME="telephoneFixe"></td>
</tr>
<tr>
<td width="5%" align="center"><?= _("Tél. Mobile") ?></td>
<td width="30%" ><INPUT class="form-control" TYPE="tel" id="telephonePortable" NAME="telephonePortable"></td>
<td width="5%" align="center"><?= _("Email") ?></td>
<td width="30%" ><INPUT class="form-control" TYPE="email" id="email" NAME="email"></td>
</tr>
</tbody>
</table>
</form>
<div class="col-md-6">
<label class="form-label fw-bold text-muted small"><?= _("Nom Responsable") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-user text-muted"></i></span>
<input type="text"
class="form-control border-2 border-start-0 majuscule"
id="nomRespon"
name="nomRespon">
</div>
</div>
<div class="col-md-6">
<label class="form-label fw-bold text-muted small"><?= _("Prénoms Responsable") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-user-edit text-muted"></i></span>
<input type="text"
class="form-control border-2 border-start-0 majuscule"
id="prenomRespon"
name="prenomRespon">
</div>
</div>
<div class="col-md-6">
<label class="form-label fw-bold text-muted small"><?= _("Téléphone Fixe") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-phone text-muted"></i></span>
<input type="tel"
class="form-control border-2 border-start-0"
id="telephoneFixe"
name="telephoneFixe">
</div>
</div>
<div class="col-md-6">
<label class="form-label fw-bold text-muted small"><?= _("Téléphone Mobile") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-mobile-alt text-muted"></i></span>
<input type="tel"
class="form-control border-2 border-start-0"
id="telephonePortable"
name="telephonePortable">
</div>
</div>
<div class="col-md-6">
<label class="form-label fw-bold text-muted small"><?= _("Email") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-envelope text-muted"></i></span>
<input type="email"
class="form-control border-2 border-start-0"
id="email"
name="email">
</div>
</div>
</div>
</form>
</div>
</div>
<script>
// Respect de la règle de Focus Neutral Pro
setTimeout(function() {
$('#libelle').focus();
}, 200);
</script>
<style>
/* Styles spécifiques ERP Neutral Pro */
.border-primary { border-color: #212e53 !important; }
.text-primary { color: #212e53 !important; }
.shadow-xs { box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.form-control.border-2 { border-width: 2px !important; }
.input-group-text.border-2 { border-width: 2px !important; }
.form-control:focus {
border-color: #212e53;
box-shadow: 0 0 0 0.25rem rgba(33, 46, 83, 0.1);
}
.required:after {
content: " *";
color: #dc3545;
font-weight: bold;
}
.majuscule { text-transform: uppercase; }
</style>

View File

@ -1,70 +1,128 @@
<form id="formData">
<legend id="titre_formData"><?= _("Ajouter des données") ?></legend>
<table class="table table-responsive table-condensed">
<tbody>
<tr>
<td width="5%" align="center" class="required"><?= _("Nom et Prénoms") ?></td>
<td width="20%"><INPUT class="form-control majuscule" TYPE="text" id="libelle" NAME="libelle" required AUTOCOMPLETE="OFF" ></td>
<td width="8%" align="center" class="required">Type</td>
<td >
<select name="codeTypeApporteur" id="codeTypeApporteur" class="form-select">
<?= liste_options($typeapp,'',false) ?>
</select>
</td>
<div class="card border-0 shadow-sm border-start border-4 border-primary">
<div class="card-header bg-white py-3 border-bottom">
<h6 class="mb-0 fw-bold text-uppercase text-success small" id="titre_formData">
<i class="fas fa-user-plus me-2"></i><?= _("Ajouter un nouveau Commercial") ?>
</h6>
</div>
<div class="card-body p-4">
<form id="formData" class="container-fluid p-0">
<div class="row g-3">
<div class="col-md-5">
<label class="form-label fw-bold text-muted small required"><?= _("Nom et Prénoms") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-user text-primary"></i></span>
<input type="text" class="form-control border-2 border-start-0 majuscule fw-bold"
id="libelle" name="libelle" required autocomplete="OFF">
</div>
</div>
<td width="5%" align="center"><?= _("Type Système") ?></td>
<td colspan="5%">
<select name="typeSysteme" id="typeSysteme" class="form-select">
<?= liste_options($ouinonoptionnelle,'0',true) ?>
</select>
</td>
</tr>
<tr>
<td width="5%" align="center"><?= _("Téléphone") ?></td>
<td width="20%"><INPUT class="form-control" TYPE="tel" id="telephone" NAME="telephone"></td>
<td width="5%" align="center">E-mail</td>
<td colspan="3"><INPUT class="form-control" TYPE="email" id="email" NAME="email"></td>
<div class="col-md-4">
<label class="form-label fw-bold text-muted small required"><?= _("Type") ?></label>
<select name="codeTypeApporteur" id="codeTypeApporteur" class="selectpicker form-control border-2 shadow-xs" data-live-search="true" data-container="body">
<?= liste_options($typeapp, '', false) ?>
</select>
</div>
</tr>
<tr>
<td width="5%" align="center"><?= _("Responsable") ?></td>
<td width="20%"><INPUT class="form-control majuscule" TYPE="text" id="nomResponsable" NAME="nomResponsable"></td>
<div class="col-md-3">
<label class="form-label fw-bold text-muted small"><?= _("Type Système") ?></label>
<select name="typeSysteme" id="typeSysteme" class="selectpicker form-control border-2 shadow-xs" data-container="body">
<?= liste_options($ouinonoptionnelle, '0', true) ?>
</select>
</div>
<td width="5%" align="center"><?= _("Mobile Payer") ?></td>
<td width="20%"><INPUT class="form-control" TYPE="number" id="mobilePaiement" NAME="mobilePaiement" value="0" title="<?= _("L'indicatif est obligatoire")?>"></td>
<td width="5%" align="center"><?= _("Déduire Commission") ?></td>
<td colspan="5%">
<select name="deduireComm" id="deduireComm" class="form-select">
<?= liste_options($ouinonoptionnelle,'1',true) ?>
</select>
</td>
</tr>
<tr>
<td width="5%" align="center" class="required"><?= _("Bureau") ?></td>
<td width="50%">
<select name="codeBureau" id="codeBureau" class="form-select" required AUTOCOMPLETE="OFF">
<?= liste_options($bureau,'',false) ?>
</select>
</td>
<td width="5%" align="center"><?= _("Adr. Postale") ?></td>
<td colspan="5%">
<INPUT class="form-control majuscule" TYPE="text" id="adressePost" NAME="adressePost">
</td>
</tr>
<tr>
<td width="5%" align="center"><?= _("Adr. Géo.") ?></td>
<td colspan="5"><INPUT class="form-control majuscule" TYPE="text" id="adresseGeo" NAME="adresseGeo" value=" "></td>
</tr>
</tbody>
</table>
</form>
<div class="col-md-4">
<label class="form-label fw-bold text-muted small"><?= _("Téléphone") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-phone text-muted"></i></span>
<input type="tel" class="form-control border-2 border-start-0" id="telephone" name="telephone">
</div>
</div>
<div class="col-md-8">
<label class="form-label fw-bold text-muted small"><?= _("E-mail") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-envelope text-muted"></i></span>
<input type="email" class="form-control border-2 border-start-0" id="email" name="email">
</div>
</div>
<div class="col-md-5">
<label class="form-label fw-bold text-muted small"><?= _("Responsable") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-user-tie text-muted"></i></span>
<input type="text" class="form-control border-2 border-start-0 majuscule" id="nomResponsable" name="nomResponsable">
</div>
</div>
<div class="col-md-4">
<label class="form-label fw-bold text-muted small required"><?= _("N° Mobile Paiement") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-mobile-alt text-success"></i></span>
<input type="number" class="form-control border-2 border-start-0 fw-bold"
id="mobilePaiement" name="mobilePaiement" value="0" title="<?= _("L'indicatif est obligatoire")?>" required>
</div>
</div>
<div class="col-md-3">
<label class="form-label fw-bold text-muted small"><?= _("Déduire Commission") ?></label>
<select name="deduireComm" id="deduireComm" class="selectpicker form-control border-2 shadow-xs" data-container="body">
<?= liste_options($ouinonoptionnelle, '1', true) ?>
</select>
</div>
<div class="col-md-6">
<label class="form-label fw-bold text-muted small required"><?= _("Bureau") ?></label>
<select name="codeBureau" id="codeBureau" class="selectpicker form-control border-2 shadow-xs" data-live-search="true" data-container="body" required>
<?= liste_options($bureau, '', false) ?>
</select>
</div>
<div class="col-md-6">
<label class="form-label fw-bold text-muted small"><?= _("Adresse Postale") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-map-signs text-muted"></i></span>
<input type="text" class="form-control border-2 border-start-0 majuscule" id="adressePost" name="adressePost">
</div>
</div>
<div class="col-md-12">
<label class="form-label fw-bold text-muted small"><?= _("Adresse Géographique") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-map-marker-alt text-muted"></i></span>
<input type="text" class="form-control border-2 border-start-0 majuscule" id="adresseGeo" name="adresseGeo">
</div>
</div>
</div>
</form>
</div>
</div>
<script>
$(document).ready(function() {
// Initialisation des SelectPickers selon le standard
$('.selectpicker').selectpicker();
// Focus différé de 200ms sur le premier champ
setTimeout(function() {
$('#libelle').focus();
}, 200);
});
</script>
<style>
.border-primary { border-color: #212e53 !important; }
.shadow-xs { box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.form-control.border-2 { border-width: 2px !important; }
.input-group-text.border-2 { border-width: 2px !important; }
.majuscule { text-transform: uppercase; }
.required:after { content: " *"; color: #dc3545; font-weight: bold; }
/* Ajustement spécifique SelectPicker pour coller au design 2px */
.bootstrap-select > .dropdown-toggle.bs-placeholder,
.bootstrap-select > .dropdown-toggle {
border-width: 2px !important;
height: 38px;
}
</style>

View File

@ -1,23 +1,102 @@
<form id="formData">
<legend id="titre_formData"><?= _("Ajouter des données") ?></legend>
<table class="table table-responsive table-condensed">
<tbody>
<tr>
<td width="10%" align="center" class="required"><?= _("Libellé") ?></td>
<td ><INPUT class="form-control majuscule" TYPE="text" id="libelle" NAME="libelle" required AUTOCOMPLETE="OFF"></td>
<td width="10%" align="center"><?= _("Libellé Eng") ?></td>
<td ><INPUT class="form-control majuscule" TYPE="text" id="libelleEng" NAME="libelleEng"></td>
</tr>
<tr>
<td width="10%" align="center" class="required"><?= _("Garant") ?></td>
<td colspan="5" >
<select class="form-control selectpicker" data-live-search="true" id="codeGcAssureur" NAME="codeGcAssureur" required AUTOCOMPLETE="OFF" autofocus>
<?php liste_options($garants,""); ?>
</SELECT>
</td>
</tr>
</tbody>
</table>
</form>
<div class="card border-0 shadow-sm border-start border-4 border-primary">
<div class="card-header bg-white py-3 border-bottom">
<h6 class="mb-0 fw-bold text-uppercase text-success small" id="titre_formData">
<i class="fas fa-hourglass-start me-2"></i><?= _("Ajouter une nouvelle catégorie de tranche d'âge") ?>
</h6>
</div>
<div class="card-body p-4">
<form id="formData" class="container-fluid p-0">
<div class="row g-4">
<div class="col-md-6">
<label class="form-label fw-bold text-muted small required"><?= _("Libellé (FR)") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0">
<img src="../Bootstrap_new/images/france.png" width="16" alt="FR">
</span>
<input type="text"
class="form-control border-2 border-start-0 majuscule fw-bold"
id="libelle"
name="libelle"
required
autocomplete="OFF">
</div>
</div>
<div class="col-md-6">
<label class="form-label fw-bold text-muted small"><?= _("Libellé (Eng)") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0">
<img src="../Bootstrap_new/images/england.png" width="16" alt="EN">
</span>
<input type="text"
class="form-control border-2 border-start-0 majuscule"
id="libelleEng"
name="libelleEng"
autocomplete="OFF">
</div>
</div>
<div class="col-md-12">
<label class="form-label fw-bold text-muted small required"><?= _("Garant") ?></label>
<div class="shadow-xs">
<select class="selectpicker form-control border-2"
data-live-search="true"
data-container="body"
id="codeGcAssureur"
name="codeGcAssureur"
required>
<?php liste_options($garants, ""); ?>
</select>
</div>
</div>
</div>
</form>
</div>
</div>
<script>
$(document).ready(function() {
// 1. Initialisation du SelectPicker selon le standard
$('.selectpicker').selectpicker();
// 2. Règle d'Or UX : Focus différé de 200ms sur le premier champ modifiable
setTimeout(function() {
$('#libelle').focus();
}, 200);
});
</script>
<style>
/* Identité Visuelle Neutral Pro */
.border-primary { border-color: #212e53 !important; }
.shadow-xs { box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.form-control.border-2, .input-group-text.border-2 {
border-width: 2px !important;
}
.majuscule { text-transform: uppercase; }
.required:after {
content: " *";
color: #dc3545;
font-weight: bold;
}
/* Harmonisation du bouton SelectPicker avec le style 2px */
.bootstrap-select > .dropdown-toggle {
border-width: 2px !important;
border-color: #dee2e6 !important;
height: 42px !important;
background-color: #fff !important;
}
.bootstrap-select > .dropdown-toggle:focus {
border-color: #212e53 !important;
outline: none !important;
box-shadow: 0 0 0 0.25rem rgba(33, 46, 83, 0.1) !important;
}
</style>

View File

@ -1,16 +1,76 @@
<form id="formData">
<legend id="titre_formData"><?= _("Ajouter des données") ?></legend>
<table class="table table-responsive table-condensed">
<tbody>
<tr>
<td width="5%" align="center" class="required"><?= _("Libellé Fr") ?></td>
<td width="28%" ><INPUT class="form-control majuscule" TYPE="text" id="libelle" NAME="libelle" required AUTOCOMPLETE="OFF" ></td>
<td width="5%" align="center"><?= _("Libellé Eng") ?></td>
<td width="27%"><INPUT class="form-control majuscule" TYPE="text" id="libelleEng" NAME="libelleEng"></td>
</tr>
</tbody>
</table>
</form>
<div class="card border-0 shadow-sm border-start border-4 border-primary">
<div class="card-header bg-white py-3 border-bottom">
<h6 class="mb-0 fw-bold text-uppercase text-success small" id="titre_formData">
<i class="fas fa-map-marked-alt me-2"></i><?= _("Ajouter une nouvelle étendue de territoire") ?>
</h6>
</div>
<div class="card-body p-4">
<form id="formData" class="container-fluid p-0">
<div class="row g-4">
<div class="col-md-6">
<label class="form-label fw-bold text-muted small required"><?= _("Libellé (Fr)") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0">
<img src="../Bootstrap_new/images/france.png" width="16" alt="FR">
</span>
<input type="text"
class="form-control border-2 border-start-0 majuscule fw-bold"
id="libelle"
name="libelle"
required
autocomplete="OFF">
</div>
</div>
<div class="col-md-6">
<label class="form-label fw-bold text-muted small"><?= _("Libellé (Eng)") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0">
<img src="../Bootstrap_new/images/england.png" width="16" alt="EN">
</span>
<input type="text"
class="form-control border-2 border-start-0 majuscule"
id="libelleEng"
name="libelleEng"
autocomplete="OFF">
</div>
</div>
</div>
</form>
</div>
</div>
<script>
$(document).ready(function() {
// Règle d'Or Neutral Pro : Focus sur le premier champ modifiable après 200ms
setTimeout(function() {
$('#libelle').focus();
}, 200);
});
</script>
<style>
/* Identité Visuelle Neutral Pro */
.border-primary { border-color: #212e53 !important; }
.text-primary { color: #212e53 !important; }
.shadow-xs { box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.form-control.border-2, .input-group-text.border-2 {
border-width: 2px !important;
border-color: #dee2e6;
}
.form-control:focus {
border-color: #212e53;
box-shadow: 0 0 0 0.25rem rgba(33, 46, 83, 0.1);
}
.majuscule { text-transform: uppercase; }
.required:after {
content: " *";
color: #dc3545;
font-weight: bold;
}
</style>

View File

@ -1,51 +1,103 @@
<form id="formData">
<legend id="titre_formData"><?= _("Ajouter des données") ?></legend>
<table class="table table-responsive table-condensed">
<tbody>
<tr>
<td width="5%" align="center" class="required">Type</td>
<td width="20%">
<select name="codeTypeApporteur" id="codeTypeApporteur" class="form-select" required>
<?= liste_options($typeinter,'',false) ?>
</select>
</td>
<td width="5%" align="center" class="required"><?= _("Raison Sociale") ?></td>
<td width="30%" ><INPUT class="form-control majuscule" TYPE="text" id="libelle" NAME="libelle" required></td>
<td width="5%" align="center"><?= _("Responsable") ?></td>
<td colspan="3" ><INPUT class="form-control majuscule" TYPE="text" id="nomResponsable" NAME="nomResponsable"></td>
</tr>
<tr>
<td width="5%" align="center"><?= _("Téléphone") ?></td>
<td width="20%" ><INPUT class="form-control" TYPE="tel" id="telephone" NAME="telephone"></td>
<form id="formData" class="container-fluid p-0">
<div class="card border-0 shadow-sm border-start border-4 border-primary" style="border-radius: var(--radius-md);">
<div class="card-header bg-white py-3 border-bottom">
<h6 class="mb-0 fw-bold text-uppercase text-success small">
<i class="fas fa-plus-circle me-2"></i><?= _("Ajouter un nouvel intermédiaire") ?>
</h6>
</div>
<div class="card-body bg-light-50 p-4">
<div class="row g-3 mb-4">
<div class="col-md-3">
<label class="form-label small fw-bold text-muted required"><?= _("Type Intermédiaire") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-user-tie text-muted"></i></span>
<select name="codeTypeApporteur" id="codeTypeApporteur" class="form-control selectpicker border-2 border-start-0" required>
<?= liste_options($typeinter, '', true) ?>
</select>
</div>
</div>
<td width="5%" align="center">E-mail</td>
<td width="20%" ><INPUT class="form-control" TYPE="email" id="email" NAME="email"></td>
<td width="5%" align="center"><?= _("Bureau") ?></td>
<td width="20%">
<select name="codeBureau" id="codeBureau" class="form-select">
<?= liste_options($bureau,'',false) ?>
</select>
</td>
<td width="5%" align="center"><?= _("Déduire Com") ?></td>
<td >
<select name="deduireComm" id="deduireComm" class="form-select">
<?= liste_options($ouinonoptionnelle,'1',true) ?>
</select>
</td>
</tr>
<tr>
<td width="5%" align="center"><?= _("Mobile Payer") ?></td>
<td ><INPUT class="form-control" TYPE="number" id="mobilePaiement" NAME="mobilePaiement" value="0" title="<?= _("L'indicatif est obligatoire")?>"></td>
<td width="5%" align="center"><?= _("Adresse Géo.") ?></td>
<td ><INPUT class="form-control majuscule" TYPE="text" id="adresseGeo" NAME="adresseGeo" value=""></td>
<td width="5%" align="center"><?= _("Adresse Post.") ?></td>
<td colspan="3" ><INPUT class="form-control majuscule" TYPE="text" id="adressePost" NAME="adressePost" value=""></td>
</tr>
</tbody>
</table>
<div class="col-md-5">
<label class="form-label small fw-bold text-muted required"><?= _("Raison Sociale") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-building text-muted"></i></span>
<input type="text" class="form-control border-2 border-start-0 majuscule" id="libelle" name="libelle" required autocomplete="off">
</div>
</div>
<div class="col-md-4">
<label class="form-label small fw-bold text-muted"><?= _("Responsable") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-user text-muted"></i></span>
<input type="text" class="form-control border-2 border-start-0 majuscule" id="nomResponsable" name="nomResponsable" autocomplete="off">
</div>
</div>
</div>
<div class="row g-3 mb-4">
<div class="col-md-3">
<label class="form-label small fw-bold text-muted required"><?= _("Téléphone") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-phone text-muted"></i></span>
<input type="tel" class="form-control border-2 border-start-0" id="telephone" name="telephone" required>
</div>
</div>
<div class="col-md-3">
<label class="form-label small fw-bold text-muted required"><?= _("E-mail") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-envelope text-muted"></i></span>
<input type="email" class="form-control border-2 border-start-0" id="email" name="email" required>
</div>
</div>
<div class="col-md-3">
<label class="form-label small fw-bold text-muted"><?= _("Bureau") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-map-marked-alt text-muted"></i></span>
<select name="codeBureau" id="codeBureau" class="form-control selectpicker border-2 border-start-0">
<?= liste_options($bureau, '', true) ?>
</select>
</div>
</div>
<div class="col-md-3">
<label class="form-label small fw-bold text-muted"><?= _("Déduire Commmission") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-percent text-muted"></i></span>
<select name="deduireComm" id="deduireComm" class="form-control selectpicker border-2 border-start-0">
<?= liste_options($ouinonoptionnelle, '1', true) ?>
</select>
</div>
</div>
</div>
<div class="row g-3">
<div class="col-md-3">
<label class="form-label small fw-bold text-muted required"><?= _("N° Mobile Paiement") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-mobile-alt text-muted"></i></span>
<input type="number" class="form-control border-2 border-start-0" id="mobilePaiement" name="mobilePaiement" value="0" title="<?= _("L'indicatif est obligatoire")?> required">
</div>
</div>
<div class="col-md-4">
<label class="form-label small fw-bold text-muted"><?= _("Adresse Géographique") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-map-marker-alt text-muted"></i></span>
<input type="text" class="form-control border-2 border-start-0 majuscule" id="adresseGeo" name="adresseGeo">
</div>
</div>
<div class="col-md-5">
<label class="form-label small fw-bold text-muted"><?= _("Adresse Postale") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-mailbox text-muted"></i></span>
<input type="text" class="form-control border-2 border-start-0 majuscule" id="adressePost" name="adressePost">
</div>
</div>
</div>
</div>
</div>
</form>

View File

@ -1,33 +1,69 @@
<form id="formData">
<legend id="titre_formData"><?= _("Ajouter des données") ?></legend>
<table class="table table-responsive table-condensed">
<tbody>
<tr>
<td width="6%" align="center" class="required"><?= _("Libellé Fr") ?></td>
<td width="30%" ><INPUT class="form-control" TYPE="text" id="libelle" NAME="libelle" required AUTOCOMPLETE="OFF" ></td>
<td width="5%" align="center"><?= _("Libellé Eng") ?></td>
<td colspan="3" ><INPUT class="form-control" TYPE="text" id="libelleEng" NAME="libelleEng"></td>
</tr>
<tr>
<td width="5%" align="center" class="required">Date</td>
<td width="20%" ><INPUT class="form-control datepicker" TYPE="text" id="dateFerier" NAME="dateFerier" required AUTOCOMPLETE="OFF" ></td>
<td width="5%" align="center" class="required"><?= _("Pays") ?></td>
<td width="20%">
<SELECT onChange="afficheDonneesTableChoisie('Ajaxtblisterjoursferiers');" class="form-select" id="codePays" NAME="codePays" required AUTOCOMPLETE="OFF">
<?php liste_options($pays,$_SESSION['codePaysSociete']); ?>
</SELECT>
</td>
<td width="10%" align="center"><?= _("Demi-journée ?") ?></td>
<td width="5%">
<select name="demiJournee" id="demiJournee" class="form-select">
<?= liste_options($ouinonoptionnelle,'1',true) ?>
</select>
</td>
</tr>
</tbody>
</table>
<form id="formData" class="container-fluid p-0">
<div class="card border-0 shadow-sm border-start border-4 border-primary" style="border-radius: var(--radius-md);">
<div class="card-header bg-white py-3 border-bottom">
<h6 class="mb-0 fw-bold text-uppercase text-success small">
<i class="fas fa-calendar-plus me-2"></i><?= _("Ajouter un nouveau Jour Férié") ?>
</h6>
</div>
<div class="card-body bg-light-50 p-4">
<div class="row g-3 mb-4">
<div class="col-md-6">
<label class="form-label small fw-bold text-muted required"><?= _("Libellé (FR)") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0">
<i class="fas fa-tag text-muted"></i>
</span>
<input type="text" class="form-control border-2 border-start-0" id="libelle" name="libelle" required autocomplete="off">
</div>
</div>
<div class="col-md-6">
<label class="form-label small fw-bold text-muted"><?= _("Libellé (EN)") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0">
<i class="fas fa-language text-muted"></i>
</span>
<input type="text" class="form-control border-2 border-start-0" id="libelleEng" name="libelleEng" autocomplete="off">
</div>
</div>
</div>
<div class="row g-3">
<div class="col-md-4">
<label class="form-label small fw-bold text-muted required"><?= _("Date de l'événement") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0">
<i class="fas fa-calendar-alt text-muted"></i>
</span>
<input type="text" class="form-control border-2 border-start-0 datepicker" id="dateFerier" name="dateFerier" required autocomplete="off">
</div>
</div>
<div class="col-md-5">
<label class="form-label small fw-bold text-muted"><?= _("Pays") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0">
<i class="fas fa-globe-africa text-muted"></i>
</span>
<select class="form-select border-2 border-start-0" disabled>
<?php liste_options($pays, $_SESSION['codePaysSociete'], true); ?>
</select>
</div>
</div>
<div class="col-md-3">
<label class="form-label small fw-bold text-muted"><?= _("Demi-journée ?") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0">
<i class="fas fa-adjust text-muted"></i>
</span>
<select name="demiJournee" id="demiJournee" class="form-control selectpicker border-2 border-start-0">
<?= liste_options($ouinonoptionnelle, '1', true) ?>
</select>
</div>
</div>
</div>
</div>
</div>
</form>

View File

@ -1,29 +1,57 @@
<form id="formData">
<legend id="titre_formData"><?= _("Ajouter des données") ?></legend>
<table class="table table-responsive table-condensed">
<tbody>
<tr>
<td width="5%" align="center" class="required"><?= _("Nom") ?></td>
<td width="30%" ><INPUT class="form-control majuscule" TYPE="text" id="libelle" NAME="libelle" required AUTOCOMPLETE="OFF" ></td>
<td width="5%" align="center" class="required"><?= _("Pays") ?></td>
<td width="20%">
<select name="codePays" id="codePays" class="form-select" required AUTOCOMPLETE="OFF" onchange="JAVASCRIPT:filtreVilleParPays();">
<?= liste_options($pays,'',false) ?>
</select>
</td>
<div class="card border-0 shadow-sm border-start border-success border-4 mb-4">
<div class="card-header bg-white py-3 border-0">
<h6 class="mb-0 fw-bold text-uppercase text-success small" id="titre_formData">
<i class="fas fa-plus-circle me-2"></i><?= _("Ajouter une nouvelle Localité") ?>
</h6>
</div>
<td width="5%" align="center" class="required"><?= _("Ville") ?></td>
<td width="20%">
<div id="div_ville" width="100%">
<select name="codeVille" id="codeVille" class="form-select" required AUTOCOMPLETE="OFF">
<?= liste_options($ville,'',false) ?>
<div class="card-body">
<form id="formData">
<input type="hidden" id="id" name="id" value="<?= $localite['id'] ?? '' ?>">
<div class="row g-3">
<div class="col-md-4">
<label class="form-label small fw-bold text-muted required"><?= _("Nom Localité") ?></label>
<div class="input-group">
<span class="input-group-text bg-light border-2 border-end-0"><i class="fas fa-map-marker-alt text-muted"></i></span>
<input class="form-control border-2 border-start-0 ps-0 majuscule"
type="text" id="libelle" name="libelle"
value="<?= $this->nettoyer($localite['libelle'] ?? '') ?>"
required autocomplete="off" autofocus>
</div>
</div>
<div class="col-md-4">
<label class="form-label small fw-bold text-muted required"><?= _("Pays") ?></label>
<div class="input-group">
<span class="input-group-text bg-light border-2 border-end-0"><i class="fas fa-flag text-muted"></i></span>
<select name="codePays" id="codePays"
class="form-control border-2 border-start-0 ps-0 selectpicker"
data-live-search="true" required onchange="filtreVilleParPays();">
<?= liste_options($pays, $localite['codePays'] ?? '', false) ?>
</select>
</div>
</td>
</tr>
</tbody>
</table>
</form>
</div>
<div class="col-md-4">
<label class="form-label small fw-bold text-muted required"><?= _("District ou Région") ?></label>
<div class="input-group" id="div_ville">
<span class="input-group-text bg-light border-2 border-end-0"><i class="fas fa-city text-muted"></i></span>
<select name="codeVille" id="codeVille"
class="form-control border-2 border-start-0 ps-0 selectpicker"
data-live-search="true"
required onchange="JAVASCRIPT:filtreLocaliteParVille();">
<?= liste_options($ville, $localite['codeVille'] ?? '', false) ?>
</select>
</div>
</div>
</div>
</form>
</div>
</div>
<style>
/* Uniformisation des selects avec icônes */
.input-group > .bootstrap-select.form-control { flex: 1 1 auto; }
.bootstrap-select .btn { border-left: 0 !important; border-width: 2px !important; }
</style>

View File

@ -1,26 +1,84 @@
<form id="formData">
<legend id="titre_formData"><?= _("Ajouter des données") ?></legend>
<table class="table table-responsive table-condensed">
<tbody>
<tr>
<td width="5%" align="center" class="required"><?= _("Libellé Fr") ?></td>
<td width="24%" ><INPUT class="form-control majuscule" TYPE="text" id="libelle" NAME="libelle" required AUTOCOMPLETE="OFF" ></td>
<td width="5%" align="center" class="required"><?= _("Libellé Eng") ?></td>
<td width="24%" ><INPUT class="form-control majuscule" TYPE="text" id="libelleEng" NAME="libelleEng" required AUTOCOMPLETE="OFF"></td>
<td width="5%" align="center">Type</td>
<td width="14%" >
<select name="codeTypePaiement" id="codeTypePaiement" class="form-select">
<?= liste_options($typepaiement,'',false) ?>
</select>
</td>
<td width="5%" align="center">Ordre</td>
<td width="8%" ><INPUT class="form-control text-center" TYPE="number" min="0" value="0" id="ordre" NAME="ordre" onBlur="controle_numerique(this);"></td>
</tr>
</tbody>
</table>
</form>
<div class="card border-0 shadow-sm border-start border-4 border-primary">
<div class="card-header bg-white py-3 border-bottom">
<h6 class="mb-0 fw-bold text-uppercase text-success small" id="titre_formData">
<i class="fas fa-credit-card me-2"></i><?= _("Ajouter un nouveau mode de paiement") ?>
</h6>
</div>
<div class="card-body p-4">
<form id="formData" class="container-fluid p-0">
<div class="row g-3 align-items-end">
<div class="col-md-3">
<label class="form-label fw-bold text-muted small required"><?= _("Libellé (Fr)") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0">
<img src="../Bootstrap_new/images/france.png" width="16" alt="FR">
</span>
<input type="text" class="form-control border-2 border-start-0 majuscule fw-bold"
id="libelle" name="libelle" required autocomplete="OFF">
</div>
</div>
<div class="col-md-3">
<label class="form-label fw-bold text-muted small required"><?= _("Libellé (Eng)") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0">
<img src="../Bootstrap_new/images/england.png" width="16" alt="EN">
</span>
<input type="text" class="form-control border-2 border-start-0 majuscule fw-bold"
id="libelleEng" name="libelleEng" required autocomplete="OFF">
</div>
</div>
<div class="col-md-3">
<label class="form-label fw-bold text-muted small">Type</label>
<div class="shadow-xs">
<select name="codeTypePaiement" id="codeTypePaiement" class="selectpicker form-control border-2" data-container="body" data-live-search="true">
<?= liste_options($typepaiement, '', false) ?>
</select>
</div>
</div>
<div class="col-md-3">
<label class="form-label fw-bold text-muted small"><?= _("Ordre") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-light border-2 border-end-0"><i class="fas fa-sort-numeric-down text-muted"></i></span>
<input type="number" class="form-control border-2 border-start-0 text-center fw-bold"
min="0" value="0" id="ordre" name="ordre"
onBlur="controle_numerique(this);">
</div>
</div>
</div>
</form>
</div>
</div>
<script>
$(document).ready(function() {
// Initialisation du SelectPicker selon le standard (Règle d'or)
actualiserSelectPicker('#codeTypePaiement', false);
// Focus UX Neutral Pro : 200ms sur le premier champ modifiable
setTimeout(function() {
$('#libelle').focus();
}, 200);
});
</script>
<style>
/* Identité Visuelle Neutral Pro */
.border-primary { border-color: #212e53 !important; }
.shadow-xs { box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.form-control.border-2, .input-group-text.border-2 { border-width: 2px !important; }
.majuscule { text-transform: uppercase; }
.required:after { content: " *"; color: #dc3545; font-weight: bold; }
/* Harmonisation SelectPicker pour cohérence 2px */
.bootstrap-select > .dropdown-toggle {
border-width: 2px !important;
height: 38px !important;
background-color: #fff !important;
}
</style>

View File

@ -1,21 +1,79 @@
<form id="formData">
<legend id="titre_formData"><?= _("Ajouter des données") ?></legend>
<table class="table table-responsive table-condensed">
<tbody>
<tr>
<td width="5%" align="center" class="required"><?= _("Libellé") ?></td>
<td width="20%"><INPUT class="form-control majuscule" TYPE="text" id="libelle" NAME="libelle" required AUTOCOMPLETE="OFF" ></td>
<td width="5%" align="center" class="required">Type</td>
<td width="20%">
<select name="codeTypePaiement" id="codeTypePaiement" class="form-select" required AUTOCOMPLETE="OFF">
<?= liste_options($typepaiement,'',false) ?>
</select>
</td>
<td width="5%" align="center"> Compte</td>
<td width="20%"><INPUT class="form-control majuscule" TYPE="text" id="numeroCompte" NAME="numeroCompte"></td>
</tr>
</tbody>
</table>
</form>
<div class="card border-0 shadow-sm border-start border-4 border-primary">
<div class="card-header bg-white py-3 border-bottom">
<h6 class="mb-0 fw-bold text-uppercase text-success small" id="titre_formData">
<i class="fas fa-wallet me-2"></i><?= _("Ajouter un nouveau moyen de paiement") ?>
</h6>
</div>
<div class="card-body p-4">
<form id="formData" class="container-fluid p-0">
<div class="row g-4 align-items-end">
<div class="col-md-4">
<label class="form-label fw-bold text-muted small required"><?= _("Libellé") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-tag text-primary"></i></span>
<input type="text"
class="form-control border-2 border-start-0 majuscule fw-bold"
id="libelle"
name="libelle"
required
autocomplete="OFF">
</div>
</div>
<div class="col-md-4">
<label class="form-label fw-bold text-muted small required"><?= _("Type") ?></label>
<select name="codeTypePaiement" id="codeTypePaiement"
class="selectpicker form-control border-2 shadow-xs"
data-live-search="true"
data-container="body"
required>
<?= liste_options($typepaiement, '', false) ?>
</select>
</div>
<div class="col-md-4">
<label class="form-label fw-bold text-muted small"><?= _("N° Compte") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-calculator text-muted"></i></span>
<input type="text"
class="form-control border-2 border-start-0 majuscule"
id="numeroCompte"
name="numeroCompte"
autocomplete="OFF">
</div>
</div>
</div>
</form>
</div>
</div>
<script>
$(document).ready(function() {
// Initialisation du SelectPicker selon le standard
actualiserSelectPicker('#codeTypePaiement', false);
// Règle d'Or Neutral Pro : Focus différé de 200ms
setTimeout(function() {
$('#libelle').focus();
}, 200);
});
</script>
<style>
/* Identité Visuelle Neutral Pro */
.border-primary { border-color: #212e53 !important; }
.shadow-xs { box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.form-control.border-2, .input-group-text.border-2 { border-width: 2px !important; }
.majuscule { text-transform: uppercase; }
.required:after { content: " *"; color: #dc3545; font-weight: bold; }
/* Ajustement SelectPicker pour cohérence 2px */
.bootstrap-select > .dropdown-toggle {
border-width: 2px !important;
height: 38px !important;
background-color: #fff !important;
}
</style>

View File

@ -1,14 +1,61 @@
<form id="formData">
<legend id="titre_formData"><?= _("Ajouter des données") ?></legend>
<table class="table table-responsive table-condensed">
<tbody>
<tr>
<td width="5%" align="center" class="required">Code</td>
<td width="10%" ><INPUT class="form-control majuscule" TYPE="text" id="codePays" NAME="codePays" required AUTOCOMPLETE="OFF" autofocus ></td>
<div class="card border-0 shadow-sm border-start border-success border-4 mb-4">
<div class="card-header bg-white py-3 border-0">
<h6 class="mb-0 fw-bold text-uppercase text-success small" id="titre_formData">
<i class="fas fa-plus-circle me-2"></i><?= _("Ajouter un nouveau Pays") ?>
</h6>
</div>
<div class="card-body">
<form id="formData">
<div class="row g-3">
<div class="col-md-3">
<label class="form-label small fw-bold text-muted required">Code</label>
<div class="input-group">
<span class="input-group-text bg-light border-2 border-end-0"><i class="fas fa-barcode text-muted"></i></span>
<input class="form-control border-2 border-start-0 ps-0 majuscule fw-bold"
type="text"
id="codePays"
name="codePays"
maxlength="3"
required
autocomplete="off"
autofocus>
</div>
</div>
<div class="col-md-9">
<label class="form-label small fw-bold text-muted required"><?= _("Libellé du Pays") ?></label>
<div class="input-group">
<span class="input-group-text bg-light border-2 border-end-0"><i class="fas fa-globe-africa text-muted"></i></span>
<input class="form-control border-2 border-start-0 ps-0 majuscule"
type="text"
id="libelle"
name="libelle"
required
autocomplete="off">
</div>
</div>
</div>
<td width="5%" align="center" class="required"><?= _("Libellé") ?></td>
<td width="70%" ><INPUT class="form-control majuscule" TYPE="text" id="libelle" NAME="libelle" required AUTOCOMPLETE="OFF" ></td>
</tr>
</tbody>
</table>
</form>
<div id="form-errors" class="alert alert-danger mt-3 d-none small py-2"></div>
</form>
</div>
</div>
<style>
/* Force la majuscule pendant la saisie */
.majuscule { text-transform: uppercase; }
/* Style spécifique pour les champs requis */
.required:after {
content: " *";
color: #dc3545;
font-weight: bold;
}
/* Animation au focus */
.form-control:focus {
border-color: #28a745 !important;
box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.15) !important;
}
</style>

View File

@ -1,63 +1,128 @@
<form id="formData">
<legend id="titre_formData"><?= _("Ajouter des données") ?></legend>
<table class="table table-responsive table-condensed">
<tbody>
<tr>
<div class="card border-0 shadow-sm border-start border-4 border-primary">
<div class="card-header bg-white py-3 border-bottom">
<h6 class="mb-0 fw-bold text-uppercase text-success small" id="titre_formData">
<i class="fas fa-plus-circle me-2"></i><?= _("Ajouter un nouveau Point de Vente") ?>
</h6>
</div>
<div class="card-body p-4">
<form id="formData" class="container-fluid p-0">
<div class="row g-3">
<div class="col-md-8">
<label class="form-label fw-bold text-muted small required"><?= _("Libellé") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-store text-primary"></i></span>
<input type="text" class="form-control border-2 border-start-0 majuscule fw-bold"
id="libelle" name="libelle" required autocomplete="OFF">
</div>
</div>
<td width="5%" align="center" class="required"><?= _("Libellé") ?></td>
<td colspan="2" ><INPUT class="form-control majuscule" TYPE="text" id="libelle" NAME="libelle" required AUTOCOMPLETE="OFF"></td>
<td width="5%" align="center">Type</td>
<td colspan="7%">
<select name="codeTypePointVente" id="codeTypePointVente" class="form-select">
<?= liste_options($typepointvente,'',false) ?>
</select>
</td>
</tr>
<tr>
<td width="5%" align="center">Email</td>
<td colspan="2" ><INPUT class="form-control" TYPE="tel" id="email" NAME="email"></td>
<td width="5%" align="center"><?= _("Téléphone") ?></td>
<td colspan="7%"><INPUT class="form-control" TYPE="telephone" id="telephone" NAME="telephone"></td>
</tr>
<tr>
<td width="5%" align="center">Adr. Post.</td>
<td colspan="2" ><INPUT class="form-control" TYPE="text" id="adressePost" NAME="adressePost" value=" "></td>
<td width="5%" align="center">Adr. Géo.</td>
<td colspan="5" ><INPUT class="form-control" TYPE="text" id="adresseGeo" NAME="adresseGeo"></td>
</tr>
<tr>
<td width="5%" align="center">Pays</td>
<td colspan="2">
<select name="codePays" id="codePays" class="form-select" onchange="JAVASCRIPT:filtreVilleParPays();">
<?= liste_options($pays,'',false) ?>
</select>
</td>
<td width="5%" align="center">Ville</td>
<td colspan="2">
<div id="div_ville">
<select name="codeVille" id="codeVille" class="form-select">
<?= liste_options($ville,'',false) ?>
<div class="col-md-4">
<label class="form-label fw-bold text-muted small">Type</label>
<select name="codeTypePointVente" id="codeTypePointVente" class="selectpicker form-control border-2 shadow-xs" data-container="body">
<?= liste_options($typepointvente, '', false) ?>
</select>
</div>
</td>
<td width="5%" align="center">Localite</td>
<td width="20%">
<div id="div_localite">
<select name="codeLocalite" id="codeLocalite" class="form-select">
<?= liste_options($localite,'',false) ?>
<div class="col-md-6">
<label class="form-label fw-bold text-muted small">Email</label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-envelope text-muted"></i></span>
<input type="email" class="form-control border-2 border-start-0" id="email" name="email">
</div>
</div>
<div class="col-md-6">
<label class="form-label fw-bold text-muted small"><?= _("Téléphone") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-phone text-muted"></i></span>
<input type="tel" class="form-control border-2 border-start-0" id="telephone" name="telephone">
</div>
</div>
<div class="col-md-4">
<label class="form-label fw-bold text-muted small"><?= _("Adresse Postale") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-map-signs text-muted"></i></span>
<input type="text" class="form-control border-2 border-start-0 majuscule" id="adressePost" name="adressePost">
</div>
</div>
<div class="col-md-8">
<label class="form-label fw-bold text-muted small"><?= _("Adresse Géographique") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-map-marker-alt text-muted"></i></span>
<input type="text" class="form-control border-2 border-start-0 majuscule" id="adresseGeo" name="adresseGeo">
</div>
</div>
<div class="col-md-4">
<label class="form-label fw-bold text-muted small"><?= _("Pays") ?></label>
<select name="codePays" id="codePays" class="selectpicker form-control border-2 shadow-xs"
data-live-search="true" data-container="body" onchange="filtreVilleParPays();">
<?= liste_options($pays, '', false) ?>
</select>
</div>
</td>
</tr>
</tbody>
</table>
</form>
<div class="col-md-4">
<label class="form-label fw-bold text-muted small"><?= _("Région") ?></label>
<div id="div_ville">
<select name="codeVille" id="codeVille" class="selectpicker form-control border-2 shadow-xs"
data-live-search="true" data-container="body" onchange="JAVASCRIPT:filtreLocaliteParVille();">
<?= liste_options($ville, '', false) ?>
</select>
</div>
</div>
<div class="col-md-4">
<label class="form-label fw-bold text-muted small"><?= _("Ville") ?></label>
<div id="div_localite">
<select name="codeLocalite" id="codeLocalite" class="selectpicker form-control border-2 shadow-xs"
data-live-search="true" data-container="body">
<?= liste_options($localite, '', false) ?>
</select>
</div>
</div>
</div>
</form>
</div>
</div>
<script>
$(document).ready(function() {
// Initialisation Standard des SelectPickers
$('.selectpicker').selectpicker();
// Focus UX Neutral Pro
setTimeout(function() {
$('#libelle').focus();
}, 200);
});
/**
* Exemple de fonction de mise à jour dynamique respectant le protocole
* (A adapter selon votre logique de chargement de div_ville/div_localite)
*/
function actualiserSelectsGeographiques() {
// Après avoir injecté le nouveau HTML dans div_ville ou div_localite
// Il faut détruire et ré-init le plugin
$('.selectpicker').selectpicker('destroy').selectpicker();
}
</script>
<style>
.border-primary { border-color: #212e53 !important; }
.shadow-xs { box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.form-control.border-2 { border-width: 2px !important; }
.input-group-text.border-2 { border-width: 2px !important; }
.majuscule { text-transform: uppercase; }
.required:after { content: " *"; color: #dc3545; font-weight: bold; }
/* Harmonisation SelectPicker */
.bootstrap-select > .dropdown-toggle {
border-width: 2px !important;
height: 38px !important;
background-color: #fff !important;
}
</style>

View File

@ -1,14 +1,42 @@
<form id="formData">
<legend id="titre_formData"><?= _("Ajouter des données") ?></legend>
<table class="table table-responsive table-condensed">
<tbody>
<tr>
<td width="5%" align="center" class="required"><?= _("Libellé") ?></td>
<td width="40%" ><INPUT class="form-control majuscule" TYPE="text" id="libelle" NAME="libelle" required AUTOCOMPLETE="OFF" ></td>
<td width="5%" align="center"><?= _("Libellé Eng") ?></td>
<td width="35%" ><INPUT class="form-control majuscule" TYPE="text" id="libelleEng" NAME="libelleEng"></td>
</tr>
</tbody>
</table>
<form id="formData" class="container-fluid p-0">
<div class="card border-0 shadow-sm border-start border-4 border-primary" style="border-radius: var(--radius-md);">
<div class="card-header bg-white py-3 border-bottom">
<h6 class="mb-0 fw-bold text-uppercase text-success small">
<i class="fas fa-plus-circle me-2"></i><?= _("Ajouter un nouveau secteur d'activité") ?>
</h6>
</div>
<div class="card-body bg-light-50 p-4">
<div class="row g-4">
<div class="col-md-6">
<label class="form-label small fw-bold text-muted required"><?= _("Libellé (FR)") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0">
<i class="fas fa-briefcase text-muted"></i>
</span>
<input type="text"
class="form-control border-2 border-start-0 majuscule"
id="libelle"
name="libelle"
required
autocomplete="off">
</div>
</div>
<div class="col-md-6">
<label class="form-label small fw-bold text-muted"><?= _("Libellé (EN)") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0">
<i class="fas fa-language text-muted"></i>
</span>
<input type="text"
class="form-control border-2 border-start-0 majuscule"
id="libelleEng"
name="libelleEng"
autocomplete="off">
</div>
</div>
</div>
</div>
</div>
</form>

View File

@ -1,16 +1,42 @@
<form id="formData">
<legend id="titre_formData"><?= _("Ajouter des données") ?></legend>
<table class="table table-responsive table-condensed">
<tbody>
<tr>
<td width="5%" align="center" class="required"><?= _("Libellé") ?></td>
<td width="40%" ><INPUT class="form-control majuscule" TYPE="text" id="libelle" NAME="libelle" required AUTOCOMPLETE="OFF"></td>
<td width="5%" align="center"><?= _("Libellé Eng") ?></td>
<td width="35%" ><INPUT class="form-control majuscule" TYPE="text" id="libelleEng" NAME="libelleEng"></td>
</tr>
</tbody>
</table>
<form id="formData" class="container-fluid p-0">
<div class="card border-0 shadow-sm border-start border-4 border-primary" style="border-radius: var(--radius-md);">
<div class="card-header bg-white py-3 border-bottom">
<h6 class="mb-0 fw-bold text-uppercase text-success small">
<i class="fas fa-plus-circle me-2"></i><?= _("Ajouter un nouveau service") ?>
</h6>
</div>
<div class="card-body bg-light-50 p-4">
<div class="row g-4">
<div class="col-md-6">
<label class="form-label small fw-bold text-muted required"><?= _("Libellé du Service (FR)") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0">
<i class="fas fa-concierge-bell text-muted"></i>
</span>
<input type="text"
class="form-control border-2 border-start-0 majuscule"
id="libelle"
name="libelle"
required
autocomplete="off">
</div>
</div>
<div class="col-md-6">
<label class="form-label small fw-bold text-muted"><?= _("Libellé du Service (EN)") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0">
<i class="fas fa-language text-muted"></i>
</span>
<input type="text"
class="form-control border-2 border-start-0 majuscule"
id="libelleEng"
name="libelleEng"
autocomplete="off">
</div>
</div>
</div>
</div>
</div>
</form>

View File

@ -1,16 +1,75 @@
<form id="formData">
<legend id="titre_formData"><?= _("Ajouter des données") ?></legend>
<table class="table table-responsive table-condensed">
<tbody>
<tr>
<td width="5%" align="center" class="required"><?= _("Libellé") ?></td>
<td width="25%" ><INPUT class="form-control majuscule" TYPE="text" id="libelle" NAME="libelle" required AUTOCOMPLETE="OFF" ></td>
<td width="5%" align="center"><?= _("Libellé Eng") ?></td>
<td width="25%" ><INPUT class="form-control majuscule" TYPE="text" id="libelleEng" NAME="libelleEng"></td>
</tr>
</tbody>
</table>
</form>
<div class="card border-0 shadow-sm border-start border-4 border-primary">
<div class="card-header bg-white py-3 border-bottom">
<h6 class="mb-0 fw-bold text-uppercase text-success small" id="titre_formData">
<i class="fas fa-stethoscope me-2"></i><?= _("Ajouter une nouvelle spécialité de médecine") ?>
</h6>
</div>
<div class="card-body p-4">
<form id="formData" class="container-fluid p-0">
<div class="row g-4">
<div class="col-md-6">
<label class="form-label fw-bold text-muted small required"><?= _("Libellé (Fr)") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0">
<img src="../Bootstrap_new/images/france.png" width="16" alt="FR">
</span>
<input type="text"
class="form-control border-2 border-start-0 majuscule fw-bold"
id="libelle"
name="libelle"
required
autocomplete="OFF">
</div>
</div>
<div class="col-md-6">
<label class="form-label fw-bold text-muted small"><?= _("Libellé (Eng)") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0">
<img src="../Bootstrap_new/images/england.png" width="16" alt="EN">
</span>
<input type="text"
class="form-control border-2 border-start-0 majuscule"
id="libelleEng"
name="libelleEng"
autocomplete="OFF">
</div>
</div>
</div>
</form>
</div>
</div>
<script>
$(document).ready(function() {
// Règle d'Or Neutral Pro : Focus sur le premier champ modifiable après 200ms
setTimeout(function() {
$('#libelle').focus();
}, 200);
});
</script>
<style>
/* Identité Visuelle Neutral Pro */
.border-primary { border-color: #212e53 !important; }
.shadow-xs { box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.form-control.border-2, .input-group-text.border-2 {
border-width: 2px !important;
border-color: #dee2e6;
}
.form-control:focus {
border-color: #212e53;
box-shadow: 0 0 0 0.25rem rgba(33, 46, 83, 0.1);
}
.majuscule { text-transform: uppercase; }
.required:after {
content: " *";
color: #dc3545;
font-weight: bold;
}
</style>

View File

@ -1,33 +1,65 @@
<form id="formData">
<legend id="titre_formData"><?= _("Ajouter des données") ?></legend>
<table class="table table-responsive table-condensed">
<tbody>
<tr>
<td width="10%" align="center" class="required">Code</td>
<td width="10%" ><INPUT class="form-control majuscule" TYPE="text" id="codeTitre" NAME="codeTitre" required AUTOCOMPLETE="OFF" autofocus ></td>
<td width="10%" align="center" class="required"><?= _("Libellé Fr") ?></td>
<td width="20%" ><INPUT class="form-control majuscule" TYPE="text" id="libelle" NAME="libelle" required AUTOCOMPLETE="OFF" ></td>
<td width="10%" align="center">Titre Courrier FR</td>
<td width="15%" ><INPUT class="form-control majuscule" TYPE="text" id="titreCourrier" NAME="titreCourrier"></td>
</tr>
<tr>
<td width="10%" align="center"> <?= _("Type Personne") ?> </td>
<td width="10%" >
<select class="form-select" id="codeTypePersonne" NAME="codeTypePersonne" autofocus>
<?php liste_options($typepersonne,""); ?>
</SELECT>
</td>
<td width="10%" align="center"><?= _("Libellé Eng") ?></td>
<td width="20%" ><INPUT class="form-control majuscule" TYPE="text" id="libelleEng" NAME="libelleEng"></td>
<td width="10%" align="center">Titre Courrier ENG</td>
<td width="15%" ><INPUT class="form-control majuscule" TYPE="text" id="titreCourrierEng" NAME="titreCourrierEng"></td>
</tr>
</tbody>
</table>
<form id="formData" class="container-fluid p-0">
<div class="card border-0 shadow-sm border-start border-4 border-primary" style="border-radius: var(--radius-md);">
<div class="card-header bg-white py-3 border-bottom">
<h6 class="mb-0 fw-bold text-uppercase text-success small">
<i class="fas fa-plus-circle me-2"></i><?= _("Ajouter un nouveau Titre") ?>
</h6>
</div>
<div class="card-body bg-light-50 p-4">
<div class="row g-3 mb-4">
<div class="col-md-2">
<label class="form-label small fw-bold text-muted required"><?= _("Code") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-barcode text-muted"></i></span>
<input type="text" class="form-control border-2 border-start-0 majuscule fw-bold" id="codeTitre" name="codeTitre" required autocomplete="off">
</div>
</div>
<div class="col-md-5">
<label class="form-label small fw-bold text-muted required"><?= _("Libellé (FR)") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-user-tag text-muted"></i></span>
<input type="text" class="form-control border-2 border-start-0 majuscule" id="libelle" name="libelle" required autocomplete="off">
</div>
</div>
<div class="col-md-5">
<label class="form-label small fw-bold text-muted"><?= _("Titre sur Courrier (FR)") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-envelope-open-text text-muted"></i></span>
<input type="text" class="form-control border-2 border-start-0 majuscule" id="titreCourrier" name="titreCourrier" autocomplete="off">
</div>
</div>
</div>
<div class="row g-3">
<div class="col-md-2">
<label class="form-label small fw-bold text-muted"><?= _("Type Personne") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-users text-muted"></i></span>
<select class="form-control selectpicker border-2 border-start-0" id="codeTypePersonne" name="codeTypePersonne">
<?php liste_options($typepersonne, ""); ?>
</select>
</div>
</div>
<div class="col-md-5">
<label class="form-label small fw-bold text-muted"><?= _("Libellé (EN)") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-language text-muted"></i></span>
<input type="text" class="form-control border-2 border-start-0 majuscule" id="libelleEng" name="libelleEng" autocomplete="off">
</div>
</div>
<div class="col-md-5">
<label class="form-label small fw-bold text-muted"><?= _("Titre sur Courrier (EN)") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-envelope text-muted"></i></span>
<input type="text" class="form-control border-2 border-start-0 majuscule" id="titreCourrierEng" name="titreCourrierEng" autocomplete="off">
</div>
</div>
</div>
</div>
</div>
</form>

View File

@ -1,24 +1,80 @@
<form id="formData">
<legend id="titre_formData"><?= _("Ajouter des données") ?></legend>
<table class="table table-responsive table-condensed">
<tbody>
<tr>
<td width="5%" align="center" class="required"><?= _("Libellé") ?></td>
<td width="25%" ><INPUT class="form-control majuscule" TYPE="text" id="libelle" NAME="libelle" required AUTOCOMPLETE="OFF" ></td>
<td width="10%" align="center"><?= _("Libellé Eng") ?></td>
<td width="25%" ><INPUT class="form-control majuscule" TYPE="text" id="libelleEng" NAME="libelleEng"></td>
<td width="10%" align="right">Maladie Chronique</td>
<td width="5%">
<select name="maladieChronique" id="maladieChronique" class="form-select">
<?= liste_options($ouinonoptionnelle,'1',true) ?>
</select>
</td>
</tr>
</tbody>
</table>
</form>
<div class="card border-0 shadow-sm border-start border-4 border-primary">
<div class="card-header bg-white py-3 border-bottom">
<h6 class="mb-0 fw-bold text-uppercase text-success small" id="titre_formData">
<i class="fas fa-microscope me-2"></i><?= _("Ajouter un nouveau type d'affection") ?>
</h6>
</div>
<div class="card-body p-4">
<form id="formData" class="container-fluid p-0">
<div class="row g-4 align-items-end">
<div class="col-md-4">
<label class="form-label fw-bold text-muted small required"><?= _("Libellé (Fr)") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0">
<img src="../Bootstrap_new/images/france.png" width="16" alt="FR">
</span>
<input type="text"
class="form-control border-2 border-start-0 majuscule fw-bold"
id="libelle"
name="libelle"
required
autocomplete="OFF">
</div>
</div>
<div class="col-md-4">
<label class="form-label fw-bold text-muted small"><?= _("Libellé (Eng)") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0">
<img src="../Bootstrap_new/images/england.png" width="16" alt="EN">
</span>
<input type="text"
class="form-control border-2 border-start-0 majuscule"
id="libelleEng"
name="libelleEng"
autocomplete="OFF">
</div>
</div>
<div class="col-md-4">
<label class="form-label fw-bold text-muted small"><?= _("Maladie Chronique") ?></label>
<div class="shadow-xs">
<select name="maladieChronique" id="maladieChronique" class="selectpicker form-control border-2" data-container="body">
<?= liste_options($ouinonoptionnelle, '1', true) ?>
</select>
</div>
</div>
</div>
</form>
</div>
</div>
<script>
$(document).ready(function() {
// Initialisation du SelectPicker (Standard Neutral Pro)
$('.selectpicker').selectpicker();
// Focus UX : 200ms sur le premier champ modifiable
setTimeout(function() {
$('#libelle').focus();
}, 200);
});
</script>
<style>
/* Identité Visuelle Neutral Pro */
.border-primary { border-color: #212e53 !important; }
.shadow-xs { box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.form-control.border-2, .input-group-text.border-2 { border-width: 2px !important; }
.majuscule { text-transform: uppercase; }
.required:after { content: " *"; color: #dc3545; font-weight: bold; }
/* Ajustement SelectPicker pour cohérence 2px */
.bootstrap-select > .dropdown-toggle {
border-width: 2px !important;
height: 38px !important;
background-color: #fff !important;
}
</style>

View File

@ -1,16 +1,77 @@
<form id="formData">
<legend id="titre_formData"><?= _("Ajouter des données") ?></legend>
<table class="table table-responsive table-condensed">
<tbody>
<tr>
<td width="5%" align="center" class="required"><?= _("Libellé Fr") ?></td>
<td width="28%" ><INPUT class="form-control majuscule" TYPE="text" id="libelle" NAME="libelle" required AUTOCOMPLETE="OFF" ></td>
<td width="5%" align="center"><?= _("Libellé Eng") ?></td>
<td width="27%"><INPUT class="form-control majuscule" TYPE="text" id="libelleEng" NAME="libelleEng"></td>
</tr>
</tbody>
</table>
</form>
<div class="card border-0 shadow-sm border-start border-4 border-primary">
<div class="card-header bg-white py-3 border-bottom">
<h6 class="mb-0 fw-bold text-uppercase text-success small" id="titre_formData">
<i class="fas fa-plus-circle me-2"></i><?= _("Ajouter un nouveau type de paiement") ?>
</h6>
</div>
<div class="card-body p-4">
<form id="formData" class="container-fluid p-0">
<div class="row g-4">
<div class="col-md-6">
<label class="form-label fw-bold text-muted small required"><?= _("Libellé (Fr)") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0">
<img src="../Bootstrap_new/images/france.png" width="16" alt="FR">
</span>
<input type="text"
class="form-control border-2 border-start-0 majuscule fw-bold"
id="libelle"
name="libelle"
required
autocomplete="OFF">
</div>
</div>
<div class="col-md-6">
<label class="form-label fw-bold text-muted small"><?= _("Libellé (Eng)") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0">
<img src="../Bootstrap_new/images/england.png" width="16" alt="EN">
</span>
<input type="text"
class="form-control border-2 border-start-0 majuscule"
id="libelleEng"
name="libelleEng"
autocomplete="OFF">
</div>
</div>
</div>
</form>
</div>
</div>
<script>
$(document).ready(function() {
// Règle d'Or Neutral Pro : Focus différé de 200ms
setTimeout(function() {
$('#libelle').focus();
}, 200);
});
</script>
<style>
/* Identité Visuelle Neutral Pro */
.border-primary { border-color: #212e53 !important; }
.shadow-xs { box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.form-control.border-2, .input-group-text.border-2 {
border-width: 2px !important;
border-color: #dee2e6;
}
.form-control:focus {
border-color: #212e53;
box-shadow: 0 0 0 0.25rem rgba(33, 46, 83, 0.1);
}
.majuscule { text-transform: uppercase; }
.required:after {
content: " *";
color: #dc3545;
font-weight: bold;
}
</style>

View File

@ -1,20 +1,40 @@
<form id="formData">
<legend id="titre_formData"><?= _("Ajouter des données") ?></legend>
<table class="table table-responsive table-condensed">
<tbody>
<tr>
<td width="5%" align="center" class="required"><?= _("Libellé") ?></td>
<td width="30%"><INPUT class="form-control majuscule" TYPE="text" id="libelle" NAME="libelle" required AUTOCOMPLETE="OFF"></td>
<td width="5%" align="center" class="required"><?= _("Pays") ?>
<td width="20%">
<select name="codePays" id="codePays" class="form-select" required AUTOCOMPLETE="OFF">
<?= liste_options($pays,'',false) ?>
</select>
</td>
</tr>
</tbody>
</table>
<form id="formData" class="container-fluid p-0">
<div class="card border-0 shadow-sm border-start border-4 border-primary" style="border-radius: var(--radius-md);">
<div class="card-header bg-white py-3 border-bottom">
<h6 class="mb-0 fw-bold text-uppercase text-success small">
<i class="fas fa-plus-circle me-2"></i><?= _("Ajouter un nouveau Territoire") ?>
</h6>
</div>
<div class="card-body bg-light-50 p-4">
<div class="row g-4 align-items-end">
<div class="col-md-7">
<label class="form-label small fw-bold text-muted required"><?= _("Nom du territoire") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0">
<i class="fas fa-city text-muted"></i>
</span>
<input type="text"
class="form-control border-2 border-start-0 majuscule"
id="libelle"
name="libelle"
required
autocomplete="off">
</div>
</div>
<div class="col-md-5">
<label class="form-label small fw-bold text-muted required"><?= _("Pays de rattachement") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0">
<i class="fas fa-globe-africa text-muted"></i>
</span>
<select name="codePays" id="codePays" class="form-control selectpicker border-2 border-start-0" required>
<?= liste_options($pays, $_SESSION['codePaysSociete'], false) ?>
</select>
</div>
</div>
</div>
</div>
</div>
</form>

View File

@ -1,92 +1,78 @@
<?php
$nbreTotal = count($activite);
if($nbreTotal < 10){
$nbreTotal = '0'.$nbreTotal;
}else{
$nbreTotal = format_N($nbreTotal);
}
if (est_anglophone()){
if($existeselection){
$libbouton = "Uncheck all";
}else{
$libbouton = "Check all";
}
}else{
if($existeselection){
$libbouton = "Décocher tous";
}else{
$libbouton = "Cocher tous";
}
}
<?php
// Préparation simplifiée du compteur Standard Neutral Pro
$nbreTotal = count($activite);
?>
<?php $superUser = $_SESSION['superUser']; ?>
<div class="card border-0 shadow-sm overflow-hidden">
<div class="card-header bg-white py-3 border-bottom d-flex justify-content-between align-items-center">
<div class="d-flex align-items-center">
<h6 class="mb-0 fw-bold text-uppercase text-primary small">
<i class="fas fa-briefcase me-2"></i><?= _("Référentiel des activités de soins") ?>
</h6>
<span class="badge bg-primary-ghost text-primary ms-3 px-3 py-2 rounded-pill fw-bold" id="badge-total">
<?= $nbreTotal ?> <?= _("Lignes") ?>
</span>
</div>
<div id="table-buttons" class="d-flex gap-2"></div>
</div>
<table style="margin: auto" class="table-responsive">
<tbody>
<td><input class="form-control" style="text-align: center; font-size:10pt;" type="text" id="nbreTotal" name="nbreTotal" value="<?= _("Lignes Total").": ". $nbreTotal; ?>" readonly> </td>
</tbody>
</table>
<div class="card-body p-0">
<div class="table-responsive">
<table id="tableLister" class="table table-hover align-middle mb-0" style="width:100%">
<thead class="bg-light text-muted small text-uppercase">
<tr>
<th class="ps-4 border-0" width="15%"><?= _("Centre") ?></th>
<th class="border-0" width="15%">Code</th>
<th class="border-0"><?= _("Libellé") ?></th>
<th class="border-0 text-center pe-4" width="15%"><?= _("Actions") ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($activite as $v):
$idData = $this->nettoyer($v['id']);
$libelle = est_anglophone() ? $this->nettoyer($v['libelleEng']) : $this->nettoyer($v['libelle']);
?>
<tr>
<td class="ps-4 fw-medium text-muted small">
<?= $this->nettoyer($v['codeSociete']) ?>
</td>
<td>
<span class="badge bg-light text-dark border fw-bold px-2 py-1">
<?= $this->nettoyer($v['codeActivite']) ?>
</span>
</td>
<td class="fw-bold text-dark text-uppercase">
<?= $libelle ?>
</td>
<td class="text-center pe-4">
<button type="button"
class="btn btn-outline-primary btn-sm px-3 rounded-pill fw-bold shadow-xs"
onclick="formModifTableRef(<?= $idData; ?>);">
<i class="fas fa-edit me-1"></i> <?= _("Modifier") ?>
</button>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>
<input type="hidden" id="total" value="<?= $nbreTotal; ?>">
<input type="hidden" id="selectionne" value="<?= $existeselection ? 'true' : 'false'; ?>">
<table id="tableLister" class="table table-striped table-bordered table-hover table-condensed table-responsive compact">
<thead>
<tr>
<th class="text-center"><?= _("Centre gestion") ?></th>
<th class="text-center">Code</th>
<th class="text-center"><?= _("Libellé") ?></th>
<!--
<th class="text-center">
<button type="button" style="font-size:10pt; font-weight: bold; width:100%; background-color:#4caf50; color: white;" class="form-control btn" onclick="javascript:cocherDecocherTout($('#fichier_lister').val());" > <?= $libbouton; ?> </button>
</th>
-->
<th class="text-center"><?= _("Modifier") ?></th>
<!--
<th class="text-center">Supprimer</th>
-->
</tr>
</thead>
<tbody>
<?php foreach ($activite as $v):
$idData = $this->nettoyer($v['id']);
if (est_anglophone()){
$libelle = $this->nettoyer($v['libelleEng']);
}else{
$libelle = $this->nettoyer($v['libelle']);
}
?>
<tr valign="top">
<td class="text-center" width="15%"><?= $this->nettoyer($v['codeSociete']);; ?>
<td class="text-center" width="10%"><?= $this->nettoyer($v['codeActivite']) ?></td>
<td class="text-left" width="55%"><?= $libelle; ?></td>
<!--
<td class="text-center" width="10%">
<?php
if($this->nettoyer($v['choix'] == '0')){
$check ='';
}
else{
$check = 'checked';
}
?>
<INPUT TYPE="checkbox" class="custom-control-input" style="width: 2rem;height: 2rem;" id="choix" NAME="choix" value="<?=(($this->nettoyer($v['choix'])==0)? 0 : 1);?>" onclick="if (this.checked) this.value=1; else this.value=0;cocherDecocherUn($('#fichier_lister').val(),<?= $idData; ?>);" <?= $check;?>>
</td>
-->
<td class="text-center" width="10%">
<button style="width:100%" class ="form-control btn btn-primary" type="button" id="btn-editer" name="Modifier"
onclick="JAVASCRIPT:formModifTableRef(<?= $idData; ?>);" ><?= _("Modifier") ?></button>
</td>
<!--
<td class="text-center" width="10%">
<button style="width:100%" class = "form-control btn btn-danger" type="button" id="btn-supprimer" name="Supprimer"
onclick="JAVASCRIPT:supprimeLigneListe(<?= $idData; ?>,'<?= $superUser; ?>')">Supprimer</button>
</td>
-->
</tr>
<?php endforeach; ?>
</tbody>
</table>
<script>
$(document).ready(function() {
// Initialisation standard avec exports et compteur dynamique
initDataTableReference('#tableLister', 'Secteurs_Activite');
});
</script>
<style>
/* Rappel des constantes du Design System Neutral Pro */
#tableLister tbody td {
height: 60px;
border-bottom: 1px solid #f1f4f6;
}
.bg-primary-ghost { background-color: rgba(33, 46, 83, 0.08) !important; }
.shadow-xs { box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.text-primary { color: #212e53 !important; }
</style>

View File

@ -1,93 +1,86 @@
<?php
$nbreTotal = count($affection);
if($nbreTotal < 10){
$nbreTotal = '0'.$nbreTotal;
}else{
$nbreTotal = format_N($nbreTotal);
}
if (est_anglophone()){
if($existeselection){
$libbouton = "Uncheck all";
}else{
$libbouton = "Check all";
}
}else{
if($existeselection){
$libbouton = "Décocher tous";
}else{
$libbouton = "Cocher tous";
}
}
// Préparation simplifiée du compteur conforme au standard Neutral Pro
$nbreTotal = count($affection);
?>
<?php $superUser = $_SESSION['superUser']; ?>
<div class="card border-0 shadow-sm overflow-hidden">
<div class="card-header bg-white py-3 border-bottom d-flex justify-content-between align-items-center">
<div class="d-flex align-items-center">
<h6 class="mb-0 fw-bold text-uppercase text-primary small">
<i class="fas fa-hand-holding-medical me-2"></i><?= _("Référentiel des Affections") ?>
</h6>
<span class="badge bg-primary-ghost text-primary ms-3 px-3 py-2 rounded-pill fw-bold" id="badge-total">
<?= $nbreTotal ?> <?= _("Lignes") ?>
</span>
</div>
<div id="table-buttons" class="d-flex gap-2"></div>
</div>
<table style="margin: auto" class="table-responsive">
<tbody>
<td><input class="form-control" style="text-align: center; font-size:10pt;" type="text" id="nbreTotal" name="nbreTotal" value="<?= _("Lignes Total").": ". $nbreTotal; ?>" readonly> </td>
</tbody>
</table>
<input type="hidden" id="total" value="<?= $nbreTotal; ?>">
<input type="hidden" id="selectionne" value="<?= $existeselection ? 'true' : 'false'; ?>">
<table id="tableLister" class="table table-striped table-bordered table-hover table-condensed table-responsive compact">
<thead>
<tr>
<th class="text-center"><?= _("Centre gestion") ?></th>
<th class="text-center">Code</th>
<th class="text-center"><?= _("Libellé") ?></th>
<th class="text-center"><?= _("Type Affection") ?></th>
<!--
<th class="text-center">
<button type="button" style="font-size:10pt; font-weight: bold; width:100%; background-color:#4caf50; color: white;" class="form-control btn" onclick="javascript:cocherDecocherTout($('#fichier_lister').val());" > <?= $libbouton; ?> </button>
</th>
-->
<th class="text-center"><?= _("Modifier") ?></th>
<!--
<th class="text-center">Supprimer</th>
-->
</tr>
</thead>
<tbody>
<?php foreach ($affection as $v):
$idData = $this->nettoyer($v['id']);
if (est_anglophone()){
$libelle = $this->nettoyer($v['libelleEng']);
}else{
$libelle = $this->nettoyer($v['libelle']);
}
?>
<tr valign="top">
<td class="text-center" width="15%"><?= $this->nettoyer($v['codeSociete']);; ?>
<td class="text-center" width="10%"><?= $this->nettoyer($v['codeAffection']) ?></td>
<td class="text-left majuscule" width="35%"><?= $libelle ?></td>
<td class="text-left" width="20%"><?= $this->nettoyer($v['typeaffection']) ?></td>
<!--
<td class="text-center" width="10%">
<?php
if($this->nettoyer($v['choix'] == '0')){
$check ='';
}
else{
$check = 'checked';
}
?>
<INPUT TYPE="checkbox" class="custom-control-input" style="width: 2rem;height: 2rem;" id="choix" NAME="choix" value="<?=(($this->nettoyer($v['choix'])==0)? 0 : 1);?>" onclick="if (this.checked) this.value=1; else this.value=0;cocherDecocherUn($('#fichier_lister').val(),<?= $idData; ?>);" <?= $check;?>>
</td>
-->
<td class="text-center" width="10%">
<button style="width:100%" class ="form-control btn btn-primary" type="button" id="btn-editer" name="Modifier"
onclick="JAVASCRIPT:formModifTableRef(<?= $idData; ?>);" ><?= _("Modifier") ?></button>
</td>
<!--
<td class="text-center" width="10%">
<button style="width:100%" class = "form-control btn btn-danger" type="button" id="btn-supprimer" name="Supprimer"
onclick="JAVASCRIPT:supprimeLigneListe(<?= $idData; ?>,'<?= $superUser; ?>')">Supprimer</button>
</td>
-->
</tr>
<?php endforeach; ?>
</tbody>
</table>
<div class="card-body p-0">
<div class="table-responsive">
<table id="tableLister" class="table table-hover align-middle mb-0" style="width:100%">
<thead class="bg-light text-muted small text-uppercase">
<tr>
<th class="ps-4 border-0" width="15%"><?= _("Centre") ?></th>
<th class="border-0" width="10%">Code</th>
<th class="border-0"><?= _("Libellé") ?></th>
<th class="border-0"><?= _("Type Affection") ?></th>
<th class="border-0 text-center pe-4" width="15%"><?= _("Actions") ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($affection as $v):
$idData = $this->nettoyer($v['id']);
// Gestion multilingue Standard
$libelle = est_anglophone() ? $this->nettoyer($v['libelleEng']) : $this->nettoyer($v['libelle']);
?>
<tr>
<td class="ps-4 fw-medium text-muted small">
<?= $this->nettoyer($v['codeSociete']) ?>
</td>
<td>
<span class="badge bg-light text-dark border fw-bold px-2 py-1">
<?= $this->nettoyer($v['codeAffection']) ?>
</span>
</td>
<td class="fw-bold text-dark text-uppercase">
<?= $libelle ?>
</td>
<td>
<span class="text-muted small fw-bold">
<i class="fas fa-notes-medical me-1 opacity-50"></i>
<?= $this->nettoyer($v['typeaffection']) ?>
</span>
</td>
<td class="text-center pe-4">
<button type="button"
class="btn btn-outline-primary btn-sm px-3 rounded-pill fw-bold shadow-xs"
onclick="formModifTableRef(<?= $idData; ?>);">
<i class="fas fa-edit me-1"></i> <?= _("Modifier") ?>
</button>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>
<script>
$(document).ready(function() {
// Initialisation avec activation du compteur dynamique et des exports
initDataTableReference('#tableLister', 'Liste_Affections');
});
</script>
<style>
/* Rappel des constantes du Design System Neutral Pro */
#tableLister tbody td {
height: 60px; /* Règle d'or */
border-bottom: 1px solid #f1f4f6;
}
.bg-primary-ghost { background-color: rgba(33, 46, 83, 0.08) !important; }
.shadow-xs { box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.text-primary { color: #212e53 !important; }
</style>

View File

@ -1,86 +1,84 @@
<?php
$nbreTotal = count($banque);
if($nbreTotal < 10){
$nbreTotal = '0'.$nbreTotal;
}else{
$nbreTotal = format_N($nbreTotal);
}
if (est_anglophone()){
if($existeselection){
$libbouton = "Uncheck all";
}else{
$libbouton = "Check all";
}
}else{
if($existeselection){
$libbouton = "Décocher tous";
}else{
$libbouton = "Cocher tous";
}
}
<?php
// Préparation simplifiée du compteur Standard Neutral Pro
$nbreTotal = count($banque);
?>
<?php $superUser = $_SESSION['superUser']; ?>
<div class="card border-0 shadow-sm overflow-hidden">
<div class="card-header bg-white py-3 border-bottom d-flex justify-content-between align-items-center">
<div class="d-flex align-items-center">
<h6 class="mb-0 fw-bold text-uppercase text-primary small">
<i class="fas fa-university me-2"></i><?= _("Référentiel des Banques") ?>
</h6>
<span class="badge bg-primary-ghost text-primary ms-3 px-3 py-2 rounded-pill fw-bold" id="badge-total">
<?= $nbreTotal ?> <?= _("Lignes") ?>
</span>
</div>
<div id="table-buttons" class="d-flex gap-2"></div>
</div>
<table style="margin: auto" class="table-responsive">
<tbody>
<td><input class="form-control" style="text-align: center; font-size:10pt;" type="text" id="nbreTotal" name="nbreTotal" value="<?= _("Lignes Total").": ". $nbreTotal; ?>" readonly> </td>
</tbody>
</table>
<input type="hidden" id="total" value="<?= $nbreTotal; ?>">
<table id="tableLister" class="table table-striped table-bordered table-hover table-condensed table-responsive compact">
<thead>
<tr>
<th class="text-center"><?= _("Centre gestion") ?></th>
<th class="text-center" >Code</th>
<th class="text-center"><?= _("Libellé") ?></th>
<th class="text-center"><?= _("N° Compte") ?></th>
<!--
<th class="text-center">
<button type="button" style="font-size:10pt; font-weight: bold; width:100%; background-color:#4caf50; color: white;" class="form-control btn" onclick="javascript:cocherDecocherTout($('#fichier_lister').val());" > <?= $libbouton; ?> </button>
</th>
-->
<th class="text-center"><?= _("Modifier") ?></th>
<!--
<th class="text-center">Supprimer</th>
-->
</tr>
</thead>
<tbody>
<?php foreach ($banque as $v):
$idData = $this->nettoyer($v['id']);
?>
<tr valign="top">
<td class="text-center" width="15%"><?= $this->nettoyer($v['codeSociete']);; ?>
<td class="text-center" width="10%"><?= $this->nettoyer($v['codeBanque']) ?></td>
<td class="text-left" width="40%"><?= $this->nettoyer($v['libelle']) ?></td>
<td class="text-center" width="20%"><?= $this->nettoyer($v['numeroCompteCpt']) ?></td>
<!--
<td class="text-center" width="10%">
<?php
if($this->nettoyer($v['choix'] == '0')){
$check ='';
}
else{
$check = 'checked';
}
?>
<INPUT TYPE="checkbox" class="custom-control-input" style="width: 2rem;height: 2rem;" id="choix" NAME="choix" value="<?=(($this->nettoyer($v['choix'])==0)? 0 : 1);?>" onclick="if (this.checked) this.value=1; else this.value=0;cocherDecocherUn($('#fichier_lister').val(),<?= $idData; ?>);" <?= $check;?>>
</td>
-->
<td class="text-center" width="10%">
<button style="width:100%" class ="form-control btn btn-primary" type="button" id="btn-editer" name="Modifier"
onclick="JAVASCRIPT:formModifTableRef(<?= $idData; ?>);" ><?= _("Modifier") ?></button>
</td>
<!--
<td class="text-center" width="10%">
<button style="width:100%" class = "form-control btn btn-danger" type="button" id="btn-supprimer" name="Supprimer"
onclick="JAVASCRIPT:supprimeLigneListe(<?= $idData; ?>,'<?= $superUser; ?>')">Supprimer</button>
</td>
-->
</tr>
<?php endforeach; ?>
</tbody>
</table>
<div class="card-body p-0">
<div class="table-responsive">
<table id="tableLister" class="table table-hover align-middle mb-0" style="width:100%">
<thead class="bg-light text-muted small text-uppercase">
<tr>
<th class="ps-4 border-0" width="15%"><?= _("Centre") ?></th>
<th class="border-0" width="10%">Code</th>
<th class="border-0"><?= _("Libellé") ?></th>
<th class="border-0"><?= _("N° Compte") ?></th>
<th class="border-0 text-center pe-4" width="15%"><?= _("Actions") ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($banque as $v):
$idData = $this->nettoyer($v['id']);
?>
<tr>
<td class="ps-4 fw-medium text-muted small">
<?= $this->nettoyer($v['codeSociete']) ?>
</td>
<td>
<span class="badge bg-light text-dark border fw-bold px-2 py-1">
<?= $this->nettoyer($v['codeBanque']) ?>
</span>
</td>
<td class="fw-bold text-dark text-uppercase">
<?= $this->nettoyer($v['libelle']) ?>
</td>
<td>
<code class="text-primary fw-bold">
<i class="fas fa-credit-card me-1 opacity-50"></i>
<?= $this->nettoyer($v['numeroCompteCpt']) ?>
</code>
</td>
<td class="text-center pe-4">
<button type="button"
class="btn btn-outline-primary btn-sm px-3 rounded-pill fw-bold shadow-xs"
onclick="formModifTableRef(<?= $idData; ?>);">
<i class="fas fa-edit me-1"></i> <?= _("Modifier") ?>
</button>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>
<script>
$(document).ready(function() {
// Initialisation standard DataTables avec exports et compteur
initDataTableReference('#tableLister', 'Liste_Banques');
});
</script>
<style>
/* Rappel des constantes du Design System Neutral Pro */
#tableLister tbody td {
height: 60px;
border-bottom: 1px solid #f1f4f6;
}
.bg-primary-ghost { background-color: rgba(33, 46, 83, 0.08) !important; }
.shadow-xs { box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.text-primary { color: #212e53 !important; }
</style>

View File

@ -1,95 +1,85 @@
<?php
$nbreTotal = count($bureau);
if($nbreTotal < 10){
$nbreTotal = '0'.$nbreTotal;
}else{
$nbreTotal = format_N($nbreTotal);
}
if (est_anglophone()){
if($existeselection){
$libbouton = "Uncheck all";
}else{
$libbouton = "Check all";
}
}else{
if($existeselection){
$libbouton = "Décocher tous";
}else{
$libbouton = "Cocher tous";
}
}
// Nettoyage initial des données
$nbreTotal = count($bureau);
?>
<div class="card border-0 shadow-sm overflow-hidden">
<div class="card-header bg-white py-3 border-bottom d-flex justify-content-between align-items-center">
<div class="d-flex align-items-center">
<h6 class="mb-0 fw-bold text-uppercase text-primary small">
<i class="fas fa-building me-2"></i><?= _("Référentiel des Bureaux") ?>
</h6>
<span class="badge bg-primary-ghost text-primary ms-3 px-3 py-2 rounded-pill fw-bold" id="badge-total">
<?= $nbreTotal ?> <?= _("Lignes") ?>
</span>
</div>
<div id="table-buttons" class="d-flex gap-2"></div>
</div>
<div class="card-body p-0">
<div class="table-responsive">
<table id="tableLister" class="table table-hover align-middle mb-0" style="width:100%">
<thead class="bg-light text-muted small text-uppercase">
<tr>
<th class="ps-4 border-0"><?= _("Centre") ?></th>
<th class="border-0">Code</th>
<th class="border-0"><?= _("Libellé") ?></th>
<th class="border-0"><?= _("Responsable") ?></th>
<th class="border-0"><?= _("Téléphone") ?></th>
<th class="border-0 text-center pe-4"><?= _("Actions") ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($bureau as $v):
$idData = $this->nettoyer($v['id']);
?>
<tr>
<td class="ps-4 fw-medium text-muted small">
<?= $this->nettoyer($v['codeSociete']) ?>
</td>
<td>
<span class="badge bg-light text-dark border fw-bold px-2 py-1">
<?= $this->nettoyer($v['codeBureau']) ?>
</span>
</td>
<td class="fw-bold text-dark">
<?= $this->nettoyer($v['libelle']) ?>
</td>
<td class="text-muted">
<i class="far fa-user-circle me-1"></i> <?= $this->nettoyer($v['respo']) ?>
</td>
<td class="small">
<i class="fas fa-phone-alt me-1 opacity-50"></i> <?= $this->nettoyer($v['contacts']) ?>
</td>
<td class="text-center pe-4">
<button type="button"
class="btn btn-outline-primary btn-sm px-3 rounded-pill fw-bold shadow-xs"
onclick="formModifTableRef(<?= $idData; ?>);">
<i class="fas fa-edit me-1"></i> <?= _("Modifier") ?>
</button>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>
<script>
$(document).ready(function() {
// Initialisation standard avec moteur d'export et compteur dynamique
initDataTableReference('#tableLister', 'Liste_Bureaux');
});
</script>
<?php $superUser = $_SESSION['superUser']; ?>
<table style="margin: auto" class="table-responsive">
<tbody>
<td><input class="form-control" style="text-align: center; font-size:10pt;" type="text" id="nbreTotal" name="nbreTotal" value="<?= _("Lignes Total").": ". $nbreTotal; ?>" readonly> </td>
</tbody>
</table>
<input type="hidden" id="total" value="<?= $nbreTotal ; ?>">
<table id="tableLister" class="table table-striped table-bordered table-hover table-condensed table-responsive">
<thead>
<tr>
<th class="text-center"><?= _("Centre gestion") ?></th>
<th class="text-center" >Code</th>
<th class="text-center"><?= _("Libellé") ?></th>
<th class="text-center"><?= _("Responsable") ?></th>
<th class="text-center"><?= _("Téléphone") ?></th>
<!--
<th class="text-center">
<button type="button" style="font-size:10pt; font-weight: bold; width:100%; background-color:#4caf50; color: white;" class="form-control btn" onclick="javascript:cocherDecocherTout($('#fichier_lister').val());" > <?= $libbouton; ?> </button>
</th>
-->
<th class="text-center"><?= _("Modifier") ?></th>
<!--
<th class="text-center">Supprimer</th>
-->
</tr>
</thead>
<tbody>
<?php foreach ($bureau as $v):
$idData = $this->nettoyer($v['id']);
?>
<tr valign="top">
<td class="text-center" width="15%"><?= $this->nettoyer($v['codeSociete']) ?></td>
<td class="text-center" width="10%"><?= $this->nettoyer($v['codeBureau']) ?></td>
<td class="text-left" width="30%"><?= $this->nettoyer($v['libelle']) ?></td>
<td class="text-left" width="20%"><?= $this->nettoyer($v['respo']) ?></td>
<td class="text-left" width="20%"><?= $this->nettoyer($v['contacts']) ?></td>
<!--
<td class="text-center" width="10%">
<?php
if($this->nettoyer($v['choix'] == '0')){
$check ='';
}
else{
$check = 'checked';
}
?>
<INPUT TYPE="checkbox" class="custom-control-input" style="width: 2rem;height: 2rem;" id="choix" NAME="choix" value="<?=(($this->nettoyer($v['choix'])==0)? 0 : 1);?>" onclick="if (this.checked) this.value=1; else this.value=0;cocherDecocherUn($('#fichier_lister').val(),<?= $idData; ?>);" <?= $check;?>>
</td>
-->
<td class="text-center" width="10%">
<button style="width:100%" class ="form-control btn btn-primary" type="button" id="btn-editer" name="Modifier"
onclick="JAVASCRIPT:formModifTableRef(<?= $idData; ?>);" ><?= _("Modifier") ?></button>
</td>
<!--
<td class="text-center" width="10%">
<button style="width:100%" class = "form-control btn btn-danger" type="button" id="btn-supprimer" name="Supprimer"
onclick="JAVASCRIPT:supprimeLigneListe(<?= $idData; ?>,'<?= $superUser; ?>')">Supprimer</button>
</td>
-->
</tr>
<?php endforeach; ?>
</tbody>
</table>
<style>
/* Rappel des styles du Master Prompt */
#tableLister tbody td {
height: 60px; /* Règle d'or Neutral Pro */
border-bottom: 1px solid #f1f4f6;
}
.bg-primary-ghost { background-color: rgba(33, 46, 83, 0.08) !important; }
.shadow-xs { box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.text-primary { color: #212e53 !important; }
</style>

View File

@ -1,53 +1,89 @@
<?php
$nbreTotal = count($commerciaux);
if($nbreTotal < 10){
$nbreTotal = '0'.$nbreTotal;
}else{
$nbreTotal = format_N($nbreTotal);
}
<?php
// Préparation simplifiée du compteur conforme au standard
$nbreTotal = count($commerciaux);
?>
<table style="margin: auto" class="table-responsive">
<tbody>
<td><input class="form-control" style="text-align: center; font-size:10pt;" type="text" id="nbreTotal" name="nbreTotal" value="<?= _("Lignes Total").": ". $nbreTotal; ?>" readonly> </td>
</tbody>
</table>
<input type="hidden" id="total" value="<?= $nbreTotal; ?>">
<table id="tableLister" class="table table-striped table-bordered table-hover table-condensed table-responsive">
<thead>
<tr>
<th class="text-center"><?= _("Centre gestion") ?></th>
<th class="text-center">Code</th>
<th class="text-center"><?= _("Nom et Prénoms") ?></th>
<th class="text-center">Type</th>
<th class="text-center"><?= _("Bureau") ?></th>
<th class="text-center"><?= _("Modifier") ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($commerciaux as $v):
$idData = $this->nettoyer($v['id']);
?>
<tr valign="top">
<td class="text-center" width="18%"><?= $this->nettoyer($v['codeSociete']);; ?>
<td class="text-center" width="10%"><?= $this->nettoyer($v['codeApporteur']) ?></td>
<td class="text-left" width="30%"><?= $this->nettoyer($v['libelle']) ?></td>
<td class="text-left" width="25%"><?= $this->nettoyer($v['typeapp']) ?></td>
<td class="text-left" width="20%"><?= $this->nettoyer($v['bureau']) ?></td>
<td class="text-center" width="10%">
<button style="width:100%" class ="form-control btn btn-primary" type="button" id="btn-editer" name="Modifier"
onclick="JAVASCRIPT:formModifTableRef(<?= $idData; ?>);" ><?= _("Modifier") ?></button>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<div class="card border-0 shadow-sm overflow-hidden">
<div class="card-header bg-white py-3 border-bottom d-flex justify-content-between align-items-center">
<div class="d-flex align-items-center">
<h6 class="mb-0 fw-bold text-uppercase text-primary small">
<i class="fas fa-users me-2"></i><?= _("Référentiel des Commerciaux") ?>
</h6>
<span class="badge bg-primary-ghost text-primary ms-3 px-3 py-2 rounded-pill fw-bold" id="badge-total">
<?= $nbreTotal ?> <?= _("Lignes") ?>
</span>
</div>
<div id="table-buttons" class="d-flex gap-2"></div>
</div>
<div class="card-body p-0">
<div class="table-responsive">
<table id="tableLister" class="table table-hover align-middle mb-0" style="width:100%">
<thead class="bg-light text-muted small text-uppercase">
<tr>
<th class="ps-4 border-0"><?= _("Centre gestion") ?></th>
<th class="border-0">Code</th>
<th class="border-0"><?= _("Nom et Prénoms") ?></th>
<th class="border-0">Type</th>
<th class="border-0"><?= _("Bureau") ?></th>
<th class="border-0 text-center pe-4"><?= _("Actions") ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($commerciaux as $v):
$idData = $this->nettoyer($v['id']);
?>
<tr>
<td class="ps-4 fw-medium text-muted small">
<?= $this->nettoyer($v['codeSociete']) ?>
</td>
<td>
<span class="badge bg-light text-dark border fw-bold px-2 py-1">
<?= $this->nettoyer($v['codeApporteur']) ?>
</span>
</td>
<td class="fw-bold text-dark">
<?= $this->nettoyer($v['libelle']) ?>
</td>
<td>
<span class="text-muted small fw-bold text-uppercase">
<i class="fas fa-id-badge me-1 opacity-50"></i><?= $this->nettoyer($v['typeapp']) ?>
</span>
</td>
<td>
<span class="text-muted small">
<i class="fas fa-map-marker-alt me-1 opacity-50"></i><?= $this->nettoyer($v['bureau']) ?>
</span>
</td>
<td class="text-center pe-4">
<button type="button"
class="btn btn-outline-primary btn-sm px-3 rounded-pill fw-bold shadow-xs"
onclick="formModifTableRef(<?= $idData; ?>);">
<i class="fas fa-edit me-1"></i> <?= _("Modifier") ?>
</button>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>
<script>
$(document).ready(function() {
// Initialisation avec activation des exports Excel/PDF et compteur dynamique
initDataTableReference('#tableLister', 'Liste_Commerciaux');
});
</script>
<style>
/* Rappel des hauteurs de lignes et styles spécifiques du Master Prompt */
#tableLister tbody td {
height: 60px;
border-bottom: 1px solid #f1f4f6;
}
.bg-primary-ghost { background-color: rgba(33, 46, 83, 0.08) !important; }
.shadow-xs { box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.text-primary { color: #212e53 !important; }
</style>

View File

@ -1,55 +1,82 @@
<?php
$nbreTotal = count($tabentete);
if($nbreTotal < 10){
$nbreTotal = '0'.$nbreTotal;
}else{
$nbreTotal = format_N($nbreTotal);
}
<?php
// Préparation du compteur Standard Neutral Pro
$nbreTotal = count($tabentete);
?>
<?php $superUser = $_SESSION['superUser']; ?>
<div class="card border-0 shadow-sm overflow-hidden">
<div class="card-header bg-white py-3 border-bottom d-flex justify-content-between align-items-center">
<div class="d-flex align-items-center">
<h6 class="mb-0 fw-bold text-uppercase text-primary small">
<i class="fas fa-hourglass-half me-2"></i><?= _("Référentiel des catégories de Tranches d'Âge") ?>
</h6>
<span class="badge bg-primary-ghost text-primary ms-3 px-3 py-2 rounded-pill fw-bold" id="badge-total">
<?= $nbreTotal ?> <?= _("Lignes") ?>
</span>
</div>
<div id="table-buttons" class="d-flex gap-2"></div>
</div>
<table style="margin: auto" class="table-responsive">
<tbody>
<td><input class="form-control" style="text-align: center; font-size:10pt;" type="text" id="nbreTotal" name="nbreTotal" value="<?= _("Lignes Total").": ". $nbreTotal; ?>" readonly> </td>
</tbody>
</table>
<input type="hidden" id="total" value="<?= $nbreTotal; ?>">
<table id="tableLister" class="table table-striped table-bordered table-hover table-condensed table-responsive caompact">
<thead>
<tr>
<th class="text-center"><?= _("Centre gestion") ?></th>
<th class="text-center"><?= _("Garant") ?></th>
<th class="text-center">Code</th>
<th class="text-center"><?= _("Libellé") ?></th>
<th class="text-center"><?= _("Modifier") ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($tabentete as $v):
$idData = $this->nettoyer($v['id']);
$libelle = $this->nettoyer($v['libelle']);
if (est_anglophone()){
$libelle = $this->nettoyer($v['libelleEng']);
<div class="card-body p-0">
<div class="table-responsive">
<table id="tableLister" class="table table-hover align-middle mb-0" style="width:100%">
<thead class="bg-light text-muted small text-uppercase">
<tr>
<th class="ps-4 border-0"><?= _("Centre") ?></th>
<th class="border-0"><?= _("Garant") ?></th>
<th class="border-0">Code</th>
<th class="border-0"><?= _("Libellé") ?></th>
<th class="border-0 text-center pe-4"><?= _("Actions") ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($tabentete as $v):
$idData = $this->nettoyer($v['id']);
$libelle = est_anglophone() ? $this->nettoyer($v['libelleEng']) : $this->nettoyer($v['libelle']);
?>
<tr>
<td class="ps-4 fw-medium text-muted small">
<?= $this->nettoyer($v['codeSociete']) ?>
</td>
<td class="fw-bold text-dark text-uppercase">
<span class="badge bg-white border text-primary shadow-xs px-2">
<i class="fas fa-shield-alt me-1 opacity-50"></i> <?= $this->nettoyer($v['garant']) ?>
</span>
</td>
<td>
<code class="fw-bold text-primary"><?= $this->nettoyer($v['codeEnteteTrancheAge']) ?></code>
</td>
<td class="fw-medium">
<?= $libelle ?>
</td>
<td class="text-center pe-4">
<button type="button"
class="btn btn-outline-primary btn-sm px-3 rounded-pill fw-bold shadow-xs"
onclick="formModifTableRef(<?= $idData; ?>);">
<i class="fas fa-edit me-1"></i> <?= _("Modifier") ?>
</button>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>
}
?>
<tr valign="top">
<td class="text-center" width="15%"><?= $this->nettoyer($v['codeSociete']);; ?>
<td class="text-center majuscule" width="20%"><?= $this->nettoyer($v['garant']) ?></td>
<td class="text-center" width="20%"><?= $this->nettoyer($v['codeEnteteTrancheAge']) ?></td>
<td class="text-center" width="20%"><?= $libelle ?></td>
<td class="text-center" width="10%">
<button style="width:100%" class ="form-control btn btn-primary" type="button" id="btn-editer" name="Modifier"
onclick="JAVASCRIPT:formModifTableRef(<?= $idData; ?>);" ><?= _("Modifier") ?></button>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<script>
$(document).ready(function() {
// Initialisation standard avec exports et compteur
initDataTableReference('#tableLister', 'Tranches_Age_Entete');
});
</script>
<style>
/* Rappel des règles d'or Neutral Pro */
#tableLister tbody td {
height: 60px;
border-bottom: 1px solid #f1f4f6;
}
.bg-primary-ghost { background-color: rgba(33, 46, 83, 0.08) !important; }
.shadow-xs { box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.text-primary { color: #212e53 !important; }
</style>

View File

@ -1,91 +1,79 @@
<?php
$nbreTotal = count($etendueterritoire);
if($nbreTotal < 10){
$nbreTotal = '0'.$nbreTotal;
}else{
$nbreTotal = format_N($nbreTotal);
}
if (est_anglophone()){
if($existeselection){
$libbouton = "Uncheck all";
}else{
$libbouton = "Check all";
}
}else{
if($existeselection){
$libbouton = "Décocher tous";
}else{
$libbouton = "Cocher tous";
}
}
<?php
// Préparation simplifiée du compteur Standard
$nbreTotal = count($etendueterritoire);
?>
<?php $superUser = $_SESSION['superUser']; ?>
<div class="card border-0 shadow-sm overflow-hidden">
<div class="card-header bg-white py-3 border-bottom d-flex justify-content-between align-items-center">
<div class="d-flex align-items-center">
<h6 class="mb-0 fw-bold text-uppercase text-primary small">
<i class="fas fa-map-marked-alt me-2"></i><?= _("Référentiel des étendues de Territoire") ?>
</h6>
<span class="badge bg-primary-ghost text-primary ms-3 px-3 py-2 rounded-pill fw-bold" id="badge-total">
<?= $nbreTotal ?> <?= _("Lignes") ?>
</span>
</div>
<div id="table-buttons" class="d-flex gap-2"></div>
</div>
<table style="margin: auto" class="table-responsive">
<tbody>
<td><input class="form-control" style="text-align: center; font-size:10pt;" type="text" id="nbreTotal" name="nbreTotal" value="<?= _("Lignes Total").": ". $nbreTotal; ?>" readonly> </td>
</tbody>
</table>
<input type="hidden" id="total" value="<?= $nbreTotal; ?>">
<input type="hidden" id="selectionne" value="<?= $existeselection ? 'true' : 'false'; ?>">
<table id="tableLister" class="table table-striped table-bordered table-hover table-condensed table-responsive">
<thead>
<tr>
<th class="text-center"><?= _("Centre gestion") ?></th>
<th class="text-center">Code</th>
<th class="text-center"><?= _("Libellé") ?></th>
<!--
<th class="text-center">
<button type="button" style="font-size:10pt; font-weight: bold; width:100%; background-color:#4caf50; color: white;" class="form-control btn" onclick="javascript:cocherDecocherTout($('#fichier_lister').val());" > <?= $libbouton; ?> </button>
</th>
-->
<th class="text-center"><?= _("Modifier") ?></th>
<!--
<th class="text-center">Supprimer</th>
-->
</tr>
</thead>
<tbody>
<?php foreach ($etendueterritoire as $v):
$idData = $this->nettoyer($v['id']);
if (est_anglophone()){
$libelle = $this->nettoyer($v['libelleEng']);
}else{
$libelle = $this->nettoyer($v['libelle']);
}
?>
<tr valign="top">
<td class="text-center" width="15%"><?= $this->nettoyer($v['codeSociete']);; ?>
<td class="text-center" width="10%"><?= $this->nettoyer($v['codeTerritoire']) ?></td>
<td class="text-left" width="55%"><?= $libelle; ?></td>
<!--
<td class="text-center" width="10%">
<?php
if($this->nettoyer($v['choix'] == '0')){
$check ='';
}
else{
$check = 'checked';
}
?>
<INPUT TYPE="checkbox" class="custom-control-input" style="width: 2rem;height: 2rem;" id="choix" NAME="choix" value="<?=(($this->nettoyer($v['choix'])==0)? 0 : 1);?>" onclick="if (this.checked) this.value=1; else this.value=0;cocherDecocherUn($('#fichier_lister').val(),<?= $idData; ?>);" <?= $check;?>>
</td>
-->
<td class="text-center" width="10%">
<button style="width:100%" class ="form-control btn btn-primary" type="button" id="btn-editer" name="Modifier"
onclick="JAVASCRIPT:formModifTableRef(<?= $idData; ?>);" ><?= _("Modifier") ?></button>
</td>
<!--
<td class="text-center" width="10%">
<button style="width:100%" class = "form-control btn btn-danger" type="button" id="btn-supprimer" name="Supprimer"
onclick="JAVASCRIPT:supprimeLigneListe(<?= $idData; ?>,'<?= $superUser; ?>')">Supprimer</button>
</td>
-->
</tr>
<?php endforeach; ?>
</tbody>
</table>
<div class="card-body p-0">
<div class="table-responsive">
<table id="tableLister" class="table table-hover align-middle mb-0" style="width:100%">
<thead class="bg-light text-muted small text-uppercase">
<tr>
<th class="ps-4 border-0" width="20%"><?= _("Centre") ?></th>
<th class="border-0" width="15%">Code</th>
<th class="border-0"><?= _("Libellé") ?></th>
<th class="border-0 text-center pe-4" width="15%"><?= _("Actions") ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($etendueterritoire as $v):
$idData = $this->nettoyer($v['id']);
// Gestion multilingue systématique
$libelle = est_anglophone() ? $this->nettoyer($v['libelleEng']) : $this->nettoyer($v['libelle']);
?>
<tr>
<td class="ps-4 fw-medium text-muted small">
<?= $this->nettoyer($v['codeSociete']) ?>
</td>
<td>
<span class="badge bg-light text-dark border fw-bold px-2 py-1">
<?= $this->nettoyer($v['codeTerritoire']) ?>
</span>
</td>
<td class="fw-bold text-dark">
<?= $libelle ?>
</td>
<td class="text-center pe-4">
<button type="button"
class="btn btn-outline-primary btn-sm px-3 rounded-pill fw-bold shadow-xs"
onclick="formModifTableRef(<?= $idData; ?>);">
<i class="fas fa-edit me-1"></i> <?= _("Modifier") ?>
</button>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>
<script>
$(document).ready(function() {
// Initialisation avec le moteur d'export et compteur dynamique
initDataTableReference('#tableLister', 'Etendue_Territoire');
});
</script>
<style>
/* Application des règles d'or Neutral Pro */
#tableLister tbody td {
height: 60px;
border-bottom: 1px solid #f1f4f6;
}
.bg-primary-ghost { background-color: rgba(33, 46, 83, 0.08) !important; }
.shadow-xs { box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.text-primary { color: #212e53 !important; }
</style>

View File

@ -1,53 +1,69 @@
<?php
$nbreTotal = count($intermediaire);
if($nbreTotal < 10){
$nbreTotal = '0'.$nbreTotal;
}else{
$nbreTotal = format_N($nbreTotal);
}
?>
<div class="card border-0 shadow-sm overflow-hidden" style="border-radius: var(--radius-md);">
<div class="card-header bg-white py-3 border-bottom d-flex justify-content-between align-items-center">
<div class="d-flex align-items-center">
<h6 class="mb-0 fw-bold text-uppercase text-primary small">
<i class="fas fa-handshake me-2"></i><?= _("Référentiel des Courtiers & Intermédiaires") ?>
</h6>
<span class="badge bg-primary-ghost text-primary ms-3 px-3 py-2 rounded-pill fw-bold" id="badge-total">
0 <?= _("Lignes") ?>
</span>
</div>
<div id="table-buttons" class="d-flex gap-2"></div>
</div>
<?php $superUser = $_SESSION['superUser']; ?>
<div class="card-body p-0">
<div class="table-responsive">
<table id="tableLister" class="table table-hover align-middle mb-0" style="width:100%">
<thead class="bg-light text-muted small text-uppercase">
<tr>
<th class="ps-4 border-0"><?= _("Centre") ?></th>
<th class="border-0 text-center"><?= _("Code") ?></th>
<th class="border-0"><?= _("Raison Sociale") ?></th>
<th class="border-0"><?= _("Type") ?></th>
<th class="border-0"><?= _("Téléphone") ?></th>
<th class="border-0 text-center pe-4"><?= _("Actions") ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($intermediaire as $v):
$idData = $this->nettoyer($v['id']);
?>
<tr>
<td class="ps-4 fw-medium text-muted small"><?= $this->nettoyer($v['codeSociete']) ?></td>
<td class="text-center">
<span class="badge bg-light text-dark border fw-bold small">
<?= $this->nettoyer($v['codeApporteur']) ?>
</span>
</td>
<td class="fw-bold text-dark"><?= $this->nettoyer($v['libelle']) ?></td>
<td>
<span class="text-muted small text-uppercase fw-bold">
<i class="fas fa-tag me-1 opacity-50"></i><?= $this->nettoyer($v['type_apporteur']) ?>
</span>
</td>
<td class="text-muted">
<i class="fas fa-phone-alt me-1 small opacity-50"></i><?= $this->nettoyer($v['telephone']) ?>
</td>
<td class="text-center pe-4">
<button type="button"
class="btn btn-outline-primary btn-sm px-3 rounded-pill fw-bold shadow-xs"
onclick="formModifTableRef(<?= $idData ?>);">
<i class="fas fa-edit me-1"></i> <?= _("Modifier") ?>
</button>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>
<table style="margin: auto" class="table-responsive">
<tbody>
<td><input class="form-control" style="text-align: center; font-size:10pt;" type="text" id="nbreTotal" name="nbreTotal" value="<?= _("Lignes Total").": ". $nbreTotal; ?>" readonly> </td>
</tbody>
</table>
<input type="hidden" id="total" value="<?= $nbreTotal; ?>">
<table id="tableLister" class="table table-striped table-bordered table-hover table-condensed table-responsive">
<thead>
<tr>
<th class="text-center"><?= _("Centre gestion") ?></th>
<th class="text-center">Code</th>
<th class="text-center"><?= _("Raison Sociale") ?> </th>
<th class="text-center">Type</th>
<th class="text-center"><?= _("Téléphone") ?></th>
<th class="text-center"><?= _("Modifier") ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($intermediaire as $v):
$idData = $this->nettoyer($v['id']);
?>
<tr valign="top">
<td class="text-center" width="15%"><?= $this->nettoyer($v['codeSociete']);; ?>
<td class="text-center" width="10%"><?= $this->nettoyer($v['codeApporteur']) ?></td>
<td class="text-left" width="30%"><?= $this->nettoyer($v['libelle']) ?></td>
<td class="text-left" width="20%"><?= $this->nettoyer($v['type_apporteur']) ?></td>
<td class="text-left" width="20%"><?= $this->nettoyer($v['telephone']) ?></td>
<td class="text-center" width="10%">
<button style="width:100%" class ="form-control btn btn-primary" type="button" id="btn-editer" name="Modifier"
onclick="JAVASCRIPT:formModifTableRef(<?= $idData; ?>);" ><?= _("Modifier") ?></button>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<style>
/* Rappel des piliers visuels Neutral Pro */
.bg-primary-ghost { background-color: rgba(33, 46, 83, 0.08) !important; }
#tableLister thead th { padding-top: 15px; padding-bottom: 15px; font-size: 0.75rem; letter-spacing: 0.5px; }
#tableLister tbody td { border-color: #f1f4f6; height: 60px; }
.shadow-xs { box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.text-primary { color: #212e53 !important; }
</style>

View File

@ -1,128 +1,120 @@
<?php
$nbreTotal = count($tabjoursferiers);
if($nbreTotal < 10){
$nbreTotal = '0'.$nbreTotal;
}else{
$nbreTotal = format_N($nbreTotal);
}
if (est_anglophone()){
if($existeselection){
$libbouton = "Uncheck all";
}else{
$libbouton = "Check all";
}
}else{
if($existeselection){
$libbouton = "Décocher tous";
}else{
$libbouton = "Cocher tous";
}
}
?>
<div class="card border-0 shadow-sm overflow-hidden" style="border-radius: 12px;">
<div class="card-header bg-white py-3 border-bottom d-flex justify-content-between align-items-center">
<div class="d-flex align-items-center" style="flex: 1;">
<h6 class="mb-0 fw-bold text-uppercase text-primary small">
<i class="fas fa-calendar-alt me-2"></i><?= _("Calendrier des Jours Fériés") ?>
</h6>
<span class="badge bg-primary-ghost text-primary ms-3 px-3 py-2 rounded-pill fw-bold" id="badge-total">
0 <?= _("Lignes") ?>
</span>
</div>
<div class="d-flex justify-content-center align-items-center" style="flex: 1;">
<div class="input-group shadow-xs" style="width: 160px;">
<span class="input-group-text bg-white border-2 border-end-0 text-muted small fw-bold">
<i class="fas fa-filter"></i>
</span>
<input type="number"
class="form-control border-2 border-start-0 fw-bold text-primary text-center"
id="annee"
name="annee"
value="<?= $annee_selectionnee ?? date('Y'); ?>"
min="2020"
max="<?= date('Y'); ?>"
step="1"
onchange="changerAnneeFiltre(this.value);">
</div>
</div>
<div id="table-buttons" class="d-flex gap-2 justify-content-end" style="flex: 1;"></div>
</div>
<?php $superUser = $_SESSION['superUser']; ?>
<div class="card-body p-0">
<div class="table-responsive">
<table id="tableLister" class="table table-hover align-middle mb-0" style="width:100%">
<thead class="bg-light text-muted small text-uppercase">
<tr>
<th class="ps-4 border-0" style="width: 15%;"><?= _("Centre") ?></th>
<th class="border-0" style="width: 25%;"><?= _("Date") ?></th>
<th class="border-0"><?= _("Libellé du jour") ?></th>
<th class="border-0 text-center pe-4" style="width: 15%;"><?= _("Actions") ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($tabjoursferiers as $v):
$idData = $this->nettoyer($v['id']);
$isDemi = ($this->nettoyer($v['demiJournee']) == "1");
$libelleBase = est_anglophone() ? $this->nettoyer($v['libelleEng']) : $this->nettoyer($v['libelle']);
$dateFerier = $this->nettoyer($v['dateFerier']);
$ladate = date('d/m/Y', strtotime($dateFerier));
?>
<tr>
<td class="ps-4 fw-medium text-muted small">
<i class="fas fa-building me-1 opacity-50"></i> <?= $this->nettoyer($v['codeSociete']); ?>
</td>
<td>
<div class="d-flex align-items-center">
<div class="bg-primary-ghost text-primary rounded-3 p-2 me-3 text-center" style="min-width: 45px;">
<span class="d-block lh-1 fw-bold" style="font-size: 1.1rem;"><?= date('d', strtotime($dateFerier)) ?></span>
<span class="small text-uppercase" style="font-size: 0.65rem;"><?= date('M', strtotime($dateFerier)) ?></span>
</div>
<span class="fw-bold text-dark"><?= $ladate ?></span>
</div>
</td>
<td>
<span class="fw-medium text-dark"><?= $libelleBase ?></span>
<?php if($isDemi): ?>
<span class="badge rounded-pill bg-warning-subtle text-warning border border-warning-subtle ms-2 small">
<i class="fas fa-adjust me-1"></i><?= est_anglophone() ? "Half day" : "Demi-journée" ?>
</span>
<?php endif; ?>
</td>
<td class="text-center pe-4">
<button type="button"
class="btn btn-outline-primary btn-sm px-3 rounded-pill fw-bold shadow-xs"
onclick="formModifTableRef(<?= $idData ?>);">
<i class="fas fa-edit me-1"></i> <?= _("Modifier") ?>
</button>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>
<table style="margin: auto; width:50%;" class="table-responsive">
<tbody>
<tr>
<td width="3%" align="center"><?= _("Année") ?></td>
<td width="7%" ><INPUT class="form-control" TYPE="number" min="2020" step="1" id="annee" NAME="annee" value="<?= date('Y'); ?>" onchange="afficheDonneesTableChoisie('Ajaxtblisterjoursferiers');"></td>
<td align="center" width="3%" > <?= _("Pays") ?> </td>
<td width="20%">
<SELECT onChange="afficheDonneesTableChoisie('Ajaxtblisterjoursferiers');" class="form-select" id="codePays" NAME="codePays">
<?php liste_options($pays,$_SESSION['codePaysSociete']); ?>
</SELECT>
</td>
</tr>
<tr style="height:20px;">
</tr>
</tbody>
</table>
<script>
$(document).ready(function() {
// Initialisation avec le nom d'export standard
initDataTableReference('#tableLister', 'Jours_Feriers_<?= date("Y") ?>');
});
</script>
<div id="div_liste_jour">
<table style="margin: auto" class="table-responsive">
<tbody>
<td><input class="form-control" style="text-align: center; font-size:10pt;" type="text" id="nbreTotal" name="nbreTotal" value="<?= _("Lignes Total").": ". $nbreTotal; ?>" readonly> </td>
</tbody>
</table>
<input type="hidden" id="total" value="<?= $nbreTotal; ?>">
<input type="hidden" id="selectionne" value="<?= $existeselection ? 'true' : 'false'; ?>">
<table id="tableLister" class="table table-striped table-bordered table-hover table-condensed table-responsive">
<thead>
<tr>
<th class="text-center"><?= _("Centre gestion") ?></th>
<th class="text-center">ID</th>
<th class="text-center">Date</th>
<th class="text-center"><?= _("Libellé") ?></th>
<!--
<th class="text-center">
<button type="button" style="font-size:10pt; font-weight: bold; width:100%; background-color:#4caf50; color: white;" class="form-control btn" onclick="javascript:cocherDecocherTout($('#fichier_lister').val());" > <?= $libbouton; ?> </button>
</th>
-->
<th class="text-center"><?= _("Modifier") ?></th>
<!--
<th class="text-center">Supprimer</th>
-->
</tr>
</thead>
<tbody>
<?php foreach ($tabjoursferiers as $v):
$idData = $this->nettoyer($v['id']);
if (est_anglophone()){
if($this->nettoyer($v['demiJournee'])=="1"){
$libelle = $this->nettoyer($v['libelleEng'])." (half day)";
}else{
$libelle = $this->nettoyer($v['libelleEng']);
}
}else{
if($this->nettoyer($v['demiJournee'])=="1"){
$libelle = $this->nettoyer($v['libelle'])." (demi-journée)";
}else{
$libelle = $this->nettoyer($v['libelle']);
}
}
$dateFerier = $this->nettoyer($v['dateFerier']);
$day = jour_fr(date('D', strtotime($dateFerier)));
$jour = date('d', strtotime($dateFerier));
$mois = mois_court_fr(date('F', strtotime($dateFerier)));
$ladate = $day." ".$jour."-".$mois."-".date('Y', strtotime($dateFerier));
?>
<tr valign="top">
<td class="text-center" width="5%"><?= $this->nettoyer($v['codeSociete']);; ?></td>
<td class="text-center" width="5%"><?= $this->nettoyer($v['id']);; ?></td>
<td class="text-center" width="15%"><?= $ladate; ?></td>
<td class="text-left" width="55%"><?= $libelle; ?></td>
<!--
<td class="text-center" width="10%">
<?php
if($this->nettoyer($v['choix'] == '0')){
$check ='';
}
else{
$check = 'checked';
}
?>
<INPUT TYPE="checkbox" class="custom-control-input" style="width: 2rem;height: 2rem;" id="choix" NAME="choix" value="<?=(($this->nettoyer($v['choix'])==0)? 0 : 1);?>" onclick="if (this.checked) this.value=1; else this.value=0;cocherDecocherUn($('#fichier_lister').val(),<?= $idData; ?>);" <?= $check;?>>
</td>
-->
<td class="text-center" width="10%">
<button style="width:100%" class ="form-control btn btn-primary" type="button" id="btn-editer" name="Modifier"
onclick="JAVASCRIPT:formModifTableRef(<?= $idData; ?>);" ><?= _("Modifier") ?></button>
</td>
<!--
<td class="text-center" width="10%">
<button style="width:100%" class = "form-control btn btn-danger" type="button" id="btn-supprimer" name="Supprimer"
onclick="JAVASCRIPT:supprimeLigneListe(<?= $idData; ?>,'<?= $superUser; ?>')">Supprimer</button>
</td>
-->
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<style>
.bg-primary-ghost { background-color: rgba(33, 46, 83, 0.08) !important; }
.shadow-xs { box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
#tableLister thead th {
padding-top: 15px;
padding-bottom: 15px;
background-color: #f8fafc;
border-bottom: 2px solid #edf2f7 !important;
}
#tableLister tbody td {
height: 60px; /* Règle d'or Neutral Pro */
border-bottom: 1px solid #f1f4f6;
}
/* Style spécifique pour l'input d'année dans le header */
#annee.form-control {
border-color: #dee2e6;
transition: all 0.2s;
}
#annee.form-control:focus {
border-color: #212e53;
box-shadow: none;
}
.text-primary { color: #212e53 !important; }
</style>

View File

@ -1,88 +1,71 @@
<?php
$nbreTotal = count($localite);
if($nbreTotal < 10){
$nbreTotal = '0'.$nbreTotal;
}else{
$nbreTotal = format_N($nbreTotal);
}
if (est_anglophone()){
if($existeselection){
$libbouton = "Uncheck all";
}else{
$libbouton = "Check all";
}
}else{
if($existeselection){
$libbouton = "Décocher tous";
}else{
$libbouton = "Cocher tous";
}
}
?>
<div class="card border-0 shadow-sm overflow-hidden" style="border-radius: var(--radius-md);">
<div class="card-header bg-white py-3 border-bottom d-flex justify-content-between align-items-center">
<div class="d-flex align-items-center">
<h6 class="mb-0 fw-bold text-uppercase text-primary small">
<i class="fas fa-map-marker-alt me-2"></i><?= _("Référentiel des Localités") ?>
</h6>
<span class="badge bg-primary-ghost text-primary ms-3 px-3 py-2 rounded-pill fw-bold" id="badge-total">
0 <?= _("Lignes") ?>
</span>
</div>
<div id="table-buttons" class="d-flex gap-2"></div>
</div>
<?php $superUser = $_SESSION['superUser']; ?>
<div class="card-body p-0">
<div class="table-responsive">
<table id="tableLister" class="table table-hover align-middle mb-0" style="width:100%">
<thead class="bg-light text-muted small text-uppercase">
<tr>
<th class="ps-4 border-0"><?= _("Centre") ?></th>
<th class="border-0 text-center"><?= _("Code") ?></th>
<th class="border-0"><?= _("Nom Localité") ?></th>
<th class="border-0"><?= _("District / Région") ?></th>
<th class="border-0"><?= _("Pays") ?></th>
<th class="border-0 text-center pe-4"><?= _("Actions") ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($localite as $v):
$idData = $this->nettoyer($v['id']);
?>
<tr>
<td class="ps-4 fw-medium text-muted small"><?= $this->nettoyer($v['codeSociete']) ?></td>
<td class="text-center">
<span class="badge bg-light text-dark border fw-bold"><?= $this->nettoyer($v['codeLocalite']) ?></span>
</td>
<td class="fw-bold text-dark"><?= $this->nettoyer($v['libelle']) ?></td>
<td class="text-muted"><?= $this->nettoyer($v['nomville']) ?></td>
<td>
<i class="fas fa-flag-checkered me-1 text-secondary opacity-50 small"></i>
<?= $this->nettoyer($v['nompays']) ?>
</td>
<td class="text-center pe-4">
<button type="button"
class="btn btn-outline-primary btn-sm px-3 rounded-pill fw-bold shadow-xs"
onclick="formModifTableRef(<?= $idData ?>);">
<i class="fas fa-edit me-1"></i> <?= _("Modifier") ?>
</button>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>
<table style="margin: auto" class="table-responsive">
<tbody>
<td><input class="form-control" style="text-align: center; font-size:10pt;" type="text" id="nbreTotal" name="nbreTotal" value="<?= _("Lignes Total").": ". $nbreTotal; ?>" readonly> </td>
</tbody>
</table>
<input type="hidden" id="total" value="<?= $nbreTotal; ?>">
<table id="tableLister" class="table table-striped table-bordered table-hover table-condensed table-responsive compact">
<thead>
<tr>
<th class="text-center"><?= _("Centre gestion") ?></th>
<th class="text-center">Code</th>
<th class="text-center"><?= _("Nom") ?> </th>
<th class="text-center"><?= _("District ou Région") ?></th>
<th class="text-center"><?= _("Pays") ?></th>
<!--
<th class="text-center">
<button type="button" style="font-size:10pt; font-weight: bold; width:100%; background-color:#4caf50; color: white;" class="form-control btn" onclick="javascript:cocherDecocherTout($('#fichier_lister').val());" > <?= $libbouton; ?> </button>
</th>
-->
<th class="text-center"><?= _("Modifier") ?></th>
<!--
<th class="text-center">Supprimer</th>
-->
</tr>
</thead>
<tbody>
<?php foreach ($localite as $v):
$idData = $this->nettoyer($v['id']);
?>
<tr valign="top">
<td class="text-center" width="15%"><?= $this->nettoyer($v['codeSociete']) ?></td>
<td class="text-center" width="10%"><?= $this->nettoyer($v['codeLocalite']) ?></td>
<td class="text-left" width="20%"><?= $this->nettoyer($v['libelle']) ?></td>
<td class="text-left" width="20%"><?= $this->nettoyer($v['nomville']) ?></td>
<td class="text-left" width="15%"><?= $this->nettoyer($v['nompays']) ?></td>
<!--
<td class="text-center" width="10%">
<?php
if($this->nettoyer($v['choix'] == '0')){
$check ='';
}
else{
$check = 'checked';
}
?>
<INPUT TYPE="checkbox" class="custom-control-input" style="width: 2rem;height: 2rem;" id="choix" NAME="choix" value="<?=(($this->nettoyer($v['choix'])==0)? 0 : 1);?>" onclick="if (this.checked) this.value=1; else this.value=0;cocherDecocherUn($('#fichier_lister').val(),<?= $idData; ?>);" <?= $check;?>>
</td>
-->
<td class="text-center" width="10%">
<button style="width:100%" class ="form-control btn btn-primary" type="button" id="btn-editer" name="Modifier"
onclick="JAVASCRIPT:formModifTableRef(<?= $idData; ?>);" ><?= _("Modifier") ?></button>
</td>
<!--
<td class="text-center" width="10%">
<button style="width:100%" class = "form-control btn btn-danger" type="button" id="btn-supprimer" name="Supprimer"
onclick="JAVASCRIPT:supprimeLigneListe(<?= $idData; ?>,'<?= $superUser; ?>')">Supprimer</button>
</td>
-->
</tr>
<?php endforeach; ?>
</tbody>
</table>
<script>
$(document).ready(function() {
// Initialisation avec activation du compteur dynamique et des exports
initDataTableReference('#tableLister', 'Liste_Localites', false);
});
</script>
<style>
/* Rappel des styles Ghost pour la cohérence */
.bg-primary-ghost { background-color: rgba(33, 46, 83, 0.08) !important; }
#tableLister thead th { padding-top: 15px; padding-bottom: 15px; font-size: 0.75rem; }
#tableLister tbody td { border-color: #f1f4f6; height: 60px; }
.shadow-xs { box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.text-primary { color: #212e53 !important; }
</style>

View File

@ -1,95 +1,94 @@
<?php
$nbreTotal = count($modepaiement);
if($nbreTotal < 10){
$nbreTotal = '0'.$nbreTotal;
}else{
$nbreTotal = format_N($nbreTotal);
}
if (est_anglophone()){
if($existeselection){
$libbouton = "Uncheck all";
}else{
$libbouton = "Check all";
}
}else{
if($existeselection){
$libbouton = "Décocher tous";
}else{
$libbouton = "Cocher tous";
}
}
<?php
// Préparation simplifiée du compteur Standard Neutral Pro
$nbreTotal = count($modepaiement);
?>
<?php $superUser = $_SESSION['superUser']; ?>
<div class="card border-0 shadow-sm overflow-hidden">
<div class="card-header bg-white py-3 border-bottom d-flex justify-content-between align-items-center">
<div class="d-flex align-items-center">
<h6 class="mb-0 fw-bold text-uppercase text-primary small">
<i class="fas fa-credit-card me-2"></i><?= _("Référentiel des Modes de Paiement") ?>
</h6>
<span class="badge bg-primary-ghost text-primary ms-3 px-3 py-2 rounded-pill fw-bold" id="badge-total">
<?= $nbreTotal ?> <?= _("Lignes") ?>
</span>
</div>
<div id="table-buttons" class="d-flex gap-2"></div>
</div>
<table style="margin: auto" class="table-responsive">
<tbody>
<td><input class="form-control" style="text-align: center; font-size:10pt;" type="text" id="nbreTotal" name="nbreTotal" value="<?= _("Lignes Total").": ". $nbreTotal; ?>" readonly> </td>
</tbody>
</table>
<input type="hidden" id="total" value="<?= $nbreTotal; ?>">
<input type="hidden" id="selectionne" value="<?= $existeselection ? 'true' : 'false'; ?>">
<table id="tableLister" class="table table-striped table-bordered table-hover table-condensed table-responsive">
<thead>
<tr>
<th class="text-center"><?= _("Centre gestion") ?></th>
<th class="text-center">Code</th>
<th class="text-center"><?= _("Libellé") ?></th>
<th class="text-center">Type</th>
<!--
<th class="text-center">
<button type="button" style="font-size:10pt; font-weight: bold; width:100%; background-color:#4caf50; color: white;" class="form-control btn" onclick="javascript:cocherDecocherTout($('#fichier_lister').val());" > <?= $libbouton; ?> </button>
</th>
-->
<th class="text-center"><?= _("Modifier") ?></th>
<!--
<th class="text-center">Supprimer</th>
-->
</tr>
</thead>
<tbody>
<?php foreach ($modepaiement as $v):
$idData = $this->nettoyer($v['id']);
if (est_anglophone()){
$libelle = $this->nettoyer($v['libelleEng']);
$libtypepaie = $this->nettoyer($v['libtypeeng']);
}else{
$libelle = $this->nettoyer($v['libelle']);
$libtypepaie = $this->nettoyer($v['libtypefr']);
}
?>
<tr valign="top">
<td class="text-center" width="15%"><?= $this->nettoyer($v['codeSociete']);; ?>
<td class="text-center" width="10%"><?= $this->nettoyer($v['codeModePaiement']) ?></td>
<td class="text-left" width="55%"><?= $libelle; ?></td>
<td class="text-left" width="55%"><?= $libtypepaie; ?></td>
<!--
<td class="text-center" width="10%">
<?php
if($this->nettoyer($v['choix'] == '0')){
$check ='';
}
else{
$check = 'checked';
}
?>
<INPUT TYPE="checkbox" class="custom-control-input" style="width: 2rem;height: 2rem;" id="choix" NAME="choix" value="<?=(($this->nettoyer($v['choix'])==0)? 0 : 1);?>" onclick="if (this.checked) this.value=1; else this.value=0;cocherDecocherUn($('#fichier_lister').val(),<?= $idData; ?>);" <?= $check;?>>
</td>
-->
<td class="text-center" width="10%">
<button style="width:100%" class ="form-control btn btn-primary" type="button" id="btn-editer" name="Modifier"
onclick="JAVASCRIPT:formModifTableRef(<?= $idData; ?>);" ><?= _("Modifier") ?></button>
</td>
<!--
<td class="text-center" width="10%">
<button style="width:100%" class = "form-control btn btn-danger" type="button" id="btn-supprimer" name="Supprimer"
onclick="JAVASCRIPT:supprimeLigneListe(<?= $idData; ?>,'<?= $superUser; ?>')">Supprimer</button>
</td>
-->
</tr>
<?php endforeach; ?>
</tbody>
</table>
<div class="card-body p-0">
<div class="table-responsive">
<table id="tableLister" class="table table-hover align-middle mb-0" style="width:100%">
<thead class="bg-light text-muted small text-uppercase">
<tr>
<th class="ps-4 border-0" width="15%"><?= _("Centre") ?></th>
<th class="border-0" width="10%">Code</th>
<th class="border-0"><?= _("Libellé") ?></th>
<th class="border-0"><?= _("Type") ?></th>
<th class="border-0 text-center pe-4" width="15%"><?= _("Actions") ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($modepaiement as $v):
$idData = $this->nettoyer($v['id']);
// Gestion multilingue Centralisée
if (est_anglophone()){
$libelle = $this->nettoyer($v['libelleEng']);
$libtypepaie = $this->nettoyer($v['libtypeeng']);
} else {
$libelle = $this->nettoyer($v['libelle']);
$libtypepaie = $this->nettoyer($v['libtypefr']);
}
?>
<tr>
<td class="ps-4 fw-medium text-muted small">
<?= $this->nettoyer($v['codeSociete']) ?>
</td>
<td>
<span class="badge bg-light text-dark border fw-bold px-2 py-1">
<?= $this->nettoyer($v['codeModePaiement']) ?>
</span>
</td>
<td class="fw-bold text-dark text-uppercase">
<?= $libelle ?>
</td>
<td>
<span class="badge bg-info-ghost text-info px-3 rounded-pill small fw-bold">
<i class="fas fa-info-circle me-1 small"></i>
<?= $libtypepaie ?>
</span>
</td>
<td class="text-center pe-4">
<button type="button"
class="btn btn-outline-primary btn-sm px-3 rounded-pill fw-bold shadow-xs"
onclick="formModifTableRef(<?= $idData; ?>);">
<i class="fas fa-edit me-1"></i> <?= _("Modifier") ?>
</button>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>
<script>
$(document).ready(function() {
// Initialisation standard avec exports et recherche
initDataTableReference('#tableLister', 'Modes_Paiement');
});
</script>
<style>
/* Rappel des constantes du Design System Neutral Pro */
#tableLister tbody td {
height: 60px; /* Règle d'or */
border-bottom: 1px solid #f1f4f6;
}
.bg-primary-ghost { background-color: rgba(33, 46, 83, 0.08) !important; }
.bg-info-ghost { background-color: rgba(13, 202, 240, 0.08) !important; }
.shadow-xs { box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.text-primary { color: #212e53 !important; }
</style>

View File

@ -1,88 +1,91 @@
<?php
$nbreTotal = count($moyenpaiement);
if($nbreTotal < 10){
$nbreTotal = '0'.$nbreTotal;
}else{
$nbreTotal = format_N($nbreTotal);
}
if (est_anglophone()){
if($existeselection){
$libbouton = "Uncheck all";
}else{
$libbouton = "Check all";
}
}else{
if($existeselection){
$libbouton = "Décocher tous";
}else{
$libbouton = "Cocher tous";
}
}
<?php
// Préparation simplifiée du compteur Standard Neutral Pro
$nbreTotal = count($moyenpaiement);
?>
<?php $superUser = $_SESSION['superUser']; ?>
<div class="card border-0 shadow-sm overflow-hidden">
<div class="card-header bg-white py-3 border-bottom d-flex justify-content-between align-items-center">
<div class="d-flex align-items-center">
<h6 class="mb-0 fw-bold text-uppercase text-primary small">
<i class="fas fa-wallet me-2"></i><?= _("Référentiel des Moyens de Paiement") ?>
</h6>
<span class="badge bg-primary-ghost text-primary ms-3 px-3 py-2 rounded-pill fw-bold" id="badge-total">
<?= $nbreTotal ?> <?= _("Lignes") ?>
</span>
</div>
<div id="table-buttons" class="d-flex gap-2"></div>
</div>
<table style="margin: auto" class="table-responsive">
<tbody>
<td><input class="form-control" style="text-align: center; font-size:10pt;" type="text" id="nbreTotal" name="nbreTotal" value="<?= _("Lignes Total").": ". $nbreTotal; ?>" readonly> </td>
</tbody>
</table>
<input type="hidden" id="total" value="<?= $nbreTotal; ?>">
<table id="tableLister" class="table table-striped table-bordered table-hover table-condensed table-responsive compact">
<thead>
<tr>
<th class="text-center"><?= _("Centre gestion") ?></th>
<th class="text-center">Code</th>
<th class="text-center"><?= _("Libellé") ?></th>
<th class="text-center"><?= _("Type Paiement") ?></th>
<th class="text-center"><?= _("Numéro Compte") ?></th>
<!--
<th class="text-center">
<button type="button" style="font-size:10pt; font-weight: bold; width:100%; background-color:#4caf50; color: white;" class="form-control btn" onclick="javascript:cocherDecocherTout($('#fichier_lister').val());" > <?= $libbouton; ?> </button>
</th>
-->
<th class="text-center"><?= _("Modifier") ?></th>
<!--
<th class="text-center">Supprimer</th>
-->
</tr>
</thead>
<tbody>
<?php foreach ($moyenpaiement as $v):
$idData = $this->nettoyer($v['id']);
?>
<tr valign="top">
<td class="text-center" width="15%"><?= $this->nettoyer($v['codeSociete']);; ?>
<td class="text-center" width="10%"><?= $this->nettoyer($v['codeMoyenPaiement']) ?></td>
<td class="text-left" width="30%"><?= $this->nettoyer($v['libelle']) ?></td>
<td class="text-left" width="20%"><?= $this->nettoyer($v['typepaiement']) ?></td>
<td class="text-left" width="20%"><?= $this->nettoyer($v['numeroCompte']) ?></td>
<!--
<td class="text-center" width="10%">
<?php
if($this->nettoyer($v['choix'] == '0')){
$check ='';
}
else{
$check = 'checked';
}
?>
<INPUT TYPE="checkbox" class="custom-control-input" style="width: 2rem;height: 2rem;" id="choix" NAME="choix" value="<?=(($this->nettoyer($v['choix'])==0)? 0 : 1);?>" onclick="if (this.checked) this.value=1; else this.value=0;cocherDecocherUn($('#fichier_lister').val(),<?= $idData; ?>);" <?= $check;?>>
</td>
-->
<td class="text-center" width="10%">
<button style="width:100%" class ="form-control btn btn-primary" type="button" id="btn-editer" name="Modifier"
onclick="JAVASCRIPT:formModifTableRef(<?= $idData; ?>);" ><?= _("Modifier") ?></button>
</td>
<!--
<td class="text-center" width="10%">
<button style="width:100%" class = "form-control btn btn-danger" type="button" id="btn-supprimer" name="Supprimer"
onclick="JAVASCRIPT:supprimeLigneListe(<?= $idData; ?>,'<?= $superUser; ?>')">Supprimer</button>
</td>
-->
</tr>
<?php endforeach; ?>
</tbody>
</table>
<div class="card-body p-0">
<div class="table-responsive">
<table id="tableLister" class="table table-hover align-middle mb-0" style="width:100%">
<thead class="bg-light text-muted small text-uppercase">
<tr>
<th class="ps-4 border-0" width="15%"><?= _("Centre") ?></th>
<th class="border-0" width="10%">Code</th>
<th class="border-0"><?= _("Libellé") ?></th>
<th class="border-0"><?= _("Type") ?></th>
<th class="border-0"><?= _("N° Compte") ?></th>
<th class="border-0 text-center pe-4" width="15%"><?= _("Actions") ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($moyenpaiement as $v):
$idData = $this->nettoyer($v['id']);
?>
<tr>
<td class="ps-4 fw-medium text-muted small">
<?= $this->nettoyer($v['codeSociete']) ?>
</td>
<td>
<span class="badge bg-light text-dark border fw-bold px-2 py-1">
<?= $this->nettoyer($v['codeMoyenPaiement']) ?>
</span>
</td>
<td class="fw-bold text-dark text-uppercase">
<?= $this->nettoyer($v['libelle']) ?>
</td>
<td>
<span class="text-muted small">
<i class="fas fa-exchange-alt me-1 opacity-50"></i>
<?= $this->nettoyer($v['typepaiement']) ?>
</span>
</td>
<td>
<code class="text-primary fw-bold">
<?= $this->nettoyer($v['numeroCompte']) ?>
</code>
</td>
<td class="text-center pe-4">
<button type="button"
class="btn btn-outline-primary btn-sm px-3 rounded-pill fw-bold shadow-xs"
onclick="formModifTableRef(<?= $idData; ?>);">
<i class="fas fa-edit me-1"></i> <?= _("Modifier") ?>
</button>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>
<script>
$(document).ready(function() {
// Initialisation standard avec activation des exports et recherche
initDataTableReference('#tableLister', 'Moyens_Paiement');
});
</script>
<style>
/* Rappel des constantes du Design System Neutral Pro */
#tableLister tbody td {
height: 60px; /* Règle d'or pour le confort visuel */
border-bottom: 1px solid #f1f4f6;
}
.bg-primary-ghost { background-color: rgba(33, 46, 83, 0.08) !important; }
.shadow-xs { box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.text-primary { color: #212e53 !important; }
code { font-size: 0.9em; background: #f8fafc; padding: 2px 6px; border-radius: 4px; }
</style>

View File

@ -1,84 +1,62 @@
<?php
$nbreTotal = count($pays);
if($nbreTotal < 10){
$nbreTotal = '0'.$nbreTotal;
}else{
$nbreTotal = format_N($nbreTotal);
}
if (est_anglophone()){
if($existeselection){
$libbouton = "Uncheck all";
}else{
$libbouton = "Check all";
}
}else{
if($existeselection){
$libbouton = "Décocher tous";
}else{
$libbouton = "Cocher tous";
}
}
?>
<div class="card border-0 shadow-sm overflow-hidden" style="border-radius: var(--radius-md);">
<div class="card-header bg-white py-3 border-bottom d-flex justify-content-between align-items-center">
<div class="d-flex align-items-center">
<h6 class="mb-0 fw-bold text-uppercase text-primary small">
<i class="fas fa-table me-2"></i><?= _("Référentiel des Pays") ?>
</h6>
<span class="badge bg-primary-ghost text-primary ms-3 px-3 py-2 rounded-pill fw-bold" id="badge-total">
0 <?= _("Lignes") ?>
</span>
</div>
<div id="table-buttons" class="d-flex gap-2"></div>
</div>
<?php $superUser = $_SESSION['superUser']; ?>
<div class="card-body p-0">
<div class="table-responsive">
<table id="tableLister" class="table table-hover align-middle mb-0" style="width:100%">
<thead class="bg-light text-muted small text-uppercase">
<tr>
<th class="ps-4 border-0"><?= _("Centre") ?></th>
<th class="border-0 text-center"><?= _("Code") ?></th>
<th class="border-0"><?= _("Libellé") ?></th>
<th class="border-0 text-center pe-4"><?= _("Actions") ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($pays as $v):
$idData = $this->nettoyer($v['id']);
?>
<tr>
<td class="ps-4 fw-medium text-dark"><?= $this->nettoyer($v['codeSociete']) ?></td>
<td class="text-center">
<span class="badge bg-light text-dark fw-bold border"><?= $this->nettoyer($v['codePays']) ?></span>
</td>
<td class="text-dark fw-bold"><?= $this->nettoyer($v['libelle']) ?></td>
<td class="text-center pe-4">
<button type="button"
class="btn btn-outline-primary btn-sm px-3 rounded-pill fw-bold shadow-xs"
onclick="formModifTableRef(<?= $idData ?>);">
<i class="fas fa-edit me-1"></i> <?= _("Modifier") ?>
</button>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>
<table style="margin: auto" class="table-responsive">
<tbody>
<td><input class="form-control" style="text-align: center; font-size:10pt;" type="text" id="nbreTotal" name="nbreTotal" value="<?= _("Lignes Total").": ". $nbreTotal; ?>" readonly> </td>
</tbody>
</table>
<input type="hidden" id="total" value="<?= $nbreTotal; ?>">
<table id="tableLister" class="table table-striped table-bordered table-hover table-condensed table-responsive compact">
<thead>
<tr>
<th class="text-center"><?= _("Centre gestion") ?></th>
<th class="text-center">Code</th>
<th class="text-center"><?= _("Libellé") ?></th>
<!--
<th class="text-center">
<button type="button" style="font-size:10pt; font-weight: bold; width:100%; background-color:#4caf50; color: white;" class="form-control btn" onclick="javascript:cocherDecocherTout($('#fichier_lister').val());" > <?= $libbouton; ?> </button>
</th>
-->
<th class="text-center"><?= _("Modifier") ?></th>
<!--
<th class="text-center">Supprimer</th>
-->
</tr>
</thead>
<tbody>
<?php foreach ($pays as $v):
$idData = $this->nettoyer($v['id']);
?>
<tr valign="top">
<td class="text-center" width="15%"><?= $this->nettoyer($v['codeSociete']) ?></td>
<td class="text-center" width="10%"><?= $this->nettoyer($v['codePays']) ?></td>
<td class="text-left" width="70%"><?= $this->nettoyer($v['libelle']) ?></td>
<!--
<td class="text-center" width="10%">
<?php
if($this->nettoyer($v['choix'] == '0')){
$check ='';
}
else{
$check = 'checked';
}
?>
<INPUT TYPE="checkbox" class="custom-control-input" style="width: 2rem;height: 2rem;" id="choix" NAME="choix" value="<?=(($this->nettoyer($v['choix'])==0)? 0 : 1);?>" onclick="if (this.checked) this.value=1; else this.value=0;cocherDecocherUn($('#fichier_lister').val(),<?= $idData; ?>);" <?= $check;?>>
</td>
-->
<td class="text-center" width="10%">
<button style="width:100%" class ="form-control btn btn-primary" type="button" id="btn-editer" name="Modifier"
onclick="JAVASCRIPT:formModifTableRef(<?= $idData; ?>);" ><?= _("Modifier") ?></button>
</td>
<!--
<td class="text-center" width="10%">
<button style="width:100%" class = "form-control btn btn-danger" type="button" id="btn-supprimer" name="Supprimer"
onclick="JAVASCRIPT:supprimeLigneListe(<?= $idData; ?>,'<?= $superUser; ?>')">Supprimer</button>
</td>
-->
</tr>
<?php endforeach; ?>
</tbody>
</table>
<style>
.bg-primary-ghost { background-color: rgba(33, 46, 83, 0.08) !important; }
#tableLister thead th { padding-top: 15px; padding-bottom: 15px; font-weight: 700; }
#tableLister tbody td { border-color: #f1f4f6; }
.shadow-xs { box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
/* Style pour les boutons d'export injectés */
.dt-buttons .btn {
font-size: 0.75rem !important;
padding: 0.4rem 0.8rem !important;
}
.text-primary { color: #212e53 !important; }
</style>

View File

@ -1,88 +1,85 @@
<?php
$nbreTotal = count($pointvente);
if($nbreTotal < 10){
$nbreTotal = '0'.$nbreTotal;
}else{
$nbreTotal = format_N($nbreTotal);
}
if (est_anglophone()){
if($existeselection){
$libbouton = "Uncheck all";
}else{
$libbouton = "Check all";
}
}else{
if($existeselection){
$libbouton = "Décocher tous";
}else{
$libbouton = "Cocher tous";
}
}
<?php
// Préparation du compteur Standard
$nbreTotal = count($pointvente);
?>
<?php $superUser = $_SESSION['superUser']; ?>
<div class="card border-0 shadow-sm overflow-hidden">
<div class="card-header bg-white py-3 border-bottom d-flex justify-content-between align-items-center">
<div class="d-flex align-items-center">
<h6 class="mb-0 fw-bold text-uppercase text-primary small">
<i class="fas fa-store me-2"></i><?= _("Référentiel des Points de Vente") ?>
</h6>
<span class="badge bg-primary-ghost text-primary ms-3 px-3 py-2 rounded-pill fw-bold" id="badge-total">
<?= $nbreTotal ?> <?= _("Lignes") ?>
</span>
</div>
<div id="table-buttons" class="d-flex gap-2"></div>
</div>
<table style="margin: auto" class="table-responsive">
<tbody>
<td><input class="form-control" style="text-align: center; font-size:10pt;" type="text" id="nbreTotal" name="nbreTotal" value="<?= _("Lignes Total").": ". $nbreTotal; ?>" readonly> </td>
</tbody>
</table>
<input type="hidden" id="total" value="<?= $nbreTotal; ?>">
<table id="tableLister" class="table table-striped table-bordered table-hover table-condensed table-responsive">
<thead>
<tr>
<th class="text-center"><?= _("Centre gestion") ?></th>
<th class="text-center">Code</th>
<th class="text-center"><?= _("Libellé") ?></th>
<th class="text-center"><?= _("Téléphone") ?></th>
<th class="text-center">Email</th>
<!--
<th class="text-center">
<button type="button" style="font-size:10pt; font-weight: bold; width:100%; background-color:#4caf50; color: white;" class="form-control btn" onclick="javascript:cocherDecocherTout($('#fichier_lister').val());" > <?= $libbouton; ?> </button>
</th>
-->
<th class="text-center"><?= _("Modifier") ?></th>
<!--
<th class="text-center">Supprimer</th>
-->
</tr>
</thead>
<tbody>
<?php foreach ($pointvente as $v):
$idData = $this->nettoyer($v['id']);
?>
<tr valign="top">
<td class="text-center" width="5%"><?= $this->nettoyer($v['codeSociete']);; ?>
<td class="text-center" width="10%"><?= $this->nettoyer($v['codePointVente']) ?></td>
<td class="text-left" width="30%"><?= $this->nettoyer($v['libelle'])?></td>
<td class="text-left" width="20%"><?= $this->nettoyer($v['telephone']) ?></td>
<td class="text-left" width="20%"><?= $this->nettoyer($v['email']) ?></td>
<!--
<td class="text-center" width="10%">
<?php
if($this->nettoyer($v['choix'] == '0')){
$check ='';
}
else{
$check = 'checked';
}
?>
<INPUT TYPE="checkbox" class="custom-control-input" style="width: 2rem;height: 2rem;" id="choix" NAME="choix" value="<?=(($this->nettoyer($v['choix'])==0)? 0 : 1);?>" onclick="if (this.checked) this.value=1; else this.value=0;cocherDecocherUn($('#fichier_lister').val(),<?= $idData; ?>);" <?= $check;?>>
</td>
-->
<td class="text-center" width="10%">
<button style="width:100%" class ="form-control btn btn-primary" type="button" id="btn-editer" name="Modifier"
onclick="JAVASCRIPT:formModifTableRef(<?= $idData; ?>);" ><?= _("Modifier") ?></button>
</td>
<!--
<td class="text-center" width="10%">
<button style="width:100%" class = "form-control btn btn-danger" type="button" id="btn-supprimer" name="Supprimer"
onclick="JAVASCRIPT:supprimeLigneListe(<?= $idData; ?>,'<?= $superUser; ?>')">Supprimer</button>
</td>
-->
</tr>
<?php endforeach; ?>
</tbody>
</table>
<div class="card-body p-0">
<div class="table-responsive">
<table id="tableLister" class="table table-hover align-middle mb-0" style="width:100%">
<thead class="bg-light text-muted small text-uppercase">
<tr>
<th class="ps-4 border-0"><?= _("Centre") ?></th>
<th class="border-0">Code</th>
<th class="border-0"><?= _("Libellé") ?></th>
<th class="border-0"><?= _("Téléphone") ?></th>
<th class="border-0">Email</th>
<th class="border-0 text-center pe-4"><?= _("Actions") ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($pointvente as $v):
$idData = $this->nettoyer($v['id']);
?>
<tr>
<td class="ps-4 fw-medium text-muted small">
<?= $this->nettoyer($v['codeSociete']) ?>
</td>
<td>
<span class="badge bg-light text-dark border fw-bold px-2 py-1">
<?= $this->nettoyer($v['codePointVente']) ?>
</span>
</td>
<td class="fw-bold text-dark">
<?= $this->nettoyer($v['libelle']) ?>
</td>
<td class="small">
<i class="fas fa-phone-alt me-1 opacity-50"></i> <?= $this->nettoyer($v['telephone']) ?>
</td>
<td class="small text-muted">
<i class="fas fa-envelope me-1 opacity-50"></i> <?= $this->nettoyer($v['email']) ?>
</td>
<td class="text-center pe-4">
<button type="button"
class="btn btn-outline-primary btn-sm px-3 rounded-pill fw-bold shadow-xs"
onclick="formModifTableRef(<?= $idData; ?>);">
<i class="fas fa-edit me-1"></i> <?= _("Modifier") ?>
</button>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>
<script>
$(document).ready(function() {
// Initialisation Standard avec moteur d'export
initDataTableReference('#tableLister', 'Liste_Points_Vente');
});
</script>
<style>
/* Rappel des règles d'or Neutral Pro */
#tableLister tbody td {
height: 60px;
border-bottom: 1px solid #f1f4f6;
}
.bg-primary-ghost { background-color: rgba(33, 46, 83, 0.08) !important; }
.shadow-xs { box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.text-primary { color: #212e53 !important; }
</style>

View File

@ -1,88 +1,58 @@
<?php
$nbreTotal = count($secteuractivite);
if($nbreTotal < 10){
$nbreTotal = '0'.$nbreTotal;
}else{
$nbreTotal = format_N($nbreTotal);
}
if (est_anglophone()){
if($existeselection){
$libbouton = "Uncheck all";
}else{
$libbouton = "Check all";
}
}else{
if($existeselection){
$libbouton = "Décocher tous";
}else{
$libbouton = "Cocher tous";
}
}
?>
<div class="card border-0 shadow-sm overflow-hidden" style="border-radius: var(--radius-md);">
<div class="card-header bg-white py-3 border-bottom d-flex justify-content-between align-items-center">
<div class="d-flex align-items-center">
<h6 class="mb-0 fw-bold text-uppercase text-primary small">
<i class="fas fa-briefcase me-2"></i><?= _("Référentiel des Secteurs d'Activité") ?>
</h6>
<span class="badge bg-primary-ghost text-primary ms-3 px-3 py-2 rounded-pill fw-bold" id="badge-total">
0 <?= _("Lignes") ?>
</span>
</div>
<div id="table-buttons" class="d-flex gap-2"></div>
</div>
<?php $superUser = $_SESSION['superUser']; ?>
<div class="card-body p-0">
<div class="table-responsive">
<table id="tableLister" class="table table-hover align-middle mb-0" style="width:100%">
<thead class="bg-light text-muted small text-uppercase">
<tr>
<th class="ps-4 border-0"><?= _("Centre") ?></th>
<th class="border-0 text-center"><?= _("Code") ?></th>
<th class="border-0"><?= _("Libellé Secteur") ?></th>
<th class="border-0 text-center pe-4"><?= _("Actions") ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($secteuractivite as $v):
$idData = $this->nettoyer($v['id']);
$libelle = est_anglophone() ? $this->nettoyer($v['LibelleEng']) : $this->nettoyer($v['libelle']);
?>
<tr>
<td class="ps-4 fw-medium text-muted small"><?= $this->nettoyer($v['codeSociete']) ?></td>
<td class="text-center">
<span class="badge bg-light text-dark border fw-bold"><?= $this->nettoyer($v['codeSecteur']) ?></span>
</td>
<td class="fw-bold text-dark"><?= $libelle ?></td>
<td class="text-center pe-4">
<button type="button"
class="btn btn-outline-primary btn-sm px-3 rounded-pill fw-bold shadow-xs"
onclick="formModifTableRef(<?= $idData ?>);">
<i class="fas fa-edit me-1"></i> <?= _("Modifier") ?>
</button>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>
<table style="margin: auto" class="table-responsive">
<tbody>
<td><input class="form-control" style="text-align: center; font-size:10pt;" type="text" id="nbreTotal" name="nbreTotal" value="<?= _("Lignes Total").": ". $nbreTotal; ?>" readonly> </td>
</tbody>
</table>
<input type="hidden" id="total" value="<?= $nbreTotal; ?>">
<table id="tableLister" class="table table-striped table-bordered table-hover table-condensed table-responsive compact">
<thead>
<tr>
<th class="text-center"><?= _("Centre gestion") ?></th>
<th class="text-center">Code</th>
<th class="text-center"><?= _("Libellé") ?></th>
<!--
<th class="text-center">
<button type="button" style="font-size:10pt; font-weight: bold; width:100%; background-color:#4caf50; color: white;" class="form-control btn" onclick="javascript:cocherDecocherTout($('#fichier_lister').val());" > <?= $libbouton; ?> </button>
</th>
-->
<th class="text-center"><?= _("Modifier") ?></th>
<!--
<th class="text-center">Supprimer</th>
-->
</tr>
</thead>
<tbody>
<?php foreach ($secteuractivite as $v):
$idData = $this->nettoyer($v['id']);
$libelle = $this->nettoyer($v['libelle']);
if (est_anglophone()){
$libelle = $this->nettoyer($v['LibelleEng']);
}
?>
<tr valign="top">
<td class="text-center" width="15%"><?= $this->nettoyer($v['codeSociete']);; ?>
<td class="text-center" width="10%"><?= $this->nettoyer($v['codeSecteur']); ?></td>
<td class="text-left" width="60%"><?= $libelle; ?></td>
<!--
<td class="text-center" width="10%">
<?php
if($this->nettoyer($v['choix'] == '0')){
$check ='';
}
else{
$check = 'checked';
}
?>
<INPUT TYPE="checkbox" class="custom-control-input" style="width: 2rem;height: 2rem;" id="choix" NAME="choix" value="<?=(($this->nettoyer($v['choix'])==0)? 0 : 1);?>" onclick="if (this.checked) this.value=1; else this.value=0;cocherDecocherUn($('#fichier_lister').val(),<?= $idData; ?>);" <?= $check;?>>
</td>
-->
<td class="text-center" width="10%">
<button style="width:100%" class ="form-control btn btn-primary" type="button" id="btn-editer" name="Modifier"
onclick="JAVASCRIPT:formModifTableRef(<?= $idData; ?>);" ><?= _("Modifier") ?></button>
</td>
<!--
<td class="text-center" width="10%">
<button style="width:100%" class = "form-control btn btn-danger" type="button" id="btn-supprimer" name="Supprimer"
onclick="JAVASCRIPT:supprimeLigneListe(<?= $idData; ?>,'<?= $superUser; ?>')">Supprimer</button>
</td>
-->
</tr>
<?php endforeach; ?>
</tbody>
</table>
<style>
/* On garde tes styles spécifiques pour assurer la même hauteur et le même rendu */
.bg-primary-ghost { background-color: rgba(33, 46, 83, 0.08) !important; }
#tableLister thead th { padding-top: 15px; padding-bottom: 15px; font-size: 0.75rem; letter-spacing: 0.5px; }
#tableLister tbody td { border-color: #f1f4f6; height: 60px; }
.shadow-xs { box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.text-primary { color: #212e53 !important; }
</style>

View File

@ -1,88 +1,58 @@
<?php
$nbreTotal = count($service);
if($nbreTotal < 10){
$nbreTotal = '0'.$nbreTotal;
}else{
$nbreTotal = format_N($nbreTotal);
}
if (est_anglophone()){
if($existeselection){
$libbouton = "Uncheck all";
}else{
$libbouton = "Check all";
}
}else{
if($existeselection){
$libbouton = "Décocher tous";
}else{
$libbouton = "Cocher tous";
}
}
?>
<div class="card border-0 shadow-sm overflow-hidden" style="border-radius: var(--radius-md);">
<div class="card-header bg-white py-3 border-bottom d-flex justify-content-between align-items-center">
<div class="d-flex align-items-center">
<h6 class="mb-0 fw-bold text-uppercase text-primary small">
<i class="fas fa-concierge-bell me-2"></i><?= _("Référentiel des Services") ?>
</h6>
<span class="badge bg-primary-ghost text-primary ms-3 px-3 py-2 rounded-pill fw-bold" id="badge-total">
0 <?= _("Lignes") ?>
</span>
</div>
<div id="table-buttons" class="d-flex gap-2"></div>
</div>
<?php $superUser = $_SESSION['superUser']; ?>
<div class="card-body p-0">
<div class="table-responsive">
<table id="tableLister" class="table table-hover align-middle mb-0" style="width:100%">
<thead class="bg-light text-muted small text-uppercase">
<tr>
<th class="ps-4 border-0"><?= _("Centre") ?></th>
<th class="border-0 text-center"><?= _("Code") ?></th>
<th class="border-0"><?= _("Libellé du Service") ?></th>
<th class="border-0 text-center pe-4"><?= _("Actions") ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($service as $v):
$idData = $this->nettoyer($v['id']);
$libelle = est_anglophone() ? $this->nettoyer($v['libelleEng']) : $this->nettoyer($v['libelle']);
?>
<tr>
<td class="ps-4 fw-medium text-muted small"><?= $this->nettoyer($v['codeSociete']) ?></td>
<td class="text-center">
<span class="badge bg-light text-dark border fw-bold"><?= $this->nettoyer($v['codeService']) ?></span>
</td>
<td class="fw-bold text-dark"><?= $libelle ?></td>
<td class="text-center pe-4">
<button type="button"
class="btn btn-outline-primary btn-sm px-3 rounded-pill fw-bold shadow-xs"
onclick="formModifTableRef(<?= $idData ?>);">
<i class="fas fa-edit me-1"></i> <?= _("Modifier") ?>
</button>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>
<table style="margin: auto" class="table-responsive">
<tbody>
<td><input class="form-control" style="text-align: center; font-size:10pt;" type="text" id="nbreTotal" name="nbreTotal" value="<?= _("Lignes Total").": ". $nbreTotal; ?>" readonly> </td>
</tbody>
</table>
<input type="hidden" id="total" value="<?= count($service); ?>">
<table id="tableLister" class="table table-striped table-bordered table-hover table-condensed table-responsive compact">
<thead>
<tr>
<th class="text-center"><?= _("Centre gestion") ?></th>
<th class="text-center">Code</th>
<th class="text-center"><?= _("Libellé FR") ?></th>
<!--
<th class="text-center">
<button type="button" style="font-size:10pt; font-weight: bold; width:100%; background-color:#4caf50; color: white;" class="form-control btn" onclick="javascript:cocherDecocherTout($('#fichier_lister').val());" > <?= $libbouton; ?> </button>
</th>
-->
<th class="text-center"><?= _("Modifier") ?></th>
<!--
<th class="text-center">Supprimer</th>
-->
</tr>
</thead>
<tbody>
<?php foreach ($service as $v):
$idData = $this->nettoyer($v['id']);
$libelle = $this->nettoyer($v['libelle']);
if (est_anglophone()){
$libelle = $this->nettoyer($v['libelleEng']);
}
?>
<tr valign="top">
<td class="text-center" width="10%"><?= $this->nettoyer($v['codeSociete']) ?></td>
<td class="text-center" width="10%"><?= $this->nettoyer($v['codeService']) ?></td>
<td class="text-left" width="35%"><?= $libelle; ?></td>
<!--
<td class="text-center" width="10%">
<?php
if($this->nettoyer($v['choix'] == '0')){
$check ='';
}
else{
$check = 'checked';
}
?>
<INPUT TYPE="checkbox" class="custom-control-input" style="width: 2rem;height: 2rem;" id="choix" NAME="choix" value="<?=(($this->nettoyer($v['choix'])==0)? 0 : 1);?>" onclick="if (this.checked) this.value=1; else this.value=0;cocherDecocherUn($('#fichier_lister').val(),<?= $idData; ?>);" <?= $check;?>>
</td>
-->
<td class="text-center" width="10%">
<button style="width:100%" class ="form-control btn btn-primary" type="button" id="btn-editer" name="Modifier"
onclick="JAVASCRIPT:formModifTableRef(<?= $idData; ?>);" ><?= _("Modifier") ?></button>
</td>
<!--
<td class="text-center" width="10%">
<button style="width:100%" class = "form-control btn btn-danger" type="button" id="btn-supprimer" name="Supprimer"
onclick="JAVASCRIPT:supprimeLigneListe(<?= $idData; ?>,'<?= $superUser; ?>')">Supprimer</button>
</td>
-->
</tr>
<?php endforeach; ?>
</tbody>
</table>
<style>
/* Intégration des styles pour assurer la cohérence si non présents dans le CSS global */
.bg-primary-ghost { background-color: rgba(33, 46, 83, 0.08) !important; }
#tableLister thead th { padding-top: 15px; padding-bottom: 15px; font-size: 0.75rem; letter-spacing: 0.5px; }
#tableLister tbody td { border-color: #f1f4f6; height: 60px; }
.shadow-xs { box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.text-primary { color: #212e53 !important; }
</style>

View File

@ -1,89 +1,78 @@
<?php
$nbreTotal = count($specialite);
if($nbreTotal < 10){
$nbreTotal = '0'.$nbreTotal;
}else{
$nbreTotal = format_N($nbreTotal);
}
if (est_anglophone()){
if($existeselection){
$libbouton = "Uncheck all";
}else{
$libbouton = "Check all";
}
}else{
if($existeselection){
$libbouton = "Décocher tous";
}else{
$libbouton = "Cocher tous";
}
}
<?php
// Préparation du compteur Standard Neutral Pro
$nbreTotal = count($specialite);
?>
<?php $superUser = $_SESSION['superUser']; ?>
<div class="card border-0 shadow-sm overflow-hidden">
<div class="card-header bg-white py-3 border-bottom d-flex justify-content-between align-items-center">
<div class="d-flex align-items-center">
<h6 class="mb-0 fw-bold text-uppercase text-primary small">
<i class="fas fa-stethoscope me-2"></i><?= _("Référentiel des Spécialités de médecine") ?>
</h6>
<span class="badge bg-primary-ghost text-primary ms-3 px-3 py-2 rounded-pill fw-bold" id="badge-total">
<?= $nbreTotal ?> <?= _("Lignes") ?>
</span>
</div>
<div id="table-buttons" class="d-flex gap-2"></div>
</div>
<table style="margin: auto" class="table-responsive">
<tbody>
<td><input class="form-control" style="text-align: center; font-size:10pt;" type="text" id="nbreTotal" name="nbreTotal" value="<?= _("Lignes Total").": ". $nbreTotal; ?>" readonly> </td>
</tbody>
</table>
<input type="hidden" id="total" value="<?= $nbreTotal;?>">
<table id="tableLister" class="table table-striped table-bordered table-hover table-condensed table-responsive compact">
<thead>
<tr>
<th class="text-center"><?= _("Centre gestion") ?></th>
<th class="text-center">Code</th>
<th class="text-center"><?= _("Libellé") ?></th>
<!--
<th class="text-center">
<button type="button" style="font-size:10pt; font-weight: bold; width:100%; background-color:#4caf50; color: white;" class="form-control btn" onclick="javascript:cocherDecocherTout($('#fichier_lister').val());" > <?= $libbouton; ?> </button>
</th>
-->
<th class="text-center"><?= _("Modifier") ?></th>
<!--
<th class="text-center">Supprimer</th>
-->
</tr>
</thead>
<tbody>
<?php foreach ($specialite as $v):
$idData = $this->nettoyer($v['id']);
$libelle = $this->nettoyer($v['libelle']);
if (est_anglophone()){
$libelle = $this->nettoyer($v['libelleEng']);
}
?>
<tr valign="top">
<td class="text-center" width="12%"><?= $this->nettoyer($v['codeSociete']);; ?>
<td class="text-center" width="10%"><?= $this->nettoyer($v['codeSpecialite']) ?></td>
<td class="text-left" width="35%"><?= $libelle;?></td>
<!--
<td class="text-center" width="10%">
<?php
if($this->nettoyer($v['choix'] == '0')){
$check ='';
}
else{
$check = 'checked';
}
?>
<INPUT TYPE="checkbox" class="custom-control-input" style="width: 2rem;height: 2rem;" id="choix" NAME="choix" value="<?=(($this->nettoyer($v['choix'])==0)? 0 : 1);?>" onclick="if (this.checked) this.value=1; else this.value=0;cocherDecocherUn($('#fichier_lister').val(),<?= $idData; ?>);" <?= $check;?>>
</td>
-->
<td class="text-center" width="10%">
<button style="width:100%" class ="form-control btn btn-primary" type="button" id="btn-editer" name="Modifier"
onclick="JAVASCRIPT:formModifTableRef(<?= $idData; ?>);" ><?= _("Modifier") ?></button>
</td>
<!--
<td class="text-center" width="10%">
<button style="width:100%" class = "form-control btn btn-danger" type="button" id="btn-supprimer" name="Supprimer"
onclick="JAVASCRIPT:supprimeLigneListe(<?= $idData; ?>,'<?= $superUser; ?>')">Supprimer</button>
</td>
-->
</tr>
<?php endforeach; ?>
</tbody>
</table>
<div class="card-body p-0">
<div class="table-responsive">
<table id="tableLister" class="table table-hover align-middle mb-0" style="width:100%">
<thead class="bg-light text-muted small text-uppercase">
<tr>
<th class="ps-4 border-0" width="15%"><?= _("Centre") ?></th>
<th class="border-0" width="15%">Code</th>
<th class="border-0"><?= _("Libellé") ?></th>
<th class="border-0 text-center pe-4" width="15%"><?= _("Actions") ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($specialite as $v):
$idData = $this->nettoyer($v['id']);
$libelle = est_anglophone() ? $this->nettoyer($v['libelleEng']) : $this->nettoyer($v['libelle']);
?>
<tr>
<td class="ps-4 fw-medium text-muted small">
<?= $this->nettoyer($v['codeSociete']) ?>
</td>
<td>
<span class="badge bg-light text-dark border fw-bold px-2 py-1">
<?= $this->nettoyer($v['codeSpecialite']) ?>
</span>
</td>
<td class="fw-bold text-dark text-uppercase">
<?= $libelle ?>
</td>
<td class="text-center pe-4">
<button type="button"
class="btn btn-outline-primary btn-sm px-3 rounded-pill fw-bold shadow-xs"
onclick="formModifTableRef(<?= $idData; ?>);">
<i class="fas fa-edit me-1"></i> <?= _("Modifier") ?>
</button>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>
<script>
$(document).ready(function() {
// Initialisation standard avec exports et compteur
initDataTableReference('#tableLister', 'Liste_Specialites');
});
</script>
<style>
/* Rappel des règles d'or Neutral Pro */
#tableLister tbody td {
height: 60px;
border-bottom: 1px solid #f1f4f6;
}
.bg-primary-ghost { background-color: rgba(33, 46, 83, 0.08) !important; }
.shadow-xs { box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.text-primary { color: #212e53 !important; }
</style>

View File

@ -1,90 +1,61 @@
<?php
$nbreTotal = count($titre);
if($nbreTotal < 10){
$nbreTotal = '0'.$nbreTotal;
}else{
$nbreTotal = format_N($nbreTotal);
}
if (est_anglophone()){
if($existeselection){
$libbouton = "Uncheck all";
}else{
$libbouton = "Check all";
}
}else{
if($existeselection){
$libbouton = "Décocher tous";
}else{
$libbouton = "Cocher tous";
}
}
?>
<div class="card border-0 shadow-sm overflow-hidden" style="border-radius: var(--radius-md);">
<div class="card-header bg-white py-3 border-bottom d-flex justify-content-between align-items-center">
<div class="d-flex align-items-center">
<h6 class="mb-0 fw-bold text-uppercase text-primary small">
<i class="fas fa-user-tag me-2"></i><?= _("Référentiel des Titres / Civilités") ?>
</h6>
<span class="badge bg-primary-ghost text-primary ms-3 px-3 py-2 rounded-pill fw-bold" id="badge-total">
0 <?= _("Lignes") ?>
</span>
</div>
<div id="table-buttons" class="d-flex gap-2"></div>
</div>
<?php $superUser = $_SESSION['superUser']; ?>
<div class="card-body p-0">
<div class="table-responsive">
<table id="tableLister" class="table table-hover align-middle mb-0" style="width:100%">
<thead class="bg-light text-muted small text-uppercase">
<tr>
<th class="ps-4 border-0"><?= _("Centre") ?></th>
<th class="border-0 text-center"><?= _("Code") ?></th>
<th class="border-0"><?= _("Libellé") ?></th>
<th class="border-0"><?= _("Titre Courrier") ?></th>
<th class="border-0 text-center pe-4"><?= _("Actions") ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($titre as $v):
$idData = $this->nettoyer($v['id']);
$libelle = est_anglophone() ? $this->nettoyer($v['libelleEng']) : $this->nettoyer($v['libelle']);
?>
<tr>
<td class="ps-4 fw-medium text-muted small"><?= $this->nettoyer($v['codeSociete']) ?></td>
<td class="text-center">
<span class="badge bg-light text-dark border fw-bold"><?= $this->nettoyer($v['codeTitre']) ?></span>
</td>
<td class="fw-bold text-dark"><?= $libelle ?></td>
<td class="text-muted italic"><?= $this->nettoyer($v['titreCourrier']) ?></td>
<td class="text-center pe-4">
<button type="button"
class="btn btn-outline-primary btn-sm px-3 rounded-pill fw-bold shadow-xs"
onclick="formModifTableRef(<?= $idData ?>);">
<i class="fas fa-edit me-1"></i> <?= _("Modifier") ?>
</button>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>
<table style="margin: auto" class="table-responsive">
<tbody>
<td><input class="form-control" style="text-align: center; font-size:10pt;" type="text" id="nbreTotal" name="nbreTotal" value="<?= _("Lignes Total").": ". $nbreTotal; ?>" readonly> </td>
</tbody>
</table>
<input type="hidden" id="total" value="<?= $nbreTotal; ?>">
<table id="tableLister" class="table table-striped table-bordered table-hover table-condensed table-responsive">
<thead>
<tr>
<th class="text-center"><?= _("Centre gestion") ?></th>
<th class="text-center">Code</th>
<th class="text-center"><?= _("Libellé") ?></th>
<th class="text-center"><?= _("Titre Courrier") ?></th>
<!--
<th class="text-center">
<button type="button" style="font-size:10pt; font-weight: bold; width:100%; background-color:#4caf50; color: white;" class="form-control btn" onclick="javascript:cocherDecocherTout($('#fichier_lister').val());" > <?= $libbouton; ?> </button>
</th>
-->
<th class="text-center"><?= _("Modifier") ?></th>
<!--
<th class="text-center">Supprimer</th>
-->
</tr>
</thead>
<tbody>
<?php foreach ($titre as $v):
$idData = $this->nettoyer($v['id']);
$libelle = $this->nettoyer($v['libelle']);
if (est_anglophone()){
$libelle = $this->nettoyer($v['libelleEng']);
}
?>
<tr valign="top">
<td class="text-center" width="15%"><?= $this->nettoyer($v['codeSociete']) ?></td>
<td class="text-center" width="10%"><?= $this->nettoyer($v['codeTitre']) ?></td>
<td class="text-left" width="35%"><?= $libelle ?></td>
<td class="text-left" width="35%"><?= $this->nettoyer($v['titreCourrier']) ?></td>
<!--
<td class="text-center" width="10%">
<?php
if($this->nettoyer($v['choix'] == '0')){
$check ='';
}
else{
$check = 'checked';
}
?>
<INPUT TYPE="checkbox" class="custom-control-input" style="width: 2rem;height: 2rem;" id="choix" NAME="choix" value="<?=(($this->nettoyer($v['choix'])==0)? 0 : 1);?>" onclick="if (this.checked) this.value=1; else this.value=0;cocherDecocherUn($('#fichier_lister').val(),<?= $idData; ?>);" <?= $check;?>>
</td>
-->
<td class="text-center" width="10%">
<button style="width:100%" class ="form-control btn btn-primary" type="button" id="btn-editer" name="Modifier"
onclick="JAVASCRIPT:formModifTableRef(<?= $idData; ?>);" ><?= _("Modifier") ?></button>
</td>
<!--
<td class="text-center" width="10%">
<button style="width:100%" class = "form-control btn btn-danger" type="button" id="btn-supprimer" name="Supprimer"
onclick="JAVASCRIPT:supprimeLigneListe(<?= $idData; ?>,'<?= $superUser; ?>')">Supprimer</button>
</td>
-->
</tr>
<?php endforeach; ?>
</tbody>
</table>
<style>
/* Styles spécifiques Neutral Pro */
.bg-primary-ghost { background-color: rgba(33, 46, 83, 0.08) !important; }
#tableLister thead th { padding-top: 15px; padding-bottom: 15px; font-size: 0.75rem; letter-spacing: 0.5px; }
#tableLister tbody td { border-color: #f1f4f6; height: 60px; }
.shadow-xs { box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.italic { font-style: italic; }
.text-primary { color: #212e53 !important; }
</style>

View File

@ -1,91 +1,92 @@
<?php
$nbreTotal = count($typeaffection);
if($nbreTotal < 10){
$nbreTotal = '0'.$nbreTotal;
}else{
$nbreTotal = format_N($nbreTotal);
}
if (est_anglophone()){
if($existeselection){
$libbouton = "Uncheck all";
}else{
$libbouton = "Check all";
}
}else{
if($existeselection){
$libbouton = "Décocher tous";
}else{
$libbouton = "Cocher tous";
}
}
<?php
// Préparation du compteur Standard Neutral Pro
$nbreTotal = count($typeaffection);
?>
<?php $superUser = $_SESSION['superUser']; ?>
<div class="card border-0 shadow-sm overflow-hidden">
<div class="card-header bg-white py-3 border-bottom d-flex justify-content-between align-items-center">
<div class="d-flex align-items-center">
<h6 class="mb-0 fw-bold text-uppercase text-primary small">
<i class="fas fa-microscope me-2"></i><?= _("Référentiel des Types d'Affection") ?>
</h6>
<span class="badge bg-primary-ghost text-primary ms-3 px-3 py-2 rounded-pill fw-bold" id="badge-total">
<?= $nbreTotal ?> <?= _("Lignes") ?>
</span>
</div>
<div id="table-buttons" class="d-flex gap-2"></div>
</div>
<table style="margin: auto" class="table-responsive">
<tbody>
<td><input class="form-control" style="text-align: center; font-size:10pt;" type="text" id="nbreTotal" name="nbreTotal" value="<?= _("Lignes Total").": ". $nbreTotal; ?>" readonly> </td>
</tbody>
</table>
<input type="hidden" id="total" value="<?= $nbreTotal; ?>">
<table id="tableLister" class="table table-striped table-bordered table-hover table-condensed table-responsive">
<thead>
<tr>
<th class="text-center"><?= _("Centre gestion") ?></th>
<th class="text-center">Code</th>
<th class="text-center"><?= _("Libellé") ?></th>
<th class="text-center"><?= _("Maladie Chronique") ?> ?</th>
<!--
<th class="text-center">
<button type="button" style="font-size:10pt; font-weight: bold; width:100%; background-color:#4caf50; color: white;" class="form-control btn" onclick="javascript:cocherDecocherTout($('#fichier_lister').val());" > <?= $libbouton; ?> </button>
</th>
-->
<th class="text-center"><?= _("Modifier") ?></th>
<!--
<th class="text-center">Supprimer</th>
-->
</tr>
</thead>
<tbody>
<?php foreach ($typeaffection as $v):
$idData = $this->nettoyer($v['id']);
$libelle = $this->nettoyer($v['libelle']);
if (est_anglophone()){
$libelle = $this->nettoyer($v['libelleEng']);
}
?>
<tr valign="top">
<td class="text-center" width="15%"><?= $this->nettoyer($v['codeSociete']);; ?>
<td class="text-center" width="10%"><?= $this->nettoyer($v['codeTypeAffection']) ?></td>
<td class="text-left" width="25%"><?= $libelle; ?></td>
<td class="text-center" width="20%"><?= ($this->nettoyer($v['maladieChronique'])==1)?'Oui':'Non' ?></td>
<!--
<td class="text-center" width="10%">
<?php
if($this->nettoyer($v['choix'] == '0')){
$check ='';
}
else{
$check = 'checked';
}
?>
<INPUT TYPE="checkbox" class="custom-control-input" style="width: 2rem;height: 2rem;" id="choix" NAME="choix" value="<?=(($this->nettoyer($v['choix'])==0)? 0 : 1);?>" onclick="if (this.checked) this.value=1; else this.value=0;cocherDecocherUn($('#fichier_lister').val(),<?= $idData; ?>);" <?= $check;?>>
</td>
-->
<td class="text-center" width="10%">
<button style="width:100%" class ="form-control btn btn-primary" type="button" id="btn-editer" name="Modifier"
onclick="JAVASCRIPT:formModifTableRef(<?= $idData; ?>);" ><?= _("Modifier") ?></button>
</td>
<!--
<td class="text-center" width="10%">
<button style="width:100%" class = "form-control btn btn-danger" type="button" id="btn-supprimer" name="Supprimer"
onclick="JAVASCRIPT:supprimeLigneListe(<?= $idData; ?>,'<?= $superUser; ?>')">Supprimer</button>
</td>
-->
</tr>
<?php endforeach; ?>
</tbody>
</table>
<div class="card-body p-0">
<div class="table-responsive">
<table id="tableLister" class="table table-hover align-middle mb-0" style="width:100%">
<thead class="bg-light text-muted small text-uppercase">
<tr>
<th class="ps-4 border-0" width="15%"><?= _("Centre") ?></th>
<th class="border-0" width="10%">Code</th>
<th class="border-0"><?= _("Libellé") ?></th>
<th class="border-0 text-center"><?= _("Chronique") ?></th>
<th class="border-0 text-center pe-4" width="15%"><?= _("Actions") ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($typeaffection as $v):
$idData = $this->nettoyer($v['id']);
$libelle = est_anglophone() ? $this->nettoyer($v['libelleEng']) : $this->nettoyer($v['libelle']);
$isChronique = ($this->nettoyer($v['maladieChronique']) == 1);
?>
<tr>
<td class="ps-4 fw-medium text-muted small">
<?= $this->nettoyer($v['codeSociete']) ?>
</td>
<td>
<span class="badge bg-light text-dark border fw-bold px-2 py-1">
<?= $this->nettoyer($v['codeTypeAffection']) ?>
</span>
</td>
<td class="fw-bold text-dark text-uppercase">
<?= $libelle ?>
</td>
<td class="text-center">
<?php if ($isChronique): ?>
<span class="badge rounded-pill bg-danger-ghost text-danger px-3">
<i class="fas fa-check-circle me-1"></i> <?= _("Oui") ?>
</span>
<?php else: ?>
<span class="badge rounded-pill bg-light text-muted px-3 border">
<?= _("Non") ?>
</span>
<?php endif; ?>
</td>
<td class="text-center pe-4">
<button type="button"
class="btn btn-outline-primary btn-sm px-3 rounded-pill fw-bold shadow-xs"
onclick="formModifTableRef(<?= $idData; ?>);">
<i class="fas fa-edit me-1"></i> <?= _("Modifier") ?>
</button>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>
<script>
$(document).ready(function() {
// Initialisation standard avec exports et compteur
initDataTableReference('#tableLister', 'Types_Affection');
});
</script>
<style>
/* Rappel des règles d'or Neutral Pro */
#tableLister tbody td {
height: 60px;
border-bottom: 1px solid #f1f4f6;
}
.bg-primary-ghost { background-color: rgba(33, 46, 83, 0.08) !important; }
.bg-danger-ghost { background-color: rgba(220, 53, 69, 0.08) !important; }
.shadow-xs { box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.text-primary { color: #212e53 !important; }
</style>

View File

@ -1,91 +1,78 @@
<?php
$nbreTotal = count($typepaiement);
if($nbreTotal < 10){
$nbreTotal = '0'.$nbreTotal;
}else{
$nbreTotal = format_N($nbreTotal);
}
if (est_anglophone()){
if($existeselection){
$libbouton = "Uncheck all";
}else{
$libbouton = "Check all";
}
}else{
if($existeselection){
$libbouton = "Décocher tous";
}else{
$libbouton = "Cocher tous";
}
}
<?php
// Préparation simplifiée du compteur Standard Neutral Pro
$nbreTotal = count($typepaiement);
?>
<?php $superUser = $_SESSION['superUser']; ?>
<div class="card border-0 shadow-sm overflow-hidden">
<div class="card-header bg-white py-3 border-bottom d-flex justify-content-between align-items-center">
<div class="d-flex align-items-center">
<h6 class="mb-0 fw-bold text-uppercase text-primary small">
<i class="fas fa-list-alt me-2"></i><?= _("Référentiel des Types de Paiement") ?>
</h6>
<span class="badge bg-primary-ghost text-primary ms-3 px-3 py-2 rounded-pill fw-bold" id="badge-total">
<?= $nbreTotal ?> <?= _("Lignes") ?>
</span>
</div>
<div id="table-buttons" class="d-flex gap-2"></div>
</div>
<table style="margin: auto" class="table-responsive">
<tbody>
<td><input class="form-control" style="text-align: center; font-size:10pt;" type="text" id="nbreTotal" name="nbreTotal" value="<?= _("Lignes Total").": ". $nbreTotal; ?>" readonly> </td>
</tbody>
</table>
<input type="hidden" id="total" value="<?= $nbreTotal; ?>">
<input type="hidden" id="selectionne" value="<?= $existeselection ? 'true' : 'false'; ?>">
<table id="tableLister" class="table table-striped table-bordered table-hover table-condensed table-responsive">
<thead>
<tr>
<th class="text-center"><?= _("Centre gestion") ?></th>
<th class="text-center">Code</th>
<th class="text-center"><?= _("Libellé") ?></th>
<!--
<th class="text-center">
<button type="button" style="font-size:10pt; font-weight: bold; width:100%; background-color:#4caf50; color: white;" class="form-control btn" onclick="javascript:cocherDecocherTout($('#fichier_lister').val());" > <?= $libbouton; ?> </button>
</th>
-->
<th class="text-center"><?= _("Modifier") ?></th>
<!--
<th class="text-center">Supprimer</th>
-->
</tr>
</thead>
<tbody>
<?php foreach ($typepaiement as $v):
$idData = $this->nettoyer($v['id']);
if (est_anglophone()){
$libelle = $this->nettoyer($v['libelleEng']);
}else{
$libelle = $this->nettoyer($v['libelle']);
}
?>
<tr valign="top">
<td class="text-center" width="15%"><?= $this->nettoyer($v['codeSociete']);; ?>
<td class="text-center" width="10%"><?= $this->nettoyer($v['codeTypePaiement']) ?></td>
<td class="text-left" width="55%"><?= $libelle; ?></td>
<!--
<td class="text-center" width="10%">
<?php
if($this->nettoyer($v['choix'] == '0')){
$check ='';
}
else{
$check = 'checked';
}
?>
<INPUT TYPE="checkbox" class="custom-control-input" style="width: 2rem;height: 2rem;" id="choix" NAME="choix" value="<?=(($this->nettoyer($v['choix'])==0)? 0 : 1);?>" onclick="if (this.checked) this.value=1; else this.value=0;cocherDecocherUn($('#fichier_lister').val(),<?= $idData; ?>);" <?= $check;?>>
</td>
-->
<td class="text-center" width="10%">
<button style="width:100%" class ="form-control btn btn-primary" type="button" id="btn-editer" name="Modifier"
onclick="JAVASCRIPT:formModifTableRef(<?= $idData; ?>);" ><?= _("Modifier") ?></button>
</td>
<!--
<td class="text-center" width="10%">
<button style="width:100%" class = "form-control btn btn-danger" type="button" id="btn-supprimer" name="Supprimer"
onclick="JAVASCRIPT:supprimeLigneListe(<?= $idData; ?>,'<?= $superUser; ?>')">Supprimer</button>
</td>
-->
</tr>
<?php endforeach; ?>
</tbody>
</table>
<div class="card-body p-0">
<div class="table-responsive">
<table id="tableLister" class="table table-hover align-middle mb-0" style="width:100%">
<thead class="bg-light text-muted small text-uppercase">
<tr>
<th class="ps-4 border-0" width="15%"><?= _("Centre gestion") ?></th>
<th class="border-0" width="15%">Code</th>
<th class="border-0"><?= _("Libellé") ?></th>
<th class="border-0 text-center pe-4" width="15%"><?= _("Actions") ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($typepaiement as $v):
$idData = $this->nettoyer($v['id']);
$libelle = est_anglophone() ? $this->nettoyer($v['libelleEng']) : $this->nettoyer($v['libelle']);
?>
<tr>
<td class="ps-4 fw-medium text-muted small">
<?= $this->nettoyer($v['codeSociete']) ?>
</td>
<td>
<span class="badge bg-light text-dark border fw-bold px-2 py-1">
<?= $this->nettoyer($v['codeTypePaiement']) ?>
</span>
</td>
<td class="fw-bold text-dark text-uppercase">
<?= $libelle ?>
</td>
<td class="text-center pe-4">
<button type="button"
class="btn btn-outline-primary btn-sm px-3 rounded-pill fw-bold shadow-xs"
onclick="formModifTableRef(<?= $idData; ?>);">
<i class="fas fa-edit me-1"></i> <?= _("Modifier") ?>
</button>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>
<script>
$(document).ready(function() {
// Initialisation standard avec exports et recherche intelligente
initDataTableReference('#tableLister', 'Types_Paiement');
});
</script>
<style>
/* Rappel des constantes visuelles Neutral Pro */
#tableLister tbody td {
height: 60px;
border-bottom: 1px solid #f1f4f6;
}
.bg-primary-ghost { background-color: rgba(33, 46, 83, 0.08) !important; }
.shadow-xs { box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.text-primary { color: #212e53 !important; }
</style>

View File

@ -1,86 +1,62 @@
<?php
$nbreTotal = count($ville);
if($nbreTotal < 10){
$nbreTotal = '0'.$nbreTotal;
}else{
$nbreTotal = format_N($nbreTotal);
}
if (est_anglophone()){
if($existeselection){
$libbouton = "Uncheck all";
}else{
$libbouton = "Check all";
}
}else{
if($existeselection){
$libbouton = "Décocher tous";
}else{
$libbouton = "Cocher tous";
}
}
?>
<div class="card border-0 shadow-sm overflow-hidden" style="border-radius: var(--radius-md);">
<div class="card-header bg-white py-3 border-bottom d-flex justify-content-between align-items-center">
<div class="d-flex align-items-center">
<h6 class="mb-0 fw-bold text-uppercase text-primary small">
<i class="fas fa-city me-2"></i><?= _("Référentiel des Territoires") ?>
</h6>
<span class="badge bg-primary-ghost text-primary ms-3 px-3 py-2 rounded-pill fw-bold" id="badge-total">
0 <?= _("Lignes") ?>
</span>
</div>
<div id="table-buttons" class="d-flex gap-2"></div>
</div>
<?php $superUser = $_SESSION['superUser']; ?>
<div class="card-body p-0">
<div class="table-responsive">
<table id="tableLister" class="table table-hover align-middle mb-0" style="width:100%">
<thead class="bg-light text-muted small text-uppercase">
<tr>
<th class="ps-4 border-0"><?= _("Centre") ?></th>
<th class="border-0 text-center"><?= _("Code") ?></th>
<th class="border-0"><?= _("Nom de la Ville") ?></th>
<th class="border-0"><?= _("Pays") ?></th>
<th class="border-0 text-center pe-4"><?= _("Actions") ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($ville as $v):
$idData = $this->nettoyer($v['id']);
?>
<tr>
<td class="ps-4 fw-medium text-muted small"><?= $this->nettoyer($v['codeSociete']) ?></td>
<td class="text-center">
<span class="badge bg-light text-dark border fw-bold small"><?= $this->nettoyer($v['codeVille']) ?></span>
</td>
<td class="fw-bold text-dark"><?= $this->nettoyer($v['libelle']) ?></td>
<td>
<i class="fas fa-globe-africa me-1 text-secondary opacity-50 small"></i>
<?= $this->nettoyer($v['pays']) ?>
</td>
<td class="text-center pe-4">
<button type="button"
class="btn btn-outline-primary btn-sm px-3 rounded-pill fw-bold shadow-xs"
onclick="formModifTableRef(<?= $idData ?>);">
<i class="fas fa-edit me-1"></i> <?= _("Modifier") ?>
</button>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>
<table style="margin: auto" class="table-responsive">
<tbody>
<td><input class="form-control" style="text-align: center; font-size:10pt;" type="text" id="nbreTotal" name="nbreTotal" value="<?= _("Lignes Total").": ". $nbreTotal; ?>" readonly> </td>
</tbody>
</table>
<input type="hidden" id="total" value="<?= $nbreTotal; ?>">
<table id="tableLister" class="table table-striped table-bordered table-hover table-condensed table-responsive compact">
<thead>
<tr>
<th class="text-center"><?= _("Centre gestion") ?></th>
<th class="text-center">Code</th>
<th class="text-center"><?= _("Nom") ?></th>
<th class="text-center"><?= _("Pays") ?></th>
<!--
<th class="text-center">
<button type="button" style="font-size:10pt; font-weight: bold; width:100%; background-color:#4caf50; color: white;" class="form-control btn" onclick="javascript:cocherDecocherTout($('#fichier_lister').val());" > <?= $libbouton; ?> </button>
</th>
-->
<th class="text-center"><?= _("Modifier") ?></th>
<!--
<th class="text-center">Supprimer</th>
-->
</tr>
</thead>
<tbody>
<?php foreach ($ville as $v):
$idData = $this->nettoyer($v['id']);
?>
<tr valign="top">
<td class="text-center" width="15%"><?= $this->nettoyer($v['codeSociete']) ?></td>
<td class="text-center" width="10%"><?= $this->nettoyer($v['codeVille']) ?></td>
<td class="text-left" width="35%"><?= $this->nettoyer($v['libelle']) ?></td>
<td class="text-left" width="35%"><?= $this->nettoyer($v['pays']) ?></td>
<!--
<td class="text-center" width="10%">
<?php
if($this->nettoyer($v['choix'] == '0')){
$check ='';
}
else{
$check = 'checked';
}
?>
<INPUT TYPE="checkbox" class="custom-control-input" style="width: 2rem;height: 2rem;" id="choix" NAME="choix" value="<?=(($this->nettoyer($v['choix'])==0)? 0 : 1);?>" onclick="if (this.checked) this.value=1; else this.value=0;cocherDecocherUn($('#fichier_lister').val(),<?= $idData; ?>);" <?= $check;?>>
</td>
-->
<td class="text-center" width="10%">
<button style="width:100%" class ="form-control btn btn-primary" type="button" id="btn-editer" name="Modifier"
onclick="JAVASCRIPT:formModifTableRef(<?= $idData; ?>);" ><?= _("Modifier") ?></button>
</td>
<!--
<td class="text-center" width="10%">
<button style="width:100%" class = "form-control btn btn-danger" type="button" id="btn-supprimer" name="Supprimer"
onclick="JAVASCRIPT:supprimeLigneListe(<?= $idData; ?>,'<?= $superUser; ?>')">Supprimer</button>
</td>
-->
</tr>
<?php endforeach; ?>
</tbody>
</table>
<style>
/* Styles spécifiques Neutral Pro pour la cohérence */
.bg-primary-ghost { background-color: rgba(33, 46, 83, 0.08) !important; }
#tableLister thead th { padding-top: 15px; padding-bottom: 15px; font-size: 0.75rem; letter-spacing: 0.5px; }
#tableLister tbody td { border-color: #f1f4f6; height: 60px; }
.shadow-xs { box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.text-primary { color: #212e53 !important; }
</style>

View File

@ -1,18 +1,93 @@
<form id="formData">
<legend id="titre_formData"><?= _("Modification des données") ?></legend>
<INPUT class="sr-only" TYPE="text" id = "id" name = "id" value="<?=$activite['id']?>">
<table class="table table-responsive table-condensed">
<tbody>
<tr>
<td width="5%" align="center" >Code</td>
<td width="5%" ><INPUT class="form-control majuscule" TYPE="text" id="codeActivite" NAME="codeActivite" value="<?= $this->nettoyer($activite['codeActivite']); ?>" disabled></td>
<td width="5%" align="center" class="required"><?= _("Libellé") ?></td>
<td width="28%" ><INPUT class="form-control majuscule" TYPE="text" id="libelle" NAME="libelle" required AUTOCOMPLETE="OFF" autofocus value="<?= $this->nettoyer($activite['libelle']); ?>"></td>
<td width="5%" align="center"><?= _("Libellé Eng") ?></td>
<td width="27%" ><INPUT class="form-control majuscule" TYPE="text" id="libelleEng" NAME="libelleEng" value="<?= $this->nettoyer($activite['libelleEng']); ?>"></td>
</tr>
</tbody>
</table>
</form>
<div class="card border-0 shadow-sm border-start border-4 border-primary">
<div class="card-header bg-white py-3 border-bottom">
<h6 class="mb-0 fw-bold text-uppercase text-warning small" id="titre_formData">
<i class="fas fa-edit me-2"></i><?= _("Modification des données de l'activité de soins") ?>
</h6>
</div>
<div class="card-body p-4">
<form id="formData" class="container-fluid p-0">
<input type="hidden" id="id" name="id" value="<?= $this->nettoyer($activite['id']) ?>">
<div class="row g-4 align-items-end">
<div class="col-md-2">
<label class="form-label fw-bold text-muted small">Code</label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-light border-2 border-end-0">
<i class="fas fa-lock text-muted"></i>
</span>
<input type="text"
class="form-control border-2 border-start-0 majuscule fw-bold bg-light"
id="codeActivite"
name="codeActivite"
value="<?= $this->nettoyer($activite['codeActivite']); ?>"
disabled>
</div>
</div>
<div class="col-md-5">
<label class="form-label fw-bold text-muted small required"><?= _("Libellé (Fr)") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0">
<img src="../Bootstrap_new/images/france.png" width="16" alt="FR">
</span>
<input type="text"
class="form-control border-2 border-start-0 majuscule fw-bold"
id="libelle"
name="libelle"
required
autocomplete="OFF"
value="<?= $this->nettoyer($activite['libelle']); ?>">
</div>
</div>
<div class="col-md-5">
<label class="form-label fw-bold text-muted small text-uppercase"><?= _("Libellé (Eng)") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0">
<img src="../Bootstrap_new/images/england.png" width="16" alt="EN">
</span>
<input type="text"
class="form-control border-2 border-start-0 majuscule"
id="libelleEng"
name="libelleEng"
value="<?= $this->nettoyer($activite['libelleEng']); ?>">
</div>
</div>
</div>
</form>
</div>
</div>
<script>
$(document).ready(function() {
// Règle d'Or Neutral Pro : Focus différé de 200ms pour garantir l'interactivité
setTimeout(function() {
$('#libelle').focus();
}, 200);
});
</script>
<style>
/* Intégration identité Neutral Pro */
.border-primary { border-color: #212e53 !important; }
.shadow-xs { box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.form-control.border-2, .input-group-text.border-2 {
border-width: 2px !important;
border-color: #dee2e6;
}
.form-control:focus {
border-color: #212e53;
box-shadow: 0 0 0 0.25rem rgba(33, 46, 83, 0.1);
}
.majuscule { text-transform: uppercase; }
.required:after {
content: " *";
color: #dc3545;
font-weight: bold;
}
</style>

View File

@ -1,23 +1,93 @@
<form id="formData">
<legend id="titre_formData"><?= _("Modification des données") ?></legend>
<INPUT class="sr-only" TYPE="text" id = "id" name = "id" value="<?=$affection['id']?>">
<table class="table table-responsive table-condensed">
<tbody>
<tr>
<td width="5%" align="center">Code</td>
<td width="8%" ><INPUT class="form-control majuscule" TYPE="text" id="codeAffection" NAME="codeAffection" value="<?= $this->nettoyer($affection['codeAffection']); ?>" disabled></td>
<td width="5%" align="center" class="required">Type</td>
<td width="15%">
<select name="codeTypeAffection" id="codeTypeAffection" class="form-select" required AUTOCOMPLETE="OFF">
<?= liste_options($typeaffection,$this->nettoyer($affection['codeTypeAffection']),true) ?>
</select>
</td>
<td width="5%" align="center" class="required"><?= _("Libellé") ?></td>
<td width="30%" ><INPUT class="form-control majuscule" TYPE="text" id="libelle" NAME="libelle" required AUTOCOMPLETE="OFF" value="<?= $this->nettoyer($affection['libelle']); ?>"></td>
<td width="5%" align="center"><?= _("Libellé Eng") ?></td>
<td width="27%" ><INPUT class="form-control majuscule" TYPE="text" id="libelleEng" NAME="libelleEng" value="<?= $this->nettoyer($affection['libelleEng']); ?>"></td>
</tr>
</tbody>
</table>
</form>
<div class="card border-0 shadow-sm border-start border-4 border-primary">
<div class="card-header bg-white py-3 border-bottom">
<h6 class="mb-0 fw-bold text-uppercase text-warning small" id="titre_formData">
<i class="fas fa-edit me-2"></i><?= _("Modification des données de l'affection") ?>
</h6>
</div>
<div class="card-body p-4">
<form id="formData" class="container-fluid p-0">
<input type="hidden" id="id" name="id" value="<?= $this->nettoyer($affection['id']) ?>">
<div class="row g-3 align-items-end">
<div class="col-md-2">
<label class="form-label fw-bold text-muted small text-uppercase">Code</label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-light border-2 border-end-0"><i class="fas fa-lock text-muted"></i></span>
<input type="text" class="form-control border-2 border-start-0 majuscule fw-bold bg-light"
id="codeAffection" name="codeAffection"
value="<?= $this->nettoyer($affection['codeAffection']); ?>" disabled>
</div>
</div>
<div class="col-md-3">
<label class="form-label fw-bold text-muted small required"><?= _("Type") ?></label>
<select name="codeTypeAffection" id="codeTypeAffection" class="selectpicker form-control border-2 shadow-xs" data-live-search="true" data-container="body" required>
<?= liste_options($typeaffection, $this->nettoyer($affection['codeTypeAffection']), true) ?>
</select>
</div>
<div class="col-md-3">
<label class="form-label fw-bold text-muted small required"><?= _("Libellé (Fr)") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0">
<img src="../Bootstrap_new/images/france.png" width="16" alt="FR">
</span>
<input type="text"
class="form-control border-2 border-start-0 majuscule fw-bold"
id="libelle"
name="libelle"
required
autocomplete="OFF"
value="<?= $this->nettoyer($affection['libelle']); ?>">
</div>
</div>
<div class="col-md-4">
<label class="form-label fw-bold text-muted small"><?= _("Libellé (Eng)") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0">
<img src="../Bootstrap_new/images/england.png" width="16" alt="EN">
</span>
<input type="text"
class="form-control border-2 border-start-0 majuscule"
id="libelleEng"
name="libelleEng"
autocomplete="OFF"
value="<?= $this->nettoyer($affection['libelleEng']); ?>">
</div>
</div>
</div>
</form>
</div>
</div>
<script>
$(document).ready(function() {
// Initialisation du SelectPicker avec votre fonction Standard
actualiserSelectPicker('#codeTypeAffection', false);
// Focus UX Neutral Pro : 200ms sur le libellé
setTimeout(function() {
$('#libelle').focus();
}, 200);
});
</script>
<style>
/* Identité Visuelle Neutral Pro */
.border-primary { border-color: #212e53 !important; }
.shadow-xs { box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.form-control.border-2, .input-group-text.border-2 { border-width: 2px !important; }
.majuscule { text-transform: uppercase; }
.required:after { content: " *"; color: #dc3545; font-weight: bold; }
/* Harmonisation SelectPicker */
.bootstrap-select > .dropdown-toggle {
border-width: 2px !important;
height: 38px !important;
background-color: #fff !important;
}
</style>

View File

@ -1,33 +1,106 @@
<form id="formData">
<legend id="titre_formData"><?= _("Modification des données") ?></legend>
<INPUT class="sr-only" TYPE="text" id = "id" name = "id" value="<?=$banque['id']?>">
<table class="table table-responsive table-condensed">
<tbody>
<tr>
<td width="5%" align="center">Code</td>
<td width="20%" ><INPUT class="form-control majuscule" TYPE="text" id="codeBanque" NAME="codeBanque" value="<?= $this->nettoyer($banque['codeBanque']); ?>" disabled></td>
<td width="5%" align="center" class="required"><?= _("Libellé") ?></td>
<td width="20%" ><INPUT class="form-control majuscule" TYPE="text" id="libelle" NAME="libelle" required AUTOCOMPLETE="OFF" value="<?= $this->nettoyer($banque['libelle']); ?>"></td>
<td width="5%" align="center"><?= _("Code Swift") ?></td>
<td width="20%" ><INPUT class="form-control majuscule" TYPE="text" id="codeSwift" NAME="codeSwift" value="<?= $this->nettoyer($banque['codeSwift']); ?>"></td>
</tr>
<tr>
<td width="5%" align="center"><?= _("N° Compte Comptable") ?></td>
<td width="20%" ><INPUT class="form-control" TYPE="text" id="numeroCompteCpt" NAME="numeroCompteCpt" value="<?= $this->nettoyer($banque['numeroCompteCpt']); ?>"></td>
<div class="card border-0 shadow-sm border-start border-4 border-primary">
<div class="card-header bg-white py-3 border-bottom">
<h6 class="mb-0 fw-bold text-uppercase text-warning small" id="titre_formData">
<i class="fas fa-edit me-2"></i><?= _("Modification des données de la banque") ?>
</h6>
</div>
<div class="card-body p-4">
<form id="formData" class="container-fluid p-0">
<input type="hidden" id="id" name="id" value="<?= $this->nettoyer($banque['id']) ?>">
<td width="5%" align="center"><?= _("N° Compte Bancaire") ?></td>
<td width="20%" ><INPUT class="form-control" TYPE="text" id="numeroCompteBancaire" NAME="numeroCompteBancaire" value="<?= $this->nettoyer($banque['numeroCompteBancaire']); ?>"></td>
<td width="5%" align="center"><?= _("Banque Société") ?></td>
<td width="5%">
<select name="banqueSociete" id="banqueSociete" class="form-select">
<?= liste_options($ouinonplafondmodifiable,$this->nettoyer($banque['banqueSociete']),true) ?>
</select>
</td>
</tr>
</tbody>
</table>
</form>
<div class="row g-3">
<div class="col-md-2">
<label class="form-label fw-bold text-muted small">Code</label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-light border-2 border-end-0">
<i class="fas fa-lock text-muted"></i>
</span>
<input type="text" class="form-control border-2 border-start-0 majuscule fw-bold bg-light"
id="codeBanque" name="codeBanque"
value="<?= $this->nettoyer($banque['codeBanque']); ?>" disabled>
</div>
</div>
<div class="col-md-6">
<label class="form-label fw-bold text-muted small required"><?= _("Libellé") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-university text-primary"></i></span>
<input type="text" class="form-control border-2 border-start-0 majuscule fw-bold"
id="libelle" name="libelle" required autocomplete="OFF"
value="<?= $this->nettoyer($banque['libelle']); ?>">
</div>
</div>
<div class="col-md-4">
<label class="form-label fw-bold text-muted small"><?= _("Code Swift") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-random text-muted"></i></span>
<input type="text" class="form-control border-2 border-start-0 majuscule"
id="codeSwift" name="codeSwift"
value="<?= $this->nettoyer($banque['codeSwift']); ?>">
</div>
</div>
<div class="col-md-4">
<label class="form-label fw-bold text-muted small"><?= _("N° Compte Comptable") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-calculator text-muted"></i></span>
<input type="text" class="form-control border-2 border-start-0 text-primary fw-bold"
id="numeroCompteCpt" name="numeroCompteCpt"
value="<?= $this->nettoyer($banque['numeroCompteCpt']); ?>">
</div>
</div>
<div class="col-md-4">
<label class="form-label fw-bold text-muted small"><?= _("N° Compte Bancaire") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-credit-card text-muted"></i></span>
<input type="text" class="form-control border-2 border-start-0"
id="numeroCompteBancaire" name="numeroCompteBancaire"
value="<?= $this->nettoyer($banque['numeroCompteBancaire']); ?>">
</div>
</div>
<div class="col-md-4">
<label class="form-label fw-bold text-muted small"><?= _("Banque Société") ?></label>
<div class="shadow-xs">
<select name="banqueSociete" id="banqueSociete" class="selectpicker form-control border-2" data-container="body">
<?= liste_options($ouinonplafondmodifiable, $this->nettoyer($banque['banqueSociete']), true) ?>
</select>
</div>
</div>
</div>
</form>
</div>
</div>
<script>
$(document).ready(function() {
// Initialisation SelectPicker Standard
$('.selectpicker').selectpicker();
// Règle d'Or Neutral Pro : Focus différé de 200ms
setTimeout(function() {
$('#libelle').focus();
}, 200);
});
</script>
<style>
/* Identité Visuelle Neutral Pro */
.border-primary { border-color: #212e53 !important; }
.shadow-xs { box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.form-control.border-2, .input-group-text.border-2 { border-width: 2px !important; }
.majuscule { text-transform: uppercase; }
.required:after { content: " *"; color: #dc3545; font-weight: bold; }
/* Harmonisation SelectPicker */
.bootstrap-select > .dropdown-toggle {
border-width: 2px !important;
height: 38px !important;
background-color: #fff !important;
}
</style>

View File

@ -1,32 +1,118 @@
<form id="formData">
<legend id="titre_formData"><?= _("Modification des données") ?></legend>
<INPUT class="sr-only" TYPE="text" id = "id" name = "id" value="<?=$bureau['id']?>">
<table class="table table-responsive table-condensed">
<tbody>
<tr>
<td width="5%" align="center">Code</td>
<td width="20%" ><INPUT class="form-control majuscule" TYPE="text" id="codeBureau" NAME="codeBureau" value="<?=$bureau['codeBureau']?>" disabled></td>
<td width="5%" align="center" class="required"><?= _("Libellé") ?></td>
<td width="20%" ><INPUT class="form-control majuscule" TYPE="text" id="libelle" NAME="libelle" required AUTOCOMPLETE="OFF" autofocus value="<?=$bureau['libelle']?>"></td>
<td width="5%" align="center"><?= _("Nom Responsable") ?></td>
<td width="20%" ><INPUT class="form-control majuscule" TYPE="text" id="nomRespon" NAME="nomRespon" value="<?=$bureau['nomRespon']?>"></td>
</tr>
<tr>
<td width="5%" align="center"><?= _("Prénom Responsable") ?></td>
<td width="20%" ><INPUT class="form-control majuscule" TYPE="text" id="prenomRespon" NAME="prenomRespon" value="<?=$bureau['prenomRespon']?>"></td>
<div class="card border-0 shadow-sm border-start border-4 border-primary">
<div class="card-header bg-white py-3 border-bottom">
<h6 class="mb-0 fw-bold text-uppercase text-warning small" id="titre_formData">
<i class="fas fa-edit me-2"></i><?= _("Modification des données du bureau") ?>
</h6>
</div>
<div class="card-body p-4">
<form id="formData" class="container-fluid p-0">
<input type="hidden" id="id" name="id" value="<?= $this->nettoyer($bureau['id']) ?>">
<td width="5%" align="center"><?= _("Tél. Fixe") ?></td>
<td width="20%" ><INPUT class="form-control" TYPE="tel" id="telephoneFixe" NAME="telephoneFixe" value="<?=$bureau['telephoneFixe']?>"></td>
<td width="5%" align="center"><?= _("Tél. Mobile") ?></td>
<td width="20%" ><INPUT class="form-control" TYPE="tel" id="telephonePortable" NAME="telephonePortable" value="<?=$bureau['telephonePortable']?>"></td>
</tr>
<tr>
<td width="5%" align="center">E-mail</td>
<td colspan="5" ><INPUT class="form-control" TYPE="email" id="email" NAME="email" value="<?=$bureau['email']?>"></td>
</tr>
</tbody>
</table>
</form>
<div class="row g-4">
<div class="col-md-4">
<label class="form-label fw-bold text-muted small">Code</label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-light border-2 border-end-0"><i class="fas fa-lock text-muted"></i></span>
<input type="text"
class="form-control border-2 border-start-0 majuscule fw-bold bg-light"
id="codeBureau"
name="codeBureau"
value="<?= $this->nettoyer($bureau['codeBureau']) ?>"
disabled>
</div>
</div>
<div class="col-md-4">
<label class="form-label fw-bold text-muted small required"><?= _("Libellé") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-tag text-primary"></i></span>
<input type="text"
class="form-control border-2 border-start-0 majuscule fw-bold"
id="libelle"
name="libelle"
value="<?= $this->nettoyer($bureau['libelle']) ?>"
required
autocomplete="OFF">
</div>
</div>
<div class="col-md-4">
<label class="form-label fw-bold text-muted small"><?= _("Nom Responsable") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-user text-muted"></i></span>
<input type="text"
class="form-control border-2 border-start-0 majuscule"
id="nomRespon"
name="nomRespon"
value="<?= $this->nettoyer($bureau['nomRespon']) ?>">
</div>
</div>
<div class="col-md-4">
<label class="form-label fw-bold text-muted small"><?= _("Prénom Responsable") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-user-edit text-muted"></i></span>
<input type="text"
class="form-control border-2 border-start-0 majuscule"
id="prenomRespon"
name="prenomRespon"
value="<?= $this->nettoyer($bureau['prenomRespon']) ?>">
</div>
</div>
<div class="col-md-4">
<label class="form-label fw-bold text-muted small"><?= _("Téléphone Fixe") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-phone text-muted"></i></span>
<input type="tel"
class="form-control border-2 border-start-0"
id="telephoneFixe"
name="telephoneFixe"
value="<?= $this->nettoyer($bureau['telephoneFixe']) ?>">
</div>
</div>
<div class="col-md-4">
<label class="form-label fw-bold text-muted small"><?= _("Téléphone Mobile") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-mobile-alt text-muted"></i></span>
<input type="tel"
class="form-control border-2 border-start-0"
id="telephonePortable"
name="telephonePortable"
value="<?= $this->nettoyer($bureau['telephonePortable']) ?>">
</div>
</div>
<div class="col-md-12">
<label class="form-label fw-bold text-muted small">E-mail</label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-envelope text-muted"></i></span>
<input type="email"
class="form-control border-2 border-start-0"
id="email"
name="email"
value="<?= $this->nettoyer($bureau['email']) ?>">
</div>
</div>
</div>
</form>
</div>
</div>
<script>
// Protocole de focus Neutral Pro : 200ms sur le premier champ modifiable
setTimeout(function() {
$('#libelle').focus();
}, 200);
</script>
<style>
/* Intégration des variables Neutral Pro si non définies globalement */
.border-primary { border-color: #212e53 !important; }
.shadow-xs { box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.form-control.border-2, .input-group-text.border-2 { border-width: 2px !important; }
.majuscule { text-transform: uppercase; }
.required:after { content: " *"; color: #dc3545; font-weight: bold; }
</style>

View File

@ -1,64 +1,139 @@
<form id="formData">
<legend id="titre_formData"><?= _("Modification des données") ?></legend>
<INPUT class="sr-only" TYPE="text" id = "id" name = "id" value="<?=$commerciaux['id']?>">
<table class="table table-responsive table-condensed">
<tbody>
<tr>
<td width="5%" align="center" >Code</td>
<td width="20%"><INPUT class="form-control majuscule" TYPE="text" id="codeApporteur" NAME="codeApporteur" required AUTOCOMPLETE="OFF" value="<?= $this->nettoyer($commerciaux['codeApporteur']); ?>" disabled></td>
<td width="5%" align="center" class="required"><?= _("Nom et Prénoms") ?></td>
<td width="30%"><INPUT class="form-control majuscule" TYPE="text" id="libelle" NAME="libelle" required AUTOCOMPLETE="OFF" autofocus value="<?= $this->nettoyer($commerciaux['libelle']); ?>"></td>
<td width="5%" align="center" class="required">Type</td>
<td width="20%">
<select name="codeTypeApporteur" id="codeTypeApporteur" class="form-select" required>
<?= liste_options($typeapp,$this->nettoyer($commerciaux['codeTypeApporteur']),true) ?>
</select>
</td>
<div class="card border-0 shadow-sm border-start border-4 border-primary">
<div class="card-header bg-white py-3 border-bottom">
<h6 class="mb-0 fw-bold text-uppercase text-warning small" id="titre_formData">
<i class="fas fa-user-edit me-2"></i><?= _("Modification des données du commercial") ?>
</h6>
</div>
<div class="card-body p-4">
<form id="formData" class="container-fluid p-0">
<input type="hidden" id="id" name="id" value="<?= $this->nettoyer($commerciaux['id']) ?>">
<td width="10%" align="center"><?= _("Déduire Commission") ?></td>
<td width="5%">
<select name="deduireComm" id="deduireComm" class="form-select">
<?= liste_options($ouinonplafondmodifiable,$this->nettoyer($commerciaux['deduireComm']),true) ?>
</select>
</td>
</tr>
<tr>
<td width="5%" align="center" class="required"><?= _("Bureau") ?></td>
<td width="20%">
<select name="codeBureau" id="codeBureau" class="form-select" value="<?= $this->nettoyer($commerciaux['codeBureau']); ?>" required AUTOCOMPLETE="OFF">
<?= liste_options($bureau,$this->nettoyer($commerciaux['codeBureau']),true) ?>
</select>
</td>
<td width="5%" align="center"><?= _("E-mail") ?></td>
<td width="30%"><INPUT class="form-control" TYPE="email" id="email" NAME="email" value="<?= $this->nettoyer($commerciaux['email']); ?>"></td>
<td width="5%" align="center"><?= _("Téléphone") ?></td>
<td width="20%"><INPUT class="form-control" TYPE="tel" id="telephone" NAME="telephone" value="<?= $this->nettoyer($commerciaux['telephone']); ?>"></td>
<div class="row g-3">
<div class="col-md-2">
<label class="form-label fw-bold text-muted small">Code</label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-light border-2 border-end-0"><i class="fas fa-lock text-muted"></i></span>
<input type="text" class="form-control border-2 border-start-0 majuscule fw-bold bg-light"
id="codeApporteur" name="codeApporteur" value="<?= $this->nettoyer($commerciaux['codeApporteur']); ?>" disabled>
</div>
</div>
<td width="10%" align="center"><?= _("Type Système") ?></td>
<td width="5%">
<select name="typeSysteme" id="typeSysteme" class="form-select">
<?= liste_options($ouinonplafondmodifiable,$this->nettoyer($commerciaux['typeSysteme']),true) ?>
</select>
</td>
</tr>
<tr>
<td width="5%" align="center"><?= _("Responsable") ?></td>
<td width="20%" ><INPUT class="form-control majuscule" TYPE="text" id="nomResponsable" NAME="nomResponsable" value="<?= $this->nettoyer($commerciaux['nomResponsable']); ?>"></td>
<td width="5%" align="center"><?= _("Mobile Payer") ?></td>
<td width="30%"><INPUT class="form-control" TYPE="number" id="mobilePaiement" NAME="mobilePaiement" value="<?= $this->nettoyer($commerciaux['mobilePaiement']); ?>" title="<?= _("L'indicatif est obligatoire")?>"></td>
<td width="5%" align="center"><?= _("Adresse Postale") ?></td>
<td colspan="3"><INPUT class="form-control majuscule" TYPE="text" id="adressePost" NAME="adressePost" value="<?= $this->nettoyer($commerciaux['adressePost']); ?>"></td>
</tr>
<tr>
<td width="5%" align="center"><?= _("Adresse Géo.") ?></td>
<td colspan="7"><INPUT class="form-control majuscule" TYPE="text" id="adresseGeo" NAME="adresseGeo" value="<?= $this->nettoyer($commerciaux['adresseGeo']); ?>"></td>
</tr>
</tbody>
</table>
</form>
<div class="col-md-5">
<label class="form-label fw-bold text-muted small required"><?= _("Nom et Prénoms") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-user text-primary"></i></span>
<input type="text" class="form-control border-2 border-start-0 majuscule fw-bold"
id="libelle" name="libelle" required autocomplete="OFF" value="<?= $this->nettoyer($commerciaux['libelle']); ?>">
</div>
</div>
<div class="col-md-3">
<label class="form-label fw-bold text-muted small required"><?= _("Type") ?></label>
<select name="codeTypeApporteur" id="codeTypeApporteur" class="selectpicker form-control border-2 shadow-xs" data-live-search="true" data-container="body" required>
<?= liste_options($typeapp, $this->nettoyer($commerciaux['codeTypeApporteur']), true) ?>
</select>
</div>
<div class="col-md-2">
<label class="form-label fw-bold text-muted small"><?= _("Déduire Commission") ?></label>
<select name="deduireComm" id="deduireComm" class="selectpicker form-control border-2 shadow-xs" data-container="body">
<?= liste_options($ouinonplafondmodifiable, $this->nettoyer($commerciaux['deduireComm']), true) ?>
</select>
</div>
<div class="col-md-4">
<label class="form-label fw-bold text-muted small required"><?= _("Bureau") ?></label>
<select name="codeBureau" id="codeBureau" class="selectpicker form-control border-2 shadow-xs" data-live-search="true" data-container="body" required>
<?= liste_options($bureau, $this->nettoyer($commerciaux['codeBureau']), true) ?>
</select>
</div>
<div class="col-md-3">
<label class="form-label fw-bold text-muted small"><?= _("E-mail") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-envelope text-muted"></i></span>
<input type="email" class="form-control border-2 border-start-0" id="email" name="email" value="<?= $this->nettoyer($commerciaux['email']); ?>">
</div>
</div>
<div class="col-md-3">
<label class="form-label fw-bold text-muted small"><?= _("Téléphone") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-phone text-muted"></i></span>
<input type="tel" class="form-control border-2 border-start-0" id="telephone" name="telephone" value="<?= $this->nettoyer($commerciaux['telephone']); ?>">
</div>
</div>
<div class="col-md-2">
<label class="form-label fw-bold text-muted small"><?= _("Système") ?></label>
<select name="typeSysteme" id="typeSysteme" class="selectpicker form-control border-2 shadow-xs" data-container="body">
<?= liste_options($ouinonplafondmodifiable, $this->nettoyer($commerciaux['typeSysteme']), true) ?>
</select>
</div>
<div class="col-md-4">
<label class="form-label fw-bold text-muted small"><?= _("Responsable") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-user-tie text-muted"></i></span>
<input type="text" class="form-control border-2 border-start-0 majuscule" id="nomResponsable" name="nomResponsable" value="<?= $this->nettoyer($commerciaux['nomResponsable']); ?>">
</div>
</div>
<div class="col-md-3">
<label class="form-label fw-bold text-muted small required"><?= _("N° Mobile Paiement") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-mobile-alt text-success"></i></span>
<input type="number" class="form-control border-2 border-start-0 fw-bold"
id="mobilePaiement" name="mobilePaiement" value="<?= $this->nettoyer($commerciaux['mobilePaiement']); ?>" required>
</div>
</div>
<div class="col-md-5">
<label class="form-label fw-bold text-muted small"><?= _("Adresse Postale") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-map-signs text-muted"></i></span>
<input type="text" class="form-control border-2 border-start-0 majuscule" id="adressePost" name="adressePost" value="<?= $this->nettoyer($commerciaux['adressePost']); ?>">
</div>
</div>
<div class="col-md-12">
<label class="form-label fw-bold text-muted small"><?= _("Adresse Géographique") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-map-marker-alt text-muted"></i></span>
<input type="text" class="form-control border-2 border-start-0 majuscule" id="adresseGeo" name="adresseGeo" value="<?= $this->nettoyer($commerciaux['adresseGeo']); ?>">
</div>
</div>
</div>
</form>
</div>
</div>
<script>
$(document).ready(function() {
// Initialisation SelectPicker
$('.selectpicker').selectpicker();
// Focus Neutral Pro (200ms sur libellé)
setTimeout(function() {
$('#libelle').focus();
}, 200);
});
</script>
<style>
.border-primary { border-color: #212e53 !important; }
.shadow-xs { box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.form-control.border-2 { border-width: 2px !important; }
.input-group-text.border-2 { border-width: 2px !important; }
.majuscule { text-transform: uppercase; }
.required:after { content: " *"; color: #dc3545; font-weight: bold; }
/* Harmonisation SelectPicker */
.bootstrap-select > .dropdown-toggle {
border-width: 2px !important;
height: 38px !important;
background-color: #fff !important;
}
</style>

View File

@ -1,29 +1,95 @@
<form id="formData">
<legend id="titre_formData"><?= _("Modification des données") ?></legend>
<INPUT class="sr-only" TYPE="text" id = "id" name = "id" value="<?=$tabentetetrancheage['id']?>">
<table class="table table-responsive table-condensed">
<tbody>
<tr>
<td width="10%" align="center" >Code</td>
<td width="10%" ><INPUT class="form-control majuscule" TYPE="text" id="codeEnteteTrancheAge" NAME="codeEnteteTrancheAge"
value="<?=$tabentetetrancheage['codeEnteteTrancheAge']?>" disabled >
</td>
<td width="10%" align="center" class="required"><?= _("Libellé") ?></td>
<td ><INPUT class="form-control majuscule" TYPE="text" id="libelle" NAME="libelle" required AUTOCOMPLETE="OFF" value="<?=$tabentetetrancheage['libelle']?>"></td>
<td width="10%" align="center"><?= _("Libellé Eng") ?></td>
<td ><INPUT class="form-control majuscule" TYPE="text" id="libelleEng" NAME="libelleEng" value="<?=$tabentetetrancheage['libelleEng']?>"></td>
</tr>
<tr>
<td width="10%" align="center" ><?= _("Garant") ?></td>
<td colspan="5" >
<select class="form-select" id="codeGcAssureur" NAME="codeGcAssureur" readonly>
<?php liste_options($garants,$tabentetetrancheage['codeGcAssureur']); ?>
</SELECT>
</td>
</tr>
</tbody>
</table>
</form>
<div class="card border-0 shadow-sm border-start border-4 border-primary">
<div class="card-header bg-white py-3 border-bottom">
<h6 class="mb-0 fw-bold text-uppercase text-warning small" id="titre_formData">
<i class="fas fa-edit me-2"></i><?= _("Modification des données de la catégorie de tranches d'âge") ?>
</h6>
</div>
<div class="card-body p-4">
<form id="formData" class="container-fluid p-0">
<input type="hidden" id="id" name="id" value="<?= $this->nettoyer($tabentetetrancheage['id']) ?>">
<div class="row g-4">
<div class="col-md-2">
<label class="form-label fw-bold text-muted small">Code</label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-light border-2 border-end-0"><i class="fas fa-lock text-muted"></i></span>
<input type="text" class="form-control border-2 border-start-0 majuscule fw-bold bg-light"
id="codeEnteteTrancheAge" name="codeEnteteTrancheAge"
value="<?= $this->nettoyer($tabentetetrancheage['codeEnteteTrancheAge']) ?>" disabled>
</div>
</div>
<div class="col-md-5">
<label class="form-label fw-bold text-muted small required"><?= _("Libellé (Fr)") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0">
<img src="../Bootstrap_new/images/france.png" width="16" alt="FR">
</span>
<input type="text" class="form-control border-2 border-start-0 majuscule fw-bold"
id="libelle" name="libelle" required autocomplete="OFF"
value="<?= $this->nettoyer($tabentetetrancheage['libelle']) ?>">
</div>
</div>
<div class="col-md-5">
<label class="form-label fw-bold text-muted small"><?= _("Libellé (Eng)") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0">
<img src="../Bootstrap_new/images/england.png" width="16" alt="EN">
</span>
<input type="text" class="form-control border-2 border-start-0 majuscule"
id="libelleEng" name="libelleEng"
value="<?= $this->nettoyer($tabentetetrancheage['libelleEng']) ?>">
</div>
</div>
<div class="col-md-12">
<label class="form-label fw-bold text-muted small"><?= _("Garant") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-light border-2 border-end-0"><i class="fas fa-shield-alt text-muted"></i></span>
<select class="selectpicker form-control border-2 bg-light"
id="codeGcAssureur" name="codeGcAssureur"
data-container="body" disabled>
<?php liste_options($garants, $this->nettoyer($tabentetetrancheage['codeGcAssureur']), true); ?>
</select>
</div>
<small class="text-muted mt-1 d-block"><i class="fas fa-info-circle me-1"></i> <?= _("Le garant ne peut pas être modifié après la création.") ?></small>
</div>
</div>
</form>
</div>
</div>
<script>
$(document).ready(function() {
// Initialisation SelectPicker
$('.selectpicker').selectpicker();
// Règle d'Or Neutral Pro : Focus différé de 200ms sur le champ FR
setTimeout(function() {
$('#libelle').focus();
}, 200);
});
</script>
<style>
/* Identité Visuelle Neutral Pro */
.border-primary { border-color: #212e53 !important; }
.shadow-xs { box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.form-control.border-2, .input-group-text.border-2 { border-width: 2px !important; }
.majuscule { text-transform: uppercase; }
.required:after { content: " *"; color: #dc3545; font-weight: bold; }
/* Harmonisation SelectPicker désactivé */
.bootstrap-select.disabled {
background-color: #f8fafc !important;
opacity: 1 !important;
}
.bootstrap-select > .dropdown-toggle.disabled {
border-color: #dee2e6 !important;
background-color: #f8fafc !important;
}
</style>

View File

@ -1,18 +1,90 @@
<form id="formData">
<legend id="titre_formData"><?= _("Modification des données") ?></legend>
<INPUT class="sr-only" TYPE="text" id = "id" name = "id" value="<?=$etendueterritoire['id']?>">
<table class="table table-responsive table-condensed">
<tbody>
<tr>
<td width="5%" align="center" >Code</td>
<td width="5%" ><INPUT class="form-control majuscule" TYPE="text" id="codeTerritoire" NAME="codeTerritoire" value="<?= $this->nettoyer($etendueterritoire['codeTerritoire']); ?>" disabled></td>
<td width="5%" align="center" class="required"><?= _("Libellé Fr") ?></td>
<td width="28%" ><INPUT class="form-control majuscule" TYPE="text" id="libelle" NAME="libelle" required AUTOCOMPLETE="OFF" value="<?= $this->nettoyer($etendueterritoire['libelle']); ?>"></td>
<td width="5%" align="center"><?= _("Libellé Eng") ?></td>
<td width="27%" ><INPUT class="form-control majuscule" TYPE="text" id="libelleEng" NAME="libelleEng" value="<?= $this->nettoyer($etendueterritoire['libelleEng']); ?>"></td>
</tr>
</tbody>
</table>
</form>
<div class="card border-0 shadow-sm border-start border-4 border-primary">
<div class="card-header bg-white py-3 border-bottom">
<h6 class="mb-0 fw-bold text-uppercase text-warning small" id="titre_formData">
<i class="fas fa-edit me-2"></i><?= _("Modification des données de l'étendue de territoire") ?>
</h6>
</div>
<div class="card-body p-4">
<form id="formData" class="container-fluid p-0">
<input type="hidden" id="id" name="id" value="<?= $this->nettoyer($etendueterritoire['id']) ?>">
<div class="row g-4">
<div class="col-md-2">
<label class="form-label fw-bold text-muted small text-uppercase">Code</label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-light border-2 border-end-0"><i class="fas fa-lock text-muted"></i></span>
<input type="text"
class="form-control border-2 border-start-0 majuscule fw-bold bg-light"
id="codeTerritoire"
name="codeTerritoire"
value="<?= $this->nettoyer($etendueterritoire['codeTerritoire']); ?>"
disabled>
</div>
</div>
<div class="col-md-5">
<label class="form-label fw-bold text-muted small text-uppercase required"><?= _("Libellé (Fr)") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0">
<img src="../Bootstrap_new/images/france.png" width="16" alt="FR">
</span>
<input type="text"
class="form-control border-2 border-start-0 majuscule fw-bold"
id="libelle"
name="libelle"
required
autocomplete="OFF"
value="<?= $this->nettoyer($etendueterritoire['libelle']); ?>">
</div>
</div>
<div class="col-md-5">
<label class="form-label fw-bold text-muted small text-uppercase"><?= _("Libellé (Eng)") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0">
<img src="../Bootstrap_new/images/england.png" width="16" alt="EN">
</span>
<input type="text"
class="form-control border-2 border-start-0 majuscule"
id="libelleEng"
name="libelleEng"
value="<?= $this->nettoyer($etendueterritoire['libelleEng']); ?>">
</div>
</div>
</div>
</form>
</div>
</div>
<script>
$(document).ready(function() {
// Règle d'Or Neutral Pro : Focus différé de 200ms
setTimeout(function() {
$('#libelle').focus();
}, 200);
});
</script>
<style>
/* Intégration identité Neutral Pro */
.border-primary { border-color: #212e53 !important; }
.shadow-xs { box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.form-control.border-2, .input-group-text.border-2 {
border-width: 2px !important;
}
.form-control:focus {
border-color: #212e53;
box-shadow: 0 0 0 0.25rem rgba(33, 46, 83, 0.1);
}
.majuscule { text-transform: uppercase; }
.required:after {
content: " *";
color: #dc3545;
font-weight: bold;
}
</style>

View File

@ -1,53 +1,121 @@
<form id="formData">
<legend id="titre_formData"><?= _("Modification des données") ?></legend>
<INPUT class="sr-only" TYPE="text" id = "id" name = "id" value="<?=$intermediaire['id']?>">
<table class="table table-responsive table-condensed">
<tbody>
<tr>
<td width="5%" align="center" >Code</td>
<td width="20%" ><INPUT class="form-control majuscule" TYPE="text" id="codeApporteur" NAME="codeApporteur" value="<?= $this->nettoyer($intermediaire['codeApporteur']); ?>" disabled></td>
<td width="5%" align="center" class="required">Type</td>
<td width="20%">
<select name="codeTypeApporteur" id="codeTypeApporteur" class="form-select" required AUTOCOMPLETE="OFF" autofocus>
<?= liste_options($typeinter,$this->nettoyer($intermediaire['codeTypeApporteur']),true) ?>
</select>
</td>
<td width="5%" align="center" class="required"><?= _("Raison Sociale") ?></td>
<td width="20%" ><INPUT class="form-control majuscule" TYPE="text" id="libelle" NAME="libelle" required AUTOCOMPLETE="OFF" value="<?= $this->nettoyer($intermediaire['libelle']); ?>"></td>
<td width="5%" align="center"><?= _("Responsable") ?></td>
<td width="20%" ><INPUT class="form-control majuscule" TYPE="text" id="nomResponsable" NAME="nomResponsable" value="<?= $this->nettoyer($intermediaire['nomResponsable']); ?>"></td>
</tr>
<tr>
<td width="5%" align="center"><?= _("Téléphone") ?></td>
<td width="20%" ><INPUT class="form-control" TYPE="tel" id="telephone" NAME="telephone" value="<?= $this->nettoyer($intermediaire['telephone']); ?>"></td>
<form id="formData" class="container-fluid p-0">
<input type="hidden" id="id" name="id" value="<?= $intermediaire['id'] ?>">
<td width="5%" align="center">E-mail</td>
<td width="20%" ><INPUT class="form-control" TYPE="email" id="email" NAME="email" value="<?= $this->nettoyer($intermediaire['email']); ?>"></td>
<td width="5%" align="center"><?= _("Bureau") ?></td>
<td width="20%">
<select name="codeBureau" id="codeBureau" class="form-select" value="<?= $this->nettoyer($intermediaire['codeBureau']); ?>">
<?= liste_options($bureau,$this->nettoyer($intermediaire['codeBureau']),true) ?>
</select>
</td>
<td width="5%" align="center"><?= _("Déduire Commission") ?></td>
<td width="5%">
<select name="deduireComm" id="deduireComm" class="form-select">
<?= liste_options($ouinonplafondmodifiable,$this->nettoyer($intermediaire['deduireComm']),true) ?>
</select>
</td>
</tr>
<tr>
<td width="5%" align="center"><?= _("Mobile Payer") ?></td>
<td ><INPUT class="form-control" TYPE="number" id="mobilePaiement" NAME="mobilePaiement" value="<?= $this->nettoyer($intermediaire['mobilePaiement']); ?>" title="<?= _("L'indicatif est obligatoire")?>"></td>
<td width="5%" align="center"><?= _("Adresse Géo.") ?></td>
<td ><INPUT class="form-control majuscule" TYPE="text" id="adresseGeo" NAME="adresseGeo" value="<?= $this->nettoyer($intermediaire['adresseGeo']); ?>"></td>
<td width="5%" align="center"><?= _("Adresse Postale") ?></td>
<td colspan="3" ><INPUT class="form-control majuscule" TYPE="text" id="adressePost" NAME="adressePost" value="<?= $this->nettoyer($intermediaire['adressePost']); ?>"></td>
</tr>
</tbody>
</table>
<div class="card border-0 shadow-sm border-start border-4 border-primary" style="border-radius: var(--radius-md);">
<div class="card-header bg-white py-3 border-bottom">
<h6 class="mb-0 fw-bold text-uppercase text-warning small">
<i class="fas fa-edit me-2"></i><?= _("Modification des données de l'intermédiaire") ?>
</h6>
</div>
<div class="card-body bg-light-50 p-4">
<div class="row g-3 mb-4">
<div class="col-md-2">
<label class="form-label small fw-bold text-muted"><?= _("Code") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-light border-2 border-end-0"><i class="fas fa-barcode text-muted"></i></span>
<input type="text" class="form-control border-2 border-start-0 majuscule fw-bold text-center"
id="codeApporteur" name="codeApporteur" value="<?= $this->nettoyer($intermediaire['codeApporteur']); ?>" readonly>
</div>
</div>
<div class="col-md-2">
<label class="form-label small fw-bold text-muted required"><?= _("Type") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-user-tie text-muted"></i></span>
<select name="codeTypeApporteur" id="codeTypeApporteur" class="form-control selectpicker border-2 border-start-0" required>
<?= liste_options($typeinter, $this->nettoyer($intermediaire['codeTypeApporteur']), true) ?>
</select>
</div>
</div>
<div class="col-md-4">
<label class="form-label small fw-bold text-muted required"><?= _("Raison Sociale") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-building text-muted"></i></span>
<input type="text" class="form-control border-2 border-start-0 majuscule"
id="libelle" name="libelle" required value="<?= $this->nettoyer($intermediaire['libelle']); ?>">
</div>
</div>
<div class="col-md-4">
<label class="form-label small fw-bold text-muted"><?= _("Responsable") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-user text-muted"></i></span>
<input type="text" class="form-control border-2 border-start-0 majuscule"
id="nomResponsable" name="nomResponsable" value="<?= $this->nettoyer($intermediaire['nomResponsable']); ?>">
</div>
</div>
</div>
<div class="row g-3 mb-4">
<div class="col-md-3">
<label class="form-label small fw-bold text-muted required"><?= _("Téléphone") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-phone text-muted"></i></span>
<input type="tel" class="form-control border-2 border-start-0"
id="telephone" name="telephone" value="<?= $this->nettoyer($intermediaire['telephone']); ?>" required>
</div>
</div>
<div class="col-md-3">
<label class="form-label small fw-bold text-muted required"><?= _("E-mail") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-envelope text-muted"></i></span>
<input type="email" class="form-control border-2 border-start-0"
id="email" name="email" value="<?= $this->nettoyer($intermediaire['email']); ?>" required>
</div>
</div>
<div class="col-md-3">
<label class="form-label small fw-bold text-muted"><?= _("Bureau") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-map-marked-alt text-muted"></i></span>
<select name="codeBureau" id="codeBureau" class="form-control selectpicker border-2 border-start-0">
<?= liste_options($bureau, $this->nettoyer($intermediaire['codeBureau']), true) ?>
</select>
</div>
</div>
<div class="col-md-3">
<label class="form-label small fw-bold text-muted"><?= _("Déduire Commission") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-percent text-muted"></i></span>
<select name="deduireComm" id="deduireComm" class="form-control selectpicker border-2 border-start-0">
<?= liste_options($ouinonplafondmodifiable, $this->nettoyer($intermediaire['deduireComm']), true) ?>
</select>
</div>
</div>
</div>
<div class="row g-3">
<div class="col-md-3">
<label class="form-label small fw-bold text-muted"><?= _("N° Mobile Paiement") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-mobile-alt text-muted"></i></span>
<input type="number" class="form-control border-2 border-start-0"
id="mobilePaiement" name="mobilePaiement" value="<?= $this->nettoyer($intermediaire['mobilePaiement']); ?>" title="<?= _("L'indicatif est obligatoire")?>">
</div>
</div>
<div class="col-md-4">
<label class="form-label small fw-bold text-muted"><?= _("Adresse Géographique") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-map-marker-alt text-muted"></i></span>
<input type="text" class="form-control border-2 border-start-0 majuscule"
id="adresseGeo" name="adresseGeo" value="<?= $this->nettoyer($intermediaire['adresseGeo']); ?>">
</div>
</div>
<div class="col-md-5">
<label class="form-label small fw-bold text-muted"><?= _("Adresse Postale") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-mailbox text-muted"></i></span>
<input type="text" class="form-control border-2 border-start-0 majuscule"
id="adressePost" name="adressePost" value="<?= $this->nettoyer($intermediaire['adressePost']); ?>">
</div>
</div>
</div>
</div>
</div>
</form>

View File

@ -1,35 +1,77 @@
<form id="formData">
<legend id="titre_formData"><?= _("Modification des données") ?></legend>
<INPUT class="sr-only" TYPE="text" id = "id" name = "id" value="<?=$joursferiers['id']?>">
<table class="table table-responsive table-condensed">
<tbody>
<tr>
<td width="6%" align="center" class="required"><?= _("Libellé Fr") ?></td>
<td width="30%" ><INPUT class="form-control" TYPE="text" id="libelle" NAME="libelle" required AUTOCOMPLETE="OFF" autofocus value="<?= $this->nettoyer($joursferiers['libelle']); ?>"></td>
<td width="5%" align="center"><?= _("Libellé Eng") ?></td>
<td colspan="3" ><INPUT class="form-control" TYPE="text" id="libelleEng" NAME="libelleEng" value="<?= $this->nettoyer($joursferiers['libelleEng']); ?>"></td>
</tr>
<tr>
<td width="5%" align="center" class="required">Date</td>
<td width="20%" ><INPUT class="form-control datepicker" TYPE="text" id="dateFerier" NAME="dateFerier" required AUTOCOMPLETE="OFF" value="<?= dateLang($this->nettoyer($joursferiers['dateFerier'])) ?>"></td>
<td width="5%" align="center" class="required"><?= _("Pays") ?></td>
<td width="20%">
<SELECT onChange="afficheDonneesTableChoisie('Ajaxtblisterjoursferiers');" class="form-select" id="codePays" NAME="codePays" required AUTOCOMPLETE="OFF">
<?php liste_options($pays,$joursferiers['codePays']); ?>
</SELECT>
</td>
<td width="10%" align="center"><?= _("Demi-journée ?") ?></td>
<td width="5%">
<select name="demiJournee" id="demiJournee" class="form-select">
<?= liste_options($ouinonplafondmodifiable,$this->nettoyer($joursferiers['demiJournee']),true) ?>
</select>
</td>
</tr>
</tbody>
</table>
<form id="formData" class="container-fluid p-0">
<input type="hidden" id="id" name="id" value="<?= $joursferiers['id'] ?>">
<div class="card border-0 shadow-sm border-start border-4 border-primary" style="border-radius: var(--radius-md);">
<div class="card-header bg-white py-3 border-bottom">
<h6 class="mb-0 fw-bold text-uppercase text-warning small">
<i class="fas fa-calendar-check me-2"></i><?= _("Modification des données du Jour Férié") ?>
</h6>
</div>
<div class="card-body bg-light-50 p-4">
<div class="row g-3 mb-4">
<div class="col-md-6">
<label class="form-label small fw-bold text-muted required"><?= _("Libellé (FR)") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0">
<i class="fas fa-tag text-muted"></i>
</span>
<input type="text" class="form-control border-2 border-start-0"
id="libelle" name="libelle" required autocomplete="off"
value="<?= $this->nettoyer($joursferiers['libelle']); ?>">
</div>
</div>
<div class="col-md-6">
<label class="form-label small fw-bold text-muted"><?= _("Libellé (EN)") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0">
<i class="fas fa-language text-muted"></i>
</span>
<input type="text" class="form-control border-2 border-start-0"
id="libelleEng" name="libelleEng" autocomplete="off"
value="<?= $this->nettoyer($joursferiers['libelleEng']); ?>">
</div>
</div>
</div>
<div class="row g-3">
<div class="col-md-4">
<label class="form-label small fw-bold text-muted required"><?= _("Date de l'événement") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0">
<i class="fas fa-calendar-alt text-muted"></i>
</span>
<input type="text" class="form-control border-2 border-start-0 datepicker"
id="dateFerier" name="dateFerier" required autocomplete="off"
value="<?= dateLang($this->nettoyer($joursferiers['dateFerier'])) ?>">
</div>
</div>
<div class="col-md-5">
<label class="form-label small fw-bold text-muted"><?= _("Pays") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0">
<i class="fas fa-globe-africa text-muted"></i>
</span>
<select class="form-control selectpicker border-2 border-start-0" disabled>
<?php liste_options($pays, $joursferiers['codePays'], true); ?>
</select>
</div>
</div>
<div class="col-md-3">
<label class="form-label small fw-bold text-muted"><?= _("Demi-journée ?") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0">
<i class="fas fa-adjust text-muted"></i>
</span>
<select name="demiJournee" id="demiJournee" class="form-control selectpicker border-2 border-start-0">
<?= liste_options($ouinonplafondmodifiable, $this->nettoyer($joursferiers['demiJournee']), true) ?>
</select>
</div>
</div>
</div>
</div>
</div>
</form>

View File

@ -1,31 +1,51 @@
<form id="formData">
<legend id="titre_formData"><?= _("Modification des données") ?></legend>
<INPUT class="sr-only" TYPE="text" id = "id" name = "id" value="<?=$localite['id']?>">
<table class="table table-responsive table-condensed">
<tbody>
<tr>
<td width="5%" align="center" >Code</td>
<td width="10%" ><INPUT class="form-control majuscule" TYPE="text" id="codeLocalite" NAME="codeLocalite" value="<?= $this->nettoyer($localite['codeLocalite']); ?>" disabled></td>
<td width="5%" align="center" class="required"><?= _("Libellé") ?></td>
<td width="30%" ><INPUT class="form-control majuscule" TYPE="text" id="libelle" NAME="libelle" required AUTOCOMPLETE="OFF" value="<?= $this->nettoyer($localite['libelle']); ?>"></td>
<td width="5%" align="center" class="required"><?= _("Pays") ?></td>
<td width="20%">
<select name="codePays" id="codePays" class="form-select" required AUTOCOMPLETE="OFF" onchange="JAVASCRIPT:filtreVilleParPays();">
<?= liste_options($pays,$this->nettoyer($localite['codePays']),true) ?>
</select>
</td>
<td width="5%" align="center" class="required"><?= _("Ville") ?></td>
<td width="20%">
<div id="div_ville" width="100%">
<select name="codeVille" id="codeVille" class="form-select" required AUTOCOMPLETE="OFF">
<?= liste_options($ville,$this->nettoyer($localite['codeVille']),true) ?>
</select>
<form id="formData" class="container-fluid p-0">
<input type="hidden" id="id" name="id" value="<?= $localite['id'] ?>">
<div class="card border-0 shadow-sm border-start border-4 border-primary">
<div class="card-header bg-white py-3">
<h6 class="card-title mb-0 fw-bold text-uppercase text-warning small">
<i class="fas fa-edit me-2"></i><?= _("Modification des données de la localité") ?>
</h6>
</div>
<div class="card-body bg-light-50">
<div class="row g-3">
<div class="col-md-2">
<label class="form-label small fw-bold text-muted"><?= _("Code") ?></label>
<div class="input-group">
<span class="input-group-text bg-light border-2 border-end-0"><i class="fas fa-barcode text-muted"></i></span>
<input type="text" class="form-control border-2 border-start-0 majuscule fw-bold" id="codeLocalite" name="codeLocalite" value="<?= $this->nettoyer($localite['codeLocalite']); ?>" disabled>
</div>
</div>
</td>
</tr>
</tbody>
</table>
<div class="col-md-4">
<label class="form-label small fw-bold text-muted required"><?= _("Libellé Localité") ?></label>
<div class="input-group">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-map-marker-alt text-muted"></i></span>
<input type="text" class="form-control border-2 border-start-0 majuscule" id="libelle" name="libelle" required autocomplete="off" value="<?= $this->nettoyer($localite['libelle']); ?>">
</div>
</div>
<div class="col-md-3">
<label class="form-label small fw-bold text-muted required"><?= _("Pays") ?></label>
<div class="input-group">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-globe text-muted"></i></span>
<select name="codePays" id="codePays" class="form-control selectpicker border-2 border-start-0" required onchange="filtreVilleParPays();">
<?= liste_options($pays, $this->nettoyer($localite['codePays']), true) ?>
</select>
</div>
</div>
<div class="col-md-3">
<label class="form-label small fw-bold text-muted required"><?= _("Ville / District") ?></label>
<div class="input-group" id="div_ville_container">
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-city text-muted"></i></span>
<select name="codeVille" id="codeVille" class="form-control selectpicker border-2 border-start-0" required>
<?= liste_options($ville, $this->nettoyer($localite['codeVille']), true) ?>
</select>
</div>
</div>
</div>
</div>
</div>
</form>

View File

@ -1,28 +1,96 @@
<form id="formData">
<legend id="titre_formData"><?= _("Modification des données") ?></legend>
<INPUT class="sr-only" TYPE="text" id = "id" name = "id" value="<?=$modepaiement['id']?>">
<table class="table table-responsive table-condensed">
<tbody>
<tr>
<td width="5%" align="center">Code</td>
<td width="5%" ><INPUT class="form-control majuscule" TYPE="text" id="codeModePaiement" NAME="codeModePaiement" value="<?= $this->nettoyer($modepaiement['codeModePaiement']); ?>" disabled></td>
<td width="5%" align="center" class="required"><?= _("Libellé") ?></td>
<td width="24%" ><INPUT class="form-control majuscule" TYPE="text" id="libelle" NAME="libelle" required AUTOCOMPLETE="OFF" value="<?= $this->nettoyer($modepaiement['libelle']); ?>"></td>
<td width="5%" align="center" class="required"><?= _("Libellé Eng") ?></td>
<td width="24%" ><INPUT class="form-control majuscule" TYPE="text" id="libelleEng" NAME="libelleEng" value="<?= $this->nettoyer($modepaiement['libelleEng']); ?>" required AUTOCOMPLETE="OFF"></td>
<td width="5%" align="center">Type</td>
<td width="14%" >
<select name="codeTypePaiement" id="codeTypePaiement" class="form-select">
<?= liste_options($typepaiement,$this->nettoyer($modepaiement['libelleEng']),true) ?>
</select>
</td>
<td width="5%" align="center"><?= _("Ordre") ?></td>
<td width="8%" ><INPUT class="form-control text-center" TYPE="number" min="0" value="<?= $this->nettoyer($modepaiement['ordre']); ?>" id="ordre" NAME="ordre" onBlur="controle_numerique(this);"></td>
</tr>
</tbody>
</table>
</form>
<div class="card border-0 shadow-sm border-start border-4 border-primary">
<div class="card-header bg-white py-3 border-bottom">
<h6 class="mb-0 fw-bold text-uppercase text-warning small" id="titre_formData">
<i class="fas fa-edit me-2"></i><?= _("Modification des données du mode de paiement") ?>
</h6>
</div>
<div class="card-body p-4">
<form id="formData" class="container-fluid p-0">
<input type="hidden" id="id" name="id" value="<?= $this->nettoyer($modepaiement['id']) ?>">
<div class="row g-3 align-items-end">
<div class="col-md-1">
<label class="form-label fw-bold text-muted small">Code</label>
<input type="text" class="form-control border-2 majuscule fw-bold bg-light text-center"
id="codeModePaiement" name="codeModePaiement"
value="<?= $this->nettoyer($modepaiement['codeModePaiement']); ?>" disabled>
</div>
<div class="col-md-3">
<label class="form-label fw-bold text-muted small required"><?= _("Libellé (Fr)") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0">
<img src="../Bootstrap_new/images/france.png" width="16" alt="FR">
</span>
<input type="text" class="form-control border-2 border-start-0 majuscule fw-bold"
id="libelle" name="libelle" required autocomplete="OFF"
value="<?= $this->nettoyer($modepaiement['libelle']); ?>">
</div>
</div>
<div class="col-md-3">
<label class="form-label fw-bold text-muted small required"><?= _("Libellé (Eng)") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0">
<img src="../Bootstrap_new/images/england.png" width="16" alt="EN">
</span>
<input type="text" class="form-control border-2 border-start-0 majuscule fw-bold"
id="libelleEng" name="libelleEng" required autocomplete="OFF"
value="<?= $this->nettoyer($modepaiement['libelleEng']); ?>">
</div>
</div>
<div class="col-md-3">
<label class="form-label fw-bold text-muted small">Type</label>
<div class="shadow-xs">
<select name="codeTypePaiement" id="codeTypePaiement" class="selectpicker form-control border-2" data-container="body" data-live-search="true">
<?= liste_options($typepaiement, $this->nettoyer($modepaiement['codeTypePaiement']), true) ?>
</select>
</div>
</div>
<div class="col-md-2">
<label class="form-label fw-bold text-muted small"><?= _("Ordre") ?></label>
<div class="input-group shadow-xs">
<span class="input-group-text bg-light border-2 border-end-0"><i class="fas fa-sort-numeric-down text-muted"></i></span>
<input type="number" class="form-control border-2 border-start-0 text-center fw-bold"
min="0" id="ordre" name="ordre"
value="<?= $this->nettoyer($modepaiement['ordre']); ?>"
onBlur="controle_numerique(this);">
</div>
</div>
</div>
</form>
</div>
</div>
<script>
$(document).ready(function() {
// Initialisation SelectPicker Standard
actualiserSelectPicker('#codeTypePaiement', false);
// Focus UX Neutral Pro : 200ms sur le champ FR
setTimeout(function() {
$('#libelle').focus();
}, 200);
});
</script>
<style>
/* Identité Visuelle Neutral Pro */
.border-primary { border-color: #212e53 !important; }
.shadow-xs { box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.form-control.border-2, .input-group-text.border-2 { border-width: 2px !important; }
.majuscule { text-transform: uppercase; }
.required:after { content: " *"; color: #dc3545; font-weight: bold; }
/* Harmonisation SelectPicker */
.bootstrap-select > .dropdown-toggle {
border-width: 2px !important;
height: 38px !important;
background-color: #fff !important;
}
</style>

Some files were not shown because too many files have changed in this diff Show More