-
Notifications
You must be signed in to change notification settings - Fork 1
/
product-details.php
131 lines (115 loc) · 3.85 KB
/
product-details.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
<?php
/*$did=$_GET['prod_id'];*/
include 'config.php';
$query="SELECT * FROM `products` ORDER BY `id` DESC ";
$data=mysqli_query($dbcon,$query);
$res2=mysqli_fetch_array($data);
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>MM Granites</title>
<link rel="icon" type="image/png" href="assets/img/logo-32.png" sizes="16x16">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link href="https://fonts.googleapis.com/css?family=Muli:300,400,700,800" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/css_product.css">
<link rel="stylesheet" type="text/css" href="css/header-footer.css">
</head>
<body>
<?php
include 'header.php';
?>
<section class="banner-section" style="background-image: url('assets/img/products.jpg');height:150px ">
<div class="container-fluid" id="product_banner">
<div class="row">
<div class="col-sm-3">
<h1 style="color: white;margin-top:50px">Products</h1>
<h5 ><a style="color: white;text-decoration: none" href="index.php">Home /</a><a style="color: white;text-decoration: none" href="products.php">Products /</a><a style="color: white;text-decoration: none" href="#">Product Details</a>
</h5>
</div>
</div>
</div>
</section>
<section>
<div class="container-fluid">
<div class="jumbo">
<h4><strong>Our Products are Our Main Strength</strong></h4>
</div>
</div>
</section>
<script>
function changeImage(a)
{
var image=a;
document.getElementById("big_img").src=a;
}
</script>
<section style="margin-top: 20px;">
<div class="container">
<div class="row">
<div class="col-sm-6">
<figure>
<img src="assets/img/prd1.jpg" id="big_img" style="margin: 0px auto;" class="img-responsive">
</figure>
<div class="row" style="margin-top:20px">
<div class="col-xs-3">
<figure>
<img class="sm_img1 img-responsive" src="assets/img/prd1.jpg" onclick="return changeImage('assets/img/prd1.jpg')" style="height:100px;cursor:pointer;" title="Click for Larger Image">
</figure>
</div>
<div class="col-xs-3 ">
<figure>
<img class="sm_img1 img-responsive" src="assets/img/prd2.jpg" onclick="return changeImage('assets/img/prd2.jpg')" style="height:100px;cursor:pointer" title="Click for Larger Image" >
</figure>
</div>
<div class="col-xs-3 ">
<figure>
<img class="sm_img1 img-responsive" src="assets/img/prd3.jpg" onclick="return changeImage('assets/img/prd3.jpg')" style=" height:100px;cursor:pointer" title="Click for Larger Image">
</figure>
</div>
<div class="col-xs-3 ">
<figure>
<img class="sm_img1 img-responsive" src="assets/img/prd4.jpeg" onclick="return changeImage('assets/img/prd4.jpeg')" style="height:100px;cursor:pointer" title="Click for Larger Image" >
</figure>
</div>
</div>
</div>
<div class="col-sm-6">
<h2><?php echo $res2['name'] ?></h2>
<br>
<p>
<?php echo $res2['description'] ?>
</p>
</div>
</div>
<div class="row" style="margin-top: 40px;">
<div class="col-sm-4">
<figure>
<img src="assets/img/prdmm1.jpeg" id="prd_size_img" style="margin: 0px auto;" class="img-responsive">
</figure>
<figcaption class="prd_caption"> 18mm-20mm</figcaption>
</div>
<div class="col-sm-4">
<figure>
<img src="assets/img/prdmm2.jpeg" id="prd_size_img" style="margin: 0px auto;" class="img-responsive">
</figure>
<figcaption class="prd_caption"> 70mm-80mm</figcaption>
</div>
<div class="col-sm-4">
<figure>
<img src="assets/img/prdmm3.jpeg" id="prd_size_img" style="margin: 0px auto;" class="img-responsive">
</figure>
<figcaption class="prd_caption"> 200mm-210mm</figcaption>
</div>
</div>
</div>
</section >
<section style="margin-top:20px">
<?php
include 'footer.php';
?>
</section>
</body>
</html>