-
Notifications
You must be signed in to change notification settings - Fork 1
/
Profile.php
197 lines (155 loc) · 6.35 KB
/
Profile.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
<?php
session_start();
include('connect.php');
$name = $_SESSION['username'];
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<!-- Favicons -->
<link href="assets1/img/favicon.png" rel="icon">
<link href="assets1/img/apple-touch-icon.png" rel="apple-touch-icon">
<link href="assets/img/favicon.png" rel="icon">
<link href="assets/img/apple-touch-icon.png" rel="apple-touch-icon">
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i|Nunito:300,300i,400,400i,600,600i,700,700i|Poppins:300,300i,400,400i,500,500i,600,600i,700,700i" rel="stylesheet">
<!-- Vendor CSS Files -->
<link href="assets/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="assets/vendor/bootstrap-icons/bootstrap-icons.css" rel="stylesheet">
<link href="assets/vendor/aos/aos.css" rel="stylesheet">
<link href="assets/vendor/remixicon/remixicon.css" rel="stylesheet">
<link href="assets/vendor/swiper/swiper-bundle.min.css" rel="stylesheet">
<link href="assets/vendor/glightbox/css/glightbox.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<!-- Template Main CSS File -->
<link href="assets/css/style.css" rel="stylesheet">
<style>
.conta{
height:240px;
width:600px;
border:5px solid black;
}
.prfile{
margin:10px;
text-decoration:none;
list-style-type: none;
width:400px;
height:35px;
padding:5px;
font-weight:bold;
font-size:1.2rem;
}
.prfile1{
margin:10px;
text-decoration:none;
list-style-type: none;
font-size:1.2rem;
width:100px;
height:35px;
padding:5px;
font-weight:bold;
}
</style>
</head>
<body>
<header id="header" class="header fixed-top">
<div class="container-fluid container-xl d-flex align-items-center justify-content-between">
<style>#header{
background-color: #ffffff;
} </style>
<a href="index.html" class="logo d-flex align-items-center">
<img src="" alt="" >
<span>VR</span>
</a>
<nav id="navbar" class="navbar">
<ul>
<li><a class="nav-link scrollto active" href="index1.php">Home</a></li>
<li><a class="nav-link scrollto" href="NewReserve.php">Reservation</a></li>
<li><a class="nav-link scrollto" href="onlinemenu.php">Order</a></li>
<li><a class="nav-link scrollto" href="cat_request.php">Contact</a></li>
<li><a class="nav-link scrollto" href="about.html"> About Us</a></li>
<li><a class="nav-link scrollto" href="listmenu.php">Menu</a></li>
<li class="dropdown"><a href=""><span>
<i class="bi bi-list mobile-nav-toggle"></i> <?php echo $_SESSION['username']; ?> </span> <i class="bi bi-chevron-down"></i></a>
<ul>
<li><a href="profile2.php"> Profile</a>
<li><a href="profile.php">Reservations</a></li>
<li><a href="test23.php">Your Order </a></li>
<li><a href="logout.php"> Logout</a></li>
</li>
</ul>
</li>
</ul>
<i class="bi bi-list mobile-nav-toggle"></i>
</nav><!-- .navbar -->
</div>
</header><!-- End Header -->
<br>
<br>
<section id="hero" class="hero d-flex flex-column align-items-center">
<?php
include('connect.php');
$name = $_SESSION['username'];
$sql = "SELECT `ID`, `username`, `Fullname`, `TableNo`, `CustomerNo`, `Date` , `Slot` FROM `h_reservation` WHERE username = '$name'";
$result = mysqli_query($conn,$sql)
?>
<br>
<br><br><br><br>
<h2 >My Reservation</h2>
<table>
-<table class="table">
<thead class="table table-dark table-striped">
<tr>
<th scope="col">ID</th>
<th scope="col">Username</th>
<th scope="col">Name</th>
<th scope="col">No of Table</th>
<th scope="col">No of Customer</th>
<th scope="col">Date</th>
<th scope="col">Slot</th>
<th scope="col"></th>
<th scope="col"></th>
</tr>
</thead>
<?php
while($rows = mysqli_fetch_assoc($result))
{
?>
<tbody class="table">
<tr>
<td><?php echo $rows['ID']; ?></td>
<td><?php echo $rows['username']; ?></td>
<td><?php echo $rows['Fullname']; ?></td>
<td><?php echo $rows['TableNo']; ?></td>
<td><?php echo $rows['CustomerNo']; ?></td>
<td><?php echo $rows['Date']; ?></td>
<td><?php echo $rows['Slot']; ?></td>
<td>
<form action='addcart.php' method='POST'>
<button class='btn btm-sm btn-outline-danger' type="submit" name="LOGIN">MENU</button>
<input type='hidden' name='Item' value='<?php echo $rows['ID'];?>'>
</form>
</td>
<td>
<form action='reservehandle.php' method='POST'>
<button name='Remove_Item' class='btn btm-sm btn-outline-danger'>REMOVE</buttton>
<input type='hidden' name='Item' value='<?php echo $rows['ID'];?>'>
</form>
</td>
</tr>
</tbody>
<?php
}
?>
</table>
</section>
</body>
</html>