X7ROOT File Manager
Current Path:
/home/u126090504/domains/chanakyahss.org.in/public_html
home
/
u126090504
/
domains
/
chanakyahss.org.in
/
public_html
/
📄
+2science.php
(6.75 KB)
📁
..
📄
about.php
(11.62 KB)
📄
achievers.php
(5.62 KB)
📁
admin
📄
application-form.php
(9.65 KB)
📁
assets
📁
chanayak
📄
config.php
(1.16 KB)
📄
contact.php
(8.18 KB)
📄
contactdb.php
(796 B)
📄
course.php
(43.71 KB)
📄
dmlt.php
(5.61 KB)
📄
downloads.php
(2.94 KB)
📄
facilities.php
(5.33 KB)
📄
faculty.php
(4.09 KB)
📄
footer.php
(8.19 KB)
📄
future (2).zip
(59.78 MB)
📄
gallery.php
(4.25 KB)
📄
gnm.php
(6.5 KB)
📄
header.php
(11.33 KB)
📄
index.php
(47.35 KB)
📁
lib
📄
peret.php
(266.87 KB)
📄
principal's-message.php
(3.11 KB)
📄
public-disclosure.php
(3.53 KB)
📁
qrcodes
📄
syllabus.php
(2.7 KB)
📄
thank-you.php
(1.28 KB)
📄
time-table.php
(2.25 KB)
📄
u126090504_future (2).sql
(29.78 KB)
📄
u126090504_future.sql
(29.78 KB)
📁
uploads
Editing: gallery.php
<?php require_once 'config.php'; include 'header.php'; ?> <body> <!-- preloader --> <div class="preloader"> <div class="loader-book"> <div class="loader-book-page"></div> <div class="loader-book-page"></div> <div class="loader-book-page"></div> </div> </div> <!-- preloader end --> <!-- popup search --> <div class="search-popup"> <button class="close-search"><span class="far fa-times"></span></button> <form action="#"> <div class="form-group"> <input type="search" name="search-field" placeholder="Search Here..." required> <button type="submit"><i class="far fa-search"></i></button> </div> </form> </div> <!-- popup search end --> <main class="main"> <!-- breadcrumb --> <div class="site-breadcrumb" style="background: url(assets/img/breadcrumb/01.jpg)"> <div class="container"> <h2 class="breadcrumb-title">Gallery</h2> <ul class="breadcrumb-menu"> <li><a href="index.php">Home</a></li> <li class="active">Gallery</li> </ul> </div> </div> <!-- breadcrumb end --> <!-- gallery-area --> <!-- Lightbox CSS --> <link href="https://cdnjs.cloudflare.com/ajax/libs/lightbox2/2.11.3/css/lightbox.min.css" rel="stylesheet"> <style> .gallery-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; box-shadow: 0px 2px 6px rgba(0,0,0,0.15); transition: transform 0.3s ease; } .gallery-img:hover { transform: scale(1.05); } .filter-btn { margin: 5px; } </style> <div class="site-main"> <section class="ttm-row portfolio-section clearfix"> <div class="container"> <h2 class="text-center mb-4">Photo Gallery</h2> <!-- Filter Buttons --> <div class="text-center mb-4"> <button class="btn btn-outline-dark filter-btn" onclick="filterSelection('all')">ALL</button> <?php $albums = $conn->query("SELECT * FROM albums ORDER BY name ASC"); while ($a = $albums->fetch_assoc()) { $nameSafe = htmlspecialchars($a['name'], ENT_QUOTES); echo "<button class='btn btn-outline-dark filter-btn' onclick=\"filterSelection('album{$a['id']}')\">{$nameSafe}</button>"; } ?> </div> <!-- Gallery Grid --> <div class="row" id="galleryGrid"> <?php $res = $conn->query("SELECT p.*, a.name AS album, a.id AS album_id FROM photos p JOIN albums a ON p.album_id=a.id ORDER BY p.uploaded_at DESC"); while ($row = $res->fetch_assoc()) { $albumSafe = htmlspecialchars($row['album'], ENT_QUOTES); $file = htmlspecialchars($row['filename'], ENT_QUOTES); echo "<div class='col-lg-3 col-md-4 col-sm-6 mb-4 filter-item album{$row['album_id']}'> <a href='uploads/gallery/{$file}' data-lightbox='gallery' data-title='{$albumSafe}'> <img src='uploads/gallery/{$file}' alt='{$albumSafe}' class='gallery-img'> </a> </div>"; } ?> </div> </div> </section> </div> <!-- jQuery (must be before lightbox JS) --> <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> <!-- Lightbox JS --> <script src="https://cdnjs.cloudflare.com/ajax/libs/lightbox2/2.11.3/js/lightbox.min.js"></script> <script> // Lightbox options (optional) lightbox.option({ 'resizeDuration': 200, 'wrapAround': true }); // Filter function function filterSelection(category) { let items = document.getElementsByClassName("filter-item"); if (category === "all") category = ""; for (let i = 0; i < items.length; i++) { items[i].style.display = items[i].className.indexOf(category) > -1 ? "block" : "none"; } } // Run after DOM loaded document.addEventListener("DOMContentLoaded", function() { filterSelection("all"); }); </script> <!-- gallery-area end --> </main> <?php include 'footer.php'; ?>
Upload File
Create Folder