-
Notifications
You must be signed in to change notification settings - Fork 11
/
managerlogin.php
157 lines (128 loc) · 5.79 KB
/
managerlogin.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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<?php
include('login_m.php'); // Includes Login Script
if(isset($_SESSION['login_user1'])){
header("location: myrestaurant.php"); //Redirecting to myrestaurant Page
}
?>
<!DOCTYPE html>
<html>
<head>
<title> Manager Login | Food Exploria </title>
</head>
<link rel="stylesheet" type = "text/css" href ="css/managerlogin.css">
<link rel="stylesheet" type = "text/css" href ="css/bootstrap.min.css">
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<body>
<!--Back to top button..................................................................................-->
<button onclick="topFunction()" id="myBtn" title="Go to top">
<span class="glyphicon glyphicon-chevron-up"></span>
</button>
<!--Javacript for back to top button....................................................................-->
<script type="text/javascript">
window.onscroll = function()
{
scrollFunction()
};
function scrollFunction(){
if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
document.getElementById("myBtn").style.display = "block";
} else {
document.getElementById("myBtn").style.display = "none";
}
}
function topFunction() {
document.body.scrollTop = 0;
document.documentElement.scrollTop = 0;
}
</script>
<nav class="navbar navbar-inverse navbar-fixed-top navigation-clean-search" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#myNavbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.php">Food Exploria</a>
</div>
<div class="collapse navbar-collapse " id="myNavbar">
<ul class="nav navbar-nav">
<li ><a href="index.php">Home</a></li>
<li><a href="aboutus.php">About</a></li>
<li><a href="contactus.php">Contact Us</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="#" class="dropdown-toggle active" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><span class="glyphicon glyphicon-user"></span> Sign Up <span class="caret"></span> </a>
<ul class="dropdown-menu">
<li> <a href="customersignup.php"> User Sign-up</a></li>
<li> <a href="managersignup.php"> Manager Sign-up</a></li>
</ul>
</li>
<li><a href="#" class="dropdown-toggle active" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><span class="glyphicon glyphicon-log-in"></span> Login <span class="caret"></span></a>
<ul class="dropdown-menu">
<li> <a href="customerlogin.php"> User Login</a></li>
<li> <a href="managerlogin.php"> Manager Login</a></li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
<div class="container">
<div class="jumbotron">
<h1>Hi Manager,<br> Welcome to <span class="edit"> FoodExploria </span></h1>
<br>
<p>Kindly LOGIN to continue.</p>
</div>
</div>
<div class="container" style="margin-top: 4%; margin-bottom: 2%;">
<div class="col-md-5 col-md-offset-4">
<label style="margin-left: 5px;color: red;"><span> <?php echo $error; ?> </span></label>
<div class="panel panel-primary">
<div class="panel-heading"> Login </div>
<div class="panel-body">
<form action="" method="POST">
<div class="row">
<div class="form-group col-xs-12">
<label for="username"><span class="text-danger" style="margin-right: 5px;">*</span> Username: </label>
<div class="input-group">
<input class="form-control" id="username" type="text" name="username" placeholder="Username" required="" autofocus="">
<span class="input-group-btn">
<label class="btn btn-primary"><span class="glyphicon glyphicon-user" aria-hidden="true"></label>
</span>
</span>
</div>
</div>
</div>
<div class="row">
<div class="form-group col-xs-12">
<label for="password"><span class="text-danger" style="margin-right: 5px;">*</span> Password: </label>
<div class="input-group">
<input class="form-control" id="password" type="password" name="password" placeholder="Password" required="">
<span class="input-group-btn">
<label class="btn btn-primary"><span class="glyphicon glyphicon-lock" aria-hidden="true"></span></label>
</span>
</div>
</div>
</div>
<div class="row">
<div class="form-group col-xs-4">
<button class="btn btn-primary" name="submit" type="submit" value=" Login ">Submit</button>
</div>
</div>
<label style="margin-left: 5px;">or</label> <br>
<label style="margin-left: 5px;"><a href="managersignup.php">Create a new account.</a></label>
</form>
</div>
</div>
</div>
</div>
</body>
<footer class="container-fluid bg-4 text-center">
<br>
<p> Food Exploria 2017 | © All Rights Reserved </p>
<br>
</footer>
</html>