-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.php
More file actions
171 lines (143 loc) · 6.5 KB
/
main.php
File metadata and controls
171 lines (143 loc) · 6.5 KB
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
<?php
require('server.php');
$userName = $_SESSION['userName'];
$query_1= "SELECT * FROM users WHERE username ='$userName';";
$result_1 =mysqli_query($conn, $query_1);
$value = mysqli_fetch_assoc($result_1);
mysqli_free_result($result_1);
?>
<!DOCTYPE html>
<html>
<head>
<title>Resto-Find</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<nav class="navbar navbar-expand-md navbar-dark bg-dark fixed-top">
<a href="#" class="navbar-brand">Resto-Find</a>
<?php if(isset($_SESSION['userName'])) : ?>
<a href="#" class="navbar-brand" style ="padding-left: 2%;"><small>Hello <?php echo $value['firstName']; ?> !</small></a>
<?php endif; ?>
<button class = "navbar-toggler" data-toggle = "collapse" data-target="#menu">
<span class="navbar-toggler-icon"></span>
</button>
<div class ="collapse navbar-collapse" id = "menu">
<ul class="navbar-nav ml-auto" >
<!-- <li class="nav-item"><a href="activity.php" class = "nav-link">Activity</a></li> -->
<?php if(isset($_SESSION['userName'])) : ?>
<li class="nav-item"><a href="booking.php" class = "nav-link" >Book</a></li>
<li class="nav-item"><a href="reservation.php" class = "nav-link" >Reservations</a></li>
<li class="nav-item"><a href="gallery.php" class = "nav-link">Gallery</a></li>
<li class="nav-item"><a href="#" data-toggle="modal" data-target ="#demo" class = "nav-link">Profile</a></li>
<li class="nav-item"><a href="server.php?exit='1';" class = "nav-link">Logout</a></li>
<?php endif; ?>
<?php if(!isset($_SESSION['userName'])) : ?>
<li class="nav-item"><a href="SignIn.php" class = "nav-link" style="color:#fff;">Sign-In</a></li>
<?php endif; ?>
</ul>
</div>
</nav>
<div class="modal fade" id = "demo">
<div class ="modal-dialog">
<div class = "modal-content">
<div class = "modal-header">
<h2 class = "modal-title">Profile</h2>
<span type ='button' class = "close" data-dismiss = "modal">×</span>
</div>
<div class = "modal-body">
<table class="table table-dark">
<tbody>
<tr >
<th scope="row">Name: </th>
<td ><?php echo $value['name']; ?></td>
</tr>
<tr class="bg-primary">
<th scope="row">E-mail: </th>
<td><?php echo $value['email']; ?></td>
</tr>
<tr class="bg-danger">
<th scope="row">Username: </th>
<td><?php echo $userName; ?></td>
</tr>
</tbody>
</table>
</div>
<div class = "row" style ="padding-top: 0;padding-bottom: 1.5rem;padding-left: 1rem;">
<div class = "col-md-6 col-sm-6 col-xs-6">
<a href="editProfile.php"><button type = "button" class = "btn btn-success" >Edit Profile</button></a>
</div>
<div class = "col-md-6 col-sm-6 col-xs-6">
<a href="changePass.php"><button type = "button" class = "btn btn-success" >Change Password</button></a>
</div>
</div>
</div>
</div>
</div>
<div class= "image1">
<div class= "text">
<span class="border">
Resto-Find
</span>
</div>
</div>
<section class ="section section-light">
<h2>Find the Finest of dining spots</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</section>
<div class= "image2">
<div class= "text">
<span class="border trans">
Find Timings and schedule.
</span>
</div>
</div>
<section class ="section section-dark">
<h2>Reserve a Table</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</section>
<div class= "image3">
<div class= "text">
<span class="border trans">
Choose from Map
</span>
</div>
</div>
<section class ="section section-dark">
<h2>Cancel Anytime</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</section>
<div class= "image4">
<div class= "text">
<span class="border">
Restaurants at Arms' length
</span>
</div>
</div>
<footer style = "text-align: center; padding: 2rem 1rem; margin: auto; color: #333; background-color:#000;">
<h3>Get in Touch</h3>
<p>To book a reservation or just to connect with us:</p>
<p>Email: <strong>restofind@gmail.com</strong></p>
<p>Phone: <strong>(044) 12345678 </strong></p>
</footer>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js" integrity="sha384-smHYKdLADwkXOn1EmN1qk/HfnUcbVRZyYmZ4qpPea6sjB/pTJ0euyQp0Mk8ck+5T" crossorigin="anonymous"></script>
</body>
</html>