-
Notifications
You must be signed in to change notification settings - Fork 0
/
Admin_dash.php
138 lines (109 loc) · 4.2 KB
/
Admin_dash.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<?php
include("connection.php");
include("Inc_admin_dash.php");
?>
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css" integrity="sha384-AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p" crossorigin="anonymous"/>
<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>Admin Dashboard</title>
</head>
<body>
<div id="page-wrapper" class="gray-bg dashbard-1">
<div class="content-main">
<!--banner-->
<div class="banner">
<h2>
<a href="index.php">Home</a>
<i class="fa fa-angle-right"></i>
<span>Dashboard</span>
</h2>
</div>
<div class="content-top">
<div class="col-md-4 ">
<div class="content-top-1">
<div class="col-md-6 top-content">
<h5>Category</h5>
<!-- Php Start-->
<?php
$query = "SELECT category_id FROM category ORDER BY category_id";
$query_run = mysqli_query($con,$query);
$row = mysqli_num_rows($query_run);
echo '<label>'.$row.'</label>';
?>
<!-- End Here -->
</div>
<div class="col-md-6 top-content1">
<span style="font-size:50px;color:brown; margin-top:10px" class="far fa-boxes"></span>
</div>
<div class="clearfix"> </div>
</div>
<div class="content-top-1">
<div class="col-md-6 top-content">
<h5>Products</h5>
<!-- Php Start-->
<?php
$query = "SELECT id FROM products ORDER BY id";
$query_run = mysqli_query($con,$query);
$row = mysqli_num_rows($query_run);
echo '<label>'.$row.'</label>';
?>
<!-- End Here -->
</div>
<div class="col-md-6 top-content1">
<span style="font-size:50px;color:brown; margin-top:10px" class="fab fa-product-hunt"></span>
</div>
<div class="clearfix"> </div>
</div>
<div class="content-top-1">
<div class="col-md-6 top-content">
<h5>Users</h5>
<!-- PHP Start -->
<?php
$query = "SELECT id FROM user_info ORDER BY id";
$query_run = mysqli_query($con,$query);
$user = mysqli_num_rows($query_run);
echo '<label>'.$user.'</label>';
?>
<!-- End Here -->
</div>
<div class="col-md-6 top-content1">
<span style="font-size:50px;color:brown; margin-top:10px" class="far fa-users"></span>
</div>
<div class="clearfix"> </div>
</div>
</div>
<div class="col-md-8 content-top-2">
<div class="content-top-1">
<div class="col-md-6 top-content">
<h5>Total Brands</h5>
<!-- PHP Start -->
<?php
$query = "SELECT brand_id FROM brand ORDER BY brand_id";
$query_run = mysqli_query($con,$query);
$brand = mysqli_num_rows($query_run);
echo '<label>'.$brand.'</label>';
?>
<!-- End Here -->
</div>
<div class="col-md-6 top-content1">
<span style="font-size:50px; color:brown; margin-top:10px" class="fad fa-box-full"></span>
</div>
<div class="clearfix"> </div>
</div>
<div class="col-md-8 content-top-2">
<div class="content-top-1">
<div class="col-md-6 top-content">
<h5>Total Orders</h5>
<label>13</label>
</div>
<div class="col-md-6 top-content1">
<span style="font-size:50px;color:brown;margin-left:20px" class="fas fa-shopping-bag"></span>
</div>
<div class="clearfix"> </div>
</div>
</body>
</html>