MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 3.144.101.75
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/.htpasswds/../deergham.com/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/ppcad7no/.htpasswds/../deergham.com/index-product.php
        <section class="featured section--nopb">
            <div class=container>
                <div class=featured_header>
                    <h2 class=featured_header-title>Featured Products</h2>
                    <p class=featured_header-text>Discover nature's best: honey, coconut oil, cow ghee.</p>
                </div>
                <div class="products_list d-grid">
                    <?php 
                        $sql_ser = "SELECT * FROM tbl_services WHERE tour_status='Active' ORDER BY `id` DESC LIMIT 6";
                        $run_ser = mysqli_query($db,$sql_ser);
                        if(mysqli_num_rows($run_ser) > 0){
                        while($data_ser = mysqli_fetch_assoc($run_ser)){
                    ?>
                    <div class=products_list-item>
                        <div class="products_list-item_wrapper d-flex flex-column">
                            <div class="media">
                                <a href="<?php echo $wspath?>detail<?php echo $data_ser['slug_url'];?>.html"  rel="noopener norefferer">

                                    <img src="<?= $wspath ?>admin/images/property-image/<?= $data_ser["image"] ?>" alt="<?= $data_ser["name"] ?>" width=100%"">
                                </a>
                              <div class="overlay d-flex justify-content-between align-items-start">
                                   <?php 
                                    session_start();
                                    if(isset($_SESSION['user'])) {
                                        $user_id = $_SESSION['user']['cus_id'];
                                      $pro_id = $data_ser['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_ser['slug_url'];?>.html" rel="noopener norefferer"><?= $data_ser["name"] ?></a>
                                     <div class="main_price"> <span class="price price--old">₹<?php echo $data_ser['price'];?></span> 
                                       <span class="price">₹<?php echo $data_ser['mrp'];?></span>
                                     </div>
                                </div>
                            </div>
                            <div class="main d-flex align-items-center justify-content-center">
                                <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_ser['id'];?>" hidden>
                                    <input name="name" value="<?php echo $data_ser['name'];?>" hidden>
                                    <input name="price" value="<?php echo $data_ser['mrp'];?>" hidden>
                                    <input name="image" value="<?php echo $data_ser['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_ser['id'];?>" hidden>
                                    <input name="name" value="<?php echo $data_ser['name'];?>" hidden>
                                    <input name="price" value="<?php echo $data_ser['mrp'];?>" hidden>
                                    <input name="image" value="<?php echo $data_ser['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=" d-flex justify-content-center pb-4">
                    <a class="featured_btn btn " href="<?php echo $wspath?>all-product.html">All Products</a>
                </div>
                <div class="container">
                    <div class=products_list-promo><span class=overlay></span>
                        <div class="row">
                            <div class="col-lg-4"></div>
                            <div class="col-lg-6">
                                <div class=content>
                                    <h3 class=products_list-promo_title>Best Offers for Customers</h3>
                                    <p class=products_list-promo_text>Indulge in nature's goodness with our premium herbal products! Enjoy exclusive discounts, freebies, and wellness bundles. Elevate your well-being with our best offers – your path to vitality awaits!</p>
                                    <div class="products_list-promo_timer timer d-flex justify-content-center justify-content-sm-start">
                                        <div class="timer_block d-flex flex-column justify-content-center"><span class=timer_block-number id=days>25</span> days</div>
                                        <div class="timer_block d-flex flex-column justify-content-center"><span class=timer_block-number id=hours>13</span> hours</div>
                                        <div class="timer_block d-flex flex-column justify-content-center"><span class=timer_block-number id=minutes>18</span> mins</div>
                                        <div class="timer_block d-flex flex-column justify-content-center"><span class=timer_block-number id=seconds>23</span> secs</div>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-2"></div>
                        </div>
                    </div>
                </div>
                
            </div>
        </section>

MMCT - 2023