MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 3.133.144.147
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/all-product.php
<?php
    session_start();
?>
<!DOCTYPE html>
<html lang=en>

<head>
    <meta charset=UTF-8>
    <meta name=viewport content="width=device-width,initial-scale=1,minimum-scale=1">
    <meta http-equiv=X-UA-Compatible content="ie=edge">
    <?php include "top-links.php" ?>
    <title><?= $datahome['site_pages_meta_title'] ?></title>
    <meta name="description" content="<?= $datahome['site_pages_meta_description'] ?>">
</head>

<body>
    
    <?php include "header.php" ?>
    
    
    <header class=page>
        <div class="page_main container-fluid">
            <div class=container>
                <h1 class=page_header>All Products</h1>
            </div>
        </div>
        <div class=container>
            <ul class="page_breadcrumbs d-flex flex-wrap">
                <li class=page_breadcrumbs-item><a class=link href=<?php echo $wspath?>>Home</a></li>
                <li class="page_breadcrumbs-item current"><span>All Products</span></li>
            </ul>
        </div>
    </header>
    <main>
       
        <section class="featured section--nopb">
            <div class=container>
                <div class=featured_header>
                    <h2 class=featured_header-title>All Products</h2>
                    <p class=featured_header-text>Here you can see our all products</p>
                </div>
                <div class="products_list d-grid">
                    <?php 
                        $sql_ser = "SELECT * FROM tbl_services ORDER BY `id` DESC ";
                        $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>
                                     <!--<p class="price">₹<?= $data_ser["mrp"] ?></p>-->
                                </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>
        </section>
    </main>
    
    <?php include "footer.php" ?>
    

</body>

</html>

MMCT - 2023