MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 3.135.206.229
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/product-details.php
<?php
    include_once('admin/config.php');
    $slug_name = $_GET['slug_url'];
    if(isset($_SERVER['PATH_INFO'])){
    $slug_name=$_SERVER['PATH_INFO'];
    $querydt="SELECT * FROM `tbl_services` WHERE `slug_url`='$slug_name'";
    $rundt = mysqli_query($db,$querydt) or die("Query Not run");
    $datadt = mysqli_fetch_assoc($rundt);
 }
?>
<!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><?php echo $datadt["meta_title"];?></title>
    <meta name="description" content="<?php echo $datadt["meta_desc"];?>">
    <link rel=stylesheet href="<?php echo $wspath?>css/product.min.css">
    <!--<link rel=stylesheet href=css/floatbutton.min.css>-->
</head>

<body>
    
    <?php include "header.php" ?>

    <main>
        <header class="page" style="padding-top:;">
            <div class="page_main container-fluid">
                <div class="container">
                    <h1 class="page_header"><?php echo $datadt['display_name'];?></h1>
                    <!--<p class="page_text">Nibh tellus molestie nunc non blandit. Mi tempus imperdiet nulla malesuada-->
                    <!--    pellentesque elit</p>-->
                </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><?php echo $datadt['name'];?></span></li>
                </ul>
            </div>
        </header>
        <section class="about section--nopb">
            <div class="container">
                <div class="about_main d-lg-flex flex-nowrap">
                    <div class="about_main-slider">
                        <div class="about_main-slider--single" data-modal="false">
                            <div class="swiper-wrapper">
                                <div class="swiper-slide">
                                    <a href="<?php echo $wspath?>admin/images/property-image/<?php echo $datadt['image'];?>" data-role="gallery">
                                       <img class="lazy" data-src="<?php echo $wspath?>admin/images/property-image/<?php echo $datadt['image'];?>" src="<?php echo $wspath?>admin/images/property-image/<?php echo $datadt['image'];?>" alt="media">
                                    </a>
                                </div>
                                <?php
                                    $catid=$datadt['id'];
                                    $sqltimg = "SELECT * FROM tbl_image WHERE tour_id=$catid";
                                    $runtimg = mysqli_query($db,$sqltimg) or die("Query Not run");
                                    while($datatimg = mysqli_fetch_assoc($runtimg)){
                                ?>
                                <div class="swiper-slide">
                                    <a href="<?php echo $wspath?>admin/images/gallery/<?php echo $datatimg['image'];?>" data-role="gallery">
                                       <img class="lazy" data-src="<?php echo $wspath?>admin/images/gallery/<?php echo $datatimg['image'];?>" src="<?php echo $wspath?>admin/images/property-image/<?php echo $datatimg['image'];?>" alt="media">
                                    </a>
                                </div>
                                <?php } ?>
                            </div>
                            <div class="swiper-controls d-flex align-items-center justify-content-between">
                                <a class="swiper-button-prev d-inline-flex align-items-center justify-content-center" href="#">
                                <i class="icon-caret_left icon"></i> </a>
                                <a class="swiper-button-next d-inline-flex align-items-center justify-content-center" href="#">
                                <i class="icon-caret_right icon"></i></a>
                            </div>
                        </div>
                        <div class="about_main-slider--thumbs">
                            <div class="swiper-wrapper">
                                <div class="swiper-slide">
                                   <img style="width:150px;height:150px;" class="lazy" data-src="<?php echo $wspath?>admin/images/property-image/<?php echo $datadt['image'];?>" src="<?php echo $wspath?>admin/images/property-image/<?php echo $datadt['image'];?>" alt="media">
                                </div>
                                <?php
                                    $catid=$datadt['id'];
                                    $sqltimg = "SELECT * FROM tbl_image WHERE tour_id=$catid";
                                    $runtimg = mysqli_query($db,$sqltimg) or die("Query Not run");
                                    while($datatimg = mysqli_fetch_assoc($runtimg)){
                                ?>
                                <div class="swiper-slide">
                                  <img style="width:150px; height:150px;" class="lazy" data-src="<?php echo $wspath?>admin/images/gallery/<?php echo $datatimg['image'];?>" src="<?php echo $wspath?>admin/images/gallery/<?php echo $datatimg['image'];?>" alt="media">
                                </div>
                                <?php } ?>
                            </div>
                        </div>
                    </div>
                    <div class="about_main-info">
                        <h2 class="title"><?php echo $datadt['name'];?></h2>
                        <p class="text"><?php echo $datadt['desc'];?></p>
                        <del><span style="padding-right:10px;color:red;"><b>₹ <?php echo $datadt['price'];?>/-</b></span></del>
                        <span class="about_main-info_price">₹ <?php echo $datadt['mrp'];?>/-</span>

                        <div class="about_main-info_buy d-flex align-items-center">
                            <!--<div class="qty d-flex align-items-center justify-content-between">-->
                            <!--    <span class="qty_minus control disabled d-flex align-items-center">-->
                                    <!--<i class="icon-minus"></i> </span><input class="qty_amount" type="number" readonly="readonly" value="1" min="1" max="99"> -->
                                    <!--<span class="qty_plus control d-flex align-items-center"><i class="icon-plus"></i></span>-->
                            <!--</div>-->
                            <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 $datadt['id'];?>" hidden>
                                <input name="name" value="<?php echo $datadt['name'];?>" hidden>
                                <input name="price" value="<?php echo $datadt['mrp'];?>" hidden>
                                <input name="image" value="<?php echo $datadt['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 $datadt['id'];?>" hidden>
                                <input name="name" value="<?php echo $datadt['name'];?>" hidden>
                                <input name="price" value="<?php echo $datadt['mrp'];?>" hidden>
                                <input name="image" value="<?php echo $datadt['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>
            </div>
        </section>
    </main>
    
    <?php include "footer.php" ?>
    <script src="<?php echo $wspath?>js/shop.min.js"></script>

</body>

</html>

MMCT - 2023