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
| <?php
$sql = 'SELECT `id`, `nom`, `prenom`, `matricule`, `privilege`, `date`, `email`, `telephone`, `fonction_tech`, `birthday`, `intervention` FROM `agent` WHERE id='.intval($_GET['u']).'';
$req = mysql_query($sql) or die('Erreur SQL !<br>'.$sql.'<br>'.mysql_error());
$data=mysql_fetch_assoc($req);
?>
<div id="boxAgent">
<h4>Detail de infomation de l'agent</h4>
<table>
<tr>
<td class="titre_td">Informations générales</td>
</tr>
<tr>
<td>Nom</td>
<td>
<?php
echo ''.$data['nom'].'';?></td></tr>
<tr>
<td class="fiche_td">Prénom</td>
<td class="fiche_td">
<?php echo ''.$data['prenom'].'';
?></td>
</tr>
<tr>
<td class="fiche_td">Matricule</td>
<td class="fiche_td">
<?php
echo ''.$data['matricule'].'';?></td></tr>
<tr>
<td class="fiche_td">Type de compte utilisé</td>
<td class="fiche_td"><?php
echo ''.$data['privilege'].''; ?> </td></tr><tr>
<td class="fiche_td">Email</td>
<td class="fiche_td">
<?php
echo ''.$data['email'].'';?> </td></tr>
<tr>
<td class="fiche_td">Téléphone</td>
<td class="fiche_td">
<?php
echo ''.$data['telephone'].'';
?>
</td>
</tr>
<tr>
<td class="fiche_td">Fonction</td>
<td class="fiche_td">
<?php
echo ''.$data['fonction_tech'].'';
?>
</td>
</tr>
<tr>
<td class="fiche_td">Intervention</td>
<td class="fiche_td">
<?php
echo ''.$data['intervention'].'';
?>
</td>
</tr>
</table>
<div width="400px" class="right" style="margin-top:20px;">
<a href="delete.php?supprimer=<?php echo $id; ?>">Supprimer</a>
</div>
</div> |