-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathordered.php
More file actions
294 lines (247 loc) · 14.7 KB
/
Copy pathordered.php
File metadata and controls
294 lines (247 loc) · 14.7 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
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
<?php
session_start();
if(!isset($_SESSION['username'])){
header("Location: loginhtml.php?error=Please Login First!!");
}
?>
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Serif:wght@500&display=swap" rel="stylesheet">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Montserrat&family=Ubuntu:wght@300&display=swap"
rel="stylesheet">
<link rel="stylesheet" href="css/order.css">
<!-- <link rel="stylesheet" href="css/stylesol.css"> -->
<script src="https://kit.fontawesome.com/0a131cdcf3.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="path/to/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="K:\Ready\web\bootstrap-5.2.0\dist\css\bootstrap.css">
<link rel="canonical" href="https://getbootstrap.com/docs/5.2/examples/dropdowns/">
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.5/dist/umd/popper.min.js"
integrity="sha384-Xe+8cL9oJa6tN/veChSP7q+mnSPaj5Bcu9mPX5F5xIGE0DVittaqT5lorf0EI7Vk"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.min.js"
integrity="sha384-ODmDIVzN+pFdexxHEHFBQH3/9/vQ9uori45z4JjnFsRydbmQbmL5t1tQ0culUzyK"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js"
integrity="sha384-A3rJD856KowSb7dwlZdYEkO39Gagi7vIsF0jrRAoQmDKKtQBHUuLZ9AsSv4jD4Xa"
crossorigin="anonymous"></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-gH2yIJqKdNHPEq0n4Mqa/HGKIhSkIHeL5AyhkYV8i59U5AR6csBvApHHNl/vI1Bx" crossorigin="anonymous">
<!-- google fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Montserrat&display=swap" rel="stylesheet">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Serif:wght@500&display=swap" rel="stylesheet">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Montserrat&family=Ubuntu:wght@300&display=swap" rel="stylesheet">
<link rel="stylesheet" href="css/listingStyle.css">
<!-- <link rel="stylesheet" href="css/stylesol.css"> -->
<script src="https://kit.fontawesome.com/0a131cdcf3.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="path/to/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="K:\Ready\web\bootstrap-5.2.0\dist\css\bootstrap.css">
<link rel="canonical" href="https://getbootstrap.com/docs/5.2/examples/dropdowns/">
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.5/dist/umd/popper.min.js" integrity="sha384-Xe+8cL9oJa6tN/veChSP7q+mnSPaj5Bcu9mPX5F5xIGE0DVittaqT5lorf0EI7Vk" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.min.js" integrity="sha384-ODmDIVzN+pFdexxHEHFBQH3/9/vQ9uori45z4JjnFsRydbmQbmL5t1tQ0culUzyK" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-A3rJD856KowSb7dwlZdYEkO39Gagi7vIsF0jrRAoQmDKKtQBHUuLZ9AsSv4jD4Xa" crossorigin="anonymous"></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-gH2yIJqKdNHPEq0n4Mqa/HGKIhSkIHeL5AyhkYV8i59U5AR6csBvApHHNl/vI1Bx" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<script src="https://kit.fontawesome.com/45b5e06856.js" crossorigin="anonymous"></script>
<!-- bootstrap scripts -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.12.9/dist/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.10.2/dist/umd/popper.min.js" integrity="sha384-7+zCNj/IqJ95wo16oMtfsKbZ9ccEh31eOz1HGyDuCQ6wgnyJNSYdrPa03rtR1zdB" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.min.js" integrity="sha384-QJHtvGhmr9XOIpI6YVutG+2QOK9T+ZnN4kzFN1RtK3zEFEIsxhlmWl5/YESvpZ13" crossorigin="anonymous"></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
<title></title>
</head>
<body>
<section id="title">
<!-- Navbar -->
<nav class="navbar navbar-expand-lg navbar-dark bg-black">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarTogglerDemo03" aria-controls="navbarTogglerDemo03" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<a class="navbar-brand" href="#">
<img src="images/logo.jpg" width="40" height="40" class="d-inline-block align-top" alt="">
SolRidee</a>
<div class="collapse navbar-collapse" id="navbarTogglerDemo03">
<ul class="navbar-nav ml-auto mt-2 mt-lg-0" style="margin-right:10%;">
<li class="nav-item active">
<a class="nav-link" href="home.php"><i class="fa fa-home" aria-hidden="true"></i> Home<span class="sr-only">(current)</span></a>
</li>
<?php
if(isset($_SESSION['username'])){
?>
<li class="nav-item active">
<a class="nav-link" href="order.php"><i class="fa fa-shopping-cart" aria-hidden="true"></i> My Orders <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item active">
<a class="nav-link" href="listing.html"><i class="fa-solid fa-heart"></i>Wish List <span class="sr-only">(current)</span></a>
</li>
<?php }?>
<?php
if(!isset($_SESSION['username'])){
?>
<li class="nav-item active">
<a class="nav-link" href="sign.html"><i class="fa fa-sign-in" aria-hidden="true"></i> Register <span class="sr-only"></span></a>
</li>
<li class="nav-item active">
<a class="nav-link" href="loginhtml.php"><i class="fa-solid fa-user"></i> login <span class="sr-only">(current)</span></a>
</li>
<?php }?>
<!-- <li class="nav-item">
<a class="nav-link active" href="#cta">Book now</a>
</li> -->
<li class="nav-item active">
<a class="nav-link" href="listing.php"><i class="fa-solid fa-bookmark"></i> Book Now <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item active">
<a class="nav-link" href="contact.php"><i class="fa fa-phone" aria-hidden="true"></i> Contact us <span class="sr-only">(current)</span></a>
</li>
</ul>
<!-- <form class="form-inline my-2 my-lg-0">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
<button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
</form> -->
</div>
<?php
if(isset($_SESSION['username'])){
?>
<ul type="none">
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle active" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false" style="color:white;"><?php echo $_SESSION['username'] ; ?></a>
<div class="dropdown-menu">
<a class="dropdown-item" href="#"><?php echo $_SESSION['rollnumber'] ; ?></a>
<a class="dropdown-item" href="#">User Details</a>
<a class="dropdown-item" href="order.php">My Orders</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="logout.php">Logout</a>
</div>
</li>
</ul>
<?php } ?>
</nav>
<!-- Title -->
<!-- <div class="top">
<img class="topimg" src="images/topimg.jpg" alt="">
<div class="inside-top">
<h4>Bike Listing</h4>
<h6>Home>BikeListing</h6>
</div>
</div> -->
</section>
<section>
<h2 class="mx-5 my-4">
<?php
include('conn.php');
$c=$_SESSION['cid']+0;
// echo $_SESSION['cycleid'];
// INSERT INTO orders( amount, cid, rollnumber, cycleid) VALUES ( 250, 5,"wwe","004");
$cycidd= $_SESSION['cycleid'];
$rl=$_SESSION['rollnumber'];
$sql="INSERT INTO orders( amount, cid, rollnumber, cycleid) VALUES ( 250, $c,'$rl','003')";
$res=mysqli_query($conn,$sql);
if($res){
echo "Order Placed";
}
else{
echo "Order not placed";
}
?>
</h2>
<hr>
<div class="orderform">
<form action="ordered.php" method="post">
<div class="elem-group inlined">
<label for="checkin-date">Pick-up Date</label>
<input type="date" id="checkin-date" name="checkin" required>
</div>
<div class="elem-group inlined">
<label for="checkout-date">Drop-off Date</label>
<input type="date" id="checkout-date" name="checkout" required>
</div>
<!-- <div class="elem-group">
<label for="room-selection">Choose the type of the cycle</label>
<select id="room-selection" name="room_preference" required>
<option value="">Choose a cycle type from the List</option>
<option value="connecting">..</option>
<option value="adjoining">...</option>
<option value="adjacent">....</option>
</select>
</div> -->
<hr>
<div class=" elem-group">
<button type="submit">Book The Bike</button>
</div>
</form>
</div>
</section>
<!-- Bottom -->
<section>
<div class="bottom">
<div class="row my-5">
<div class="col-lg-6 col-md-6 col-sm-12">
<h6>ABOUT US</h6>
<div class="information">
<ul title="Information">
<li>Our Stores</li>
<li>Contact Us</li>
<li>Terms & Conditions</li>
</ul>
</div>
</div>
<div class="col-lg-6 col-md-6 col-sm-12">
<h6>Subcsribe SolRidee</h6>
<div class="row">
<div class="col">
</div>
<div class="col">
<form class="d-flex my-2" role="search">
<input class="form-control me-2" type="search" placeholder="Enter Email Address"
aria-label="Search">
</form>
<button type="button" class="btn btn1 btn-warning">Subscribe <i
class="fa-solid fa-circle-chevron-right"></i></button>
<br>
<div class="deals">
We send great deals and latest auto news to our subscribed user every week.
</div>
</div>
<div class="col">
</div>
</div>
</div>
</div>
</div>
</section>
<!-- last -->
<section>
<div class="address" style="background-color:black; padding:20px; text-align: center; color:#EAEAEA;">
<p>
<center><b>Address :</b> Dwarika Prasad Mishra Indian Institute of Information Technology Design and
Manufacturing Jabalpur, Near dumna National park, Airport Road ,Jabalpur, Madhya pradesh-482005
</center>
</p>
<div class="si">
<i class="social-icon fa-brands fa-facebook mx-2"></i>
<i class="social-icon fa-brands fa-instagram mx-2"></i>
<i class="social-icon fa-brands fa-twitter mx-2"></i>
<p>© Copyright Soleridee</p>
</div>
</div>
</div>
</section>
</body>
</html>