-
Notifications
You must be signed in to change notification settings - Fork 0
/
allotheader.php
86 lines (84 loc) · 3.14 KB
/
allotheader.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
<?php
if (!isset($_SESSION['username'])) {
header("Location: alogin.php");
}
if (isset($_GET['logout'])) {
unset($_SESSION['username']);
session_destroy();
mysqli_close($db);
header("Location: alogin.php");
}
require("db.php");
require("allotfunctions.php");
$complaintcount = getComplantCount($db);
$requestcount = getRequestCount($db);
$suggestioncount = getSuggestionCount($db);
?>
<div class="header-body">
<!-- Card stats -->
<div class="row">
<div class="col-lg-4 col-md-6">
<div class="card card-stats mb-4 mb-xl-0">
<div class="card-body">
<div class="row">
<div class="col">
<h5 class="card-title text-uppercase text-muted mb-0">Clean Requests</h5>
<span class="h2 font-weight-bold mb-0"> <?php echo $requestcount['count(*)']; ?></span>
</div>
<div class="col-auto">
<div class="icon icon-shape bg-primary text-white rounded-circle shadow">
<i class="fas fa-chart-bar"></i>
</div>
</div>
</div>
<p class="mt-3 mb-0 text-muted text-sm">
<span class="text-success mr-2"><i class="fa fa-arrow-up"></i> <?php echo $requestcount['count(*)']; ?></span>
<span class="text-nowrap">Since last week</span>
</p>
</div>
</div>
</div>
<div class="col-lg-4 col-md-6">
<div class="card card-stats mb-4 mb-xl-0">
<div class="card-body">
<div class="row">
<div class="col">
<h5 class="card-title text-uppercase text-muted mb-0">Suggestions</h5>
<span class="h2 font-weight-bold mb-0"> <?php echo $suggestioncount['count(*)']; ?></span>
</div>
<div class="col-auto">
<div class="icon icon-shape bg-primary text-white rounded-circle shadow">
<i class="far fa-file-alt"></i>
</div>
</div>
</div>
<p class="mt-3 mb-0 text-muted text-sm">
<span class="text-success mr-2"><i class="fa fa-arrow-up"></i> <?php echo $suggestioncount['count(*)']; ?></span>
<span class="text-nowrap">Since last week</span>
</p>
</div>
</div>
</div>
<div class="col-lg-4 col-md-6">
<div class="card card-stats mb-4 mb-xl-0">
<div class="card-body">
<div class="row">
<div class="col">
<h5 class="card-title text-uppercase text-muted mb-0">Complaints</h5>
<span class="h2 font-weight-bold mb-0"> <?php echo $complaintcount['count(*)']; ?></span>
</div>
<div class="col-auto">
<div class="icon icon-shape bg-primary text-white rounded-circle shadow">
<i class="fas fa-chart-pie"></i>
</div>
</div>
</div>
<p class="mt-3 mb-0 text-muted text-sm">
<span class="text-danger mr-2"><i class="fas fa-arrow-up"></i> <?php echo $complaintcount['count(*)']; ?></span>
<span class="text-nowrap">Since last month</span>
</p>
</div>
</div>
</div>
</div>
</div>