-
Notifications
You must be signed in to change notification settings - Fork 1
/
donhang.php
679 lines (620 loc) · 49.1 KB
/
donhang.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
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
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
<?php include './inc/handle.php' ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- <link rel="stylesheet" href="assets/css/base.css"> -->
<link rel="stylesheet" href="assets/css/grid.css">
<link rel="stylesheet" href="assets/css/base.css">
<link rel="stylesheet" href="assets/css/main.css">
<link rel="stylesheet" href="assets/css/account.css">
<link rel="stylesheet" href="assets/css/xemlaidonhang.css">
<link rel="stylesheet" href="assets/font/themify-icons/themify-icons.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css" integrity="sha384-AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p" crossorigin="anonymous" />
<title>Giỏ hàng</title>
</head>
<?php
//hủy đơn
if (isset($_GET['orderID']) && $_GET['orderID']) {
$userId = Session::get('user_id');
$orderId = "(" . $_GET['orderID'] . "-1)";
$update_status = $order->update_Status_Order($orderId, -1, $userId);
}
//xác nhận lấy hàng
if (isset($_GET['status']) && $_GET['status'] == 1) {
date_default_timezone_set("Asia/Ho_Chi_Minh");
$date_current = date('Y-m-d H:i:s');
$userId = Session::get('user_id');
$orderId = "(" . $_GET['orderID'] . "-1)";
$update_status = $order->recieve_Order($orderId, 2, $userId, $date_current);
}
//trả hàng
if (isset($_GET['status']) && $_GET['status'] == 2) {
$userId = Session::get('user_id');
$orderId = "(" . $_GET['orderID'] . "-1)";
$update_status = $order->update_Status_Order($orderId, 3, $userId);
}
?>
<body>
<div class="content">
<div class="grid">
<?php include 'inc/header.php' ?>
</div>
<div class="grid wide" style="border-top: 1px solid #ccc;">
<div class="account-body1">
<div class="row">
<div class="col l-3 underline">
<div class="category-all">
<ul>
<li style="display: flex;
align-items: center;
justify-content: center;
padding: 10px;
border-bottom: 1px solid #ccc;">
<span class="ti-user" style="padding: 10px;border: 1px solid;border-radius: 50%;"></span>
<a href="" style="text-decoration: none;padding: 0 10px;font-family: var(--font-family-monospace); color: black;
font-weight: bold"> Quỳnh Linh</a>
</li>
<li class="category">
<span class="ti-user"></span>
<a href=""> Thông tin tài khoản</a>
</li>
<li class="category">
<span class="ti-comments"></span>
<a href=""> Thông báo của tôi</a>
</li>
<li class="category">
<span class="ti-printer"></span>
<a href="tinhtrangdonhang.php"> Tình trạng đơn hàng</a>
</li>
<li class="category">
<span class="ti-printer"></span>
<a href="lichsu.php"> Quản lý đơn hàng</a>
</li>
<li class="category">
<span class="ti-location-pin"></span>
<a href=""> Số địa chỉ</a>
</li>
<li class="category">
<span class="ti-envelope"></span>
<a href=""> Thông tin thanh toán</a>
</li>
<li class="category">
<span class="ti-write"></span>
<a href=""> Nhận xét sản phẩm đã mua</a>
</li>
<li class="category">
<span class="ti-ink-pen"></span>
<a href=""> Sản phẩm đã xem</a>
</li>
<li class="category">
<span class="ti-ink-pen"></span>
<a href=""> Sản phẩm yêu thích</a>
</li>
<li class="category">
<span class="ti-shopping-cart-full"></span>
<a href=""> Sản phẩm mua sau</a>
</li>
<li class="category">
<span class="ti-star"></span>
<a href=""> Nhận xét của tôi</a>
</li>
<li class="category">
<span class="ti-ticket"></span>
<a href=""> Mã giảm giá</a>
</li>
</ul>
</div>
</div>
<div class="col m-12 l-9">
<h3 style="font-weight: 500;font-size: 24px;line-height: 32px;text-transform: uppercase;color: #221f20;display: flex;align-items: center;">Quản lí đơn hàng</h3>
<ul style="display:flex;">
<li class="QLdonhang" onclick="changeProductList('choXN',this)">Chờ xác nhận</li>
<li class="QLdonhang" onclick="changeProductList('daNH',this)">Đang giao</li>
<li class="QLdonhang" onclick="changeProductList('daGiao',this)">Đã giao</li>
<li class="QLdonhang" onclick="changeProductList('traHang',this)">Trả hàng</li>
<li class="QLdonhang" onclick="changeProductList('daHuy',this)">Đã hủy</li>
</ul>
<div class="col l-12">
<!-- <table id="choXN" class="table table_0"> -->
<?php
$date = $order->order_date(Session::get('user_id'), '(0)');
if ($date == Null) {
} else {
$count = 0;
while ($result_date = $date->fetch_assoc()) {
$count += 1;
//foreach($result_date as $date_order){
?>
<table id="choXN" class="choXN table_0">
<thead>
<tr>
<th>Đơn hàng: <?php echo $count; ?></th>
<th colspan="5">Ngày đặt: <?php echo $result_date['order_time']; ?></th>
<th colspan="2" class="toggle">Xem chi tiết</th>
</tr>
</thead>
<!-- </table> -->
<table class="display display_0">
<thead style="background-color:blue;">
<tr>
<th>STT</th>
<th>Ảnh</th>
<th>Tên</th>
<th>Size</th>
<th>Giá</th>
<th>Số lượng</th>
<th>Thành tiền</th>
<th>Địa chỉ</th>
<th>Tình trạng</th>
</tr>
</thead>
<tbody>
<?php
$getOrderHistory0 = $order->getOrderHistory(Session::get('user_id'), '(0)', $result_date['order_time']);
if ($getOrderHistory0) {
$i = 0;
$total0 = 0;
$orderID = "";
while ($result_OrderHistory0 = $getOrderHistory0->fetch_assoc()) {
$total0 += $result_OrderHistory0['thanhtien'];
$orderID .= $result_OrderHistory0['orderId'] . ",";
?>
<tr>
<td><?= ($i = $i + 1); ?></td>
<td>
<div class="cart-td_title">
<a href="chitietsanpham.php?productId=<?php echo $result_OrderHistory0['productId']; ?>"><img style="cursor:pointer;" src="./admin/upload/<?php echo $result_OrderHistory0['image'] ?>" alt="" class="app_cart-img"></a>
</div>
</td>
<td>
<span><?php echo $result_OrderHistory0['productName'] ?></span>
</td>
<td><?php echo $result_OrderHistory0['size'] ?></td>
<td>
<div class="cart-btn">
<span><?php echo number_format($result_OrderHistory0['price'], 0, ',', '.') . "" . "đ" ?></span>
</div>
</td>
<td>
<form action="" method="post">
<!-- hidden loại type không hiên thị -->
<input style="border: none;background: none;" type="button" name="quantity" value="<?php echo $result_OrderHistory0['quantity'] ?>" width="30px" />
<!-- <input type="submit" name="submit" value="Update"/> -->
</form>
</td>
<td>
<span class="cart-current"><?php
echo number_format($result_OrderHistory0['thanhtien'], 0, ',', '.') . " " . "đ";
?></span>
</td>
<td>
<?php
echo $result_OrderHistory0['order_time'];
?>
</td>
<td style="color:red;cursor:pointer">Đang chờ xác nhận</td>
</tr>
<?php
}
?>
<td colspan="7" style="background-color:#2a2b2c;text-align:center;color:white;">Tổng đơn hàng: <?php echo number_format($total0, 0, ',', '.') . "" . "đ"; ?></td>
<td colspan="3" class="huy_don" style="background-color:#2a2b2c;">
<div style="display: flex;align-items: center;justify-content: space-evenly;">
<span class="ti-trash" style="color: white;font-size: 20px;"> </span>
<a style="text-decoration:none;font-size:20px;" onclick="return confirm('Bạn có chắc chắn muốn hủy đơn hàng này')" href="?orderID=<?php echo $orderID ?>">Hủy đơn</a>
</div>
</td>
<?php
}
}
//}
?>
</tbody>
</table>
</table>
<?php } ?>
<!-- <table id="daGiao" class="table table_1"> -->
<?php
$date1 = $order->order_date(Session::get('user_id'), '(1)');
if ($date1 == Null) {
} else {
$count = 0;
while ($result_date1 = $date1->fetch_assoc()) {
$count += 1;
//foreach($result_date1 as $date_order1){
?>
<table id="daNH" class="daNH table_1">
<thead>
<tr>
<th>Đơn hàng: <?php echo $count; ?></th>
<th colspan="5">Ngày đặt: <?php echo $result_date1['order_time']; ?></th>
<th colspan="2" class="toggle">Xem chi tiết</th>
</tr>
</thead>
<!-- </table> -->
<table class="display display_1">
<thead style="background-color:blue;">
<tr>
<th>STT</th>
<th>Ảnh</th>
<th>Tên</th>
<th>Size</th>
<th>Giá</th>
<th>Số lượng</th>
<th>Thành tiền</th>
<th>Địa chỉ</th>
<th>Tình trạng</th>
</tr>
</thead>
<tbody>
<?php
$getOrderHistory1 = $order->getOrderHistory(Session::get('user_id'), '(1)', $result_date1['order_time']);
if ($getOrderHistory1) {
$i = 0;
$total1 = 0;
$orderID = "";
while ($result_OrderHistory1 = $getOrderHistory1->fetch_assoc()) {
$total1 += $result_OrderHistory1['thanhtien'];
$orderID .= $result_OrderHistory1['orderId'] . ",";
?>
<tr>
<td><?= ($i = $i + 1); ?></td>
<td>
<div class="cart-td_title">
<a href="chitietsanpham.php?productId=<?php echo $result_OrderHistory1['productId']; ?>"><img style="cursor:pointer;" src="./admin/upload/<?php echo $result_OrderHistory1['image'] ?>" alt="" class="app_cart-img"></a>
</div>
</td>
<td>
<span><?php echo $result_OrderHistory1['productName'] ?></span>
</td>
<td><?php echo $result_OrderHistory1['size'] ?></td>
<td>
<div class="cart-btn">
<span><?php echo number_format($result_OrderHistory1['price'], 0, ',', '.') . "" . "đ" ?></span>
</div>
</td>
<td>
<form action="" method="post">
<!-- hidden loại type không hiên thị -->
<input style="border: none;background: none;" type="button" name="quantity" value="<?php echo $result_OrderHistory1['quantity'] ?>" width="30px" />
<!-- <input type="submit" name="submit" value="Update"/> -->
</form>
</td>
<td>
<span class="cart-current"><?php
echo number_format($result_OrderHistory1['thanhtien'], 0, ',', '.') . " " . "đ";
?></span>
</td>
<td>
<?php
echo $result_OrderHistory1['order_time'];
?>
</td>
<td style="color:blue;">Đang giao</td>
</tr>
<?php
}
?>
<td colspan="6" style="background-color:#2a2b2c;text-align:center;color:white;">Tổng đơn hàng: <?php echo number_format($total1, 0, ',', '.') . "" . "đ"; ?></td>
<td colspan="3" class="confirm" style="background-color:#2a2b2c;">
<div>
<span class="ti-check" style="color:white; font-size:15px;"></span>
<a style="text-decoration:none;font-size:15px;" onclick="return confirm('Bạn muốn xác nhận lấy hàng')" href="?orderID=<?php echo $orderID ?>&status=1">Đã nhận được hàng</a>
</div>
</td>
<?php
}
}
//}
?>
</tbody>
</table>
</table>
<?php } ?>
<!--da giao-->
<!-- <table id="daHuy" class="table table_2"> -->
<?php
$date2 = $order->order_date(Session::get('user_id'), '(2,5)');
if ($date2 == Null) {
} else {
$count = 0;
while ($result_date2 = $date2->fetch_assoc()) {
$count += 1;
//foreach($result_date2 as $date_order2){
?>
<table id="daGiao" class="daGiao table_2">
<thead>
<tr>
<th>Đơn hàng: <?php echo $count; ?></th>
<th colspan="3">Ngày đặt: <?php echo $result_date2['order_time']; ?></th>
<th colspan="2">Ngày nhận: <?php echo $result_date2['recieve_time']; ?></th>
<th colspan="2" class="toggle">Xem chi tiết</th>
</tr>
</thead>
<!-- </table> -->
<table class="display display_2">
<thead style="background-color:blue;">
<tr>
<th>STT</th>
<th>Ảnh</th>
<th>Tên</th>
<th>Size</th>
<th>Giá</th>
<th>Số lượng</th>
<th>Thành tiền</th>
<th>Địa chỉ</th>
<th>Tình trạng</th>
</tr>
</thead>
<tbody>
<?php
$getOrderHistory2 = $order->getOrderHistory(Session::get('user_id'), '(2,5)', $result_date2['order_time']);
if ($getOrderHistory2) {
$i = 0;
$total2 = 0;
$orderID = "";
while ($result_OrderHistory2 = $getOrderHistory2->fetch_assoc()) {
$total2 += $result_OrderHistory2['thanhtien'];
$orderID .= $result_OrderHistory2['orderId'] . ",";
?>
<tr>
<td><?= ($i = $i + 1); ?></td>
<td>
<div class="cart-td_title">
<a href="chitietsanpham.php?productId=<?php echo $result_OrderHistory2['productId']; ?>"><img style="cursor:pointer;" src="./admin/upload/<?php echo $result_OrderHistory2['image'] ?>" alt="" class="app_cart-img"></a>
</div>
</td>
<td>
<span><?php echo $result_OrderHistory2['productName'] ?></span>
</td>
<td><?php echo $result_OrderHistory2['size'] ?></td>
<td>
<div class="cart-btn">
<span><?php echo number_format($result_OrderHistory2['price'], 0, ',', '.') . "" . "đ" ?></span>
</div>
</td>
<td>
<form action="" method="post">
<!-- hidden loại type không hiên thị -->
<input style="border: none;background: none;" type="button" name="quantity" value="<?php echo $result_OrderHistory2['quantity'] ?>" width="30px" />
<!-- <input type="submit" name="submit" value="Update"/> -->
</form>
</td>
<td>
<span class="cart-current"><?php
echo number_format($result_OrderHistory2['thanhtien'], 0, ',', '.') . " " . "đ";
?></span>
</td>
<td>
<?php
echo $result_OrderHistory2['order_time'];
?>
</td>
<td style="color:blue;cursor:pointer">Đã nhận được hàng</td>
</tr>
<?php
}
?>
<td colspan="7" style="background-color:#2a2b2c;text-align:center;color:white;">Tổng đơn hàng: <?php echo number_format($total2, 0, ',', '.') . "" . "đ"; ?></td>
<td colspan="2" class="confirm" style="background-color:#2a2b2c">
<div style="display: flex;align-items: center ; justify-content: center;">
<span class="ti-close" style="color: white ; font-size:15px"></span>
<a style="text-decoration:none;font-size:15px;" onclick="return confirm('Bạn muốn trả hàng?')" href="?orderID=<?php echo $orderID ?>&status=2" >Trả hàng</a>
</div>
</td>
<?php
}
}
//}
?>
</tbody>
</table>
</table>
<?php } ?>
<!--tra hang-->
<!-- <table id="daHuy" class="table table_3"> -->
<?php
$date2 = $order->order_date(Session::get('user_id'), '(3)');
if ($date2 == Null) {
} else {
$count = 0;
while ($result_date2 = $date2->fetch_assoc()) {
$count += 1;
//foreach($result_date2 as $date_order2){
?>
<table id="traHang" class="traHang table_3">
<thead>
<tr>
<th>Đơn hàng: <?php echo $count; ?></th>
<th colspan="3">Ngày đặt: <?php echo $result_date2['order_time']; ?></th>
<th colspan="2">Ngày nhận: <?php echo $result_date2['recieve_time']; ?></th>
<th colspan="2" class="toggle">Xem chi tiết</th>
</tr>
</thead>
<!-- </table> -->
<table class="display display_3">
<thead style="background-color:blue;">
<tr>
<th>STT</th>
<th>Ảnh</th>
<th>Tên</th>
<th>Size</th>
<th>Giá</th>
<th>Số lượng</th>
<th>Thành tiền</th>
<th>Địa chỉ</th>
<th>Tình trạng</th>
</tr>
</thead>
<tbody>
<?php
$getOrderHistory2 = $order->getOrderHistory(Session::get('user_id'), '(3)', $result_date2['order_time']);
if ($getOrderHistory2) {
$i = 0;
$total2 = 0;
$orderID = "";
while ($result_OrderHistory2 = $getOrderHistory2->fetch_assoc()) {
$total2 += $result_OrderHistory2['thanhtien'];
$orderID .= $result_OrderHistory2['orderId'] . ",";
?>
<tr>
<td><?= ($i = $i + 1); ?></td>
<td>
<div class="cart-td_title">
<a href="chitietsanpham.php?productId=<?php echo $result_OrderHistory2['productId']; ?>"><img style="cursor:pointer;" src="./admin/upload/<?php echo $result_OrderHistory2['image'] ?>" alt="" class="app_cart-img"></a>
</div>
</td>
<td>
<span><?php echo $result_OrderHistory2['productName'] ?></span>
</td>
<td><?php echo $result_OrderHistory2['size'] ?></td>
<td>
<div class="cart-btn">
<span><?php echo number_format($result_OrderHistory2['price'], 0, ',', '.') . "" . "đ" ?></span>
</div>
</td>
<td>
<form action="" method="post">
<!-- hidden loại type không hiên thị -->
<input style="border: none;background: none;" type="button" name="quantity" value="<?php echo $result_OrderHistory2['quantity'] ?>" width="30px" />
<!-- <input type="submit" name="submit" value="Update"/> -->
</form>
</td>
<td>
<span class="cart-current"><?php
echo number_format($result_OrderHistory2['thanhtien'], 0, ',', '.') . " " . "đ";
?></span>
</td>
<td>
<?php
echo $result_OrderHistory2['order_time'];
?>
</td>
<td style="color:red;cursor:pointer">Chờ xác nhận trả hàng</td>
</tr>
<?php
}
?>
<td colspan="9" style="background-color:#2a2b2c;text-align:center;color:white;">Tổng đơn hàng: <?php echo number_format($total2, 0, ',', '.') . "" . "đ"; ?></td>
<?php
}
}
//}
?>
</tbody>
</table>
</table>
<?php } ?>
<!--huy don-->
<!-- <table id="daHuy" class="table table_4"> -->
<?php
$date2 = $order->order_date(Session::get('user_id'), '(-1,4)');
if ($date2 == Null) {
} else {
$count = 0;
while ($result_date2 = $date2->fetch_assoc()) {
$count += 1;
//foreach($result_date2 as $date_order2){
?>
<table id="daHuy" class="daHuy table_4">
<thead>
<tr>
<th>Đơn hàng: <?php echo $count; ?></th>
<th colspan="4">Ngày đặt: <?php echo $result_date2['order_time']; ?></th>
<th colspan="3" class="toggle">Xem chi tiết</th>
</tr>
</thead>
<!-- </table> -->
<table class="display display_4">
<thead style="background-color:blue;">
<tr>
<th>STT</th>
<th>Ảnh</th>
<th>Tên</th>
<th>Size</th>
<th>Giá</th>
<th>Số lượng</th>
<th>Thành tiền</th>
<th>Địa chỉ</th>
<th>Tình trạng</th>
</tr>
</thead>
<tbody>
<?php
$getOrderHistory2 = $order->getOrderHistory(Session::get('user_id'), '(-1,4)', $result_date2['order_time']);
if ($getOrderHistory2) {
$i = 0;
$total2 = 0;
$orderId = "";
while ($result_OrderHistory2 = $getOrderHistory2->fetch_assoc()) {
$total2 += $result_OrderHistory2['thanhtien'];
?>
<tr>
<td><?= ($i = $i + 1); ?></td>
<td>
<div class="cart-td_title">
<a href="chitietsanpham.php?productId=<?php echo $result_OrderHistory2['productId']; ?>"><img style="cursor:pointer;" src="./admin/upload/<?php echo $result_OrderHistory2['image'] ?>" alt="" class="app_cart-img"></a>
</div>
</td>
<td>
<span><?php echo $result_OrderHistory2['productName'] ?></span>
</td>
<td><?php echo $result_OrderHistory2['size'] ?></td>
<td>
<div class="cart-btn">
<span><?php echo number_format($result_OrderHistory2['price'], 0, ',', '.') . "" . "đ" ?></span>
</div>
</td>
<td>
<form action="" method="post">
<!-- hidden loại type không hiên thị -->
<input style="border: none;background: none;" type="button" name="quantity" value="<?php echo $result_OrderHistory2['quantity'] ?>" width="30px" />
<!-- <input type="submit" name="submit" value="Update"/> -->
</form>
</td>
<td>
<span class="cart-current"><?php
echo number_format($result_OrderHistory2['thanhtien'], 0, ',', '.') . " " . "đ";
?></span>
</td>
<td>
<?php
echo $result_OrderHistory2['order_time'];
?>
</td>
<?php
if ($result_OrderHistory2['status'] == -1) {
?>
<td style="color:red;cursor:pointer">Đã hủy đơn</td>
<?php
} else {
?>
<td style="color:red;cursor:pointer">Đã trả hàng</td>
<?php } ?>
</tr>
<?php
}
?>
<td colspan="9" style="background-color:#2a2b2c;text-align:center;color:white;">Tổng đơn hàng: <?php echo number_format($total2, 0, ',', '.') . "" . "đ"; ?></td>
<?php
}
}
//}
?>
</tbody>
</table>
</table>
<?php } ?>
</div>
</div>
</div>
</div>
</div>
<?php include './inc/footer.php' ?>
</div>
</body>
<script src="./assets/js/donhang.js"></script>
</html>