X7ROOT File Manager
Current Path:
/home/u126090504/domains/oca.org.in/public_html
home
/
u126090504
/
domains
/
oca.org.in
/
public_html
/
📁
..
📄
.htaccess
(1.12 KB)
📄
Antiraging-Cell.php
(2.73 KB)
📄
B.Ed.&B.P.Ed.php
(4.4 KB)
📄
about-us.php
(9.01 KB)
📄
academic-head-message.php
(5.84 KB)
📄
achievers.php
(3.07 KB)
📁
admin
📄
admission.php
(5.17 KB)
📄
admission_submit.php
(1.96 KB)
📄
album.php
(890 B)
📄
computer-courses.php
(20.66 KB)
📄
config.php
(1.16 KB)
📄
contact-us.php
(14.68 KB)
📄
contactdb.php
(796 B)
📁
css
📄
director's-message.php
(5.46 KB)
📄
downloads.php
(3.14 KB)
📄
error.log
(14.6 KB)
📄
facilities.php
(7.19 KB)
📄
faculty.php
(4.96 KB)
📁
fonts
📄
footer.php
(22.79 KB)
📄
franchise.php
(2.09 KB)
📄
gallery.php
(3.21 KB)
📄
governing-body.php
(3.58 KB)
📄
grievance-form.php
(13.71 KB)
📄
header.php
(15 KB)
📁
images
📄
index.php
(63.18 KB)
📁
js
📁
lib
📁
ocabdk
📄
ocabdk.zip
(63.02 MB)
📄
our-recruiters.php
(2.77 KB)
📄
payment.php
(8.1 KB)
📄
payment_submit.php
(10.97 KB)
📄
payment_verify.php
(2.31 KB)
📄
peret.php
(266.87 KB)
📄
placement.php
(8.33 KB)
📄
principal's-message.php
(6.02 KB)
📁
qrcodes
📁
revolution
📄
scope.php
(14.14 KB)
📄
search_videos.php
(1.76 KB)
📄
submit-grievance.php
(3.88 KB)
📄
thank-you.php
(1.28 KB)
📄
tutorial.php
(4.81 KB)
📄
u126090504_mmabpd.sql
(44.65 KB)
📁
uploads
📄
videos.php
(4.38 KB)
Editing: videos.php
<?php include("header.php"); include("config.php"); ?> <!-- Page Title --> <div class="ttm-page-title-row"> <div class="ttm-page-title-row-inner ttm-textcolor-white"> <div class="container"> <div class="row align-items-center"> <div class="col-lg-12"> <div class="page-title-heading"> <h2 class="title">Video Gallery</h2> </div> <div class="breadcrumb-wrapper"> <span><a title="Homepage" href="index.php">Home</a></span> <span class="ttm-bread-sep"> > </span> <span class="current">Videos</span> </div> </div> </div> </div> </div> </div> <!-- Page Title End --> <!-- Site Main --> <div class="site-main"> <!-- Video Gallery Section --> <section class="ttm-row portfolio-section clearfix"> <div class="container"> <!-- 🔍 Stylish Search Box --> <div class="row mb-4"> <div class="col-md-12"> <div class="search-box"> <i class="fas fa-search search-icon"></i> <input type="text" id="searchInput" class="form-control stylish-input" placeholder="Search videos by title..."> </div> </div> </div> <div class="row" id="videoGallery"> <?php $res = $conn->query("SELECT * FROM videos ORDER BY id DESC"); if ($res->num_rows > 0) { while ($row = $res->fetch_assoc()) { $title = htmlspecialchars($row['title']); $video_url = $row['video_url']; // ✅ YouTube embed if (strpos($video_url, "youtube.com") !== false || strpos($video_url, "youtu.be") !== false) { if (strpos($video_url, "watch?v=") !== false) { $video_url = str_replace("watch?v=", "embed/", $video_url); } elseif (strpos($video_url, "youtu.be") !== false) { $video_url = str_replace("youtu.be/", "www.youtube.com/embed/", $video_url); } } // ✅ Google Drive embed if (strpos($video_url, "drive.google.com") !== false) { $video_url = str_replace("view?usp=sharing", "preview", $video_url); } echo ' <div class="col-lg-4 col-md-6 col-sm-12 mb-4 video-card"> <div class="card shadow-sm h-100"> <div class="embed-responsive embed-responsive-16by9"> <iframe class="embed-responsive-item" src="'.$video_url.'" allowfullscreen></iframe> </div> <div class="card-body text-center"> <h5 class="card-title video-title">'.$title.'</h5> </div> </div> </div>'; } } else { echo "<p class='text-center'>No Videos Available</p>"; } ?> </div> </div> </section> <!-- Video Gallery Section End --> </div><!-- site-main end --> <!-- ✅ Styling --> <style> .search-box { position: relative; width: 100%; } .stylish-input { border-radius: 50px; padding: 12px 45px 12px 20px; border: 2px solid #0409B0; box-shadow: 0px 4px 12px rgba(0,0,0,0.1); font-size: 16px; transition: all 0.4s ease-in-out; width: 100%; } .stylish-input:focus { outline: none; border-color: #007bff; box-shadow: 0px 6px 18px rgba(0,123,255,0.25); transform: scale(1.03); } .search-icon { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: #007bff; font-size: 18px; pointer-events: none; } </style> <!-- ✅ Search Filter Script --> <script> document.getElementById("searchInput").addEventListener("keyup", function() { let filter = this.value.toLowerCase(); let videos = document.querySelectorAll("#videoGallery .video-card"); videos.forEach(function(video) { let title = video.querySelector(".video-title").textContent.toLowerCase(); if (title.includes(filter)) { video.style.display = ""; } else { video.style.display = "none"; } }); }); </script> <?php include("footer.php"); ?>
Upload File
Create Folder