MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 13.59.111.183
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/fastelevator.in/../bittootour.in/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/ppcad7no/fastelevator.in/../bittootour.in/gallery.php
<!DOCTYPE html>
<html lang="en">

<head>

    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />

    <?php include 'top-link.php'; ?>

    <title>Bitto Tours &amp; Travells</title>
    <style>
    .thumb-image{
        padding:10px;
    }
    
        .thumb-image img{
              box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
              border-radius:5px;
        }
        .content .row .col-lg-3{
            padding-right:0px !important;
            padding-left:0px !important;
        }
    </style>
    <style>

        /* Overlay */
        .overlay {
            position: fixed;
            display: none;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            background-color: rgba(0, 0, 0, 0.8);
            z-index: 9999;
            cursor: pointer;
        }

        /* Popup Image */
        .popup-image {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            max-width: 90%;
            max-height: 90%;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
        }

        /* Close Button */
        .close-btn {
            position: absolute;
            top: 20px;
            right: 30px;
            font-size: 30px;
            color: white;
            cursor: pointer;
            z-index: 10000;
        }

        /* Gallery */
        .content {
            padding: 20px;
        }

        .thumb-image {
            margin-bottom: 20px;
            transition: transform 0.2s ease;
        }

        .thumb-image img {
            width: 100%;
            border-radius: 5px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
            cursor: pointer;
        }

        .thumb-image:hover {
            transform: scale(1.05);
        }
    </style>


</head>

<body>

    <?php include 'header.php'; ?>

    <div class="site-breadcrumb" style="background: url(<?php echo $wspath?>assets/img/breadcrumb/01.jpg)">
        <div class="container">
            <h2 class="breadcrumb-title">Our Gallery</h2>
            <ul class="breadcrumb-menu">
                <li><a href="<?php echo $wspath?>">Home</a></li>
                <li class="active">Our Gallery</li>
            </ul>
        </div>
    </div>

    <div class="container mt-5 mb-5">
        <div class="text-center">
            <h3>Our Gallery</h3>
        </div>
        
       <div class="content">
        <div class="row mt-5">
                                        <?php 
                                            $sql = "SELECT * FROM `tbl_gallery`";
                                            $run = mysqli_query($db,$sql) or die("Query Not run");
                                            $count=0;
                                            while($data = mysqli_fetch_assoc($run)){
                                                if(mysqli_num_rows($run) > 0){
                                                    $count++;
                                        ?>
                                        <div class="col-lg-3">
                                            <div class="thumb-image">
                                                <img src="<?php echo $wspath?>admin/images/gallery/<?php echo $data['image']?>" alt="bittoo" title="bittoo">
                                            </div>
                                        </div>
                                        <?php
                                            }else{
                                                echo "<h1>No Data Found</h1>";
                                            }
                                        }
                                        ?>
        </div>
    </div>

    
    </div>
    
    
    <!-- Overlay for Popup -->
    <div class="overlay">
        <span class="close-btn">&times;</span>
        <img class="popup-image" src="" alt="Popup Image">
    </div>
    
      <script>
        document.addEventListener('DOMContentLoaded', function() {
            const images = document.querySelectorAll('.thumb-image img');
            const overlay = document.querySelector('.overlay');
            const popupImage = document.querySelector('.popup-image');
            const closeBtn = document.querySelector('.close-btn');

            images.forEach(image => {
                image.addEventListener('click', function() {
                    popupImage.src = this.src;
                    overlay.style.display = 'block';
                });
            });

            closeBtn.addEventListener('click', function() {
                overlay.style.display = 'none';
            });

            overlay.addEventListener('click', function(e) {
                if (e.target !== popupImage && e.target !== closeBtn) {
                    overlay.style.display = 'none';
                }
            });
        });
    </script>
    
    <?php include 'about-book.php'; ?>
    <?php include 'footer.php'; ?>


</body>

</html>

MMCT - 2023