芝麻web文件管理V1.00
编辑当前文件:/home/asmplong/www/ancien-site-2019/plongeev4/enregistrement_inscription_nouvel_adherent.php
numero_de_licence =$numero_licence; $nouvel_adherent->niveau_de_plongee=$_POST['niveau_de_plongee']; $nouvel_adherent->nom_adherent=$_POST['nom_nouvel_adherent']; $nouvel_adherent->prenom_adherent=$_POST['prenom_nouvel_adherent']; //$date_naissance=$_POST['jour_date_de_naissance']; //$date_naissance=$date_naissance."/"; //$date_naissance=$date_naissance.$_POST['mois_date_de_naissance']; //$date_naissance=$date_naissance."/"; //$date_naissance=$date_naissance.$_POST['annee_date_de_naissance']; //$nouvel_adherent->date_de_naissance=$date_naissance; //$telephone_portable="06"; //$telephone_portable=$_POST['Sequence_2_tel_portable']; //$telephone_portable=$telephone_portable.$_POST['Sequence_3_tel_portable']; //$telephone_portable=$telephone_portable.$_POST['Sequence_4_tel_portable']; //$telephone_portable=$telephone_portable.$_POST['Sequence_5_tel_portable']; //$nouvel_adherent->numero_telephone_portable=$telephone_portable; //$telephone_fixe=$_POST['Sequence_1_tel_fixe']; //$telephone_fixe=$telephone_fixe.$_POST['Sequence_2_tel_fixe']; //$telephone_fixe=$telephone_fixe.$_POST['Sequence_3_tel_fixe']; //$telephone_fixe=$telephone_fixe.$_POST['Sequence_4_tel_fixe']; //$telephone_fixe=$telephone_fixe.$_POST['Sequence_5_tel_fixe']; //$nouvel_adherent->numero_telephone_fixe=$telephone_fixe; $adresse_mail=""; $adresse_mail=$_POST['nom_adresse_email']; $adresse_mail=$adresse_mail."@"; $adresse_mail=$adresse_mail.$_POST['provider']; $adresse_mail=$adresse_mail.$_POST['domaine_adresse_email']; $nouvel_adherent->adresse_email=$adresse_mail; //$nouvel_adherent->adresse_personnelle=$_POST['adresse_personnelle']; $nouvel_adherent->mot_de_passe=$_POST['mot_de_passe']; $nouvel_adherent->date_certificat_medical=$_POST['annee_date_certificat_medical']; //$nouvel_adherent->adresse_gmail=$_POST['adresse_gmail']; //$nouvel_adherent->mdp_gmail=$_POST['mot_de_passe_gmail']; if (!$nouvel_adherent->verification()) // si il manque des champs { echo "
Vous devez renseigner tous les champs du formulaire
Vous allez etre redirig vers la page d inscription
"; header("Refresh: 4; URL=./formulaire_inscription_nouvel_adherent.php" ); } else { include('connexion_bdd.php'); if($nouvel_adherent->ajouter()==1) { $mon_email=new email(); $mon_email->destinataire=$nouvel_adherent->adresse_email; $mon_email->email_expediteur=$email_administrateur; $mon_email->sujet="Confirmation de vottre demande d'inscription"; $mon_email->message_html="
Votre Inscription a t valide
Vouslogin est votre numero de licence et votre mot de passe est ASM.d
Cordialement
le club de plongee"; if($service_email=="OUI") { $mon_email->envoyer_Mail_Adherent(); } //if($service_SMS=="OUI") //{ // $mon_sms->envoyer_SMS_Adherent(); //} //if($mon_email->envoyer()) //{ // header("Refresh: 4; URL=./index.php" ); //} //else //{ // echo "erreur dans l envoi du mail au nouvel adherent"; //} //$mon_email->destinataire=$email_administrateur; //$mon_email->email_expediteur=$email_administrateur; //$mon_email->sujet="nouvelle demande d'inscription"; //$mon_email->message_html="
Une nouvelle demande d inscription a t soumise concernant ".$nouvel_adherent->nom_adherent." ".$nouvel_adherent->prenom_adherent."
"; // continuer et corriger l envoi du mail //if($mon_email->envoyer()) //{ // header("Refresh: 4; URL=./index.php" ); //} //else //{ // echo "erreur dans l envoi du mail a l administrateur du site"; //} echo "
le nouvel adhrent a bien t enregistr.
Vous allez etre automatiquement redirig la page d\'accueil de votre environnement
"; header("Refresh: 4; URL=./menu_espace_adherent.php" ); } mysql_close(); } ?>