-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
79 lines (63 loc) · 2.36 KB
/
index.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
<?php
session_start();
if (!isset($_SESSION['loggedIN'])) {
header('Location: login.php');
exit();
}
?>
<html>
<head>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.3.1/dist/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.4/Chart.js"></script>
</head>
<body>
<header class="p-3 bg-dark text-white">
<div class="container">
<div class="d-flex flex-wrap align-items-center justify-content-center justify-content-lg-start">
<a href="/" class="d-flex align-items-center mb-2 mb-lg-0 text-white text-decoration-none">
<svg class="bi me-2" width="40" height="32" role="img" aria-label="Bootstrap">
<use xlink:href="#bootstrap"></use>
</svg>
</a>
<ul class="nav col-12 col-lg-auto me-lg-auto mb-2 justify-content-center mb-md-0">
<li><a href="index.php" class="nav-link px-2 text-secondary">Home</a></li>
<li><a href="products.php" class="nav-link px-2 text-white">Products</a></li>
<li><a href="orders.php" class="nav-link px-2 text-white">Invoice</a></li>
<li><a href="users.php" class="nav-link px-2 text-white">Users</a></li>
<li><a href="logout.php" class="btn btn-danger">Log Out</a></li>
</ul>
<form class="col-12 col-lg-auto mb-3 mb-lg-0 me-lg-3">
<input type="search" class="form-control form-control-dark" placeholder="Search..." aria-label="Search">
</form>
<div class="text-end">
<button type="button" class="btn btn-outline-light me-2">Search</button>
</div>
</div>
</div>
</header>
<div class="container" style="padding-top:5%">
<div class="row">
<div class="col-md-6">
<h5> Top grossing items </h5>
<canvas id="myChart" style="width:100%;"></canvas>
</div>
<div class="col-md-6">
<h5> User signups per month</h5>
<canvas id="UserSignups" style="width:100%;"></canvas>
</div>
</div>
<div class="row" style="padding-top:5%;">
<div class="col-md-6">
<h5> Gross income per month </h5>
<canvas id="MonthlySales" style="width:100%;"></canvas>
</div>
<div class="col-md-6">
<h5> Orders Per Month</h5>
<canvas id="OrdersMonthly" style="width:100%;"></canvas>
</div>
</div>
</div>
</body>
<script src="javascript/homepageanayltics.js"></script>
</script>
</html>