forked from broxzhang/groceryApp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbackstoreMain.php
62 lines (52 loc) · 1.62 KB
/
backstoreMain.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
<?php
session_start();
//on the second page you check if that session is true, else redirect to the login page
if($_SESSION['loggedIn']){
}
//allow
else{
//redirect to the login page
header('Refresh:1;url=index.php');
// header('Location: /index.php');
}
?>
<!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>Concordia Store</title>
<link rel="stylesheet" type="text/css" href="style/backStore.css">
</head>
<body>
<h1>Back Store Mangement</h1>
<div class="navbar">
<a href="index.php">Home</a>
<a href="backstoreProducts/backStoreProductsList.php">Product List</a>
<a href="backStoreUserList/backStoreUserList.php">User List</a>
<a href="backstoreOrder/backStoreOrderList.php">Order List</a>
<div class="subnav">
<button class="subnavbtn">About <i class="fa fa-caret-down"></i></button>
<div class="subnav-content">
<a href="#company">Company</a>
<a href="#team">Team</a>
<a href="#">Careers</a>
<a href="#">HR</a>
</div>
</div>
<a href="#contact">Contact</a>
<?php
if (isset($_SESSION['adminname'])) {
$admin2 = $_SESSION['adminname'];
echo "<h2 align='left'> <font color= #red font face='mambo' size='5pt'>
$admin2 is logged in</font> </h2>";
}
?>
</div>
<!-- editing from here -->
</body>
<footer>
all rights reserved.
</footer>
</html>