executerRequete($sql, array($numeroOptique)); return $optique->fetch(); } public function getoptique_opt($numeroBonOptique, $codePrestataireLivraison) { $sql = 'call sp_p_get_cons_opt(?, ?)'; $resultat = $this->executerRequete($sql, array($numeroBonOptique, $codePrestataireLivraison)); $ligne = $resultat->fetch(PDO::FETCH_ASSOC); $_SESSION['numeroFeuilleMaladie_C'] = $ligne['numeroFeuilleMaladie']; $_SESSION['numeroBonConsultation_C'] = $ligne['numeroBonConsultation']; $_SESSION['numeroBonOrdonnance_C'] = $ligne['numeroBonOrdonnance']; $_SESSION['numeroBonHospitalisation_C'] = $ligne['numeroBonHospitalisation']; $_SESSION['numeroBonOptique_C'] = $ligne['numeroBonOptique']; $_SESSION['numeroBonExamen_C'] = $ligne['numeroBonExamen']; $_SESSION['numeroBonKine_C'] = $ligne['numeroBonKine']; $_SESSION['numeroPrescription_C'] = $ligne['numeroPrescription']; $_SESSION['numeroOptique_C'] = $ligne['numeroOptique']; $_SESSION['numeroExamen_C'] = $ligne['numeroExamen']; $_SESSION['numeroPrescriptionKine_C'] = $ligne['numeroPrescriptionKine']; $_SESSION['idFacture_C'] = $ligne['idFacture']; $_SESSION['hospitalisation_C'] = $ligne['hospitalisation']; $_SESSION['chirurgie_C'] = $ligne['chirurgie']; return $ligne; } public function get_facture_optique($idFacture) { $sql = 'call sp_p_get_facture_opt(?)'; $resultat = $this->executerRequete($sql, array($idFacture)); $ligne = $resultat->fetch(PDO::FETCH_ASSOC); $_SESSION['numeroFeuilleMaladie_C'] = $ligne['numeroFeuilleMaladie']; $_SESSION['numeroBonConsultation_C'] = $ligne['numeroBonConsultation']; $_SESSION['numeroBonOrdonnance_C'] = $ligne['numeroBonOrdonnance']; $_SESSION['numeroBonHospitalisation_C'] = $ligne['numeroBonHospitalisation']; $_SESSION['numeroBonOptique_C'] = $ligne['numeroBonOptique']; $_SESSION['numeroBonExamen_C'] = $ligne['numeroBonExamen']; $_SESSION['numeroBonKine_C'] = $ligne['numeroBonKine']; $_SESSION['numeroPrescription_C'] = $ligne['numeroPrescription']; $_SESSION['numeroOptique_C'] = $ligne['numeroOptique']; $_SESSION['numeroExamen_C'] = $ligne['numeroExamen']; $_SESSION['numeroPrescriptionKine_C'] = $ligne['numeroPrescriptionKine']; $_SESSION['idFacture_C'] = $ligne['idFacture']; $_SESSION['hospitalisation_C'] = $ligne['hospitalisation']; $_SESSION['chirurgie_C'] = $ligne['chirurgie']; return $ligne; } public function getdetailoptique_opt($numeroBonOptique, $codePrestataireLivraison) { $sql = 'call sp_r_get_detail_optique_opt(?, ?)'; $optique = $this->executerRequete($sql, array($numeroBonOptique, $codePrestataireLivraison)); return $optique->fetchAll(PDO::FETCH_ASSOC); } public function getdetail_facture_optique($idFacture) { $sql = 'call sp_p_get_detail_facture_opt(?)'; $optique = $this->executerRequete($sql, array($idFacture)); return $optique->fetchAll(PDO::FETCH_ASSOC); } public function getContexteAjaxOptique($numeroOptique) { $_SESSION['numeroOptique_C'] = $numeroOptique; } }