From e032cefe666725cb30abd182c98a2bdbd3f91660 Mon Sep 17 00:00:00 2001 From: KONE SOREL Date: Fri, 27 Mar 2026 11:40:53 +0000 Subject: [PATCH] fers --- ...roleurAjaxrequeteenteteresumesinistres.php | 24 ++++++---- .../index.php | 48 +++++++++++++++++++ 2 files changed, 62 insertions(+), 10 deletions(-) create mode 100644 Vue/Ajaxrequeteenteteresumesinistres/index.php diff --git a/Controleur/ControleurAjaxrequeteenteteresumesinistres.php b/Controleur/ControleurAjaxrequeteenteteresumesinistres.php index 4e1cf51..949652f 100644 --- a/Controleur/ControleurAjaxrequeteenteteresumesinistres.php +++ b/Controleur/ControleurAjaxrequeteenteteresumesinistres.php @@ -1,19 +1,23 @@ prestataire = new Prestataire(); - } + public function __construct() + { + $this->sppolice = new Police(); + } - public function index() + public function index() { - $prestataire_courant = $this->prestataire->getPrestataireCode( $_SESSION['codePrestataire_C']); + $idPolice = $_SESSION['idPolice_C']; - $this->genererVueAjax(array('prestataire_courant' => $prestataire_courant)); - } + $dj = date("Y-m-d"); + + $sppoliceentete = $this->sppolice->getRapportSpPoliceEntete($idPolice, $dj); + + $this->genererVue(array('sppoliceentete' => $sppoliceentete)); + } } \ No newline at end of file diff --git a/Vue/Ajaxrequeteenteteresumesinistres/index.php b/Vue/Ajaxrequeteenteteresumesinistres/index.php new file mode 100644 index 0000000..53b1879 --- /dev/null +++ b/Vue/Ajaxrequeteenteteresumesinistres/index.php @@ -0,0 +1,48 @@ +
+ + +
+
+ +
+ +
+ + + +
+
+ +
+ +
+ + +
+
+ +
+
+ + + +
+
+ +
+
+
+ +
+
+ +
+
\ No newline at end of file