-
Notifications
You must be signed in to change notification settings - Fork 0
/
userselectresitems.html
289 lines (258 loc) · 12.9 KB
/
userselectresitems.html
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
<!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">
<!-- Firease -->
<script src="https://www.gstatic.com/firebasejs/9.0.2/firebase-app-compat.js"></script>
<script src="https://www.gstatic.com/firebasejs/9.0.2/firebase-auth-compat.js"></script>
<script src="https://www.gstatic.com/firebasejs/9.0.2/firebase-firestore-compat.js"></script>
<script src="https://www.gstatic.com/firebasejs/9.0.2/firebase-storage-compat.js"></script>
<!-- Bootstrap icon -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css">
<!-- Css Styling -->
<link rel="stylesheet" href="./css/navbar.css" />
<link rel="stylesheet" href="./css/userhome.css">
<link rel="stylesheet" href="./css/userselectresitems.css">
<link rel="stylesheet" href="./css/loader.css">
<!-- Bootstrap V.5.0 -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous" />
<link rel="icon" href="./images/pandaicon.png">
<title>Food delivery in Pakistan | Foodpanda</title>
</head>
<body onload="showResAllItems();">
<!-- PHONE Number Authentication -->
<!-- <input type="text" id="userOrderNum">
<button onclick="phoneauth()">Send Code</button>
<div id="recaptcha-container"></div>
<input type="text" id="vericode">
<button onclick="verify()">vericode Code</button> -->
<div id="loader" style="display: none;">
<div class="loader3">
<span></span>
<span></span>
</div>
</div>
<!-- Navbar -->
<div class="nav">
<input type="checkbox" id="nav-check">
<div class="nav-header">
<div class="nav-title">
<img src="./images/foodpanda-c.png" width="190px" alt="" srcset="">
</div>
</div>
<div class="nav-btn">
<label for="nav-check">
<span></span>
<span></span>
<span></span>
</label>
</div>
<div class="nav-links">
<a href="./userhome.html">Home</a>
<a href="" onclick="logout()">
<i class="bi bi-person-circle nav-icon"></i>LOGOUT</a>
<a href="./userDashboard.html"><i class="bi bi-cart4 nav-icon"></i></a>
</div>
</div>
<div class="nav-bottom">
<p class="text-center head-resName" id="resName"></p>
<p class="text-white text-center shadow-remove borderradius-remove add-button">
Your Current Location <i class="bi bi-geo-alt" style="font-size: 19px;"></i>
</p>
</div>
<!-- ------------Navbar End----------- -->
<!-- Head -->
<div class="main-detail">
<div class="mainContent">
<div class="main-itemsimage">
<img class="img-fluid" id="mainHeaderImage" alt="">
</div>
<div class="main-info">
<div class="info-nameNicon w-100 fd-row">
<h2 class="main-infoname" id="mainResName"></h2>
<h3 class="info-button"><i class="bi bi-info-circle"></i></h3>
</div>
<div class="shop-info">
<div class="discount-text" id="deal"></div>
<!-- <div class="openOrclose-text">closed</div> -->
<div class="rating">
<p class="card-text" style="font-size: 12px;"><b><i class="bi bi-star-fill text-primary"></i>
4.1</b><span class="text-muted" style="font-size: 13px;">/5</span>
</p>
</div>
</div>
<div id="allResItems">
<!-- <div class="box-item pt-3">
<div class="Item-nameNimage">
<div class="itemname">
<p><b>Biryani</b><br>chana dall</p>
<p>Rs: 120</p>
</div>
<div class="itemimage">
<img src="./images/tikka.png" width="80px" alt="">
<i class="bi bi-plus-square-fill plus-item"></i>
</div>
</div>
</div> -->
</div>
</div>
</div>
<!-- ---------------------- Cart -->
<aside class="mainCart">
<div class="">
<h5 id="yourcart">Your cart</h5>
</div>
<div class="" id="yourcartsubtext">Start Adding Item To Your Cart</div>
<div class="pt-4">
<div class="cartItem sub-total" id="cartitem">
<!-- <div class="d-f-j-b pt-4">
<div class="cartItemname">Zinger</div>
<div class="cart">Rs 200</div>
</div>
<div class="text-end">Quatity: 1</div> -->
</div>
</div>
<div class="text-muted d-f-j-b sub-total pt-3">
<p>Sub Total</p>
<p>Rs. <span id="subtotalPrice">0</span></p>
</div>
<div class="d-f-j-b sub-total">
<p><b>Delivery Charges</b></p>
<b>
<p>Rs. <span id="deliverycharges">0</span></p>
</b>
</div>
<div class="d-f-j-b sub-total">
<p><b>Total(Incl. GST)</b></p>
<b>
<p>Rs. <span id="totalprice">0</span></p>
</b>
</div>
<div class="checkout-btn">
<button class="btn btn-secondary w-100 checkoutbtn-inner" id="checkoutbtn" data-bs-toggle="modal"
data-bs-target="#staticBackdrop" onclick="checkOut()">
<b>Go To Checkout</b>
</button>
</div>
</aside>
</div>
<!-- -------------------- Head End ----------------- -->
<!-- Show All items from Selected restaurant -->
<!-- <div class="container my-3"> -->
<div class="row px-3 pt-4 " id="userResturantShow">
<!-- <div class="col-lg-3 col-md-4 col-sm-6 pt-4 d-flex justify-content-center">
<div class="card" style="width: 17rem; height: 30 !important;">
<img src="./images/resturant.jpg" class="card-img-top" style="height: 200px;" alt="...">
<div class="card-body p-0 pt-3">
<div class="d-flex justify-content-between margin-remove">
<p class="card-text" style="font-size: 16px;"><b>WF Food HotN Roll</b></p>
<p class="card-text" style="font-size: 12px;"><b><i
class="bi bi-star-fill text-primary"></i> 4.1</b><span class="text-muted"
style="font-size: 13px;">/5</span></p>
</div>
<p class="card-text text-muted" style="font-size: 14px;">$$$, beverage, burger, fast foods</p>
</div>
</div>
</div> -->
</div>
<!-- </div> -->
<!-- <div>
<input type="file" id="photo">
<img alt="" id="image">
<button class="btn btn-secondary" onclick="upload()">Upload</button>
</div> -->
<div class="fixed-checkout w-100">
<button class="btn btn-secondary checkoutbtn-inner w-100" id="checkoutbtnmodal" data-bs-toggle="modal"
data-bs-target="#staticBackdrop" onclick="checkOut()">
<b>Go To CheckOut</b>
</button>
</div>
<!--! Modal Box -->
<div class="modal fade" id="staticBackdrop" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1"
aria-labelledby="staticBackdropLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content borderradius-remove">
<div class="modal-header d-flex justify-content-center">
<h5 class="modal-title" id="staticBackdropLabel">PLACE ORDER</h5>
<!-- <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> -->
</div>
<div class="modal-body">
<form id="addingmemberform" class="container">
<div class="form-outline">
<label for="userOrderName" class="form-label">Your Name</label>
<input type="text" class="form-control shadow-remove borderradius-remove"
placeholder="Enter Your Name" id="userOrderName" aria-describedby="emailHelp">
</div>
<br>
<div class="form-outline">
<label for="userOrderNum" class="form-label">Mobile Number</label>
<input type="number" class="form-control shadow-remove borderradius-remove"
placeholder="Mobile Number" id="userOrderNum" aria-describedby="emailHelp">
</div>
<br>
<div class="form-outline">
<label for="userOrderDeliveradd" class="form-label">Deliver at</label>
<input type="text" class="form-control shadow-remove borderradius-remove"
placeholder="Your Complete Address" id="userOrderDeliveradd"
aria-describedby="emailHelp">
</div>
<br>
<div class="form-outline">
<label for="orderPayment" class="form-label">Payment</label>
<select id="orderPayment" class="form-select shadow-remove borderradius-remove"
aria-label="Default select example">
<option value="Not selected" selected></option>
<option value="Hand to Hand">Hand to Hand</option>
<option value="Online">Online</option>
</select>
</div>
<br>
<div class="pt-4">
<div class="cartItem sub-total" id="modalCart">
<!-- <div class="d-f-j-b pt-4">
<div class="cartItemname">Zinger</div>
<div class="cart">Rs 200</div>
</div>
<div class="text-end">Quatity: 1</div> -->
</div>
</div>
<br>
<div>
<div>Order Total</div>
<b><p>Rs. <span id="modalTotalPrice">0</span></p></b>
<div>With Delivery Charges</div>
<b><span id="totalWithDelivery"></span></b>
</div>
</form>
</div>
<div class="modal-footer d-flex justify-content-center">
<button type="button" id="placeorder" onclick="getCord()"
class="btn btn-info text-white borderradius-remove shadow-remove" data-bs-dismiss="modal">
Place Order
</button>
<button type="button" id="cancelbutton"
class="btn btn-warning text-white borderradius-remove shadow-remove" data-bs-dismiss="modal">
Cancel
</button>
</div>
</div>
</div>
</div>
<script src="./js/loginSignup.js"></script>
<script type="text/javascript" src="./js/userselectresitems.js"></script>
<script src="./js/sweetalert.min.js"></script>
<!-- Bootstrap v.5.0 -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"
integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.min.js"
integrity="sha384-cVKIPhGWiC2Al4u+LWgxfKTRIcfu0JTxR+EQDz/bgldoEyl4H0zUF0QKbrJ0EcQF"
crossorigin="anonymous"></script>
</body>
</html>