Première version publique
[auf_paf.git] / forms / creer_infos.php
1 <h2>Remplire vos informations</h2>
2 <p>Veillez-vous remplire vos informations pr&eacute;cises :</h2>&nbsp;&nbsp;&nbsp;<span style="background-color:#03F; color:#FFF; font-weight:bold;"><?php echo $Msg; ?></span><span style="background-color:#C33C33; color:#FFFFFF; font-weight:bold;"><?php echo $MsgError; ?></span>
3 <table width="100%" cellpadding="2" cellspacing="2" border="0" style="border-collapse:collapse;">
4 <tr><td width="18%">Nom<span style="color:#F00F00">*</span> :</td>
5 <td><input type="text" name="txtNom" value="<?php echo str_replace("`","'",$Rows['1']); ?>" maxlength="200" size="20" />&nbsp;&nbsp;<?php echo $ErrorNom; ?></td>
6 <td width="49%" align="center" style="background-color:#EDE7D8;"><b>Votre compte et mot de passe</b></td>
7 </tr>
8 <tr><td>Pr&eacute;nom<span style="color:#F00F00">*</span> :</td>
9 <td><input type="text" name="txtPrenom" value="<?php echo str_replace("`","'",$Rows['2']); ?>" maxlength="200" size="20" />&nbsp;&nbsp;<?php echo $ErrorPreNom; ?></td>
10 <td width="49%" rowspan="5" valign="top" style="background-color:#F4F4EC; padding-left:15px;">
11 <table cellpadding="3" cellspacing="3" border="0" width="80%" style="border-collapse:collapse;">
12 <tr><td width="27%">Login :</td><td width="73%"><?php echo "C".$Rows['0']; ?></td></tr>
13 <tr><td>Mot de passe :</td><td><?php echo decrptPwd($Rows['7'],$kompler); ?></td></tr>
14 <tr><td colspan="2" style="padding-top:15px;">
15 <a onClick="JavaScript:window.open('index_pwd.php','win5strildkdfjwi7599%6&&%%$idjd__e434534%$##$%**','width=900, height=330' )"; style="cursor:pointer;text-decoration:underline; color:#FF0000;" title="modifier vote mot de passe">
16 Changer mot de passe ?</a></td></tr>
17 </table>
18 </td>
19 </tr>
20 <tr>
21 <td>Genre<span style="color:#F00F00">*</span> :</td>
22 <td>
23 <?php
24 if($Rows['3']=="F"){
25 $CheckedF = "checked";
26 $CheckedM = "";
27 }elseif($Rows['3']=="M"){
28 $CheckedM = "checked";
29 $CheckedF = "";
30 }else{
31 $CheckedM = "";
32 $CheckedF = "";
33 }
34 ?>
35 <input type="radio" name="Sexe" value="F" <?php if($_REQUEST["Sexe"] == "F"){ echo "checked"; }else{ echo $CheckedF; } ?>> F
36 <input type="radio" name="Sexe" value="M" <?php if($_REQUEST["Sexe"] == "M"){ echo "checked"; }else{ echo $CheckedM; } ?>> M &nbsp;&nbsp;<?php echo $ErrorSexe; ?></td>
37 </tr>
38 <tr><td>Date de naissance<span style="color:#F00F00">*</span> :</td>
39 <td width="33%"><select name="selJour" id="selJour">
40 <?php
41 list($AA, $MM, $JJ) = split("-",$Rows['4']);
42 if($JJ != ""){ ?><option value="<?php echo $JJ; ?>"><?php echo $JJ; ?></option><?php } ?>
43 <option value="">jour</option><?php for($i=1; $i <=31; $i++){ ?>
44 <option value="<?php echo $i; ?>"><?php echo $i; ?></option><?php } ?>
45 </select> &nbsp;&nbsp;
46 <select name="selMois" id="selMois">
47 <?php if($MM != ""){ ?><option value="<?php echo $MM; ?>"><?php echo $MM; ?></option><?php } ?>
48 <option value="">mois</option><?php for($i=1; $i <=12; $i++){ ?>
49 <option value="<?php echo $i; ?>"><?php echo $i; ?></option><?php } ?>
50 </select> &nbsp;&nbsp;
51 <select name="selAnnee" id="selAnnee">
52 <?php if($AA != ""){ ?><option value="<?php echo $AA; ?>"><?php echo $AA; ?></option><?php } ?>
53 <option value="">ann&eacute;e</option><?php for($i=1941; $i <= date('Y'); $i++){ ?>
54 <option value="<?php echo $i; ?>"><?php echo $i; ?></option><?php } ?>
55 </select>&nbsp;&nbsp;<?php echo $ErrorDDN; ?>&nbsp;(JJ-MM-AAAA)</td>
56 </tr>
57 <tr><td width="18%">Nationalit&eacute;<span style="color:#F00F00">*</span> :</td>
58 <td><!--<?php if($Rows['5']!=""){ $SelNat=$Rows['5']; }else{ $SelNat=$_REQUEST["Nationalite"]; } ?>-->
59 <!--<select name="Nationalite"><?php echo ArrayToSelectBox($Nationalite,$SelNat,1,''); ?></select>-->
60 <select name="Nationalite">
61 <?php
62 //------------Retrieve data while EtudiantID is not nothing--------------------
63 $Strs = mysql_query("Select nationalite from tblinscrit where id=".$IDEtudiant."");
64 if($Strs){
65 $RowsNat = mysql_fetch_row($Strs);
66 $Nom = $RowsNat['0'];
67 }
68 if($Nom == ""){
69 if($_REQUEST["Nationalite"] == ""){ ?>
70 <option value="">Choississez...</option> <?php
71 }else{ ?>
72 <option value="<?php echo $_REQUEST["Nationalite"]; ?>" selected><?php echo $_REQUEST["Nationalite"]; ?></option>
73 <option value="">Choississez...</option>
74 <?php }
75 $Pql=mysql_query("Select * from tblnationalite");
76 if($Pql){
77 while($PRows=mysql_fetch_array($Pql)){
78 $INom=$PRows["nom"];
79 if($INom != $_REQUEST["Nationalite"]){
80 echo"<OPTION VALUE='$INom'>$INom</OPTION>\n";
81 }
82 }
83 }
84 }else{
85 echo"<OPTION VALUE='$Nom'>$Nom</OPTION>\n";
86 ?><option value="">Choississez...</option><?php
87 $Pql=mysql_query("Select * from tblnationalite");
88 if($Pql){
89 while($PRows=mysql_fetch_array($Pql)){
90 $INom=$PRows["nom"];
91 if($INom != $Nom){
92 echo"<OPTION VALUE='$INom'>$INom</OPTION>\n";
93 }
94 }
95 }
96 }
97 ?>
98 </select>
99 </td>
100 </tr>
101 <tr><td width="18%">Universit&eacute;<span style="color:#F00F00">*</span> :</td>
102 <td><select name="Etablissement" id="Etablissement">
103 <?php
104 //------------Retrieve data while EtudiantID is not nothing--------------------
105 $StrEt = mysql_query("Select universite from tblinscrit where id=".$IDEtudiant."");
106 if($StrEt){
107 $RowsEt = mysql_fetch_row($StrEt);
108 $NomEt = str_replace("`","'",$RowsEt['0']);
109 }
110 if($NomEt == ""){
111 if($_REQUEST["Etablissement"] == ""){ ?>
112 <option value="">Choississez...</option> <?php
113 }else{ ?>
114 <option value="<?php echo str_replace("\'","'",$_REQUEST["Etablissement"]); ?>" selected><?php echo str_replace("\'","'",$_REQUEST["Etablissement"]); ?></option>
115 <option value="">Choississez...</option>
116 <?php }
117 $StEt=mysql_query("Select * from tbluniversite");
118 if($StEt){
119 while($PRowsEt=mysql_fetch_array($StEt)){
120 $INomEt=str_replace("`","'",$PRowsEt["nom"]);
121 if($INomEt != str_replace("\'","'",$_REQUEST["Etablissement"])){
122 echo"<OPTION VALUE='$INomEt'>$INomEt</OPTION>\n";
123 }
124 }
125 }
126 }else{
127 echo"<OPTION VALUE='$NomEt'>$NomEt</OPTION>\n";
128 ?><option value="">Choississez...</option><?php
129 $StEt=mysql_query("Select * from tbluniversite");
130 if($StEt){
131 while($PRowsEt=mysql_fetch_array($StEt)){
132 $INomEt=str_replace("`","'",$PRowsEt["nom"]);
133 if($INomEt != $NomEt){
134 echo"<OPTION VALUE='$INomEt'>$INomEt</OPTION>\n";
135 }
136 }
137 }
138 }
139 ?>
140 </select>
141 </td>
142 </tr>
143 <tr><td width="18%">Facult&eacute;<span style="color:#F00F00">*</span> :</td>
144 <td><select name="Domaine">
145 <?php
146 //------------Retrieve data while EtudiantID is not nothing--------------------
147 $StrFac = mysql_query("Select faculte from tblinscrit where id=".$IDEtudiant."");
148 if($StrFac){
149 $RowsFac = mysql_fetch_row($StrFac);
150 $NomFac = $RowsFac['0'];
151 }
152 if($NomFac == ""){
153 if($_REQUEST["Domaine"] == ""){ ?>
154 <option value="">Choississez...</option> <?php
155 }else{ ?>
156 <option value="<?php echo $_REQUEST["Domaine"]; ?>" selected><?php echo $_REQUEST["Domaine"]; ?></option>
157 <option value="">Choississez...</option>
158 <?php }
159 $StFac = mysql_query("Select * from tbldomaine");
160 if($StFac){
161 while($PRowsFac = mysql_fetch_array($StFac)){
162 $INomFac =$PRowsFac["nom"];
163 if($INomFac != $_REQUEST["Domaine"]){
164 echo"<OPTION VALUE='$INomFac'>$INomFac</OPTION>\n";
165 }
166 }
167 }
168 }else{
169 echo"<OPTION VALUE='$NomFac'>$NomFac</OPTION>\n";
170 ?><option value="">Choississez...</option><?php
171 $StFac = mysql_query("Select * from tbldomaine");
172 if($StFac){
173 while($PRowsFac = mysql_fetch_array($StFac)){
174 $INomFac = $PRowsFac["nom"];
175 if($INomFac != $NomFac){
176 echo"<OPTION VALUE='$INomFac'>$INomFac</OPTION>\n";
177 }
178 }
179 }
180 }
181 ?>
182 </select>
183 </td><td style="background-color:#EDE7D8; padding-left:17px;">
184 <strong><a href="index.php?page=liste_infos" title="liste des informations">Liste des informations >></a></strong>
185 </td>
186 </tr>
187 <tr><td width="18%">Promotion<span style="color:#F00F00">*</span> :</td>
188 <td><select name="selPromotion" id="selPromotion">
189 <option value="<?php echo $Rows['10']; ?>"><?php echo $Rows['10']; ?></option>
190 <?php if($_REQUEST["selPomotion"]!= ""){ ?><option value="<?php echo $_REQUEST["selPomotion"]; ?>"><?php echo $_REQUEST["selPomotion"]; ?></option><?php } ?>
191 <option value="">choisissez</option><?php for($i=1941; $i <= date('Y'); $i++){ ?>
192 <option value="<?php echo $i; ?>"><?php echo $i; ?></option><?php } ?>
193 </select>&nbsp;&nbsp;<?php echo $ErrorPRO; ?> Ann&eacute;e obt. Dipl&ocirc;me : &nbsp;
194 <select name="selAnneeDiplome" id="selAnneeDiplome">
195 <option value="<?php echo $Rows['11']; ?>"><?php echo $Rows['11']; ?></option>
196 <?php if($_REQUEST["selAnneeDiplome"]!= ""){ ?><option value="<?php echo $_REQUEST["selAnneeDiplome"]; ?>"><?php echo $_REQUEST["selAnneeDiplome"]; ?></option><?php } ?>
197 <option value="">choisissez</option><?php for($i=1941; $i <= date('Y'); $i++){ ?>
198 <option value="<?php echo $i; ?>"><?php echo $i; ?></option><?php } ?>
199 </select>
200 </td><td rowspan="11" valign="top" style="background-color:#F4F4EC; padding-left:15px; padding-top:15px;">
201 <table cellpadding="3" cellspacing="3" border="1" width="100%" style="border-collapse:collapse; border-color:#999;">
202 <tr><td colspan="1">Nom et Pr&eacute;nom :</td><td colspan="3"><?php echo str_replace("`","'",$Rows['1'])." ".str_replace("`","'",$Rows['2']); ?></td></tr>
203 <tr><td width="29%">Genre :</td><td width="10%"><?php echo $Rows['3']; ?></td><td width="29%">Date de Naissance :</td><td width="32%"><?php echo ChangeDateValueSelect($Rows['4']); ?></td></tr>
204 <tr><td colspan="1">Nationalit&eacute; :</td><td colspan="3"><?php echo str_replace("`","'",$Rows['5']); ?></td></tr>
205 <tr><td colspan="1">Universit&eacute; :</td><td colspan="3"><?php echo str_replace("`","'",$Rows['8']); ?></td></tr>
206 <tr><td colspan="1">Facult&eacute; :</td>
207 <td colspan="3"><?php echo str_replace("`","'",$Rows['9']); ?> &nbsp;&nbsp;&nbsp;&nbsp;| Promo. :&nbsp; <?php echo $Rows['10']; ?>&nbsp;&nbsp;| Ann&eacute;e Dipl&ocirc;me : &nbsp; <?php echo $Rows['11']; ?></td></tr>
208 <tr><td>DELF / DALF :</td><td><?php echo $Rows['12']; ?></td><td>Ann&eacute;e Obtention :</td><td><?php echo $Rows['13']; ?></td></tr>
209 <tr><td colspan="1">Autres Langues :</td><td colspan="3"><?php echo str_replace("`","'",$Rows['14']); ?></td></tr>
210 <tr><td colspan="1">Mail :</td><td colspan="3"><?php echo $Rows['15']; ?></td></tr>
211 <tr><td colspan="1">T&eacute;l&eacute;phone personnel :</td><td colspan="3"><?php echo $Rows['16']; ?></td></tr>
212 <tr><td colspan="1">Adresse personnelle :</td><td colspan="3"><?php echo str_replace("`","'",$Rows['17']); ?></td></tr>
213 <tr><td colspan="1">T&eacute;l&eacute;phone parents :</td><td colspan="3"><?php echo $Rows['18']; ?></td></tr>
214 <tr><td colspan="1">Adresse parents :</td><td colspan="3"><?php echo str_replace("`","'",$Rows['19']); ?></td></tr>
215 <tr><td colspan="1">Titre travail / stage :</td><td colspan="3"><?php echo str_replace("`","'",$Rows['20']); ?></td></tr>
216 <tr><td colspan="1">Adresse travail / stage actuel :</td><td colspan="3"><?php echo str_replace("`","'",$Rows['21']); ?></td></tr>
217 <tr><td colspan="1">Divers :</td><td colspan="3"><?php echo str_replace("`","'",$Rows['22']); ?></td></tr>
218 </table>
219 </td>
220 </tr>
221 <tr><td width="18%">DELF / DALF :</td>
222 <td><select name="selDelf" id="selDelf">
223 <option value="<?php echo $Rows['12']; ?>"><?php echo $Rows['12']; ?></option>
224 <?php if($_REQUEST["selDelf"]!=""){ ?><option value="<?php echo $_REQUEST["selDelf"]; ?>"><?php echo $_REQUEST["selDelf"]; ?></option><?php } ?>
225 <option value="">choisissez</option>
226 <option value="DELF">DELF</option>
227 <option value="DALF">DALF</option>
228 </select>&nbsp;&nbsp; Ann&eacute;e obtention : &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
229 <select name="selAnneeDelf" id="selAnneeDelf">
230 <option value="<?php echo $Rows['13']; ?>"><?php echo $Rows['13']; ?></option>
231 <?php if($_REQUEST["selAnneeDelf"]!= ""){ ?><option value="<?php echo $_REQUEST["selAnneeDelf"]; ?>"><?php echo $_REQUEST["selAnneeDelf"]; ?></option><?php } ?>
232 <option value="">choisissez</option><?php for($i=1941; $i <= date('Y'); $i++){ ?>
233 <option value="<?php echo $i; ?>"><?php echo $i; ?></option><?php } ?>
234 </select>
235 </td>
236 </tr>
237 <tr><td width="18%">Autres Langues :</td>
238 <td><input type="text" name="txtLangue" value="<?php if($Rows['14'] !=""){ echo str_replace("`","'",$Rows['14']); }else{ echo $_REQUEST["txtLangue"]; } ?>" maxlength="1000" size="20" /></td>
239 </tr>
240 <tr><td width="18%">Mail :</td>
241 <td><input type="text" name="txtMail" value="<?php if($Rows['15'] !=""){ echo str_replace("`","'",$Rows['15']); }else{ echo $_REQUEST["txtMail"]; } ?>" maxlength="100" size="20" />&nbsp;&nbsp;<?php echo $ErrorMail; ?></td>
242 </tr>
243 <tr><td width="18%">T&eacute;l&eacute;phone personnel :</td>
244 <td><input type="text" name="txtTelephonepersonnel" value="<?php if($Rows['16'] !=""){ echo str_replace("`","'",$Rows['16']); }else{ echo $_REQUEST["txtTelephonepersonnel"]; } ?>" maxlength="20" size="20" /></td>
245 </tr>
246 <tr><td width="18%">Adresse personnelle :</td>
247 <td><textarea name="txtAdressepersonnelle" rows="3" cols="30"><?php if($Rows['17'] !=""){ echo str_replace("`","'",$Rows['17']); }else{ echo $_REQUEST["txtAdressepersonnelle"]; } ?></textarea></td>
248 </tr>
249 <tr><td width="18%">T&eacute;l&eacute;phone parents :</td>
250 <td><input type="text" name="txtTelephoneparents" value="<?php if($Rows['18'] !=""){ echo str_replace("`","'",$Rows['18']); }else{ echo $_REQUEST["txtTelephoneparents"]; } ?>" maxlength="20" size="20" /></td>
251 </tr>
252 <tr><td width="18%">Adresse parents :</td>
253 <td><textarea name="txtAdresseparents" rows="3" cols="30"><?php if($Rows['19'] !=""){ echo str_replace("`","'",$Rows['19']); }else{ echo $_REQUEST["txtAdresseparents"];} ?></textarea></td>
254 </tr>
255 <tr><td width="18%">Titre travail / stage :</td>
256 <td><input type="text" name="txtTitretravail" value="<?php if($Rows['20'] !=""){ echo str_replace("`","'",$Rows['20']); }else{ echo $_REQUEST["txtTitretravail"]; } ?>" maxlength="800" size="20" /></td>
257 </tr>
258 <tr><td width="18%">Adresse travail / stage actuel :</td>
259 <td><textarea name="txtAdresseTravail" rows="3" cols="30"><?php if($Rows['21'] !=""){ echo str_replace("`","'",$Rows['21']); }else{ echo $_REQUEST["txtAdresseTravail"]; } ?></textarea></td>
260 </tr>
261 <tr><td width="18%">Divers :</td>
262 <td><textarea name="txtDivers" rows="5" cols="30"><?php if($Rows['22'] !=""){ echo str_replace("`","'",$Rows['22']); }else{ echo $_REQUEST["txtDivers"]; } ?></textarea></td>
263 </tr>
264 <tr><td></td><td colspan="3"><input type="submit" name="cmdSave" value="Sauvegarder" /> &nbsp;&nbsp;<span style="background-color:#FCFFCF"><i><span style="color:#F00F00">*</span> : c'est obligatoire de remplire.</i></span></td></tr>
265 </table>
266 <p> </p>