Mini Shell

Direktori : /home/haworld/public_html/
Upload File :
Current File : //home/haworld/public_html/products.php

<!doctype html>
<html class="no-js" lang="zxx">

<head>
    <?php include('include/head.php'); ?>
</head>

<body>

    <?php include "include/header.php";
    $url = $_GET['url'];
    $sql1 = mysqli_query($con, "SELECT * FROM `category` WHERE `url`='$url'");
    $category = mysqli_fetch_assoc($sql1);
    $cat_id = $category['id'];
    $cat_name = $category['name'];
    ?>

    <main>

        <!-- breadcrumb-area-start -->
        <div class="tp-breadcrumb__area p-relative fix tp-breadcrumb-height" data-background="assets/img/breadcrumb/breadcrumb-bg.png">
            <div class="tp-breadcrumb__shape-1 z-index-5">
                <img src="assets/img/breadcrumb/breadcrumb-shape-1.png" alt="">
            </div>
            <div class="tp-breadcrumb__shape-2 z-index-5">
                <img src="assets/img/breadcrumb/breadcrumb-shape-2.png" alt="">
            </div>
            <div class="container">
                <div class="row">
                    <div class="col-12">
                        <div class="tp-breadcrumb__content z-index-5">
                            <h3 class="tp-breadcrumb__title"><?= $cat_name ?></h3>
                            <div class="tp-breadcrumb__list">
                                <span><a href="index.php">Home</a></span>
                                <span class="dvdr"><i class="fa-sharp fa-solid fa-slash-forward"></i></span>
                                <span><?= $cat_name ?></span>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- breadcrumb-area-end -->

        <!-- about-area-start -->
        <div id="service" class="tp-service-3__area mt-3">
            <div class="container">
                <div class="row">
                    <div class="col-xl-12">
                        <div class="tp-service-3__section-title text-center pb-40">
                            <span class="tp-section-subtitle-3">What We Provide</span>
                            <h4 class="tp-section-title">Our Products</h4>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <?php
                    $sql = mysqli_query($con, "SELECT * FROM `product` WHERE `category` = '$cat_id'");
                    while ($product = mysqli_fetch_assoc($sql)) {
                        $image = json_decode($product['image']);
                    ?>
                        <div class="col-xl-3 col-lg-3 col-md-6 mb-30 wow tpfadeUp" data-wow-duration=".9s" data-wow-delay=".3s">
                            <div class="tp-service-3__item p-relative" style="border: 3px solid #181919;">
                                <div class="tp-service-3__thumb-box p-relative">
                                    <div class="tp-service-3__thumb">
                                        <img src="media/product/<?= $image['0'] ?>" alt="<?= $product['image_alt_tag'] ?>">
                                    </div>
                                </div>
                                <div class="tp-service-3__content text-center">
                                    <a href="product.php?url=<?= $product['url'] ?>">
                                        <h4 class="tp-service-3__title-sm"><?= $product['name'] ?></h4>
                                    </a>
                                    <a href="product.php?url=<?= $product['url'] ?>">Read More</a>
                                    <div class="tp-service-3__shape">
                                        <img src="assets/img/service/service-shape.png" alt="">
                                    </div>
                                </div>
                            </div>
                        </div>
                    <?php } ?>
                </div>
            </div>
        </div>




    </main>

    <?php include('include/footer.php'); ?>
    <?php include('include/foot.php'); ?>

</body>

</html>