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
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>gestion des articles</title>
<style type="text/css">
<!--
.Style1 {
font-size: 14px
}
.Style2 {font-size: 12px}
-->
</style>
</head>
<?php
//connection a la bd
require_once("bd/connectbd.php");
//requete sql
$reponse=mysql_query("SELECT * FROM article");
?>
<body>
<form action="valid.php" method="post">
<h1> <center>
<p>Gestion des articles</p>
<p> </p>
<p>Voici les articles que vous avez déja créer :</p>
<table width="563" height="152" border="1">
<tr>
<td colspan="6"><div align="center" class="Style1"><a href="ajouter_article.php">+ ajouter un article </a></div></td>
</tr>
<tr>
<td height="40" colspan="3"><div align="center" class="Style2">Action</div></td>
<td width="160"><div align="center"><span class="Style2">Nom</span></div></td>
<td width="146"><div align="center"><span class="Style2">Date de création</span></div></td>
<td width="34"> </td>
</tr>
<tr>
<?php
while ($donnees = mysql_fetch_array($reponse) )
{
?>
<td width="37" height="41"><div align="center"><span class="Style2"><input name="modif" type="radio" value="modifier">modifier</input></span></div></td>
<td width="37"><div align="center"><span class="Style2"><input name="modif" type="radio" value="supprimer">Supprimer</input></span></div></td>
<td width="33"><div align="center"><span class="Style2"><input name="modif" type="radio" value="consulter">Consulter</input></span></div></td>
<td><div align="center"><input name="nom" type="hidden" value="$donnees['nom_article'];"><?php echo $donnees['nom_article']; ?></div></td>
<td><div align="center"><input name="date" type="hidden" value="$donnees['date_article'];"><?php echo $donnees['date_article']; ?></input></div></td>
<td><div align="center"></div></td>
</tr>
<?php
}
?>
</table>
<br>
<center><input name="val" type="submit" value="valider"></input>
<p> </p>
</center></h1>
</form>
</body>
</html> |