-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproduct-info.php
49 lines (48 loc) · 1.67 KB
/
product-info.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
_<?php
require_once "class/product.class.php";
if (!isset($_GET['ID'])) exit("No ID Is Found");
$ID = $_GET['ID'];
$Product = new Product();
$Data = $Product->GetProduct("WHERE `ID` = ?", "id", $ID);
extract($Data);
$select = 1;
?>
<?php require_once "header.html"; ?>
</div>
<div class="content">
<div class="row">
<div class="col-md-12">
<div class="section-header">
<h1>Product Info</h1>
</div>
</div>
</div>
<div class="row product-info">
<div class="col-md-8">
<div class="product-info__title">
<h2><?php echo $title ?></h2>
</div>
<div class="product-info__price">
<strong>Product Price:</strong> <span><?php echo $price ?><sup>EGP</sup></span>
</div>
<div class="product-info__available">
<strong>Product Availability:</strong> <span><?php if ($available) : echo "Available";
else : echo "Not Available ";
endif; ?></span>
</div>
<div class="product-info__desc">
<h2>Product Description:</h2>
<p><?php echo $content ?></p>
</div>
<br />
<a href="#" class="btn btn-lg btn-danger"><i class="fa fa-shopping-cart"></i> Buy Now</a>
</div>
<div class="col-md-4">
<div class="product-info__image">
<img src="uploads/<?php echo $image ?>" class="img-responsive" alt="">
</div>
</div>
</div>
</div>
</div>
<?php require_once "header.html"; ?>