-
Notifications
You must be signed in to change notification settings - Fork 3
/
adminPanel.php
77 lines (55 loc) · 2.44 KB
/
adminPanel.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<?PHP
include("connect.php");
include "nav.php";
$query = " SELECT * FROM `adminpanel` order by id ASC";
$queryfire = mysqli_query($conn, $query);
$num = mysqli_num_rows($queryfire);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link rel="stylesheet" href="css/adminpanel.css">
</head>
<body>
<section class="container">
<div style="margin-top:100px ;" class="row">
<div>
<h1 class="title mb-5">Admin
<small class="text-muted">Panel</small>
</h1>
</div>
<?PHP
if ($num > 0) {
while ($products = mysqli_fetch_array($queryfire)) {
?>
<div class="col-lg-4 col-md-6 col-sm-12 mb-5" style="margin:auto;">
<form action="" method="GET">
<a style="text-decoration: none;" href="<?php echo $products['link'] ?>">
<div class="card" style="width: 18rem;margin:auto;">
<img src="<?php echo $products['images'] ?>" class="card-img-top" alt="..." height="300px">
<div class="card-body mt-3">
<h5 class="card-title text-center " style="color: tomato;"><?php echo $products['name']; ?></h5>
<p class="text-muted text-center"><?php echo $products['description']; ?></p>
</div>
</div>
</a>
</form>
</div>
<?php
}
}
?>
</div>
</section>
<script src="https://kit.fontawesome.com/d55bbcbd90.js" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
</body>
</html>
<?php
include "footer.php";
?>