1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109
| <?php // MàJ RJL2804
session_start(); // Ouvrir la session
$nomresp = $_SESSION['Login'];
$cdpw = $_SESSION['MotPasse'];
$MajPossible = $_SESSION['Initiales'];
$npass = $_SESSION['npass'];
if ($_SESSION['erreur=0']and npass>0) {
header('Location:/pgUTL/traitformul.php'); exit;}
$_SESSION['npass']=$npass + 1 ;
?>
<!DOCTYPE html>
<html lang="fr"><head>
<title>Pre Inscriptions</title>
<?php include ("DoctPagesUTL.php"); ?>
<div class="basgch-acc2">
<p class="xsmall">Mis à jour le
05/08/2012 <br />
par RJL<br />
_____________<br />
Site optimisé<br />
768x1024 pixels
</p>
<img class="logo-22-acc2 cotarm" src="../index_fichiers/100px-CA_22.gif" alt="Logo Côtes d'Armor"/>
<!-- Fin basgch-acc2 --></div>
<!-- Fin class ctrge --></div>
<!-- Fin cadnav-acc2 --></div>
<!-- Fin colgch-acc2 --></div>
<div class="colreg">
<div style="margin-top:0%; margin-left:6.5%"><img style="text-align: center; width: 87%;" alt="Image UTL StQuay" src="../index_fichiers/ImageStQuay2.jpg">
</div>
</div><!-- Fin colreg-->
<div class="formul">
<p style="color: rgb(153, 0, 0);font-weight:bold;font-size : 160%;"> Formulaire : <span style="font-weight:lighter;font-size:85%;"> Toute donnée associée à un astérisque (*) est obligatoire</span></p>
<!--Début du "Form" 2621--><form method=POST action=FormPreInsc.php >
<fieldset id="coordonnees"><legend style="color: rgb(153, 0, 0);"><span style="font-weight:bold;font-size:120%;">Coordonnées</legend>
<p style="color: rgb(153, 0, 0);" >
<label for="anais">An naiss. * aaaa : </label>
<?php // vérification des champs
$_SESSION['erreur']=0; $erreur = 0;
$message=" ";
$anais =($_POST['anais']);
$anaisX=0;
$ancour = date("Y");
if (empty($anais)) {$anaisX=1;}
$anais = intval($anais);
if ((($anais) != ($_POST['anais'])) or
(($anais < $ancour - 100) or
($anais > $ancour -25))) {$anaisX=1;}
if ($anaisX > 0) {$message .= "Année naissance non conforme<br/>";}
// $ch = "<input id="anais" name="anais" type="text" required="required" size="4" value=";
// $chst=echo $anais;
// $chcomplet=$ch.$chst."/>";
// if ($anaisX==0) {echo $chcomplet; }
?>
<input id="anais" name="anais" type="text" required="required" size="4" value=<? echo $anais;?> />
<label for="civil"> Civilité : </label>
<input id="civil" name="civil" type="radio" value="M. " />M.
<input name="civil" type="radio" checked="checked" value="Mme ;" />Mme<span style="font-style : italic;font-weight: lighter;">
<span style="font-style : italic;font-weight: lighter;font-size:85%;">(Cliquez le bouton devant M. si homme)</span><br />
<label for="nomadh">Nom *.................. : </label>
<input id="nomadh" name="nomadh" type="text" required="required" size="30" value=<? echo $nomadh;?> > ............................
<label for="prenom">Prénom * ........... : </label>
<input id="prenom" name="prenom" type="text" required="required" size="30" value=<? echo $prenom;?> ><br />
<label for="ad1">Adresse * ........... : </label>
<input id="ad1" name="ad1" type="text" required="required" size="30" value=<? echo $ad1;?> >..............................
<label for="ad2">Adresse suite : </label>
<input id="ad2" name="ad2" type="text" required="required" size="30" value=<? echo $ad2;?> ><br />
<label for="cpost">Code Postal * .... : </label>
<?php
$cpostX=0;
$cpost =($_POST['cpost']);
if ((empty($cpost)) or
(is_int($cpost))) {$cpostX=1;}
else if (($cpost <1000) or
($cpost > 95999)) {$cpostX=1;}
if ($cpostX==1) {$message .= "C. Postal incorrect<br/>"; }
// $ch = "<input id="cpost" name="cpost" type="text" required="required" size="5" value=";
// $chst=echo $cpost;
// $chcomplet=$ch.$chst."/>";
// if ($cpostX==0) {echo $chcomplet; }
//?>
<input id="cpost" name="cpost" type="text" required="required" size="5" value=<? echo $cpost;?> />
....................................................................
<label for="ville">Ville * ................ : </label>
<input id="ville" name="ville" type="text" required="required" size="30" value=<? echo $ville;?> ><br />
<?php $erreur=$anaisX+$cpostX;?>
<label for="tfixe">Téléph. Fixe........ : </label>
<input id="tfixe" name="tfixe" type="text" size="10" value=<? echo $tfixe;?> />
.....aucun espace entre les chiffres des N°.......
<label for="tmob">Téléph. Mobile : </label>
<input id="tmob" name="tmob" type="text" size="10" value=<? echo $tmob;?> /><br />
<label for="admail">e-mail.................. : </label>
<input id="admail" name="admail" type="text" size="80" value=<? echo $admail;?> />
</p>
</fieldset>
<?php
print_r($message);
$message=" ";
$_SESSION['erreur']=$erreur;
print_r($message);print_r($erreur);?>
<div style="text-align:center;">
<input style="color: rgb(153, 0, 0);font-weight:bold;" type="submit" name="envoi" value="Envoi du Formulaire ">
<!-- <input style="color: rgb(153, 0, 0);" type="reset" value="Recommencer la saisie"> -->
</div>
<!-- Fin du "Form" 2621--></form><br />
</div><!--fin formul -->
</div><!--fin "Block-page"-->
</body></html> |
Partager