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