-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlisteCategorie.php
61 lines (61 loc) · 3.01 KB
/
listeCategorie.php
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
<?php
include_once("./includes.php");
entete("Panel Catégorie");
verif_connexion();
?>
<div class="container">
<div class="row">
<div class="span12">
<ul class="nav nav-tabs">
<li><a href="./listeCategorie.php">Listes</a></li>
<li><a href="./addCategorie.php">Ajouter une catégorie</a></li>
</ul>
<div class="well">
<table class="table table-bordered table-condensed">
<thead class="row">
<tr>
<th class="1"><center>ID </center></th>
<th class="span3">Nom</th>
<th class="span6">Description</th>
<th class="span2"><center>Actions</center></th>
</tr>
</thead>
<tbody>
<?php
$req_connexion=query("select * from categorie");
while ($row = mysql_fetch_array($req_connexion, MYSQL_NUM)) {
echo "<tr><td>".$row[0]."</td>
<td>".$row[1]."</td>
<td>".$row[2]."</td>
<td><center>
<a class='btn' href='./editCategorie.php?id=".$row[0]."'>
<i class='icon-pencil'></i>
</a>
<div id='SuppressionCategorie".$row[0]."' class='modal hide fade'>
<div class='modal-header'>
<button class='close' data-dismiss='modal'>×</button>
<h3>Suppression d une catégorie</h3>
</div>
<div class='modal-body'>
<h5>Etes-vous sur de vouloir supprimer la catégorie ".$row[1]." ?</h5>
</div>
<div class='modal-footer'>
<a href='deleteCategorie.php?id=".$row[0]."' class='btn btn-primary'>Oui</a>
<a href='#' class='btn btn-warning' data-dismiss='modal'>Non</a>
</div>
</div>
<a data-toggle='modal' href='#SuppressionCategorie".$row[0]."' class='btn btn-danger'>
<i class='icon-remove'></i>
</a>
</center></td>
</tr>";
}
?>
</tbody>
</table>
</div>
</div>
</div>
<?php
pied();
?>