This repository was archived by the owner on Aug 27, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdsdanhmuc.php
More file actions
50 lines (50 loc) · 2.64 KB
/
dsdanhmuc.php
File metadata and controls
50 lines (50 loc) · 2.64 KB
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
<?php
include("header-dashboard.php");
?>
<title>Danh sách danh mục SIT</title>
<div class="main-content">
<div class="page-content">
<div class="container-fluid">
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-body">
<h4 class="card-title">Danh Sách Danh Mục</h4>
<p class="card-title-desc">SIT. Bạn tài giỏi, còn tôi thì không!</p>
<a href="AddDM.html" class="btn btn-primary mr-2 w-md mb-3">
<i class="bx bx-check-double font-size-16 align-middle mr-2"></i> Thêm Danh Mục</a>
<table id="datatable" class="table table-bordered dt-responsive nowrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;">
<thead>
<tr>
<th>STT</th>
<th>Tên Danh Mục</th>
<th>Sửa</th>
</tr>
</thead>
<tbody>
<?php
$Stt= 1;
$Statement_Catalog = "SELECT * FROM catalog";
$Query_Catalog =mysqli_query($conn, $Statement_Catalog);
$Quanlity_Catalog=0;
while ($Display_Catalog = mysqli_fetch_assoc($Query_Catalog)){
echo "<tr>";
echo '<td>'.$Stt.'</td>';
echo '<td><a href="dssanpham.html?iddanhmuc='.$Display_Catalog['ID_Catalog'].'">'.$Display_Catalog['Name_Catalog'].'<a/></td>';
echo '<td><a href="EditDM.html?id='.$Display_Catalog['ID_Catalog'].'"><i class="far fa-edit"></i><a/></td>';
echo "</tr>";
$Stt++;
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php
include("footeradmin.php");
?>