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
|
<?php
session_start ();
echo "Utilisateur : ";
echo $_SESSION['pseudo'];
echo'<br>';
ini_set ("error_reporting", "E_ALL & ~E_NOTICE");
?>
<h1><center> Liste des utilisateurs de la gestion des dus</center></h1>
<?php
include ('../inc/inc_connexion.php');
$req=mysql_query("SELECT * FROM region ORDER BY code");
$lignes = "<table BORDER=1 BORDERCOLOR=#CCCCCC BGCOLOR=#fffccc CELLSPACING=0 CELLPADDING=1 WIDTH=98% ALIGN=left font-family:Verdana size=10px>
<td bgcolor='#669999'><b><u>ID</u></b></td>
<td bgcolor='#669999'><b><u>REGION</u></b></td>
<td bgcolor='#669999'><b><u>NOM</u></b></td>
<td bgcolor='#669999'><b><u>E-MAIL</u></b></td>
<td bgcolor='#669999'><b><u>LIEU</u></b></td>
<td bgcolor='#669999'><b><u>CODE</u></b></td>
<td bgcolor='#CC0033'><b><u>Suppr.</u></b></td></tr>";
$resultat = mysql_query($req) or die ('Erreur '.$req.' '.mysql_error());
while($util = mysql_fetch_array($resultat))
{
$id=$util['id'];
$region= $util['nom_region'];
$nom = $util['pseudo'];
$mail =$util['email'];
$code = $util['code'];
$lieu = $util['localisation'];
$lignes .= "<tr>
<td>".$id."</a></td>
<td>".$region."</td>
<td>".$nom."</td>
<td align='right'>".$mail."</td>
<td align='center'>".$lieu."</td>
<td align='center'>".$code."</td>
<td align='center'><form method='GET' action=''><input type='checkbox' name='check[]' value=".$util['id']."></td></tr>";
}
$ligne .= "<tr><td colspan='6' align='right'><input type='submit' value='delete'></form></td></tr>";
echo $ligne;
mysql_free_result($resultat);
?> |