menuvue = new Menuvueutilisateur(); $this->menuvue->getMenuVue('Modifierclient'); $this->client = new Client(); $this->titre = new Titre(); $this->sexe = (new Sexe())->getListe(); $this->typeclient = (new Typeclient())->getListe(); $this->secteuractivite = (new Secteuractivite())->getListe(); $this->langue = new Langue(); } public function index() { $codeSociete = $this->requete->getSession()->getAttribut('codeSociete'); //$id = $this->requete->getParametre("id"); $id = $_SESSION['idClient_C']; $client = $this->client->getClientId($id); $titre = $this->titre->getTitreTypeClient($client['typeClient']); $codePays = $client['codePays']; $codeVille = $client['codeVille']; $this->pays = (new Pays())->getListe($client['codeSociete']); $this->ville = (new Ville())->getListe($client['codePays']); $this->localite = (new Localite())->getListe($codePays, $codeVille); $langue = $this->langue->getListe(); $this->genererVue(array('client' => $client, 'pays' => $this->pays, 'ville' => $this->ville, 'titre' => $titre, 'secteuractivite' => $this->secteuractivite, 'sexe' => $this->sexe, 'typeclient' => $this->typeclient, 'listelocalite' => $this->localite, 'langue' => $langue)); } public function modifier($prenoms=null) { // $id = $this->requete->getParametre("id"); $id = $_SESSION['idClient_C']; $codeSociete = $this->requete->getSession()->getAttribut('codeSociete'); $typeClient = $this->requete->getParametre("typeClient"); $codeTitre = $this->requete->getParametre("codeTitre"); $nom = $this->requete->getParametre("nom"); $prenoms = $this->requete->getParametreFormulaire("prenoms"); $adresseGeo = $this->requete->getParametreFormulaire("adresseGeo"); $boitepostale = $this->requete->getParametreFormulaire("boitepostale"); $codeVille = $this->requete->getParametreFormulaire("codeVille"); $codeLocalite = $this->requete->getParametreFormulaire("codeLocalite"); $codePays = $this->requete->getParametreFormulaire("codePays"); $telephoneBureau = $this->requete->getParametreFormulaire("telephoneBureau"); $telephonedomicile = $this->requete->getParametreFormulaire("telephonedomicile"); $telephonePortable = $this->requete->getParametreFormulaire("telephonePortable"); $fax = $this->requete->getParametreFormulaire("fax"); $email = $this->requete->getParametreFormulaire("email"); $sexe = $this->requete->getParametreFormulaire("sexe"); // $dateNaissance = $this->requete->getParametreFormulaire("dateNaissance","date"); $dateNaissance = $this->requete->getParametreDate("dateNaissance"); $codeSecteur = $this->requete->getParametreFormulaire("codeSecteur"); // $codeGestionnaire = $this->requete->getParametreFormulaire("codeGestionnaire"); $codeGestionnaire = ""; $nomMandataire = $this->requete->getParametreFormulaire("nomMandataire"); $telephoneFixemandataire = $this->requete->getParametreFormulaire("telephoneFixemandataire"); $telephonePortablemandataire = $this->requete->getParametreFormulaire("telephonePortablemandataire"); $emailMandataire = $this->requete->getParametreFormulaire("emailMandataire"); $emailMandataire = $this->requete->getParametreFormulaire("emailMandataire"); $registreCommerce = $this->requete->getParametreFormulaire("registreCommerce"); $codeLangueClient = $this->requete->getParametreFormulaire("codeLangueUser"); $nom = strtoupper($nom); $prenoms = strtoupper($prenoms); $this->client->modifier($id, $typeClient, $codeTitre, $nom, $prenoms, $adresseGeo, $boitepostale, $codeVille, $codePays, $telephoneBureau, $telephonedomicile, $telephonePortable, $fax, $email, $sexe, $dateNaissance, $codeSecteur, $codeGestionnaire, $nomMandataire, $telephoneFixemandataire, $telephonePortablemandataire, $emailMandataire, $codeLocalite, $registreCommerce, $codeLangueClient); $_SESSION['idClientAjax'] = $id; // $this->rediriger("Ficheclient/".$id); $this->rediriger("Ficheclient"); } }