-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
97 lines (96 loc) · 4.39 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<!DOCTYPE>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Ahl's Cake</title>
<link href="css/jquery.toastmessage.css" rel="stylesheet" type="text/css">
<link href="css/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="wrapper">
<div class="main">
<div class="header">
<div class="banner-1"> </div>
</div>
<div class="mid">
<div class="mid-left">
<h2 class="gap-2">Menu</h2>
<ul class="left-nav">
<li><a href="index.html">Home</a></li>
<li><a href="modules/view_all_products/">View Products</a></li>
<li><a href="#">Order Online</a></li>
<li><a href="#">Contact</a></li>
<li><a href="#">About Us</a></li>
</ul>
<?php
session_start();
if(!isset($_SESSION["role"])){
echo "<h2 class=\"gap-2\">Login</h2>
<ul class=\"left-nav\">
<li>";
include("modules/login/index.php");
echo "<li><a href=\"modules/sign_up/\">Sign Up</a></li>";
echo "</li>
</ul>";
}
else{
echo "<h2 class=\"gap-2\">Employee</h2>
<ul class=\"left-nav\">";
if($_SESSION["role"]=="owner"){
echo "<li><a href=\"modules/add_employee/\">Add Employee</a></li>";
}
if($_SESSION["role"]=="employee" || $_SESSION["role"]=="owner"){
echo "<li><a href=\"modules/income_graphs/\">Income Graphs</a></li>
<li><a href=\"modules/income_reports/\">Income Reports</a></li>
<li><a href=\"modules/inventory_system/\">Inventory System</a></li>
<li><a href=\"modules/add_product\">Add Product</a></li>
<li><a href=\"modules/delete_product\">Delete Product</a></li>";
}
echo "</ul>";
echo "<ul class=\"left-nav\"><li><a href=\"modules/logout/index.php\">Logout</a></li></ul>";
}
?>
</div>
<div class="mid-right">
<h1 class="gap-1">Welcome to our website</h1>
<p class="txt-1"> <strong>Lorem ipsum</strong> dolor sit amet,
consectetur adipiscing elit. Nam eget tellus eget mauris varius
facilisis. Sed neque erat, ultrices id ultricies at, viverra a ante.
Class aptent taciti sociosqu ad litora torquent per conubia nostra, per
inceptos himenaeos. Pellentesque id est blandit ante feugiat dignissim
ac eu neque. Suspendisse quis aliquam urna. Morbi eget augue ac libero
tempus consequat. Sed et enim erat. In hac habitasse platea dictumst.
Cras elit velit, fringilla vel fermentum nec, ullamcorper quis tortor. </p>
<p class="txt-1"> <strong>Praesent adipiscing</strong> ipsum eget
metus tempus nec porttitor felis sollicitudin. Cras scelerisque metus
in elit tincidunt interdum. Aenean placerat justo eu sem gravida vel
placerat enim commodo. Integer condimentum venenatis orci, tincidunt
venenatis arcu rutrum vel. Donec nibh eros, commodo eu dapibus vel,
aliquet convallis sapien. Aliquam erat volutpat. Suspendisse vestibulum
adipiscing blandit. Vestibulum ullamcorper condimentum erat, eu
dignissim risus elementum vel. Maecenas elementum aliquam accumsan.
Nunc pellentesque facilisis est eget commodo. Integer sagittis mi a
lacus scelerisque eget rhoncus nisi vehicula. </p>
<p class="txt-1"> <strong>Vestibulum ut neque</strong> lorem, vitae
luctus leo. Praesent interdum sapien sed lectus vehicula id auctor
dolor vulputate. Curabitur ut lectus est, molestie vestibulum mi. Cum
sociis natoque penatibus et magnis dis parturient montes, nascetur
ridiculus mus. Ut metus metus, varius sed dictum eget, lacinia nec dui.
Etiam interdum volutpat nisl, nec semper tortor interdum et. Curabitur
lacus ipsum, laoreet porttitor iaculis pharetra, dictum sit amet purus.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent et
nulla a diam pharetra laoreet. Etiam purus mi, fermentum nec varius a,
vulputate sit amet erat. Vivamus rutrum nunc eget arcu vehicula semper.
</p>
</div>
</div>
<div class="footer">
<p class="copyright">© COPYRIGHT 2013 ALL RIGHTS RESERVED</p>
</div>
</div>
</div>
</body>
<script type="text/javascript" src="js/script.js"></script>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script src="js/jquery.toastmessage.js" type="text/javascript"></script>
</html>