-
Notifications
You must be signed in to change notification settings - Fork 0
/
shipping.html
296 lines (291 loc) · 23 KB
/
shipping.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
290
291
292
293
294
295
296
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<title>Table - Brand</title>
<link rel="stylesheet" href="assets/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i&display=swap">
<link rel="stylesheet" href="assets/fonts/fontawesome-all.min.css">
</head>
<body id="page-top" onload="loadDoc()">
<div id="wrapper">
<nav class="navbar navbar-dark align-items-start sidebar sidebar-dark accordion bg-gradient-primary p-0"
style="color: rgb(133, 135, 150);background: rgb(255,255,255);">
<div class="container-fluid d-flex flex-column p-0"><a
class="navbar-brand d-flex justify-content-center align-items-center sidebar-brand m-0" href="#">
<div class="sidebar-brand-icon rotate-n-15"></div>
<div class="sidebar-brand-text mx-3"><img style="width: 30px;height: 30px;margin-right: 10px;"
src="assets/img/logonenden%20(1).png"><span style="color: rgb(62,62,64);">The
weekdays</span></div>
</a>
<hr class="sidebar-divider my-0">
<ul class="navbar-nav text-light" id="accordionSidebar">
<li class="nav-item"><a class="nav-link d-xxl-flex align-items-xxl-center" href="index.html"
style="color: rgb(0,0,0);height: 35px;"><img src="assets/img/ic_dashboard.png"
style="width: 16px;height: 16px;margin-right: 5px;"><span>Tổng quan</span></a></li>
<li class="nav-item"><a class="nav-link d-xxl-flex align-items-xxl-center" href="order.html"
style="color: rgba(0,0,0,0.8);height: 35px;"><svg xmlns="http://www.w3.org/2000/svg"
width="1em" height="1em" fill="currentColor" viewBox="0 0 16 16" class="bi bi-wallet"
style="width: 16px;height: 16px;margin-right: 5px;">
<path
d="M0 3a2 2 0 0 1 2-2h13.5a.5.5 0 0 1 0 1H15v2a1 1 0 0 1 1 1v8.5a1.5 1.5 0 0 1-1.5 1.5h-12A2.5 2.5 0 0 1 0 12.5V3zm1 1.732V12.5A1.5 1.5 0 0 0 2.5 14h12a.5.5 0 0 0 .5-.5V5H2a1.99 1.99 0 0 1-1-.268zM1 3a1 1 0 0 0 1 1h12V2H2a1 1 0 0 0-1 1z">
</path>
</svg><span>Đơn hàng</span></a></li>
<li class="nav-item"><a class="nav-link d-xxl-flex align-items-xxl-center" href="product.html"
style="color: rgba(0,0,0,0.8);height: 35px;"><svg xmlns="http://www.w3.org/2000/svg"
width="1em" height="1em" fill="currentColor" viewBox="0 0 16 16" class="bi bi-cart2"
style="width: 16px;height: 16px;margin-right: 5px;">
<path
d="M0 2.5A.5.5 0 0 1 .5 2H2a.5.5 0 0 1 .485.379L2.89 4H14.5a.5.5 0 0 1 .485.621l-1.5 6A.5.5 0 0 1 13 11H4a.5.5 0 0 1-.485-.379L1.61 3H.5a.5.5 0 0 1-.5-.5zM3.14 5l1.25 5h8.22l1.25-5H3.14zM5 13a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm-2 1a2 2 0 1 1 4 0 2 2 0 0 1-4 0zm9-1a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm-2 1a2 2 0 1 1 4 0 2 2 0 0 1-4 0z">
</path>
</svg><span>Sản phẩm</span></a></li>
<li class="nav-item"><a class="nav-link d-xxl-flex align-items-xxl-center" href="category.html"
style="color: rgb(0,0,0);height: 35px;"><svg xmlns="http://www.w3.org/2000/svg" width="1em"
height="1em" fill="currentColor" viewBox="0 0 16 16" class="bi bi-menu-app-fill"
style="width: 16px;height: 19px;margin-right: 5px;">
<path
d="M0 1.5A1.5 1.5 0 0 1 1.5 0h2A1.5 1.5 0 0 1 5 1.5v2A1.5 1.5 0 0 1 3.5 5h-2A1.5 1.5 0 0 1 0 3.5v-2zM0 8a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V8zm1 3v2a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2H1zm14-1V8a1 1 0 0 0-1-1H2a1 1 0 0 0-1 1v2h14zM2 8.5a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5zm0 4a.5.5 0 0 1 .5-.5h6a.5.5 0 0 1 0 1h-6a.5.5 0 0 1-.5-.5z">
</path>
</svg><span>Danh mục</span></a></li>
<li class="nav-item"><a class="nav-link d-xxl-flex align-items-xxl-center" href="coupon.html"
style="color: rgb(0,0,0);height: 35px;"><svg xmlns="http://www.w3.org/2000/svg" width="1em"
height="1em" fill="currentColor" viewBox="0 0 16 16" class="bi bi-ticket-perferated"
style="width: 16px;height: 19px;margin-right: 5px;">
<path fill-rule="evenodd"
d="M1.5 3A1.5 1.5 0 0 0 0 4.5V6a.5.5 0 0 0 .5.5 1.5 1.5 0 1 1 0 3 .5.5 0 0 0-.5.5v1.5A1.5 1.5 0 0 0 1.5 13h13a1.5 1.5 0 0 0 1.5-1.5V10a.5.5 0 0 0-.5-.5 1.5 1.5 0 0 1 0-3A.5.5 0 0 0 16 6V4.5A1.5 1.5 0 0 0 14.5 3h-13ZM1 4.5a.5.5 0 0 1 .5-.5h13a.5.5 0 0 1 .5.5v1.05a2.5 2.5 0 0 0 0 4.9v1.05a.5.5 0 0 1-.5.5h-13a.5.5 0 0 1-.5-.5v-1.05a2.5 2.5 0 0 0 0-4.9V4.5Zm3 .35v.9h1v-.9H4Zm7 0v.9h1v-.9h-1Zm-7 1.8v.9h1v-.9H4Zm7 0v.9h1v-.9h-1Zm-7 1.8v.9h1v-.9H4Zm7 0v.9h1v-.9h-1Zm-7 1.8v.9h1v-.9H4Zm7 0v.9h1v-.9h-1Z">
</path>
</svg><span>Coupon</span></a></li>
<li class="nav-item"><a class="nav-link d-xxl-flex align-items-xxl-center" href="customer.html"
style="color: rgba(0,0,0,0.8);height: 35px;"><svg xmlns="http://www.w3.org/2000/svg"
width="1em" height="1em" fill="currentColor" viewBox="0 0 16 16" class="bi bi-person"
style="width: 16px;height: 16px;margin-right: 5px;">
<path
d="M8 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm2-3a2 2 0 1 1-4 0 2 2 0 0 1 4 0zm4 8c0 1-1 1-1 1H3s-1 0-1-1 1-4 6-4 6 3 6 4zm-1-.004c-.001-.246-.154-.986-.832-1.664C11.516 10.68 10.289 10 8 10c-2.29 0-3.516.68-4.168 1.332-.678.678-.83 1.418-.832 1.664h10z">
</path>
</svg><span>Khách hàng</span></a></li>
<li class="nav-item"><a class="nav-link d-xxl-flex align-items-xxl-center active"
href="shipping.html" style="color: rgba(0,0,0,0.8);height: 35px;"><svg
xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="currentColor"
viewBox="0 0 16 16" class="bi bi-truck"
style="width: 16px;height: 16px;margin-right: 5px;">
<path
d="M0 3.5A1.5 1.5 0 0 1 1.5 2h9A1.5 1.5 0 0 1 12 3.5V5h1.02a1.5 1.5 0 0 1 1.17.563l1.481 1.85a1.5 1.5 0 0 1 .329.938V10.5a1.5 1.5 0 0 1-1.5 1.5H14a2 2 0 1 1-4 0H5a2 2 0 1 1-3.998-.085A1.5 1.5 0 0 1 0 10.5v-7zm1.294 7.456A1.999 1.999 0 0 1 4.732 11h5.536a2.01 2.01 0 0 1 .732-.732V3.5a.5.5 0 0 0-.5-.5h-9a.5.5 0 0 0-.5.5v7a.5.5 0 0 0 .294.456zM12 10a2 2 0 0 1 1.732 1h.768a.5.5 0 0 0 .5-.5V8.35a.5.5 0 0 0-.11-.312l-1.48-1.85A.5.5 0 0 0 13.02 6H12v4zm-9 1a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm9 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2z">
</path>
</svg><span>Vận chuyển</span></a></li>
<li class="nav-item"><a class="nav-link d-xxl-flex align-items-xxl-center" href="login.html"
style="color: rgba(0,0,0,0.8);height: 35px;"><svg xmlns="http://www.w3.org/2000/svg"
width="1em" height="1em" fill="currentColor" viewBox="0 0 16 16"
class="bi bi-arrow-return-left"
style="width: 16px;height: 16px;margin-right: 5px;color: rgb(255,0,0);">
<path fill-rule="evenodd"
d="M14.5 1.5a.5.5 0 0 1 .5.5v4.8a2.5 2.5 0 0 1-2.5 2.5H2.707l3.347 3.346a.5.5 0 0 1-.708.708l-4.2-4.2a.5.5 0 0 1 0-.708l4-4a.5.5 0 1 1 .708.708L2.707 8.3H12.5A1.5 1.5 0 0 0 14 6.8V2a.5.5 0 0 1 .5-.5z">
</path>
</svg><span style="color: rgb(255,0,0);">Đăng xuất</span></a></li>
</ul>
<div class="text-center d-none d-md-inline"><button class="btn rounded-circle border-0"
id="sidebarToggle" type="button" style="color: rgb(0,0,0);background: rgb(62,62,64);"></button>
</div>
</div>
</nav>
<div class="d-flex flex-column" id="content-wrapper">
<div id="content">
<div class="container-fluid" style="margin-top: -1px;padding-top: 50px;">
<h3 class="text-dark mb-4"><strong>Vận chuyển</strong></h3>
<form class="d-xxl-flex flex-column justify-content-xxl-center">
<div class="row d-xxl-flex justify-content-xxl-center align-items-xxl-center"
style="margin-bottom: 8px;">
<div class="col-xxl-6 text-end" style="width: 30%;">
<h5 style="width: auto;border-color: rgb(0,0,0);color: rgb(0,0,0);margin-bottom: 0px;">
Khu vực</h5>
</div>
<div class="col d-xxl-flex justify-content-xxl-start" style="width: 60%;"><input
class="form-control" type="text" id="name" style="width: 80%;"></div>
</div>
<div class="row d-xxl-flex justify-content-xxl-center align-items-xxl-center"
style="margin-bottom: 8px;">
<div class="col-xxl-6 d-xxl-flex justify-content-xxl-end align-items-xxl-center"
style="width: 30%;">
<h5 style="width: auto;border-color: rgb(0,0,0);color: rgb(0,0,0);margin-bottom: 0px;">
Địa điểm</h5>
</div>
<div class="col d-xxl-flex justify-content-xxl-start" style="width: 60%;"><input
class="form-control" type="text" id="location" style="width: 80%;"></div>
</div>
<div class="row d-xxl-flex justify-content-xxl-center align-items-xxl-center"
style="margin-bottom: 8px;">
<div class="col-xxl-6 d-xxl-flex justify-content-xxl-end" style="width: 30%;">
<h5 style="width: auto;border-color: rgb(0,0,0);color: rgb(0,0,0);margin-bottom: 0px;">
Nhà thầu khả dụng</h5>
</div>
<div class="col d-xxl-flex justify-content-xxl-start" style="width: 60%;"><input
class="form-control" type="text" id="partner" style="width: 80%;"></div>
</div>
<div class="row d-xxl-flex justify-content-xxl-center align-items-xxl-center"
style="margin-bottom: 8px;">
<div class="col-xxl-6 d-xxl-flex justify-content-xxl-end"
style="width: 30%;margin-right: -2px;padding-left: 0px;">
<h5 style="width: auto;border-color: rgb(0,0,0);color: rgb(0,0,0);margin-bottom: 0px;">
Khả dụng</h5>
</div>
<div class="col d-xxl-flex justify-content-xxl-start" style="width: 60%;"><input
type="checkbox" style="width: 20px;height: 20px;" id="available"></div>
</div>
</form>
<div class="d-xxl-flex justify-content-xxl-center"><button id="button" class="btn btn-primary"
type="button"
style="background: rgb(62,62,64);width: 20%;margin: 10px;margin-bottom: 20px;">Thêm khu
vực</button></div>
<div class="card shadow">
<div class="card-header py-3">
<p class="text-primary m-0 fw-bold">Khu vực vận chuyển</p>
</div>
<div class="card-body">
<div class="table-responsive table mt-2" id="dataTable" role="grid"
aria-describedby="dataTable_info">
<table class="table my-0" id="dataTable">
<thead>
<tr>
<th style="width: 250px;">Khu vực</th>
<th style="width: 250px;">Địa điểm</th>
<th>Nhà thầu khả dụng</th>
<th class="text-center">Khả dụng</th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td>Độc lạ Bình Dương</td>
<td>Bình Dương, Việt Nam</td>
<td>ViettelPost,<br>Giao Hàng Tiết Kiệm,<br>Giao Hàng Nhanh<br></td>
<td class="text-center"><input type="checkbox" checked=""></td>
<td>
<div class="dropdown d-xxl-flex justify-content-xxl-center"><button
class="btn btn-primary dropdown-toggle" aria-expanded="false"
data-bs-toggle="dropdown" type="button"
style="background: rgb(62,62,64);"></button>
<div class="dropdown-menu dropdown-menu-dark"><a
class="dropdown-item" href="#">Chỉnh sửa</a><a
class="dropdown-item" href="#">Xóa</a></div>
</div>
</td>
</tr>
<tr>
<td>Sài Gòn lạc nhau là mất (hàng)</td>
<td>Thành phố Hồ Chí Minh, Việt Nam</td>
<td>ViettelPost,<br>Giao Hàng Tiết Kiệm,<br>Giao Hàng Nhanh<br></td>
<td class="text-center"><input type="checkbox" checked=""></td>
<td>
<div class="dropdown d-xxl-flex justify-content-xxl-center"><button
class="btn btn-primary dropdown-toggle" aria-expanded="false"
data-bs-toggle="dropdown" type="button"
style="background: rgb(62,62,64);"></button>
<div class="dropdown-menu"><a class="dropdown-item" href="#">First
Item</a><a class="dropdown-item" href="#">Second Item</a><a
class="dropdown-item" href="#">Third Item</a></div>
</div>
</td>
</tr>
<tr>
<td>Xứ Nẫu Tây Sơn</td>
<td>Bình Định, Việt Nam</td>
<td>ViettelPost,<br>Giao Hàng Tiết Kiệm,<br>Giao Hàng Nhanh<br></td>
<td class="text-center"><input type="checkbox" checked=""></td>
<td>
<div class="dropdown d-xxl-flex justify-content-xxl-center"><button
class="btn btn-primary dropdown-toggle" aria-expanded="false"
data-bs-toggle="dropdown" type="button"
style="background: rgb(62,62,64);"></button>
<div class="dropdown-menu"><a class="dropdown-item" href="#">First
Item</a><a class="dropdown-item" href="#">Second Item</a><a
class="dropdown-item" href="#">Third Item</a></div>
</div>
</td>
</tr>
<tr>
<td>Tháp Mười đẹp nhất hoa hậu</td>
<td>Đồng Tháp, Việt Nam</td>
<td>ViettelPost,<br>Giao Hàng Tiết Kiệm,<br>Giao Hàng Nhanh<br></td>
<td class="text-center"><input type="checkbox" checked=""></td>
<td>
<div class="dropdown d-xxl-flex justify-content-xxl-center"><button
class="btn btn-primary dropdown-toggle" aria-expanded="false"
data-bs-toggle="dropdown" type="button"
style="background: rgb(62,62,64);"></button>
<div class="dropdown-menu"><a class="dropdown-item" href="#">First
Item</a><a class="dropdown-item" href="#">Second Item</a><a
class="dropdown-item" href="#">Third Item</a></div>
</div>
</td>
</tr>
<tr>
<td>Tây Ninh xứ biển</td>
<td>Tây Ninh, Việt Nam</td>
<td>ViettelPost,<br>Giao Hàng Tiết Kiệm,<br>Giao Hàng Nhanh<br></td>
<td class="text-center"><input type="checkbox" checked=""></td>
<td>
<div class="dropdown d-xxl-flex justify-content-xxl-center"><button
class="btn btn-primary dropdown-toggle" aria-expanded="false"
data-bs-toggle="dropdown" type="button"
style="background: rgb(62,62,64);"></button>
<div class="dropdown-menu"><a class="dropdown-item" href="#">First
Item</a><a class="dropdown-item" href="#">Second Item</a><a
class="dropdown-item" href="#">Third Item</a></div>
</div>
</td>
</tr>
</tbody>
<tfoot>
<tr>
<td><strong>Khu vực</strong></td>
<td><strong>Địa điểm</strong></td>
<td><strong>Nhà thầu khả dụng</strong></td>
<td><strong>Khả dụng</strong></td>
</tr>
</tfoot>
</table>
<table id="demo"></table>
</div>
</div>
</div>
</div>
</div>
<footer class="bg-white sticky-footer">
<div class="container my-auto">
<div class="text-center my-auto copyright"><span>Copyright © The Weekdays 2022</span></div>
</div>
</footer>
</div><a class="border rounded d-inline scroll-to-top" href="#page-top"><i class="fas fa-angle-up"></i></a>
</div>
<script src="assets/bootstrap/js/bootstrap.min.js"></script>
<script src="assets/js/bs-init.js"></script>
<script src="assets/js/theme.js"></script>
<script>
let xmlContent = '';
let tableBooks = document.getElementById('demo');
document.addEventListener('DOMContentLoaded', function() {
let xhr = new XMLHttpRequest();
xhr.open('GET', 'books.xml', true);
xhr.onload = function() {
if (this.status == 200) {
xmlContent = this.responseXML;
let books = xmlContent.getElementsByTagName('book');
for (let i = 0; i < books.length; i++) {
let author = books[i].getElementsByTagName('author')[0].textContent;
let title = books[i].getElementsByTagName('title')[0].textContent;
let price = books[i].getElementsByTagName('price')[0].textContent;
let description = books[i].getElementsByTagName('description')[0].textContent;
let row = tableBooks.insertRow(i + 1);
row.insertCell(0).innerHTML = author;
row.insertCell(1).innerHTML = title;
row.insertCell(2).innerHTML = price;
row.insertCell(3).innerHTML = description;
}
}
}
xhr.send();
});
</script>
</body>
</html>