bonpec = new Bonpec(); $this->prescription = new Seance_temp(); } public function index() { $codePrestataire = $_SESSION['p_codePrestataire_C']; $numeroBon = $this->requete->getParametreFormulaire("numeroBon"); $codeTypeBon = "CONS"; $resultat = $this->bonpec->getetatbon($codePrestataire, $codeTypeBon, $numeroBon); $codeEtatBon = $resultat['0']; if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US") { $msgErreur = $numeroBon.' : Claim Form '.$resultat['1'].' !'; } else { $msgErreur = $numeroBon.' : Bon '.$resultat['1'].' !'; } $this->genererVueAjax(array('numeroBon' => $numeroBon, 'codeEtatBon' => $codeEtatBon, 'msgErreur' => $msgErreur)); } public function attributionbontemporaire() { $numeroBonSeance = $this->requete->getParametreFormulaire("numeroBon"); $codeGestionBon = $this->requete->getParametreFormulaire("codeGestionBon"); // echo "codeGestionBon => $codeGestionBon"; // exit(); $this->prescription->attributionbontemporaire($numeroBonSeance, $codeGestionBon) ; // $this->genererVueAjax(); } }