Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
inscriptionr2ea [2020/02/26 20:44] sioc créée |
inscriptionr2ea [2021/04/15 13:56] (Version actuelle) |
||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
+ | ====== Inscription aux R2ËA 2020 ====== | ||
+ | < | ||
< | < | ||
- | span.form-required | + | .responsive |
- | color: #ef5555;Â | + | |
- | font-size: 125%; | + | |
+ | height: 0;Â | ||
+ | padding: 0;Â | ||
+ | overflow: hidden; | ||
} | } | ||
- | </ | ||
- | <br /> | ||
- | |||
- | <?php | ||
- | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | ||
- | ////////////////////////////////////// | ||
- | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | ||
- | |||
- | //Script Actif ou non | ||
- | |||
- | $actif=" | ||
- | |||
- | |||
- | // mails des orga devant recevoir les mails de pré-inscriptions /!\ bien mettre une virgule entre les adresses | ||
- | $mailtoorga = " | ||
- | |||
- | $urldesdescriptions=" | ||
- | |||
- | //page à appelée par le formulaire | ||
- | $postTo=" | ||
- | |||
- | |||
- | $heuredebutsamediaprem = " | ||
- | $heuredebutsamedisoir = " | ||
- | $heuredebutdimancheaprem = " | ||
- | |||
- | |||
- | $participationrepas = " | ||
- | |||
- | // année de l' | ||
- | $anneeEvent=" | ||
- | |||
- | |||
- | /* | ||
- | Nouveau formatage des données : " | ||
- | |||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | */ | ||
- | |||
- | $listeDesTables[0]=" | ||
- | $listeDesTables[1]=" | ||
- | $listeDesTables[2]=" | ||
- | $listeDesTables[3]=" | ||
- | $listeDesTables[4]=" | ||
- | |||
- | $listeDesTables[5]=" | ||
- | $listeDesTables[6]=" | ||
- | $listeDesTables[7]=" | ||
- | $listeDesTables[8]=" | ||
- | |||
- | $listeDesTables[9]=" | ||
- | |||
- | |||
- | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | ||
- | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | ||
- | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | ||
- | |||
- | // Test si script actif : | ||
- | if (strcmp($actif," | ||
- | |||
- | |||
- | // Test si formulaire rempli et soumis | ||
- | |||
- | if (isset($_POST[" | ||
- | isset($_POST[" | ||
- | $_POST[" | ||
- | { | ||
- | $nom=$_POST[" | ||
- | $prenom=$_POST[" | ||
- | $email=$_POST[" | ||
- | $tel=$_POST[" | ||
- | $captcha_response=$_POST[" | ||
- | $repas=$_POST[" | ||
- | $nb_repas=$_POST[" | ||
- | |||
- | |||
- | /////////////// | ||
- | // le sujet // | ||
- | ///////////// | ||
- | |||
- | $subject =" | ||
- | $message = "Nom : $nom\nPrenom : $prenom\n\nEmail : ". $_POST[" | ||
- | print "Votre inscription est partie sous forme de mail format& | ||
- | print "< | ||
- | print "< | ||
- | print "< | ||
- | print "< | ||
- | print "< | ||
- | print "Email : $email\n< | ||
- | |||
- | if ($_POST[" | ||
- | print "< | ||
- | |||
- | ////////////////////////////////////////////////////////////////// | ||
- | // Tests et création des textes par tranches horaires | ||
- | // $details[$loop]=preg_split("/;/", | ||
- | ////////////////////////////////////////////////////////////////// | ||
- | |||
- | if (isset($_POST)) | ||
- | { | ||
- | foreach($_POST as $key => $value) | ||
- | { | ||
- | if (strpos($key," | ||
- | { | ||
- | $testcrea=preg_split("/;/", | ||
- | if ($testcrea[2] > 0 ) { $inscritpoursamediapemtoggle = 1; $inscritsamediaprem .= " * " | ||
- | if ($testcrea[3] > 0 ) { $inscritpoursamedisoirtoggle = 1; $inscritpoursamedisoir .= " * " | ||
- | if ($testcrea[4] > 0 ) { $inscritpourdimancheapemtoggle = 1; $inscritpourdimancheapem .= " * " | ||
- | } | ||
- | } | ||
- | } | ||
- | |||
- | // | ||
- | |||
- | if ($inscritpoursamediapemtoggle > | ||
- | { | ||
- | $webinscritsamediaprem .= "< | ||
- | $mailinscritsamediaprem .= " | ||
- | } | ||
- | else | ||
- | { | ||
- | $webinscritsamediaprem .= "< | ||
- | $mailinscritsamediaprem .= " | ||
- | } | ||
- | |||
- | |||
- | if ($inscritpoursamedisoirtoggle > | ||
- | { | ||
- | $webinscritsamedisoir .= "< | ||
- | $mailinscritsamedisoir .= " | ||
- | } | ||
- | else | ||
- | { | ||
- | $webinscritsamedisoir .= "< | ||
- | $mailinscritsamedisoir .=" | ||
- | } | ||
- | |||
- | if ($inscritpourdimancheapemtoggle > | ||
- | { | ||
- | $webinscritdimancheaprem .= "< | ||
- | $mailinscritdimancheaprem .= " | ||
- | } | ||
- | else | ||
- | { | ||
- | $webinscritdimancheaprem .= "< | ||
- | $mailinscritdimancheaprem .=" | ||
- | } | ||
- | |||
- | ///////////////// | ||
- | // Le message // | ||
- | /////////////// | ||
- | |||
- | if ($_POST[" | ||
- | |||
- | $message .= $mailinscritsamediaprem . $mailinscritsamedisoir . $mailinscritdimancheaprem; | ||
- | |||
- | $message = html_entity_decode($message); | ||
- | |||
- | // Envoi du mail | ||
- | |||
- | $headers = ' | ||
- | $headers | ||
- | $headers .=" | ||
- | mail($mailtoorga, | ||
- | mail($_POST[" | ||
- | |||
- | echo $webinscritsamediaprem . $webinscritsamedisoir . $webinscritdimancheaprem; | ||
+ | .responsive { | ||
+ | position: absolute; | ||
+ | top: 0; | ||
+ | left: 0; | ||
+ | bottom: 0; | ||
+ | height: 1800; | ||
+ | width: 100%; | ||
+ | border: 0; | ||
} | } | ||
- | else | ||
- | { | ||
- | $nom=$_POST[" | ||
- | $prenom=$_POST[" | ||
- | $email=$_POST[" | ||
- | $tel=$_POST[" | ||
- | $captcha_response=$_POST[" | ||
- | $repas=$_POST[" | ||
- | echo "< | + | .plan {Â |
- | echo "< | + | |
- | Â | + | |
- | print <<< | + | |
- | accept-charset=" | + | |
- | < | + | |
- | Â | + | |
- | <span style=" | + | |
- | <br /><br />Â | + | |
- | Pour que l' | + | |
- | Â | + | |
- | Comment vous appelez-vous ? <span class=" | + | |
- | Nom: <input type=" | + | |
- | Pr& | + | |
- | </ | + | |
- | <br />Â | + | |
- | <div class=" | + | |
- | Quelle est votre adresse e-mail ?<span class=" | + | |
- | <br />Â | + | |
- | <input type=" | + | |
- | </ | + | |
- | <br />Â | + | |
- | <div class=" | + | |
- | Quel est votre num& | + | |
- | <input type=" | + | |
- | </ | + | |
- | <br />Â | + | |
- | Â | + | |
- | <div class=" | + | |
- | Vous inscrivez vous au repas (participation de  | + | |
- | EOF;Â | + | |
- | Â | + | |
- | echo " | + | |
- | Â | + | |
- | print <<< | + | |
- | & | + | |
- | <span class=" | + | |
- | <input type=" | + | |
- | <br />Â | + | |
- | Â | + | |
- | <input type=" | + | |
- | </ | + | |
- | <br />Â | + | |
- | EOF;Â | + | |
- | Â | + | |
- | $numtabsamaprem=$numtabsamasoir=$numtabdimaprem=0; | + | |
- | Â | + | |
- | //Boucle pour générer les affichages par crénaux | + | |
- | Â | + | |
- | for ($loop=0; | + | |
- | {Â | + | |
- | Â | + | |
- | //Création des champs depuis $listeDesTables | + | |
- | $details[$loop]=preg_split("/;/", | + | |
- | Â | + | |
- | //test pour le Samedi après-midi | + | |
- | Â | + | |
- | if ($details[$loop][2] == 1) Â | + | |
- | { Â | + | |
- | $numtabsamaprem++; | + | |
- | if ($details[$loop][5] != 1) Â | + | |
- | {Â | + | |
- | $affsamap.="< | + | |
- | }Â | + | |
- | else | + | |
- | {Â | + | |
- | $affsamap.="& | + | |
- | }Â | + | |
- | }Â | + | |
- | Â | + | |
- | //test pour le Samedi soir | + | |
- | Â | + | |
- | if ($details[$loop][3] == 1) Â | + | |
- | { Â | + | |
- | $numtabsamasoir++; | + | |
- | if ($details[$loop][5] != 1) Â | + | |
- | {Â | + | |
- | $afichsamsoir.="< | + | |
- | }Â | + | |
- | else | + | |
- | {Â | + | |
- | $afichsamsoir.="& | + | |
- | }Â | + | |
- | }Â | + | |
- | Â | + | |
- | //test pour le Dimanche | + | |
- | Â | + | |
- | if ($details[$loop][4] == 1) Â | + | |
- | { Â | + | |
- | $numtabdimaprem++; | + | |
- | if ($details[$loop][5] != 1) Â | + | |
- | {Â | + | |
- | $affdim.="< | + | |
- | }Â | + | |
- | else | + | |
- | {Â | + | |
- | $affdim.="& | + | |
- | }Â | + | |
- | } | + | |
} | } | ||
- | Â | + | </style>Â |
- | //début du formulaire | + | < |
- |  | + | <b>R2ËA 2020 sont annulés</b> |
- | echo '< | + | <!--Â |
- | Â | + | <iframe src="https://club-ea.com/assets/inscriptionsR2ea.php" |
- | echo '<a href="' | + | </iframe>Â |
- | Â | + | --> |
- | if ($numtabsamaprem > 0) //affiche si il y a des table le samedi après-midi | + | |
- | { Â | + | |
- | echo "<br />";Â | + | |
- | echo '< | + | |
- | echo "< | + | |
- | echo $affsamap; | + | |
- | echo | + | |
- | }Â | + | |
- | Â | + | |
- | if ($numtabsamasoir > 0) //affiche si il y a des table le samedi soir | + | |
- | { Â | + | |
- | echo '< | + | |
- | echo | + | |
- | echo $afichsamsoir; | + | |
- | echo | + | |
- | }Â | + | |
- | Â | + | |
- | if ($numtabdimaprem > 0) // affiche si il y a des table le dimanche après-midi | + | |
- | { Â | + | |
- | echo '< | + | |
- | echo | + | |
- | echo $affdim; Â | + | |
- | echo | + | |
- | }Â | + | |
- | Â | + | |
- | Â | + | |
- | // fin de formulaire et info CNILÂ | + | |
- | print <<< | + | |
- | < | + | |
- | Bien & | + | |
</ | </ | ||
- | <label for=" | + | </html> |
- | l' | + | |
- | Â | + | |
- | <span class=" | + | |
- | <input type=" | + | |
- | Â | + | |
- | <input type=" | + | |
- | Â | + | |
- | </ | + | |
- | <br /><br />Â | + | |
- | Les informations collect& | + | |
- | | + | |
- | <table border=" | + | |
- | < | + | |
- | <img src='/ | + | |
- | </ | + | |
- | En application de l' | + | |
- | exercer ce droit et obtenir communication des informations vous concernant, veuillez vous adresser au secr& | + | |
- | </ | + | |
- | </ | + | |
- | <br /><br />Â | + | |
- | EOF;Â | + | |
- | Â | + | |
- | }Â | + | |
- | ?> | + |