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('
Erreur de chargement
'); + } + }); } \ No newline at end of file diff --git a/Vue/Ajaxmotifdepassement/index.php b/Vue/Ajaxmotifdepassement/index.php new file mode 100755 index 00000000..bd410d56 --- /dev/null +++ b/Vue/Ajaxmotifdepassement/index.php @@ -0,0 +1,31 @@ +
+
+ +
+
+ +
+ + + + + + + + + + + + + + + +
nettoyer($v['codeMotifDepassement']) ?> + "> +
+
+
+ diff --git a/Vue/Ajaxtextefacturationgarant/index.php b/Vue/Ajaxtextefacturationgarant/index.php new file mode 100755 index 00000000..b2f19a95 --- /dev/null +++ b/Vue/Ajaxtextefacturationgarant/index.php @@ -0,0 +1,37 @@ +
+
+ +
+
+ +
+ + + + + + + + + + + + + + + + + +
nettoyer($v['codeTypeFacturationGarant']) ?> + + +
+ + Jrs +
+
+
+
\ No newline at end of file diff --git a/Vue/Parammessages/index.php b/Vue/Parammessages/index.php index bf09fcdf..14cbd7eb 100755 --- a/Vue/Parammessages/index.php +++ b/Vue/Parammessages/index.php @@ -50,29 +50,6 @@ -