-
Notifications
You must be signed in to change notification settings - Fork 0
/
home1.php
executable file
·214 lines (149 loc) · 5.48 KB
/
home1.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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
<?php
require_once("config.php");
session_start();
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<!-- here double curly helps to pass a variable -->
<title>FOOD HUNTERS</title>
<meta name="viewport" content="width=device-width,
initial-scale=1,shrink-to-fit=no">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="css/homestyle.css">
<link rel="stylesheet" href="css/slideshowstyle.css">
</head>
<body>
<h1 id="header"><b><i>FOOD HUNTERS</i></b></h1>
<!-- slide show start -->
<div class="slideshow-container">
<div class="mySlides fade">
<div class="numbertext">1 / 7</div>
<img src="images/cake.jpg" style="width:100%">
</div>
<div class="mySlides fade">
<div class="numbertext">2 / 7</div>
<img src="images/coffee.jpg" style="width:100%">
</div>
<div class="mySlides fade">
<div class="numbertext">3 / 7</div>
<img src="images/pizza.jpg" style="width:100%">
</div>
<div class="mySlides fade">
<div class="numbertext">4 / 7</div>
<img src="images/saslik.jpg" style="width:100%">
</div>
<div class="mySlides fade">
<div class="numbertext">5 / 7</div>
<img src="images/sharma.jpg" style="width:100%">
</div>
<div class="mySlides fade">
<div class="numbertext">6 / 7</div>
<img src="images/pasta.jpg" style="width:100%">
</div>
<div class="mySlides fade">
<div class="numbertext">7 / 7</div>
<img src="images/khicuri.jpg" style="width:100%">
</div>
</div>
<br>
<div style="text-align:center">
<span class="dot"></span>
<span class="dot"></span>
<span class="dot"></span>
<span class="dot"></span>
<span class="dot"></span>
<span class="dot"></span>
<span class="dot"></span>
</div>
<script>
var slideIndex = 0;
showSlides();
function showSlides() {
var i;
var slides = document.getElementsByClassName("mySlides");
var dots = document.getElementsByClassName("dot");
for (i = 0; i < slides.length; i++) {
slides[i].style.display = "none";
}
slideIndex++;
if (slideIndex > slides.length) {slideIndex = 1}
for (i = 0; i < dots.length; i++) {
dots[i].className = dots[i].className.replace(" active", "");
}
slides[slideIndex-1].style.display = "block";
dots[slideIndex-1].className += " active";
setTimeout(showSlides, 3000); // Change image every 2 seconds
}
</script>
<!-- slide show ends -->
<!-- form start -->
<div class="sign_in_style">
<h1 align="center">sign in</h1>
<form class="" action="sign_in.php" method="post">
<label for="name" style="color: #404040;">Name</label><br>
<input class="form-control" type="text" name="user_name" value="" style="color:black; width: 100%;" placeholder="Enter Name" required>
<label for="password" style="color: #404040;">password</label><br>
<input class="form-control" type="password" name="user_password" value="" style="color:black; width: 100%;" placeholder="Enter password" required>
<br>
<input type="submit" name="submit" value="log in" style="color:#404040;" class="btn btn-light btn-md">
<br>
<br>
<div class="w3-show-inline-block">
<div class="w3-bar">
<p style="color:#404040; font-family:"Comic Sans MS", cursive, sans-serif; font-size:50px;"><b>New here?Then</b></p>
<a href="#myModal1" style=""><b><i><u>Register</u></i></b></a>
</div>
</div>
<br>
<br>
<p style="color:#404040; font-family:"Comic Sans MS", cursive, sans-serif; font-size:50px;"><b>Want to login as Admin?</b></p>
<div style="float:right">
<a data-toggle="modal" href="#myModal2"><b><i><u>Click here!</u></i></b></a>
</div>
</form>
<?php
if(isset($_GET['value_sign_in'])){
echo '<div class="alert alert-danger">
<strong>wrong password!</strong> try again
</div>';
}
?>
</div><br><br>
<!-- form ends -->
<!-- myModal1 starts -->
<div class="modal fade" id="myModal2" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Admin login</h4>
</div>
<div class="modal-body">
<h1 align="center">Admin sign in</h1>
<form class="" action="admin_sign_in.php" method="post">
<label for="name" style="color:white;">Name</label><br>
<input class="form-control" type="text" name="user_name" value="" style="color:black; width: 100%;" placeholder="Enter Name" required>
<label for="password" style="color:white;">password</label><br>
<input class="form-control" type="password" name="user_password" value="" style="color:black; width: 100%;" placeholder="Enter password" required>
<br>
<input type="submit" name="submit" value="log in" style="color:black;">
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- myModal1 ends -->
<div class="container about">
<button style="margin-left: 200px;" type="button" class="btn btn-info button_style" data-toggle="collapse" data-target="#demo">about</button>
<div id="demo" class="collapse transbox">
this is a website on rajshahi restaurants
</div>
</div>
</body>
</html>