ok
Direktori : /home2/selectio/public_html/ramali.in/ |
Current File : /home2/selectio/public_html/ramali.in/index1.php |
<?php include "header.php"?> <style> #scroll-top.show { bottom: 40px !important; } .product-action-vertical { display: none; } .intro-wrapper { margin-top: 2.2rem; padding-left: 0px; } </style> <style> @media (min-width: 340px) and (max-width: 479px) { figure.product-media img { height: 250px !important; } h2.title.text-left.appear-animate.mb-5.fadeIn.appear-animation-visible { margin-bottom: 0px !important; } h2.title.text-left.pt-1.mb-5.appear-animate.fadeIn.appear-animation-visible { margin-bottom: 25px !important; } figure.category-media { width: 100px; height: 100px; } .swiper-slide.category.category-ellipse.swiper-slide-active { width: 100px !important; } .swiper-slide.category.category-ellipse.swiper-slide-next { width: 100px !important; } .swiper-slide.category.category-ellipse { width: 100px !important; } .swiper-container.swiper-theme.icon-box-wrapper.appear-animate.br-sm.mt-6.mb-10.swiper-container-initialized.swiper-container-horizontal.fadeIn.appear-animation-visible { margin-bottom: 20px !important; margin-top: 15px !important; } .swiper-container.category-wrapper.swiper-theme.appear-animate.swiper-container-initialized.swiper-container-horizontal.fadeIn.appear-animation-visible { margin-bottom: 0px !important; margin-top: 0px !important; padding-top: 0px !important; } .swiper-pagination.swiper-pagination-clickable.swiper-pagination-bullets { margin-top: 10px !important; } .row.banner-product-wrapper.appear-animate.mb-10.fadeIn.appear-animation-visible { margin-bottom: 0px !important; } } </style> <!-- Start of Main --> <div class="main"> <div class="container"> <div class="intro-wrapper mb-4"> <div class="swiper-container swiper-theme nav-inner swiper-nav-md animation-slider" data-swiper-options="{ 'autoplay': { 'delay': 8000, 'disableOnInteraction': false } }"> <div class="swiper-wrapper row cols-1 gutter-no"> <?php $statement = $pdo->prepare("SELECT * FROM slider"); $statement->execute(); $result = $statement->fetchAll(PDO::FETCH_ASSOC); foreach ($result as $row) { ?> <div class="swiper-slide banner banner-fixed intro-slide intro-slide1 br-sm" style="background-image: url(dashboard/<?=$row['image'] ?>);background-color: #262729;"> </div> <?php } ?> </div> <button class="swiper-button-next"></button> <button class="swiper-button-prev"></button> </div> </div> <!-- End of Intro Wrapper --> <div class="swiper-container swiper-theme intro-banner appear-animate" data-swiper-options="{ 'spaceBetween': 20, 'slidesPerView': 1, 'breakpoints': { '576': { 'slidesPerView': 2, 'spaceBetween': 15 }, '992': { 'slidesPerView': 3 } } }"> <div class="swiper-wrapper row cols-lg-3 cols-sm-2 cols-1"> <?php $statement = $pdo->prepare("SELECT offers.*,category.name FROM offers LEFT JOIN category ON category.id=offers.position"); $statement->execute(); $offer = $statement->fetchAll(PDO::FETCH_ASSOC); foreach ($offer as $row_offer) { ?> <div class="swiper-slide"> <figure class="banner banner-fixed br-sm"> <img src="dashboard/<?=$row_offer['image'] ?>" alt="Category Banner" width="400" height="200" style="background-color: #3C3C3C;height: 198px;object-fit: fill;" /> <div class="banner-content y-50"> <h5 class="banner-subtitle text-primary text-uppercase font-weight-bold ls-25"> <?=$row_offer['main_title'] ?> </h5> <h3 class="banner-title text-white font-weight-bold"><?=$row_offer['second_title'] ?><br></h3> <a href="category.php?category=<?=$row_offer['position']?>" class="btn btn-white btn-link btn-underline btn-icon-right"> Shop Now<i class="w-icon-long-arrow-right"></i> </a> </div> </figure> </div> <?php } ?> </div> <div class="swiper-pagination"></div> </div> <div class="swiper-container swiper-theme icon-box-wrapper appear-animate br-sm mt-6 mb-10" data-swiper-options="{ 'slidesPerView': 1, 'breakpoints': { '576': { 'slidesPerView': 2 }, '768': { 'slidesPerView': 3 }, '992': { 'slidesPerView': 3 }, '1200': { 'slidesPerView': 4 } } }"> <div class="swiper-wrapper row cols-md-4 cols-1"> <div class="swiper-slide icon-box icon-box-side text-dark"> <span class="icon-box-icon icon-shipping"> <i class="w-icon-truck"></i> </span> <div class="icon-box-content"> <h4 class="icon-box-title mb-1 ls-normal">Fastest Shipping & Returns</h4> <p class="text-default">For all orders</p> </div> </div> <div class="swiper-slide icon-box icon-box-side text-dark"> <span class="icon-box-icon icon-payment"> <i class="w-icon-bag"></i> </span> <div class="icon-box-content"> <h4 class="icon-box-title mb-1 ls-normal">Secure Payment</h4> <p class="text-default">We ensure secure payment</p> </div> </div> <div class="swiper-slide icon-box icon-box-side text-dark icon-box-chat"> <span class="icon-box-icon icon-chat"> <i class="w-icon-chat"></i> </span> <div class="icon-box-content"> <h4 class="icon-box-title mb-1 ls-normal">Customer Support</h4> <p class="text-default">Call or email us 24/7</p> </div> </div> </div> </div> <!-- End of Iocn Box Wrapper --> <div class="container"> <div class="row"> <?php $statement1 = $pdo->prepare("SELECT * FROM `product_ads`"); $statement1->execute(); $res_adver = $statement1->fetchAll(PDO::FETCH_ASSOC); $total_ads = $statement1->rowCount(); if($total_ads>0){ echo ' <h2 class="title text-left pt-1 mb-5 appear-animate">Advertisement</h2>'; foreach ($res_adver as $row_advertise) { ?> <div class="col-md-4"> <figure> <img src="dashboard/upload/product-advt/<?=$row_advertise['ad1']?>" alt="Category" width="330" height="239" style="height: 293px;background-color: #605959;"> </figure> </div> <div class="col-md-4"> <figure> <img src="dashboard/upload/product-advt/<?=$row_advertise['ad2']?>" alt="Category" width="330" height="239" style="height: 293px;background-color: #605959;"> </figure> </div> <div class="col-md-4"> <figure> <img src="dashboard/upload/product-advt/<?=$row_advertise['ad3']?>" alt="Category" width="330" height="239" style="height: 293px;background-color: #605959;"> </figure> </div> <?php } }?> </div> </div> <h2 class="title text-left pt-1 mb-5 appear-animate">Most Popular Products</h2> <div class="swiper"> <div class="swiper-container category-wrapper swiper-theme appear-animate" data-swiper-options="{ 'spaceBetween': 20, 'slidesPerView': 2, 'breakpoints': { '576': { 'slidesPerView': 3 }, '768': { 'slidesPerView': 4 }, '992': { 'slidesPerView': 5 }, '1200': { 'slidesPerView': 6 } } }"> <div class="swiper-wrapper row cols-xl-6 cols-lg-5 cols-md-4 cols-sm-3 cols-2"> <?php $statement = $pdo->prepare("SELECT * FROM category ORDER BY `row_order` ASC"); $statement->execute(); $result = $statement->fetchAll(PDO::FETCH_ASSOC); foreach ($result as $row) { ?> <div class="swiper-slide category category-ellipse"> <figure class="category-media"> <a href="category.php?category=<?=$row['id']?>"> <img src="dashboard/<?=$row['image'] ?>" alt="Categroy" style="background-color: #5C92C0;height: 190px;width: 190px;" /> </a> </figure> <div class="category-content"> <h4 class="category-name"> <a href="#"><?=$row['name']?></a> </h4> </div> </div> <?php } ?> </div> <div class="swiper-pagination"></div> </div> </div> <!-- Banner Product Wrapper --> <?php $statement = $pdo->prepare("SELECT * FROM product_type"); $statement->execute(); $result = $statement->fetchAll(PDO::FETCH_ASSOC); foreach ($result as $row) { ?> <h2 class="title text-left appear-animate mb-5"><?=$row['title']?></h2> <div class="row banner-product-wrapper appear-animate mb-10"> <div class="col-lg-12 mb-4 mb-lg-0"> <div class="swiper-container swiper-theme mt-4" data-swiper-options="{ 'spaceBetween': 20, 'slidesPerView': 2, 'breakpoints': { '576': { 'slidesPerView': 3 }, '768': { 'slidesPerView': 4 } } }"> <div class="swiper-wrapper row cols-md-4 cols-sm-3 cols-2"> <?php $statement = $pdo->prepare("SELECT products.*,(SELECT price FROM product_variant WHERE product_variant.product_id=products.id LIMIT 1) as price, (SELECT id FROM product_variant WHERE product_variant.product_id=products.id LIMIT 1) as variant_id FROM products where indicator=".$row['id'].""); $statement->execute(); $product_detail = $statement->fetchAll(PDO::FETCH_ASSOC); foreach ($product_detail as $row) { ?> <div class="swiper-slide product-wrap"> <div class="product product-simple text-center"> <figure class="product-media"> <a href="product-details.php?products=<?=$row['id']?>"> <img src="dashboard/<?=$row['image'] ?>" alt="Product" width="330" height="338" style="height: 378px;"> <!--<img src="dashboard/<?=$row['image'] ?>" alt="Product" width="330" height="338" style="height: 378px;">--> </a> <div class="product-action-vertical"> <a href="#" class="btn-product-icon btn-wishlist w-icon-heart" title="Add to wishlist"></a> <!--<a href="#" class="btn-product-icon btn-cart w-icon-cart" title="Add to Compare"></a>--> </div> <div class="product-action"> <a href="product-details.php?products=<?=$row['id']?>" class="btn-product" title="Quick View">Quick View</a> </div> </figure> <div class="product-details"> <h4 class="product-name"><a href="#"><?=$row['name']?></a> </h4> <div class="ratings-container"> <div class="ratings-full"> <span class="ratings" style="width: 100%;"></span> <span class="tooltiptext tooltip-top"></span> </div> <a href="#" class="rating-reviews">(4.5 reviews)</a> </div> <div class="product-pa-wrapper"> <div class="product-price"> <ins class="new-price"><i class="bi bi-currency-rupee"></i><?=number_format($row['price'],2)?></ins> </div> <div class="product-action"> <?php if($totalp==1) { ?> <span onClick="aleady_added()" class="btn-cart btn-product btn btn-icon-right btn-link btn-underline" style="color: green;">Added</span> <?php } else{ ?> <span id="items_" onclick="Quick_AddToCart('<?=$row['id']?>', <?=$row['variant_id']?>')" class="btn-cart btn-product btn btn-icon-right btn-link btn-underline"> Add To Cart </span> <span id="newadded_" class="btn-cart btn-product btn btn-icon-right btn-link btn-underline"> </span> <?php } ?> </div> </div> </div> </div> </div> <?php } ?> </div> </div> </div> </div> <?php } ?> </div> <!-- End of Container --> </div> <!-- End of Main --> <?php include "footer.php"?>