-
Notifications
You must be signed in to change notification settings - Fork 0
/
single-product.php
64 lines (58 loc) · 3.15 KB
/
single-product.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
<?php
include 'includes/connection.php';
$a = 1;
$id = $_GET['id'];
$products = mysqli_query($conn, "SELECT * FROM products WHERE id=$id");
$fetch = mysqli_fetch_array($products);
?>
<!DOCTYPE html>
<html style="font-size: 16px;">
<head>
<meta name="keywords" content="">
<title>Product</title>
<link rel="stylesheet" href="all-products.css" media="screen">
<?php include './includes/meta/meta.php'; ?>
<?php include './includes/meta/script.php'; ?>
<?php include './includes/meta/favicons.php'; ?>
<meta name="twitter:title" content="All Products">
<meta property="og:title" content="All Products">
</head>
<body class="u-body u-xl-mode">
<header class="u-clearfix u-custom-color-3 u-header u-sticky u-header" id="sec-3417">
<div class="u-clearfix u-sheet u-valign-middle-xs u-sheet-1">
<a href="home.php" data-page-id="235967989" class="u-hover-feature u-image u-logo u-image-1"
data-image-width="500" data-image-height="500" title="Home">
<img src="images/Labonita.png" class="u-logo-image u-logo-image-1">
</a>
<?php include './includes/navigation-bar.php'; ?>
</div>
</header>
<section class="u-clearfix u-custom-color-3 u-section-1" id="sec-ff46">
<div class="u-align-left u-clearfix u-sheet u-sheet-1">
<img class="u-hover-feature u-image u-image-round u-radius-35 u-image-1" src="images/Untitleddesign4-38.png"
alt="" data-image-width="1600" data-image-height="900">
</div>
</section>
<section class="u-clearfix u-custom-color-3 u-section-2" id="sec-bb70">
<div class="u-clearfix u-sheet u-sheet-1">
<?php echo '<img alt="products" class=" u-hover-feature u-image u-image-round u-preserve-proportions u-radius-22 u-image-1" src="admin/includes/prodpic/' . $fetch['prod_image'] . '" alt="" data-image-width="500" data-image-height="500">' ?>
<p class="u-custom-font u-text u-text-default u-text-1"><?= $fetch['prod_name']; ?></p>
<p class="u-price u-text-custom-color-5" style="font-size: 1.5rem; font-weight: 700; margin-top: 20px">
Description:</p>
<p class="u-align-justify u-custom-font u-font-montserrat u-large-text u-text u-text-variant u-text-2">
<?= $fetch['prod_desc']; ?></p>
<p class="u-price u-text-custom-color-5" style="font-size: 1.5rem; font-weight: 700; margin-top: 20px">
Price:</p>
<p class="u-text u-text-5"><?= $fetch['prod_price']; ?></p>
<a target="_blank" href="<?= $fetch['link']; ?>"
class="u-border-2 u-border-custom-color-5 u-btn u-btn-round u-button-style u-custom-font u-font-montserrat u-hover-custom-color-4 u-none u-radius-10 u-text-hover-white u-btn-3"
style="margin-bottom: 30px">BUY
NOW</a>
</div>
</section>
<footer class="u-align-left-md u-align-left-sm u-align-left-xs u-clearfix u-custom-color-4 u-footer" id="sec-84aa">
<div class="u-clearfix u-sheet u-valign-left-lg u-valign-left-md u-sheet-1">
<?php include './includes/footer.php'; ?>
</footer>
</body>
</html>