prescription = new Optique_temp(); } public function index() { $codePrestataire = $_SESSION['codePrestataire_C']; $prescription = $this->prescription->getmonture_temp(); $detaillivres = $this->prescription->getdetailmonture_temp(); $garantieadherent_temp = $this->prescription->afficher_garantieadherent_temp_monture(); $this->genererVueAjax(array('prescription' => $prescription, 'detaillivres' => $detaillivres, 'garantieadherent_temp' => $garantieadherent_temp)); } public function enregistrermonture() { $numeroFacture = $this->requete->getParametreFormulaire("numeroFacture"); $this->prescription->facturermonture($numeroFacture); } public function majmonture() { $idOptique = $this->requete->getParametreFormulaire("idOptique"); $monture = $this->requete->getParametreFormulaire("monture"); $numeroFacture = $this->requete->getParametreFormulaire("numeroFacture"); $this->prescription->majmonturetemp_monture($idOptique, $monture, $numeroFacture); $this->executerAction("index"); } }