-
Notifications
You must be signed in to change notification settings - Fork 1
/
viewwishlist.php
129 lines (123 loc) · 4.46 KB
/
viewwishlist.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
<?php include "header.php"; ?>
<!-- BREADCRUMB -->
<div id="breadcrumb" class="section">
<!-- container -->
<div class="container">
<!-- row -->
<div class="row">
<div class="col-md-12">
<h3 class="breadcrumb-header">View Wishlist</h3>
<ul class="breadcrumb-tree">
<li><a href="index.php">Home</a></li>
<li class="active">Your Wishlist</li>
</ul>
</div>
</div>
<!-- /row -->
</div>
<!-- /container -->
</div>
<!-- /BREADCRUMB -->
<!-- SECTION -->
<div class="section">
<!-- container -->
<div class="container">
<!-- row -->
<div class="row ">
<!-- Order Details -->
<div class="card-body p-0">
<table class="table table-striped projects">
<thead>
<tr>
<th style="width: 5% text-center">
ID
</th>
<th style="width: 40% ">
Name
</th>
<th style="width: 15% ">
Images
</th>
<th style="width: 10% text-center">
Price
</th>
<th style="width: 5% ">
Action
</th>
</tr>
</thead>
<tbody>
<?php
if (isset($_SESSION['user'])) {
# code...
$getAllWishListByUser = $wish->getAllWishListByUser($_SESSION['user']);
foreach ($getAllWishListByUser as $value) {
?>
<tr>
<td>
<?php echo $value['id'] ?>
</td>
<td><?php echo $value['name'] ?>
</td>
<td>
<img style="width: 100px;" src="./img/<?php echo $value['image'] ?>" alt="">
</td>
<td class="project_progress">
<?php echo number_format($value['price']) ?>VND
</td>
<td class="project-actions text-right">
<a class="btn btn-danger btn-sm" href="delwl.php?id=<?php echo $value['product_id'] ?>">
<i class="fas fa-trash"> </i>
Delete
</a>
</td>
</tr>
<?php }
}
?>
</tbody>
</table>
</div>
</div>
</div>
<!-- /row -->
</div>
<!-- /container -->
</div>
<!-- /SECTION -->
<!-- NEWSLETTER -->
<div id="newsletter" class="section">
<!-- container -->
<div class="container">
<!-- row -->
<div class="row">
<div class="col-md-12">
<div class="newsletter">
<p>Sign Up for the <strong>NEWSLETTER</strong></p>
<form>
<input class="input" type="email" placeholder="Enter Your Email">
<button class="newsletter-btn"><i class="fa fa-envelope"></i> Subscribe</button>
</form>
<ul class="newsletter-follow">
<li>
<a href="#"><i class="fa fa-facebook"></i></a>
</li>
<li>
<a href="#"><i class="fa fa-twitter"></i></a>
</li>
<li>
<a href="#"><i class="fa fa-instagram"></i></a>
</li>
<li>
<a href="#"><i class="fa fa-pinterest"></i></a>
</li>
</ul>
</div>
</div>
</div>
<!-- /row -->
</div>
<!-- /container -->
</div>
<!-- /NEWSLETTER -->
<?php include "footer.html"; ?>