-
Notifications
You must be signed in to change notification settings - Fork 0
/
product-details.php
277 lines (271 loc) · 13.7 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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
<?php
require('lib/header.php');
?>
<?php
$product_num = "p000";
$conn = mysqli_connect("127.0.0.1:3306","root","1234","shopping_mall");
$sql = "SELECT * FROM shopping_mall.product WHERE 상품번호=\"$product_num\"";
$result = mysqli_fetch_array(mysqli_query($conn, $sql));
$product_name = $result['상품이름'];
$product_detail = $result['상품설명'];
$product_price = $result['가격'];
echo"
<!-- Breadcrumb Begin -->
<div class=\"breadcrumb-option\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col-lg-12\">
<div class=\"breadcrumb__links\">
<a href=\"./index.php\"><i class=\"fa fa-home\"></i> Home</a>
<span>Essential structured blazer</span>
</div>
</div>
</div>
</div>
</div>
<!-- Breadcrumb End -->
<!-- Product Details Section Begin -->
<section class=\"product-details spad\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col-lg-6\">
<div class=\"product__details__pic\">
<img data-hash=\"product\" class=\"product__big__img\" src=\"img/product/details/$product_num.jpg\" alt=\"\">
</div>
</div>
<div class=\"col-lg-6\">
<div class=\"product__details__text\">
<h3>$product_name</h3>
<div class=\"product__details__price\">$product_price</div>
<p>$product_detail</p>
<div class=\"product__details__button\">
<div class=\"quantity\">
<span>Quantity:</span>
<div class=\"pro-qty\">
<input type=\"text\" value=\"1\">
</div>
</div>
<a href=\"#\" class=\"cart-btn\"><span class=\"icon_bag_alt\"></span> Add to cart</a>
<ul>
<li><a href=\"#\"><span class=\"icon_heart_alt\"></span></a></li>
<li><a href=\"#\"><span class=\"icon_adjust-horiz\"></span></a></li>
</ul>
</div>
<div class=\"product__details__widget\">
<ul>
<li>
<span>Availability:</span>
<div class=\"stock__checkbox\">
<label for=\"stockin\">
In Stock
<input type=\"checkbox\" id=\"stockin\">
<span class=\"checkmark\"></span>
</label>
</div>
</li>
<li>
<span>Available color:</span>
<div class=\"color__checkbox\">
<label for=\"red\">
<input type=\"radio\" name=\"color__radio\" id=\"red\" checked>
<span class=\"checkmark\"></span>
</label>
<label for=\"black\">
<input type=\"radio\" name=\"color__radio\" id=\"black\">
<span class=\"checkmark black-bg\"></span>
</label>
<label for=\"grey\">
<input type=\"radio\" name=\"color__radio\" id=\"grey\">
<span class=\"checkmark grey-bg\"></span>
</label>
</div>
</li>
<li>
<span>Available size:</span>
<div class=\"size__btn\">
<label for=\"xs-btn\" class=\"active\">
<input type=\"radio\" id=\"xs-btn\">
xs
</label>
<label for=\"s-btn\">
<input type=\"radio\" id=\"s-btn\">
s
</label>
<label for=\"m-btn\">
<input type=\"radio\" id=\"m-btn\">
m
</label>
<label for=\"l-btn\">
<input type=\"radio\" id=\"l-btn\">
l
</label>
</div>
</li>
<li>
<span>Promotions:</span>
<p>Free shipping</p>
</li>
</ul>
</div>
</div>
</div>
<div class=\"col-lg-12\">
<div class=\"product__details__tab\">
<ul class=\"nav nav-tabs\">
</ul>
<div class=\"tab-content\">
<img data-hash=\"product_detail\" class=\"product__big__img\" src=\"img/product/details/$product_num-detail.jpg\" alt=\"\">
</div>
</div>
</div>
</div>
<div class=\"row\">
<!-- Product Details Section End --> ";
?>
<div class="blog__details__comment">
<h5>3 Comment</h5>
<a href="#" class="leave-btn">Leave a comment</a>
<div class="blog__comment__item">
<div class="blog__comment__item__pic">
<img src="img/blog/details/comment-1.jpg" alt="">
</div>
<div class="blog__comment__item__text">
<h6>Brandon Kelley</h6>
<p>Duis voluptatum. Id vis consequat consetetur dissentiet, ceteros commune perpetua
mei et. Simul viderer facilisis egimus tractatos splendi.</p>
<ul>
<li><i class="fa fa-clock-o"></i> Seb 17, 2019</li>
<li><i class="fa fa-heart-o"></i> 12</li>
<li><i class="fa fa-share"></i> 1</li>
</ul>
</div>
</div>
<div class="blog__comment__item blog__comment__item--reply">
<div class="blog__comment__item__pic">
<img src="img/blog/details/comment-2.jpg" alt="">
</div>
<div class="blog__comment__item__text">
<h6>Brandon Kelley</h6>
<p>Consequat consetetur dissentiet, ceteros commune perpetua mei et. Simul viderer
facilisis egimus ulla mcorper.</p>
<ul>
<li><i class="fa fa-clock-o"></i> Seb 17, 2019</li>
<li><i class="fa fa-heart-o"></i> 12</li>
<li><i class="fa fa-share"></i> 1</li>
</ul>
</div>
</div>
<div class="blog__comment__item">
<div class="blog__comment__item__pic">
<img src="img/blog/details/comment-3.jpg" alt="">
</div>
<div class="blog__comment__item__text">
<h6>Brandon Kelley</h6>
<p>Duis voluptatum. Id vis consequat consetetur dissentiet, ceteros commune perpetua
mei et. Simul viderer facilisis egimus tractatos splendi.</p>
<ul>
<li><i class="fa fa-clock-o"></i> Seb 17, 2019</li>
<li><i class="fa fa-heart-o"></i> 12</li>
<li><i class="fa fa-share"></i> 1</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Product Details Section End -->
<!-- Footer Section Begin -->
<footer class="footer">
<div class="container">
<div class="row">
<div class="col-lg-4 col-md-6 col-sm-7">
<div class="footer__about">
<div class="footer__logo">
<a href="./index.html"><img src="img/logo.png" alt=""></a>
</div>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt
cilisis.</p>
<div class="footer__payment">
<a href="#"><img src="img/payment/payment-1.png" alt=""></a>
<a href="#"><img src="img/payment/payment-2.png" alt=""></a>
<a href="#"><img src="img/payment/payment-3.png" alt=""></a>
<a href="#"><img src="img/payment/payment-4.png" alt=""></a>
<a href="#"><img src="img/payment/payment-5.png" alt=""></a>
</div>
</div>
</div>
<div class="col-lg-2 col-md-3 col-sm-5">
<div class="footer__widget">
<h6>Quick links</h6>
<ul>
<li><a href="#">About</a></li>
<li><a href="#">Blogs</a></li>
<li><a href="#">Contact</a></li>
<li><a href="#">FAQ</a></li>
</ul>
</div>
</div>
<div class="col-lg-2 col-md-3 col-sm-4">
<div class="footer__widget">
<h6>Account</h6>
<ul>
<li><a href="#">My Account</a></li>
<li><a href="#">Orders Tracking</a></li>
<li><a href="#">Checkout</a></li>
<li><a href="#">Wishlist</a></li>
</ul>
</div>
</div>
<div class="col-lg-4 col-md-8 col-sm-8">
<div class="footer__newslatter">
<h6>NEWSLETTER</h6>
<form action="#">
<input type="text" placeholder="Email">
<button type="submit" class="site-btn">Subscribe</button>
</form>
<div class="footer__social">
<a href="#"><i class="fa fa-facebook"></i></a>
<a href="#"><i class="fa fa-twitter"></i></a>
<a href="#"><i class="fa fa-youtube-play"></i></a>
<a href="#"><i class="fa fa-instagram"></i></a>
<a href="#"><i class="fa fa-pinterest"></i></a>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<!-- Link back to Colorlib can't be removed. Template is licensed under CC BY 3.0. -->
<div class="footer__copyright__text">
<p>Copyright © <script>document.write(new Date().getFullYear());</script> All rights reserved | This template is made with <i class="fa fa-heart" aria-hidden="true"></i> by <a href="https://colorlib.com" target="_blank">Colorlib</a></p>
</div>
<!-- Link back to Colorlib can't be removed. Template is licensed under CC BY 3.0. -->
</div>
</div>
</div>
</footer>
<!-- Footer Section End -->
<!-- Search Begin -->
<div class="search-model">
<div class="h-100 d-flex align-items-center justify-content-center">
<div class="search-close-switch">+</div>
<form class="search-model-form">
<input type="text" id="search-input" placeholder="Search here.....">
</form>
</div>
</div>
<!-- Search End -->
<!-- Js Plugins -->
<script src="js/jquery-3.3.1.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.magnific-popup.min.js"></script>
<script src="js/jquery-ui.min.js"></script>
<script src="js/mixitup.min.js"></script>
<script src="js/jquery.countdown.min.js"></script>
<script src="js/jquery.slicknav.js"></script>
<script src="js/owl.carousel.min.js"></script>
<script src="js/jquery.nicescroll.min.js"></script>
<script src="js/main.js"></script>
</body>
</html>