pv = new Tabpointvente(); $this->loc = new Tablocalite(); } public function index() { $typepv = $this->pv->gettypepointvente(); $pays = $this->loc->getpayslocalite(); $ville = array(); $localite = array(); $this->genererVueAjax(array( 'typepointvente' => $typepv, 'pays' => $pays, 'ville' => $ville, 'localite' => $localite, )); } public function ajouter(){ $libelle = strtoupper($this->requete->getParametreFormulaire("libelle")); $codeTypePointVente = strtoupper($this->requete->getParametreFormulaire("codeTypePointVente")); $adresseGeo = $this->requete->getParametreFormulaire("adresseGeo"); $adressePost = $this->requete->getParametreFormulaire("adressePost"); $telephone = $this->requete->getParametreFormulaire("telephone"); $fax = $this->requete->getParametreFormulaire("fax"); $email = $this->requete->getParametreFormulaire("email"); $codePays = strtoupper($this->requete->getParametreFormulaire("codePays")); $codeVille = strtoupper($this->requete->getParametreFormulaire("codeVille")); $codeLocalite = strtoupper($this->requete->getParametreFormulaire("codeLocalite")); $this->pv->ajouterpointvente($libelle,$codeTypePointVente,$adresseGeo, $adressePost,$telephone,$fax,$email,$codePays,$codeVille,$codeLocalite); } }