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 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647
|
<body bgcolor="#6699CC">
<?php
include("msg_fonctions.php");
$num=$_POST['numero'];
// declarer un tableau pour stocker les valeurs des voeux
$voeux=array();
// connexion à la base de données
// Variable de connexion
$host = "localhost";
$user = "root";
$pwd = "";
$dataBase = "bdd_message";
// Connexion à la base.
$db=@mysql_connect($host,$user,$pwd) or die("Connexion impossible");
@mysql_select_db($dataBase,$db) or die("Echec de selection de la base");
$liste=array(); // Liste des cases cochées
// Récupérer toutes le données d'un candidat
$req='SELECT c.num_insc,nom,nom_marital,prenom,date_n,adresse,ville,ville_naissance,nationalite,email,civilite,tel, telpor,cp,diplome_bac,annee_obt,diplome_cours,diplome_der,code_univ,code_parcour,priorite FROM msg_candidat c JOIN msg_postuler p
ON c.num_insc=p.num_insc WHERE c.num_insc="'.$num.'"';
$req = mysql_query($req) or die('Erreur SQL !<br>'.$sql.'<br>'.mysql_error());
//Verifier si le candidat est deja inscrit ou non
if (mysql_num_rows($req) == 0) {
echo '<div style="position:absolute; top:40%; left:40%; height:auto; width:auto; background-color:#FFFFFF">
<p class="p1" align=center>Désolé, Vous n\'êtes pas inscris</p>
</div>';
}
else {
$j=0;
while($data=mysql_fetch_assoc($req)) {
// récupérer les données du candidat et les afficher dans le formulaire avec Javascript
if ($data['priorite'] == 0) $univ=$data['code_univ'];
$civil=$data["civilite"];
$nom=$data["nom"];
$nom2=$data["nom_marital"];
$prenom=$data["prenom"];
$jour=substr($data["date_n"],8,2);
$mois=substr($data["date_n"],5,2);
$year=substr($data["date_n"],0,4);
$nation=$data["nationalite"];
$villen=$data["ville_naissance"];
$cp=$data["cp"];
$adr=$data["adresse"];
$ville=$data["ville"];
$tel=$data["tel"];
$telp=$data["telpor"];
$mail=$data["email"];
$anneeb=$data["annee_obt"];
$bac=$data["diplome_bac"];
$dipc=$data["diplome_cours"];
$dipd=$data["diplome_der"];
$liste[$j++]=$data['code_univ'];
if ($data['code_parcour'] == "cpeg") $liste[$j++]=$data['code_univ']."1";
if ($data['code_parcour'] == "cpmstcf") $liste[$j++]=$data['code_univ']."2";
if ($data['code_parcour'] == "fin") $liste[$j++]=$data['code_univ']."3";
} // Fin WHILE
echo '<input type=hidden name=uni value="'.$univ.'">';
echo '<input type=hidden name=num value="'.$num.'">';
// for ($i=0;$i<count($liste);$i++) echo $liste[$i].'<br>';
} // fin ELSE
?>
<form name="modification" method="POST" action="msg_modifier_valider.php" onSubmit="return verifier_saisie(this);">
<p align=center>
<table WIDTH="70%" border="0" cellspacing="5" cellpadding="1" bgcolor="#009900">
<tr>
<td width="20" height="115" align=center background="images/banniere2.jpg"><br></td>
</tr>
</table>
<!-- partie identité candidat -->
<table WIDTH="70%" border="0" cellspacing="5" cellpadding="1" bgcolor="#FFFF99">
<tr>
<td>
<label class="p1">Civilité<font color=red>*</font> (Mr.Mme.Mlle) : </label>
<?php
echo '<select size="1" name="civil">';
$db=connexion();
// Requète MySQL pour récupérer les types de bac
$sql = "SELECT code,nom FROM msg_civilite";
$option = mysql_query($sql) ;
while($data = mysql_fetch_row($option))
{
if ($data[0]==$civil) {
echo "\t\t<option value=".$data[0]." SELECTED>".($data[1])."</option>\n";
} else { echo "\t\t<option value=".$data[0].">".($data[1])."</option>\n"; };
}
// On continu le code HTML pour fermer le <select>...
echo '</select>';
mysql_close($db);
?>
<hr>
<br>
</td>
<td align="center">
<label>(<font color=red> * </font>Champs obligatoires ) </label>
<br>
</td>
</tr>
<tr>
<td align="left">
<label class="p1">Nom<font color=red>*</font> </label>
<br>
</td>
<td>
<input type=text name="nom" ID=id_nom size=25 value="<? echo $nom ?>" class="bordure">
<br>
</td>
<td align="left">
<label class="p1">Nom Marital </label>
</td>
<td>
<input type=text name="nom2" ID=id_nom2 size=25 value="<? echo $nom2 ?>" class="bordure">
</td>
</tr>
<tr>
</tr>
<tr>
<td align="left">
<label class="p1">Prénom<font color=red>*</font> </label>
</td>
<td>
<input type=text name="prenom" ID=id_prenom size=25 value="<? echo $prenom ?>" class="bordure">
</td>
</tr>
<tr>
<td align="left">
<label class="p1">Date de naissance <font color=red>*</font></label><font size=1 color=blue>(au format JJ/MM/AAAA)</font>
</td>
<td>
<input type="text" name="jour" ID=id_jour size=2 maxlength="2" value="<? echo $jour ?>" class="bordure">/<input type="text" name="mois" ID=id_mois size=2 maxlength="2" value="<? echo $mois ?>" class="bordure">/ <input type="text" name="year" ID=id_year size=4 maxlength="4" value="<? echo $year ?>" class="bordure">
</td>
<td align="left">
<label class="p1">Nationalité<font color=red>*</font> </label>
</td>
<td>
<input type=text name="nationalite" ID=id_nation size=25 value="<? echo $nation ?>" class="bordure">
</td>
</tr>
<tr>
<td align="left">
<label class="p1">Ville de naissance </label>
</td>
<td>
<input type=text name="villen" ID=id_villen size=25 value="<? echo $villen ?>" class="bordure">
</td>
</tr>
<tr>
<td align="left">
<label class="p1">Adresse<font color=red>*</font> </label>
</td>
<td>
<input type=text name="adr1" ID=id_adr size=30 value="<? echo $adr ?>" class="bordure">
<br>
</td>
<td align="left">
<label class="p1">Code Postal<font color=red>*</font> </label>
</td>
<td>
<input type=text name="cp" ID=id_cp size=6 maxlength="5" value="<? echo $cp ?>" class="bordure">
</td>
</tr>
<tr>
<td align="left">
<label></label>
</td>
<td>
<input type=text name="adr2" ID=id_adr2 size=30 class="bordure">
<br>
</td>
<td align="left">
<label class="p1">Ville<font color=red>*</font> </label>
</td>
<td>
<input type=text name="ville" ID=id_ville size=25 value="<? echo $ville ?>" class="bordure">
<br>
</td>
</tr>
<tr>
<td align="left">
<label class="p1">Téléphone</label>
</td>
<td>
<input type=text name="tel" ID=id_tel size=10 value="<? echo $tel ?>" class="bordure">
<br>
</td>
<td align="left">
<label class="p1">Téléphone Portable </label>
</td>
<td>
<input type=text name="telp" ID=id_telp size=10 value="<? echo $telp ?>" class="bordure">
<br>
</td>
</tr>
<td align="left">
<label class="p1">E-mail<font color=red>*</font> </label>
</td>
<td>
<input type=text name="mail" ID=id_mail size=30 value="<? echo $mail ?>" class="bordure">
<br>
</td>
</tr>
</table>
<!-- partie diplomes -->
<table WIDTH="70%" border="0" cellspacing="5" cellpadding="1" bgcolor="#FFFF99">
<tr>
<td >
<p align=center><img src="images/main.gif"><font size=2 color=red>Verifier bien votre E-Mail, en cas d'oubli de votre N° d'Inscription qui vous sera attribué, il vous sera envoyé à cette adresse</font></p>
<hr>
</td>
</tr>
</table>
<br>
<table WIDTH="70%" border="0" cellspacing="6" cellpadding="1" bgcolor="#FFFF99">
<tr>
<td align="left">
<label class="p1">En quelle année avez-vous eu votre bac ? </label>
<input type=text name="anneeb" ID=id_anneeb size=4 maxlength="4" value="<? echo $anneeb ?>" class="bordure">(ex : 1998)
</td>
</tr>
<tr>
<td>
<label class="p1">Série de votre Bac ?</label>
<?php
echo '<select size="1" name="bac">';
$db=connexion();
// Requète MySQL pour récupérer les types de bac
$sql = "SELECT code,nom FROM msg_diplome_bac ORDER BY nom";
$option = mysql_query($sql) ;
while($data = mysql_fetch_row($option))
{
if ($data[0]==$bac) {
echo "\t\t<option value=".$data[0]." SELECTED>".($data[1])."</option>\n";
} else { echo "\t\t<option value=".$data[0].">".($data[1])."</option>\n"; };
}
// On continu le code HTML pour fermer le <select>...
echo '</select>';
mysql_close($db);
?>
</td>
</tr>
<td>
<label class="p1">Le diplôme que vous êtes en train de préparer ?</label>
<?php
echo '<select size="1" name="dip_cour">';
echo '<option value="-1">Choix du diplôme</option>';
$db=connexion();
// Requète MySQL pour récupérer les types de bac
$sql = "SELECT code,nom FROM msg_diplome ORDER BY nom";
$option = mysql_query($sql) ;
while($data = mysql_fetch_row($option))
{
if ($data[0]==$dipc) {
echo "\t\t<option value=".$data[0]." SELECTED>".($data[1])."</option>\n";
} else { echo "\t\t<option value=".$data[0].">".($data[1])."</option>\n"; };
}
// On continu le code HTML pour fermer le <select>...
echo '</select>';
mysql_close($db);
?>
</td>
<tr>
<td>
<label class="p1">Le dernier diplôme que vous avez obtenu ?</label>
<?php
echo '<select size="1" name="diplome">';
echo '<option value="-1">Choix du diplôme</option>';
$db=connexion();
// Requète MySQL pour récupérer les types de bac
$sql = "SELECT code,nom FROM msg_diplome ORDER BY nom";
$option = mysql_query($sql) ;
while($data = mysql_fetch_row($option))
{
if ($data[0]==$dipd) {
echo "\t\t<option value=".$data[0]." SELECTED>".($data[1])."</option>\n";
} else { echo "\t\t<option value=".$data[0].">".($data[1])."</option>\n"; };
}
// On continu le code HTML pour fermer le <select>...
echo '</select>';
mysql_close($db);
?>
</td>
</tr>
</table>
<br>
<!-- partie choix du centre d\'examen et voeux -->
<table WIDTH="70%" border="0" cellspacing="6" cellpadding="1" bgcolor="#FFFF99">
<tr>
<td align="left">
<label><B class="p1">Sélectionnez l'université dans les locaux de laquelle vous passerez les épreuves communes du 12 juin 2007 </b>(qui sera également une des universités où vous souhaitez faire vos études)<font color=red>*</font></label>
</td>
<td align="left">
<?php
echo '<select size="1" name="univ">';
$db=connexion();
// Requète MySQL pour récupérer les types de bac
$sql = "SELECT code_univ,nom_univ FROM msg_universite ORDER BY nom_univ";
$option = mysql_query($sql) ;
while($data = mysql_fetch_row($option))
{
if ($data[0]==$univ) {
echo "\t\t<option value=".$data[0]." SELECTED>".($data[1])."</option>\n";
} else { echo "\t\t<option value=".$data[0].">".($data[1])."</option>\n"; };
}
// On continu le code HTML pour fermer le <select>...
echo '</select>';
mysql_close($db);
?>
</td>
</tr>
</table>
<br>
<table width="70%" border="0" bgcolor="#0066FF">
<tr align=center>
<td><img src="images/attention.gif">..<font size=2 face="Verdana, Arial, Helvetica, sans-serif" color="#FFFF00"><b>votre choix de centre d'examen ne pourra pas être changé lors d'une prochaine modification !, et doit figurer sur la liste des voeux ci-dessous </b></font></td>
</tr>
</table>
<br>
<!-- liste des choix de formations-->
<table WIDTH="70%" border="0" cellspacing="6" cellpadding="1" bgcolor="#FFFF99">
<tr class="p1" align=center>
<td>
Cochez les universités dans lesquelles vous souhaiteriez être candidat et qui prendront en compte vos résultats et parallèlement cochez le Parcours Gestion et/ou Comptabilité dans lesquels vous souhaiteriez poursuivre vos études :
<hr>
</td>
</tr>
</table>
<table width="70%" align="center" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFF99">
<tr>
<td> </td>
<td class="p2">LISTE DES UNIVERSITES</td>
<td width="30"> </td>
<td align="center" width="30" class="p2">PARCOURS GESTION LSG/MSG</td>
<td width="30"> </td>
<td align="center" width="30" class="p2">PARCOURS COMPTABILITE LCCA/MSTCF</td>
<td width="30"> </td>
<td align="center" width="30" class="p2">PARCOURS FINANCE</td>
</tr>
<tr align="center" class="tabnormal" id="ID10">
<td width="10"><?php $vrai=0;
for ($i=0;$i<count($liste);$i++)
if ($liste[$i]=="10") $vrai=1;
if ($vrai==1) echo '<input type="checkbox" name="UNI[10]" CHECKED="true">';
else echo '<input type="checkbox" name="UNI[10]">'; ?>
</td>
<td align="left"> AIX - MARSEILLE II</td>
<input type="hidden" name="rang10" value="10">
<td width="30"> </td>
<td align="center" width="30"><?php $vrai=0;
for ($i=0;$i<count($liste);$i++) {
if (strlen($liste[$i])>2 && substr($liste[$i],0,2)=="10") {
for ($j=2;$j<strlen($liste[$i]);$j++) if (substr($liste[$i],$j,1)=="1") $vrai=1;
}
}
if ($vrai==1) { echo '<input type="checkbox" name="FILIERE[]" value="FILIERE[10][1]" CHECKED="true">';
}
else echo '<input type="checkbox" name="FILIERE[]" value="FILIERE[10][1]">'; ?></td>
<td width="30"> </td>
<td width="30"> </td>
<td width="30"> </td>
<td width="30"> </td>
</tr>
<tr align="center" class="font_table" id="ID40">
<td width="10"><?php $vrai=0;
for ($i=0;$i<count($liste);$i++)
if ($liste[$i]=="40") $vrai=1;
if ($vrai==1) echo '<input type="checkbox" name="UNI[40]" CHECKED="true">';
else echo '<input type="checkbox" name="UNI[40]">'; ?></td>
<td align="left"> AMIENS</td>
<input type="hidden" name="rang40" value="40">
<td width="30"> </td>
<td align="center" width="30"><?php $vrai=0;
for ($i=0;$i<count($liste);$i++) {
if (strlen($liste[$i])>2 && substr($liste[$i],0,2)=="40") {
for ($j=2;$j<strlen($liste[$i]);$j++) if (substr($liste[$i],$j,1)=="1") $vrai=1;
}
}
if ($vrai==1) echo '<input type="checkbox" name="FILIERE[]" CHECKED="true" value="FILIERE[40][1]">';
else echo '<input type="checkbox" name="FILIERE[]" value="FILIERE[40][1]">'; ?></td>
<td width="30"> </td>
<td align="center" width="30"><?php $vrai=0;
for ($i=0;$i<count($liste);$i++) {
if (strlen($liste[$i])>2 && substr($liste[$i],0,2)=="40") {
for ($j=2;$j<strlen($liste[$i]);$j++) if (substr($liste[$i],$j,1)=="2") $vrai=1;
}
}
if ($vrai==1) echo '<input type="checkbox" name="FILIERE[]" CHECKED="true" value="FILIERE[40][2]">';
else echo '<input type="checkbox" name="FILIERE[]" value="FILIERE[40][2]">'; ?></td>
<td width="30"> </td>
<td width="30"> </td>
</tr>
<tr align="center" class="tabnormal" id="ID41">
<td width="10"><?php $vrai=0;
for ($i=0;$i<count($liste);$i++)
if ($liste[$i]=="41") $vrai=1;
if ($vrai==1) echo '<input type="checkbox" name="UNI[41]" CHECKED="true">';
else echo '<input type="checkbox" name="UNI[41]">'; ?></td>
<td align="left"> ANGERS</td>
<input type="hidden" name="rang41" value="41">
<td width="30"> </td>
<td align="center" width="30"><?php $vrai=0;
for ($i=0;$i<count($liste);$i++) {
if (strlen($liste[$i])>2 && substr($liste[$i],0,2)=="41") {
for ($j=2;$j<strlen($liste[$i]);$j++) if (substr($liste[$i],$j,1)=="1") $vrai=1;
}
}
if ($vrai==1) echo '<input type="checkbox" name="FILIERE[]" CHECKED="true" value="FILIERE[41][1]">';
else echo '<input type="checkbox" name="FILIERE[]" value="FILIERE[41][1]">'; ?></td>
</tr>
<tr align="center" class="font_table" id="ID44">
<td width="10"><?php $vrai=0;
for ($i=0;$i<count($liste);$i++)
if ($liste[$i]=="44") $vrai=1;
if ($vrai==1) echo '<input type="checkbox" name="UNI[44]" CHECKED="true">';
else echo '<input type="checkbox" name="UNI[44]">'; ?></td>
<td align="left"> BOULOGNE SUR MER</td>
<input type="hidden" name="rang44" value="44">
<td width="30"> </td>
<td align="center" width="30"><?php $vrai=0;
for ($i=0;$i<count($liste);$i++) {
if (strlen($liste[$i])>2 && substr($liste[$i],0,2)=="44") {
for ($j=2;$j<strlen($liste[$i]);$j++) if (substr($liste[$i],$j,1)=="1") $vrai=1;
}
}
if ($vrai==1) echo '<input type="checkbox" name="FILIERE[]" CHECKED="true" value="FILIERE[44][1]">';
else echo '<input type="checkbox" name="FILIERE[]" value="FILIERE[44][1]">'; ?></td>
<td width="30"> </td>
<td align="center" width="30"><?php $vrai=0;
for ($i=0;$i<count($liste);$i++) {
if (strlen($liste[$i])>2 && substr($liste[$i],0,2)=="44") {
for ($j=2;$j<strlen($liste[$i]);$j++) if (substr($liste[$i],$j,1)=="2") $vrai=1;
}
}
if ($vrai==1) echo '<input type="checkbox" name="FILIERE[]" CHECKED="true" value="FILIERE[44][2]">';
else echo '<input type="checkbox" name="FILIERE[]" value="FILIERE[44][2]">'; ?></td>
<td width="30"> </td>
<td width="30"> </td>
</tr>
<tr align="center" id="ID11">
<td width="10"><?php $vrai=0;
for ($i=0;$i<count($liste);$i++)
if ($liste[$i]=="11") $vrai=1;
if ($vrai==1) echo '<input type="checkbox" name="UNI[11]" CHECKED="true">';
else echo '<input type="checkbox" name="UNI[11]">'; ?></td>
<td align="left"> BOURGOGNE - DIJON</td>
<input type="hidden" name="rang11" value="11">
<td width="30"> </td>
<td align="center" width="30"><?php $vrai=0;
for ($i=0;$i<count($liste);$i++) {
if (strlen($liste[$i])>2 && substr($liste[$i],0,2)=="11") {
for ($j=2;$j<strlen($liste[$i]);$j++) if (substr($liste[$i],$j,1)=="1") $vrai=1;
}
}
if ($vrai==1) echo '<input type="checkbox" name="FILIERE[]" CHECKED="true" value="FILIERE[11][1]">';
else echo '<input type="checkbox" name="FILIERE[]" value="FILIERE[11][1]">'; ?></td>
<td width="30"> </td>
<td width="30"> </td>
<td width="30"> </td>
<td width="30"> </td>
</tr>
<tr align="center" class="font_table" id="ID34">
<td width="10"><?php $vrai=0;
for ($i=0;$i<count($liste);$i++)
if ($liste[$i]=="34") $vrai=1;
if ($vrai==1) echo '<input type="checkbox" name="UNI[34]" CHECKED="true">';
else echo '<input type="checkbox" name="UNI[34]">'; ?></td>
<td align="left"> BRETAGNE OCCIDENTALE - BREST</td>
<input type="hidden" name="rang34" value="34">
<td width="30"> </td>
<td align="center" width="30"><?php $vrai=0;
for ($i=0;$i<count($liste);$i++) {
if (strlen($liste[$i])>2 && substr($liste[$i],0,2)=="34") {
for ($j=2;$j<strlen($liste[$i]);$j++) if (substr($liste[$i],$j,1)=="1") $vrai=1;
}
}
if ($vrai==1) echo '<input type="checkbox" name="FILIERE[]" CHECKED="true" value="FILIERE[34][1]">';
else echo '<input type="checkbox" name="FILIERE[]" value="FILIERE[34][1]">'; ?></td>
<td width="30"> </td>
<td width="30"> </td>
<td width="30"> </td>
<td width="30"> </td>
</tr>
<tr align="center" id="ID32">
<td width="10"><?php $vrai=0;
for ($i=0;$i<count($liste);$i++)
if ($liste[$i]=="32") $vrai=1;
if ($vrai==1) echo '<input type="checkbox" name="UNI[32]" CHECKED="true">';
else echo '<input type="checkbox" name="UNI[32]">'; ?></td>
<td align="left"> CAEN</td>
<input type="hidden" name="rang32" value="32">
<td width="30"> </td>
<td width="30"> </td>
<td width="30"> </td>
<td align="center" width="30"><?php $vrai=0;
for ($i=0;$i<count($liste);$i++) {
if (strlen($liste[$i])>2 && substr($liste[$i],0,2)=="32") {
for ($j=2;$j<strlen($liste[$i]);$j++) if (substr($liste[$i],$j,1)=="2") $vrai=1;
}
}
if ($vrai==1) echo '<input type="checkbox" name="FILIERE[]" CHECKED="true" value="FILIERE[32][2]">';
else echo '<input type="checkbox" name="FILIERE[]" value="FILIERE[32][2]">'; ?></td>
<td width="30"> </td>
<td width="30"> </td>
</tr>
<tr align="center" class="font_table" id="ID13">
<td width="10"><?php $vrai=0;
for ($i=0;$i<count($liste);$i++)
if ($liste[$i]=="13") $vrai=1;
if ($vrai==1) echo '<input type="checkbox" name="UNI[13]" CHECKED="true">';
else echo '<input type="checkbox" name="UNI[13]">'; ?></td>
<td align="left"> CERGY-PONTOISE</td>
<input type="hidden" name="rang13" value="13">
<td width="30"> </td>
<td align="center" width="30"><?php $vrai=0;
for ($i=0;$i<count($liste);$i++) {
if (strlen($liste[$i])>2 && substr($liste[$i],0,2)=="13") {
for ($j=2;$j<strlen($liste[$i]);$j++) if (substr($liste[$i],$j,1)=="1") $vrai=1;
}
}
if ($vrai==1) echo '<input type="checkbox" name="FILIERE[]" CHECKED="true" value="FILIERE[13][1]">';
else echo '<input type="checkbox" name="FILIERE[]" value="FILIERE[13][1]">'; ?></td>
<td width="30"> </td>
<td width="30"> </td>
<td width="30"> </td>
<td width="30"> </td>
</tr>
<tr align="center" id="ID15">
<td width="10"><?php $vrai=0;
for ($i=0;$i<count($liste);$i++)
if ($liste[$i]=="15") $vrai=1;
if ($vrai==1) echo '<input type="checkbox" name="UNI[15]" CHECKED="true">';
else echo '<input type="checkbox" name="UNI[15]">'; ?></td>
<td align="left"> LILLE I</td>
<input type="hidden" name="rang15" value="15">
<td width="30"> </td>
<td align="center" width="30"><?php $vrai=0;
for ($i=0;$i<count($liste);$i++) {
if (strlen($liste[$i])>2 && substr($liste[$i],0,2)=="15") {
for ($j=2;$j<strlen($liste[$i]);$j++) if (substr($liste[$i],$j,1)=="1") $vrai=1;
}
}
if ($vrai==1) echo '<input type="checkbox" name="FILIERE[]" CHECKED="true" value="FILIERE[15][1]">';
else echo '<input type="checkbox" name="FILIERE[]"value="FILIERE[15][1]">'; ?></td>
<td width="30"> </td>
<td width="30"> </td>
<td width="30"> </td>
<td width="30"> </td>
</tr>
// ..........
</table>
</form>
</body>
</html> |
Partager