commer = new Tabcommerciaux(); } public function index() { $id = $this->requete->getParametreFormulaire("id"); $commer = $this->commer->getcommerciaux($id); $bureau = $this->commer->getBureaucommerciaux(); $typeapp = $this->commer->getTypecommerciaux(); $this->genererVueAjax(array( 'commerciaux' => $commer, 'bureau' => $bureau, 'typeapp' => $typeapp )); } public function modifier(){ $id = $this->requete->getParametreFormulaire("id"); $codeApporteur = strtoupper($this->requete->getParametreFormulaire("codeApporteur")); $codeTypeApporteur = strtoupper($this->requete->getParametreFormulaire("codeTypeApporteur")); $libelle = strtoupper($this->requete->getParametreFormulaire("libelle")); $nomResponsable = strtoupper($this->requete->getParametreFormulaire("nomResponsable")); $telephone = $this->requete->getParametreFormulaire("telephone"); $email = $this->requete->getParametreFormulaire("email"); $codeBureau = $this->requete->getParametreFormulaire("codeBureau"); $deduireComm = $this->requete->getParametreFormulaire("deduireComm"); $adressePost = strtoupper($this->requete->getParametreFormulaire("adressePost")); $adresseGeo = strtoupper($this->requete->getParametreFormulaire("adresseGeo")); $typeSysteme = $this->requete->getParametreFormulaire("typeSysteme"); $this->commer->modifiercommerciaux($codeApporteur,$codeTypeApporteur,$libelle,$telephone,$email,$adresseGeo, $adressePost,$nomResponsable,$codeBureau,$deduireComm,$typeSysteme,$id); } }