����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����
Server IP : 162.0.232.25 / Your IP : 3.139.86.58 Web Server : LiteSpeed System : Linux premium276.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : kwacuqig ( 988) PHP Version : 8.2.26 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/kwacuqig/bm1holdings-ltd.com/ |
Upload File : |
<?php include './header.php'; include './assets/php/connect.php'; include './assets/php/filterFile.php'; if (isset($_GET['pageno'])) { $pageno = $_GET['pageno']; } else { $pageno = 1; } $no_of_records_per_page = 9; $offset = (($pageno - 1) * $no_of_records_per_page); $total_pages_sql = "SELECT COUNT(*) FROM `products`"; $result = mysqli_query($conn, $total_pages_sql); $total_rows = mysqli_fetch_array($result)[0]; $total_pages = ceil($total_rows / $no_of_records_per_page); if (isset($_GET['category'])) { if (!empty($_GET['category'])) { $category = $_GET['category']; } } ?> <div class="breadcrumbs"> <div class="container"> <div class="row"> <div class="col-12"> <div class="bread-inner"> <ul class="bread-list"> <li><a href="home">Home<i class="ti-arrow-right"></i></a></li> <li class="active"><a href="Products">Products</a></li> </ul> </div> </div> </div> </div> </div> <section class="shop-home-list section"> <div class="container"> <div class="row"> <div class="col-12 links"> <?php $query = "SELECT * FROM `categories` ORDER BY `sort` ASC"; $run = mysqli_query($conn, $query) or die(mysqli_error($conn)); while ($row = mysqli_fetch_array($run)) { ?> <a href="?category=<?php echo $row['category'];?>"><?php echo strtoupper($row['category']);?></a> <?php } ?> </div> </div> <div class="row"> <?php $query = "SELECT * FROM `products` WHERE `category`='$category' ORDER BY `pid` DESC LIMIT $offset, $no_of_records_per_page"; $run = mysqli_query($conn, $query) or die(mysqli_error($conn)); while ($row = mysqli_fetch_array($run)) { ?> <div class="col-lg-4 col-md-6 col-12" data-aos="flip-up" data-aos-duration="600" data-aos-delay="50"> <div class="single-list"> <div class="row"> <div class="col-lg-6 col-md-6 col-12"> <div class="list-image overlay"> <img src="assets/products/<?php echo $row['image']; ?>" alt="#"> <a href="product=<?php echo filter_file($row['pid'] . '-' . $row['product']); ?>" class="buy"><i class="fa fa-shopping-bag"></i></a> </div> </div> <div class="col-lg-6 col-md-6 col-12 no-padding"> <div class="content"> <h4 class="title"><a href="product=<?php echo filter_file($row['pid'] . '-' . $row['product']); ?>"><?php echo $row['product']; ?></a></h4> <div class="product-rate"> <i class="fas fa-star"></i> <i class="fas fa-star"></i> <i class="fas fa-star"></i> <i class="fas fa-star"></i> <i class="far fa-star"></i> </div> <p class="price with-discount">K<?php echo $row['discount']; ?></p> </div> </div> </div> </div> </div> <?php } ?> </div> </div> </section> <div class="container section"> <div class="row"> <div class="col-12"> <div class="pagination center mt-2"> <ul class="pagination-list"> <li><a href="<?php if ($pageno <= 1) { echo '#'; } else { echo "?pageno=" . ($pageno - 1) . "&category=$category"; } ?>"><i class="ti-arrow-left"></i></a></li> <?php for ($i = 1; $i <= 3; $i++) { echo "<li><a href=\"?pageno=$i&category=$category\">$i</a></li>"; } ?> <li><a href="<?php if ($pageno >= $total_pages) { echo '#'; } else { echo "?pageno=" . ($pageno + 1) . "&category=$category"; } ?>"><i class="ti-arrow-right"></i></a></li> </ul> </div> </div> </div> </div> <?php include './footer.php'; include './scripts.php'; ?> <script> document.querySelector("title").innerText = "BM 1 HOLDINGS LTD - PRODUCTS"; document.querySelectorAll(".menu-area ul li")[2].classList.add("active"); document.querySelectorAll(".slicknav_nav li a")[2].style.color = "blue"; </script>