-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
327 lines (253 loc) · 11.7 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
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
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
<?php
require 'core_login.php';
require 'database_connect.php';
?>
<!DOCTYPE html>
<html>
<head>
<title>Bomino's Pizza</title>
<!-- Meta tag Keywords -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8" />
<meta name="description" content="Web Development Mini-Project.">
<meta name="author" content="Abhishek Joshi, Vineet Iyer, Vishak Kodethur">
<!-- Chrome, Firefox OS and Opera -->
<meta name="theme-color" content="#OD2C54">
<!-- Windows Phone -->
<meta name="msapplication-navbutton-color" content="#OD2C54">
<!-- iOS Safari -->
<meta name="apple-mobile-web-app-status-bar-style" content="#OD2C54">
<!--whatsapp and fb-->
<meta property="og:title" content="Bomino's Pizza" />
<meta property="og:description" content="Web Development Mini-Project." />
<meta property="og:url" content="http://bominos.onlinewebshop.net/" />
<meta property="og:type" content="website" />
<meta property="og:image" content="https://abhijoshi2k.github.io/pizza-delivery/images/favicon.png" />
<meta property="og:image:type" content="image/png" />
<meta property="og:image:width" content="642" />
<meta property="og:image:height" content="642" />
<meta property="og:image:alt" content="Bomino's Pizza" />
<!-- //Meta tag Keywords -->
<!-- Bootstrap -->
<!-- CSS only -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
<!-- JS, Popper.js, and jQuery -->
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script>
<!-- CSS -->
<link rel="stylesheet" href="css/style.css">
<!-- Google Fonts -->
<!-- FontAwesome -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.14.0/css/all.css" integrity="sha384-HzLeBuhoNPvSl5KYnjx0BT+WB0QEEqLprO+NBkkk5gbc67FTaL7XIGa2w1L0Xbgc" crossorigin="anonymous">
<link rel="shortcut icon" href="images/favicon.png">
<link rel="icon" href="images/favicon.png">
<link rel="apple-touch-icon" href="images/apple-touch-icon.png">
<!-- Functions -->
<script type="text/javascript">
function menu(){
let x = document.getElementById("navbar");
if(x.style.maxHeight == '60px' || x.style.maxHeight == '' || x.style.height == '60px'){
x.style.maxHeight = " 1000px";
document.getElementById('bar1').style.transform = 'rotate(-45deg) translate(-3px,7px)';
document.getElementById('bar3').style.transform = 'rotate(45deg) translate(-3px,-7px)';
document.getElementById('bar2').style.opacity = '0';
document.getElementById('notnav').style.display = 'block';
setTimeout(function() {
x.style.transition = '';
x.style.transition = '0.5s cubic-bezier(0, 1, 0, 1)';
}, 500);
}
else
{
x.style.maxHeight = "60px";
document.getElementById('bar1').style.transform = 'rotate(0deg) translate(0px,0px)';
document.getElementById('bar3').style.transform = 'rotate(0deg) translate(0px,0px)';
document.getElementById('bar2').style.opacity = '1';
document.getElementById('notnav').style.display = 'none';
setTimeout(function() {
x.style.transition = '';
x.style.transition = '1s ease-in;';
}, 500);
}
}
function navchange() {
if(window.innerWidth > 850 && window.scrollY > 2)
{
document.getElementById('nav-logo-image').style.marginTop = '5px';
document.getElementById('nav-logo-image').style.height = '60px';
document.getElementById('navbar-ul').style.marginTop = '20px';
document.getElementById('navbar').style.height = '70px';
}
else if(window.innerWidth > 850 && window.scrollY <= 2)
{
document.getElementById('nav-logo-image').style.marginTop = '7px';
document.getElementById('nav-logo-image').style.height = '70px';
document.getElementById('navbar-ul').style.marginTop = '29px';
document.getElementById('navbar').style.height = '83px';
}
else
{
document.getElementById('nav-logo-image').style.marginTop = '6px';
document.getElementById('nav-logo-image').style.height = '48px';
document.getElementById('navbar-ul').style.marginTop = '60px';
document.getElementById('navbar').style.height = 'auto';
}
}
</script>
</head>
<body>
<nav class="position-fixed topnav" id="navbar">
<div class="nav-logo position-absolute">
<a href="index.php"><img src="images/15b78dc9-cf77-49fe-97f4-fe2b4e5fb36b_200x200.png" class="nav-logo-img" id="nav-logo-image" alt=""></a>
</div>
<div class="toggle-bars position-absolute" onclick="menu();">
<div class="bar-1 bar" id="bar1"></div>
<div class="bar-2 bar" id="bar2"></div>
<div class="bar-3 bar" id="bar3"></div>
</div>
<ul class="navbar-ul mb-0" id="navbar-ul">
<a href="index.php" class="navbar-link">
<li class="navbar-list active"><div class="navbar-link-text d-inline">Home</div></li>
</a>
<a href="menu.php" class="navbar-link">
<li class="navbar-list"><div class="navbar-link-text d-inline">Our Menu</div></li>
</a>
<a href="order.php" class="navbar-link">
<li class="navbar-list"><div class="navbar-link-text d-inline">Order Now</div></li>
</a>
<?php
if(loggedin())
{
?>
<a href="view_orders.php" class="navbar-link">
<li class="navbar-list"><div class="navbar-link-text d-inline">View Orders</div></li>
</a>
<a href="profile.php" class="navbar-link">
<li class="navbar-list"><div class="navbar-link-text d-inline">Profile</div></li>
</a>
<a href="logout.php" class="navbar-link" id="reg-link">
<li class="navbar-list" id="reg-list"><div class="navbar-link-text d-inline">Logout</div></li>
</a>
<?php
}
else
{
?>
<a href="login.php" class="navbar-link" id="reg-link">
<li class="navbar-list" id="reg-list"><div class="navbar-link-text d-inline">Login</div></li>
</a>
<?php
}
?>
</ul>
</nav>
<div id="notnav" class="position-fixed h-100 w-100" onclick="menu();"></div>
<!--Header-->
<div class="header">
<div class="container">
<h1 class="pt-5 pb-3">Get amazing pizzas at extremely low price!</h1>
<p>Make your day by ordering our fantastic pizzas right at your doorstep.</p>
<p>What are you waiting for?</p>
<div class="pb-5">
<div class="get-started bg-white" onclick="location.href = 'http://bominos.onlinewebshop.net/order.php';"><h4>Order Now</h4><button class = "yellow-button"><i class = "fa fa-angle-right"></i></button></div>
</div>
</div>
</div>
<!--Header Ends-->
<!-- CARDS Section -->
<div class="indexsectionbg">
<div class="container">
<h1 class="text-white text-center pb-5"><b>Our Speciality!</b></h1>
<div class="row text-white">
<?php
$query = "SELECT * FROM menu WHERE included = 1";
$query_run = mysqli_query($connect,$query);
$count = 0;
while($row = mysqli_fetch_assoc($query_run))
{
if($count<4)
{
$count++;
$arr = explode(", ",$row['ingredients']);
$more = count($arr) - 1;
?>
<div class="col-md-3 col-6">
<img src="<?php echo $row['img_src']; ?>" alt="" class="w-100">
<b><h4 class="text-center home-menu-title pt-3"><?php echo $row['item']; ?></h4>
<p class="text-center home-menu-desc">
<?php echo $arr[0]; ?> and <?php echo $more; ?> more
</p></b>
</div>
<?php
}
}
?>
</div>
<p class="text-center"><a href="menu.php" class="btn mt-3 home-menu-btn btn-lg">View Full Menu</a></p>
</div>
</div>
<footer class="footer pt-4 pb-4">
<div class="container text-white">
<div class="row">
<div class="col-lg-4 col-sm-6 col-12">
<h3 class="text-center">Our Branches</h3>
<p class="text-center">
Mumbai
<br>
Chennai
<br>
Bangalore
</p>
</div>
<div class="col-lg-4 col-sm-6 col-12 pt-sm-0 pt-3">
<h3 class="text-center">Reach Out to Us</h3>
<p class="text-center pt-2">
<i class="fas fa-phone-alt"></i> 9876987699
</p>
<p class="text-center">
<i class="fas fa-envelope"></i> contact@bominos.com
</p>
</div>
<div class="col-lg-4 col-12 pt-lg-0 pt-3">
<h3 class="text-center">Our Safety Norms</h3>
<p class="text-center">
All our Employees Wear Masks
<br>
Contact-less Delivery
<br>
Temperature checking of all employees
</p>
</div>
</div>
</div>
</footer>
<!-- //CARDS Section -->
<!-- //footer section ends -->
<script type="text/javascript">
window.onresize = function() {
let x = document.getElementById("navbar");
navchange();
if(window.innerWidth > 850)
{
x.style.maxHeight = "1000px";
document.getElementById('bar1').style.transform = 'rotate(0deg) translate(0px,0px)';
document.getElementById('bar3').style.transform = 'rotate(0deg) translate(0px,0px)';
document.getElementById('bar2').style.opacity = '1';
document.getElementById('notnav').style.display = 'none';
}
else
{
x.style.maxHeight = "60px";
document.getElementById('bar1').style.transform = 'rotate(0deg) translate(0px,0px)';
document.getElementById('bar3').style.transform = 'rotate(0deg) translate(0px,0px)';
document.getElementById('bar2').style.opacity = '1';
document.getElementById('notnav').style.display = 'none';
}
};
window.onscroll = function() {
navchange();
}
</script>
</body>
</html>