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