menuvue = new Menuvueutilisateur(); $this->menuvue->getMenuVue('Modifierprospect'); $this->client = new Client_d(); $this->titre = (new Titre())->getListe(); $this->sexe = (new Sexe())->getListe(); $this->typeclient = (new Typeclient())->getListe(); $this->secteuractivite = (new Secteuractivite())->getListe(); $this->langue = new Langue(); $_SESSION['modeDevis'] = "1"; } public function index() { $codeSociete = $this->requete->getSession()->getAttribut('codeSociete'); $id = $_SESSION['idClient_d_C']; $client = $this->client->getClientId($id); $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' => $this->titre, 'secteuractivite' => $this->secteuractivite, 'sexe' => $this->sexe, 'typeclient' => $this->typeclient, 'listelocalite' => $this->localite, 'langue' => $langue)); } public function modifier($prenoms=null) { $id = $_SESSION['idClient_d_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->getParametre("codeVille"); $codeLocalite = $this->requete->getParametre("codeLocalite"); $codePays = $this->requete->getParametre("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->getParametreDate("dateNaissance"); $codeSecteur = $this->requete->getParametreFormulaire("codeSecteur"); $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 = ucwords($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['idClient_d_Ajax'] = $id; $this->rediriger("Ficheprospect"); } }