-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle-item.php
104 lines (81 loc) · 3.83 KB
/
single-item.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
<?php
$PROID = $_GET['id'];
$query = "SELECT * FROM `tblpromopro` pr , `tblproduct` p , `tblcategory` c
WHERE pr.`PROID`=p.`PROID` AND p.`CATEGID` = c.`CATEGID` AND p.`PROID`=" . $PROID;
$mydb->setQuery($query);
$cur = $mydb->loadResultList();
foreach ($cur as $result) {
?>
<!-- Portfolio Item Row -->
<form method="POST" action="cart/controller.php?action=add">
<div class="row">
<div class="col-md-8">
<div class="row">
<div class="col-m-12">
<div class="col-md-8 responsive">
<img width="402" class="img-portfolio " height="300" src="<?php echo web_root . 'admin/products/'. $result->IMAGES;?>" alt="">
</div>
</div>
</div>
</div>
<div class="col-md-4">
<input type="hidden" name="PROPRICE" value="<?php echo $result->PRODISPRICE; ?>">
<input type="hidden" id="PROQTY" name="PROQTY" value="<?php echo $result->PROQTY; ?>">
<input type="hidden" name="PROID" value="<?php echo $result->PROID; ?>">
<!-- <h3><?php echo $result->PRONAME ; ?></h3> -->
<p><?php echo $result->CATEGORIES;?></p>
<!-- <h3>Project Details</h3> -->
<ul>
<!-- <li>Model - <?php echo $result->PROMODEL; ?></li> -->
<li>Type - <?php echo $result->PRODESC; ?></li>
<li>Price - € <?php echo $result->PROPRICE; ?></li>
<?php if($result->PRODISCOUNT>0){ ?>
<li>Discount - <?php echo $result->PRODISCOUNT; ?> % </li>
<li>Discounted Price - € <?php echo $result->PRODISPRICE; ?> </li>
<?php } ?>
<li>Available Quantity - <?php echo $result->PROQTY; ?></li>
</ul>
<button type="submit" class="btn btn-pup btn-sm" name="btnorder">Order Now!</button>
</div>
<?php } ?>
</div>
<!-- /.row -->
</form>
<?php
$query = "SELECT * FROM `tblpromopro` pr , `tblproduct` p , `tblcategory` c
WHERE pr.`PROID`=p.`PROID` AND p.`CATEGID` = c.`CATEGID` AND `CATEGORIES`='" . $result->CATEGORIES . "' limit 4";
$mydb->setQuery($query);
$cur = $mydb->loadResultList();
?>
<!-- Related Projects Row -->
<div class="row">
<div class="col-lg-12">
<h3 class="page-header">Related Products</h3>
</div>
<?php
foreach ($cur as $result) {
?>
<div class="col-sm-3 col-xs-6">
<a href="index.php?q=single-item&id=<?php echo $result->PROID; ?>">
<img class="img-hover img-related" width="135px" height="90px" src="<?php echo web_root.'admin/products/'.$result->IMAGES;?>" alt="">
</a><br/>
<a href="index.php?q=single-item&id=<?php echo $result->PROID; ?>"><b><?php echo $result->PRODESC ; ?></b></a>
</div>
<?php } ?>
<!--
<div class="col-sm-3 col-xs-6">
<a href="#">
<img class="img-responsive img-hover img-related" src="http://placehold.it/500x300" alt="">
</a>
</div>
<div class="col-sm-3 col-xs-6">
<a href="#">
<img class="img-responsive img-hover img-related" src="http://placehold.it/500x300" alt="">
</a>
</div>
<div class="col-sm-3 col-xs-6">
<a href="#">
<img class="img-responsive img-hover img-related" src="http://placehold.it/500x300" alt="">
</a>
</div> -->
</div>