diff --git a/Controleur/ControleurAjaxmotifdepassement.php b/Controleur/ControleurAjaxmotifdepassement.php new file mode 100755 index 00000000..f48865d2 --- /dev/null +++ b/Controleur/ControleurAjaxmotifdepassement.php @@ -0,0 +1,27 @@ +societeuser = new Societeuser(); + + } + public function index() + { + $motifs = $this->societeuser->getMotifsDepassement(); + + $this->genererVueAjax(array( + 'motifs' => $motifs + + )); + } + +} \ No newline at end of file diff --git a/Controleur/ControleurAjaxtextefacturationgarant.php b/Controleur/ControleurAjaxtextefacturationgarant.php new file mode 100755 index 00000000..3446203a --- /dev/null +++ b/Controleur/ControleurAjaxtextefacturationgarant.php @@ -0,0 +1,25 @@ +societeuser = new Societeuser(); + + } + public function index() + { + $textes = $this->societeuser->getTexteFacturationGarant(); + + $this->genererVueAjax(array( + 'textes' => $textes + + )); + } + +} \ No newline at end of file diff --git a/Js/fonctions.js b/Js/fonctions.js index 4f09052b..a47fe87e 100755 --- a/Js/fonctions.js +++ b/Js/fonctions.js @@ -91618,4 +91618,28 @@ function ui_refresh_select(selector) { container: false // Garde le menu dans son parent direct }); } +} + +function loadMessageSection(section) { + let url = ""; + let target = "#content-" + section; + let donnees = ""; + + if (section === 'Motifs') url = $("#racineWeb").val() + "Ajaxmotifdepassement/"; + if (section === 'Facturation') url = $("#racineWeb").val() + "Ajaxtextefacturationgarant/"; + + // Éviter de recharger si déjà chargé (optionnel) + if ($(target).find('table').length > 0) return; + + $.ajax({ + url: url, + type: 'post', + data: donnees, + success: function(data) { + $(target).html(data); + }, + error: function() { + $(target).html('
| = _("CODE") ?> | += _("MESSAGE PERSONNALISÉ") ?> | +
|---|---|
| = $this->nettoyer($v['codeMotifDepassement']) ?> | ++ "> + | +
| = _("CODE") ?> | += _("TEXTE DE L'ÉTAT") ?> | += _("ÉCHÉANCE") ?> | +
|---|---|---|
| = $this->nettoyer($v['codeTypeFacturationGarant']) ?> | ++ + | +
+
+
+ Jrs
+
+ |
+