-
Notifications
You must be signed in to change notification settings - Fork 0
/
wishlist.php
83 lines (62 loc) · 2.22 KB
/
wishlist.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
<?php include 'inc/header.php'; ?>
<?php
$login = Session::get("cuslogin");
if ($login == false) {
header("Location:login.php");
}
?>
<?php
if (isset($_GET['delwlistid'])) {
$productId = $_GET['delwlistid'];
$delWlist = $pd->delWlistData($cmrId,$productId);
}
?>
<style>
#tblone td{text-align: center;}
#tblone tr th{text-align: center;}
</style>
<div class="main">
<div class="content">
<div class="cartoption">
<div class="cartpage">
<h2>Zelje </h2>
<table class="table table-bordered table-hover" id="tblone">
<tr>
<th width="5%">Id</th>
<th width="30%">Knjiga</th>
<th width="10%">Slika</th>
<th width="15%">Cijena</th>
<th width="10%">Akcija</th>
</tr>
<?php
$getPd = $pd->checkWlistData($cmrId);
if ($getPd) {
$i = 0;
while ($result = $getPd->fetch_assoc()) {
$i++;
?>
<tr>
<td><?php echo $i; ?></td>
<td><a href="preview.php?proid=<?php echo $result['productId']; ?>"><?php echo $result['productName']; ?></a></td>
<td><img src="admin/pages/tables/<?php echo $result['image']; ?>" height="100px;" width="80px;" alt=""/></td>
<td>€ <?php echo $result['price']; ?></td>
<td><a onclick="return confirm('Da li ste sigurni?')" href="preview.php?proid=<?php echo $result['productId']; ?>"> <button type="button" class="btn btn-light">Vidi</button> </a>
<a href="?delwlistid=<?php echo $result['productId']; ?>"> <button type="button" class="btn btn-danger">Ukloni</button> </a>
</td>
</tr>
<?php } } ?>
</table>
</div>
<div class="shopping">
<div class="shopleft" style="width: 1050px;">
<a href="index.php"><button class="btn btn-warning" type="button">
Nastavi kupovinu <span class="glyphicon glyphicon-shopping-cart"></span>
</button></a>
</div>
</div>
</div>
<div class="clear"></div>
</div>
</div>
</div>
<?php include 'inc/footer.php'; ?>