-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathindex.php
117 lines (89 loc) · 2.8 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
<?php
session_start();
include('functions.php');
include('connection.php');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<!-- common head content -->
<?php require('includes/head.php'); ?>
<title>Home's Magic | HOME</title>
</head>
<body>
<div class="page-container">
<!-- Page Main Content -->
<div class="content-wrap">
<!-- Main Banner -->
<div class="banner text-center">
<div class="banner-content">
<h1 id="head-text">Home Magic</h1>
<h2 style="font-family: 'Charmonman', cursive;">
"ghar jaisa khaana"
now at your click
</h2>
<div class="buttons">
<?php
// if user has not logged in, show signup and signin buttons
if (!isset($_SESSION['cust_log_id'])) {
echo "
<button class='btn btn-outline-primary' data-toggle='modal' data-target='#signupModal'>
SIGN UP
</button>
<button class='btn btn-outline-success' data-toggle='modal' data-target='#signinModal'>
SIGN IN
</button>";
}
// else show user name and logout buttons -->
else {
echo "
<h3>Hello, ".$_SESSION['cust_log_fname']." ".$_SESSION['cust_log_lname']."</h3>
<button class='btn btn-outline-danger' onclick='logout()'>
LOGOUT
</button>";
}
?>
</div>
</div>
<!-- Scroll down animation arrow -->
<div id="scroll-down"></div>
</div>
<!-- Main Banner ends -->
<!-- Locality -->
<div id="locality" class="container-fluid headings text-center">
<i class="fas fa-store"></i>
<span>Search by LOCALITY</span>
</div>
<div class="container">
<div class="row cities">
<?php getCity(); ?>
</div>
</div>
<!-- Locality ends -->
<!-- Cuisine -->
<div class="container-fluid headings text-center">
<i class="fas fa-utensils"></i>
<span>Search by CUISINE</span>
</div>
<div class="container">
<div class="row cuisines">
<?php getCuisine(); ?>
</div>
</div>
<!-- Cuisine ends -->
</div>
<!-- Footer -->
<?php require('includes/footer.php'); ?>
</div>
<!-- modal for Sign Up-->
<?php require('includes/signupModal.php'); ?>
<!-- modal for Sign In -->
<?php require('includes/signinModal.php'); ?>
<!-- Common Custom Script -->
<script type="text/javascript" src="js/common.js"></script>
<!-- JavaScript plugin for Banner Typewriter heading -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/TypewriterJS/1.0.0/typewriter.min.js"></script>
<!-- Page specific Custom Script -->
<script src=js/index.js></script>
</body>
</html>