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
| <html>
<head>
<title>tableau dynamique </title>
<link rel="stylesheet" type="text/css" href="scroller.css">
</head>
<body>
<center><h1>Abonnements</h1></center>
<div class= "border_table">
<center>
<?php
$machine="localhost";
$utilisateur="root";
$mot_passe="Mm101010";
$nom_base="smartphone";
$con= @mysql_connect($machine,$utilisateur,$mot_passe) or die ('Erreur : '.mysql_error() );
mysql_select_db($nom_base);
$query='SELECT * FROM smartphone.abonnements;';
$resultat=mysql_query($query,$con) or die (mysql_error());;
$total=mysql_num_rows($resultat);
if($total) {
echo'<div class="scroller" <table bgcolor="#FFFFFF">'."\n";
echo '<table border="1">'."\n";
echo "<tr>";
echo '<th>Operateur<th>';
echo '<th>SIM<th>';
echo '<th>PUK<th>';
echo '<th>Num ligne<th>';
echo '<th>Volume<th>';
echo '<th>Statut abo<th>';
echo "</tr>";
while($row = mysql_fetch_assoc($resultat)) {
echo '<td>'.$row["Operateur"].'<td>';
echo '<td>'.$row["Num SIM"].'<td>';
echo '<td>'.$row["PUK"].'<td>';
echo '<td>'.$row["Num ligne"].'<td>';
echo '<td>'.$row["Volume"].'<td>';
echo '<td>'.$row["Statut abo"].'<td>';
echo '</tr>'."\n";
}
echo '</table>'."\n";
}
else echo 'Pas d\'enregistrements dans cette table...';
?>
</center>
<br><br>
<center>
<a class="Affectation" href="http://localhost/formulaire/Form_PHP/php_presque_fini/Affectation.php">Affectation</a>
<a class="Equipement" href="http://localhost/formulaire/Form_PHP/php_presque_fini/Equipement.php">Equipement</a>
<a class="Reaffectation_Equipement" href="http://localhost/formulaire/Form_PHP/php_presque_fini/Reaffectation_Equipement.php">Reaffectation Equipement</a>
<a class="Nouvelle_Affectation" href="http://localhost/formulaire/Form_PHP/php_presque_fini/Nouvelle_Affectation.php">Nouvelle Affectation</a>
<a class="Employe" href="http://localhost/formulaire/Form_PHP/php_presque_fini/Employe.php">Employe</a>
<a class="Modele" href="http://localhost/formulaire/Form_PHP/php_presque_fini/Modele.php">Modele</a><br>
</center>
<center><table>
<tr><td><div class="Operateur"> Operateur<input type="text" name="Operateur"> </div></td>
<td>                                     </td>
<td><div class="Num_SIM"> Num SIM :<input type="text" name="Num_SIM"></div></td></tr>
<td>                                     </td>
<tr><td><div class="PUK"> PUK : <input type="text" name="PUK"></div></td>
<td>                                     </td>
<td><div class="Num_ligne"> Num ligne :<input type="text" name="Num_ligne"></div></td></tr>
<td>                                     </td>
<tr><td><div class="Volume"> Volume :<input type="text" name="Volume"></div></td>
<td>                                     </td>
<td><div class="Statut_Abo"> Statut Abo :<input type="text" name="Statut_Abo"></div></td></tr>
</table>
</center>
</body>
</html> |
Partager