MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 3.133.152.189
Web Server : Apache
System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : ppcad7no ( 715)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0750) :  /home2/ppcad7no/deergham.com/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/ppcad7no/deergham.com/index-popular-pro.php
        <section class="popular section">
            <div class=container>
                <div class=popular_header>
                    <h2 class=popular_header-title>Popular Products</h2>
                    <p class=popular_header-text>Deergham's top offerings feature a blend of nature's goodness, from golden elixirs to wholesome seeds.</p>
                </div>
                <div class="popular_slider swiper">
                    <div class=swiper-wrapper>
                        <?php 
                            $sql_sli_cat = "SELECT * FROM tbl_services WHERE tour_status='Active' order by id desc";
                            $sql_sli_cat = mysqli_query($db,$sql_sli_cat);
                            if(mysqli_num_rows($sql_sli_cat)){
                            while($data_sli_cat = mysqli_fetch_assoc($sql_sli_cat)){
                        ?>
                        <div class="popular_slider-slide swiper-slide" style="box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23); border-radius:16px;">
                            <div class="wrapper d-flex flex-column">
                                <div class="media" style="background-color:#d7eeea;" >
                                    <img src="<?php echo $wspath ?>admin/images/property-image/<?php echo $data_sli_cat['image']; ?>" alt="<?php echo $data_sli_cat['name']; ?>">
                                    <div class="overlay d-flex justify-content-between align-items-start p-2">
                                       <?php 
                                        session_start();
                                        if(isset($_SESSION['user'])) {
                                            $user_id = $_SESSION['user']['cus_id'];
                                          $pro_id = $data_sli_cat['id'];
                                            echo '<form action="add-product-queries.php" method="POST">
                                                <div class="action d-flex flex-column">
                                                <input type="hidden" name="user_id" value="'.$user_id.'">
                                                <input type="hidden" name="product_id" value="'.$pro_id.'">
                                                <button type="submit" name="submit_wish" class="action_link d-flex align-items-center justify-content-center" 
                                                data-role="wishlist"><i class="icon-heart"></i></button></div>
                                            </form>';
                                        }else{
                                             echo '<div class="action d-flex flex-column">
                                            <a class="action_link d-flex align-items-center justify-content-center" 
                                            href="'.$wspath.'login.php" data-role="wishlist"><i class="icon-heart"></i></a></div>';
                                        } 
                                        ?>   
                                    </div>
                                </div>
                                <div class="main d-flex flex-column align-items-center justify-content-between">
                                <div class="main_price d-flex flex-column justify-content-center align-items-center" >
                                     <a class="main_title" href="<?php echo $wspath?>detail<?php echo $data_sli_cat['slug_url'];?>.html" rel="noopener norefferer"><?= $data_sli_cat["name"] ?></a>
                                     <div class="main_price"> <span class="price price--old">₹<?php echo $data_sli_cat['price'];?></span> 
                                       <span class="price">₹<?php echo $data_sli_cat['mrp'];?></span>
                                     </div>
                                </div>
                            </div>
                            <div class="main d-flex align-items-center justify-content-center mb-4">
                                <form action="<?php echo $wspath?>add-cart.php" method="POST" style="margin-right:10px;">
                                    <!--<a class="btn btn--green"href="">Add to Cart</a>-->
                                    <input name="sr_no" value="<?php echo $data_sli_cat['id'];?>" hidden>
                                    <input name="name" value="<?php echo $data_sli_cat['name'];?>" hidden>
                                    <input name="price" value="<?php echo $data_sli_cat['mrp'];?>" hidden>
                                    <input name="image" value="<?php echo $data_sli_cat['image'];?>" hidden>
                                    <input name="quantity" value="1" hidden>
                                    <button class="btn btn--green" name="add_product" type="submit">Add to Cart</button>
                                </form>
                                <form action="<?php echo $wspath?>add-cart.php" method="POST">
                                    <!--<a class="btn btn--green"href="">Add to Cart</a>-->
                                    <input name="sr_no" value="<?php echo $data_sli_cat['id'];?>" hidden>
                                    <input name="name" value="<?php echo $data_sli_cat['name'];?>" hidden>
                                    <input name="price" value="<?php echo $data_sli_cat['mrp'];?>" hidden>
                                    <input name="image" value="<?php echo $data_sli_cat['image'];?>" hidden>
                                    <input name="quantity" value="1" hidden>
                                    <button class="btn btn--green" name="checkout_product" type="submit">Buy Now</button>
                                </form>
                            </div>
                            </div>
                        </div>
                        <?php } } ?>
                    </div>
                    <div class="swiper-pagination swiper-pagination--dots"></div>
                </div>
            </div>
        </section>

MMCT - 2023