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
| <div class="width500">
<div id="status"></div>
<div class="outerbox">
<div class="top">
<div class="left"></div>
<div class="right"></div>
<div class="middle"></div>
</div>
<div class="maincontent">
<div class="pageTitle"><h2><?php echo 'Demandes'; ?></h2></div>
<?php if (isset($_SESSION['login'])) {
mysql_connect('localhost','root');
mysql_select_db('planning');
if (isset($_POST['suppr'])){
$w=$_GET['nom'];
$ss=$_GET['prenom'];
$qre="delete from abs_demande where nom='$w' and prenom='$ss'";
$z=mysql_query($qre) or die ('dddr');
}
$re="SELECT * FROM abs_demande ";
$s=mysql_query($re) or die ('erreur');
echo '<form name=""formAbs"">
<table class=\"data-table\" border=\"0\">
<tr>
<th class="txtLeft width200">Nom</th>
<th class="txtLeft width200">Prenom</th>
<th class="txtLeft width200">Demande</th>
<th class="txtLeft width200">Supprimer</th></tr>';
while($T=mysql_fetch_object($s)){
echo'
<tr>
<td>'.$T->nom.'</td>
<td>'.$T->prenom.'</td>
<td><input> </td>
<td><form method="post" name="supp" action="index.php?action=confAb&nom='.$T->nom.'&prenom='.$T->prenom.'"><input name="suppr" type="submit" id="suppr" value="Supprimer"></form></td></tr></table></form>';};
?>
<?php } ?>
</div>
<div class="bottom">
<div class="left"></div>
<div class="right"></div>
<div class="middle"></div>
</div>
</div>
</div> |
Partager