Première version publique
[auf_paf.git] / forms / liste_infos.php
1 <?php
2 if($_SESSION["UserNamePAF"]==""){ redirect("index.php"); } ?>
3 <h2>Liste des informations</h2>
4 <p><strong><a href="excel.php" title="exporter au fichier d'excel">Exporter Fichier Calc</a></strong></p>
5 <table width="100%" cellpadding="3" cellspacing="3" border="1" style="border-collapse:collapse; padding-top:20px;">
6 <tr><td width="4%"><strong>No.</strong></td>
7 <td width="4%"><strong>Login</strong></td>
8 <td width="14%"><strong>Nom & Pr&eacute;nom</strong></td>
9 <td width="5%" align="center"><strong>Genre</strong></td>
10 <td width="12%"><strong>Date de Naissance</strong></td>
11 <td width="17%"><strong>Universit&eacute;</strong></td>
12 <td width="13%"><strong>Facult&eacute;</strong></td>
13 <td width="13%"><strong>T&eacute;l&eacute;phone</strong></td>
14 <td width="18%"><strong>E-mail</strong></td>
15 </tr>
16 <?php
17 $i=1;
18 $Stt = mysql_query("Select id, nom, prenom, sexe, datedenaissance, nationalite, login, motdepasse, universite, faculte, promotion, anneediplome, delf, anneedelf, langueautre, email, telephonepersonnelle, adressepersonnelle, telephoneparents, adresseparents, titretravail, adressetravail, divers, datein from tblinscrit order by id desc");
19 $Deconnexion = "<a href='index.php?actlogin=logout' title='d&eacute;connexion'>D&eacute;connexion</a>";
20 while($row=mysql_fetch_array($Stt)){ ?>
21 <tr><td><?php echo $i; ?></td>
22 <td><?php echo "C".$row["id"]; ?></td>
23 <td><?php echo str_replace("`","'",$row["nom"])." ".str_replace("`","'",$row["prenom"]); ?></td>
24 <td align="center"><?php echo $row["sexe"]; ?></td>
25 <td><?php echo ChangeDateValueSelect($row["datedenaissance"]); ?></td>
26 <td><?php echo str_replace("`","'",$row["universite"]); ?></td>
27 <td><?php echo str_replace("`","'",$row["faculte"]); ?></td>
28 <td><?php echo $row["telephonepersonnelle"]; ?></td>
29 <td><?php echo $row["email"]; ?></td>
30 </tr>
31 <?php $i++; } ?>
32 </table>
33 <p><strong><a href="excel.php" title="exporter au fichier d'excel">Exporter Fichier Calc</a></strong></p>