Mini Shell
<?php
/* Database connection */
include("config.php");
$conn = dbconnect();
error_reporting(0);
?>
<header class="header A_header">
<div class="header-top">
<div class="container-fluid">
<div class="header-top-wrapper">
<div class="header-top-left">
<div class="header-top-contact">
<ul>
<!-- <li>
<div class="header-top-contact-icon">
<img src="assets/img/icon/location.svg" alt>
</div>
<div class="header-top-contact-info">
<a href="#"> Sedarapet Post</a>
</div>
</li> -->
<li>
<div class="header-top-contact-icon">
</div>
<div class="header-top-contact-info">
<!-- <h6>Mail Us</h6> -->
<a href="mailto:mail@aravindar.com"><span class="__cf_email__" data-cfemail="mailsac@aravindar.com"><i class="fa fa-envelope" aria-hidden="true"></i>
</i>mailsac@aravindar.com</span></a>
</div>
</li>
<li>
<div class="header-top-contact-icon">
</div>
<div class="header-top-contact-info">
<!-- <h6>Call Now</h6> -->
<a href="tel:+04132671671"><i class="fa fa-phone" aria-hidden="true"></i>
0413 - 2671671</a> |
<a href="tel:+919443294154"><i class="fa fa-mobile" aria-hidden="true"></i>
+91 94432 94154</a>
</div>
</li>
</ul>
</div>
</div>
<div class="header-top-right">
<div class="header-top-social text-reveal" id="text-reveal">
<?php
$sql = "SELECT * FROM `tb1_flashnews` WHERE `status` = 1 AND `delete_flag` = 0 ORDER BY updated_log DESC LIMIT 1";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
// output data of each row
while ($row = $result->fetch_assoc()) {
?>
<span><?= $row['flash_news'] ?></span>
<?php }
} ?>
</div>
</div>
</div>
</div>
</div>
<div class="main-navigation">
<nav class="navbar navbar-expand-lg">
<div class="container-fluid position-relative">
<a class="navbar-brand d-lg-block d-none" href="index">
<img src="assets/img/logo/sri-aravindar-logo.png" alt="logo">
</a>
<div class="col-12">
<div class="mobile-menu-right">
<a class="navbar-brand" href="index">
<img src="assets/img/logo/sri-aravindar-logo.png" alt="logo" class="w-100">
</a>
<button class="navbar-toggler" id="navbar-toggler-id" type="button" data-bs-toggle="collapse" data-bs-target="#main_nav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-mobile-icon"><i class="far fa-bars"></i></span>
</button>
</div>
<div class="collapse navbar-collapse" id="main_nav">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="index">Home</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="sri-aravindar-college-history-about-us" data-bs-toggle="dropdown">About</a>
<ul class="dropdown-menu fade-down">
<li><a class="dropdown-item" href="sri-aravindar-college-history-about-us">History</a></li>
<li><a class="dropdown-item" href="about-blue-ribbon">Blue Ribbon</a></li>
<li><a class="dropdown-item" href="chairman-message">Chairman's Message</a></li>
<li><a class="dropdown-item" href="principle-message">Principal's Message</a>
</ul>
</li>
<li class="nav-item mega-menu dropdown">
<a class="nav-link dropdown-toggle" href="#" data-bs-toggle="dropdown">Academics</a>
<div class="dropdown-menu fade-down">
<div class="mega-content">
<div class="container-fluid">
<div class="row">
<div class="col-12 col-sm-4 col-md-3">
<h5>UG Courses</h5>
<ul class="mega-menu-item">
<?php
$sql = "SELECT * FROM `tb1_ugcourses` WHERE `status` = 1 ORDER BY created_log DESC";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
while ($row = $result->fetch_assoc()) {
?>
<li><a class="dropdown-item" href="course-details?id=<?= base64_encode($row['course_id']) ?>"><?= $row['short_name'] ?></a></li>
<?php }
} ?>
</ul>
</div>
<div class="col-12 col-sm-4 col-md-3">
<h5>PG Courses</h5>
<ul class="mega-menu-item">
<?php
$sql = "SELECT * FROM `tb1_pgcourses` WHERE `status` = 1 ORDER BY created_log DESC";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
while ($row = $result->fetch_assoc()) {
?>
<li><a class="dropdown-item" href="pg-course-details?id=<?= base64_encode($row['course_id']) ?>"><?= $row['short_name'] ?></a></li>
<?php }
} ?>
</ul>
</div>
</div>
</div>
</div>
</div>
</li>
<!-- <li class="nav-item dropdown">
<a class="nav-link" href="achievement">Faculty</a>
</li> -->
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" data-bs-toggle="dropdown">Committees</a>
<ul class="dropdown-menu fade-down">
<li><a class="dropdown-item" href="sri-aravindar-college-anti-ragging">Anti Ragging</a></li>
<!-- <li><a class="dropdown-item" href="grievance">Grievance Redressal</a></li> -->
<li><a class="dropdown-item" href="best-nss-training-in-college">NSS</a></li>
<li><a class="dropdown-item" href="youth-red-cross-activities-in-pondicherry">YRC / RRC / Rotaract</a></li>
<li><a class="dropdown-item" href="sri-aravindar-college-alumni">Alumni</a></li>
<li><a class="dropdown-item" href="women-development-cell-activities-in-pondicherry">Women's Development Cell</a></li>
<!-- <li><a class="dropdown-item" href="iic">Industry Interaction Cell</a></li> -->
<!-- <li><a class="dropdown-item" href="#">Campus Development Cell</a></li> -->
</ul>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" data-bs-toggle="dropdown">Admissions</a>
<ul class="dropdown-menu fade-down">
<li><a class="dropdown-item" href="how-to-apply-form-college-in-pondi-faq-question">How To Apply</a></li>
<li><a class="dropdown-item" href="#">Application Form</a>
</li>
</ul>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" data-bs-toggle="dropdown">Facilities</a>
<ul class="dropdown-menu fade-down">
<li><a class="dropdown-item" href="best-Laboratory-lab-in-pondicherry">Laboratory</a></li>
<li><a class="dropdown-item" href="best-playground-area-in-pondicherry">Playground</a></li>
<li><a class="dropdown-item" href="best-collection-books-library-in-pondicherry">Library</a></li>
<li><a class="dropdown-item" href="best-canteen-in-pondicherry">Canteen</a></li>
</ul>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" data-bs-toggle="dropdown">Activities</a>
<ul class="dropdown-menu fade-down">
<li><a class="dropdown-item" href="college-sports-teams-in-pondicherry">Sports</a></li>
<li><a class="dropdown-item" href="social-service-initiatives">NSS</a></li>
<!-- <li><a class="dropdown-item" href="ncc">NCC</a></li> -->
</ul>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" data-bs-toggle="dropdown">Gallery</a>
<ul class="dropdown-menu fade-down">
<li><a class="dropdown-item" href="sri-aravindar-college-gallery">Photos</a></li>
<li><a class="dropdown-item" href="##">Videos</a></li>
</ul>
</li>
<li class="nav-item"><a class="nav-link" href="contact-sri-aravindar-college-get-in-touch">Contact us</a></li>
</ul>
</div>
</div>
</nav>
</div>
</div>
</header>
<a href="https://api.whatsapp.com/send?phone=+919787775777&text=Hello Sri Aaravindar college Arts and Science" class=" position-absolute" target="_blank">
<!-- <i class="fa fa-square-whatsapp "></i> -->
<img src="assets/img/logo/social.png" alt="" class="float-whatsapp">
</a>
<script>
document.addEventListener("DOMContentLoaded", () => {
const textElement = document.getElementById('text-reveal');
function resetAnimation() {
textElement.style.animation = 'none';
textElement.offsetHeight; // Trigger reflow to restart the animation
setTimeout(() => {
textElement.style.animation = null;
}, 1500); // Wait 3 seconds before restarting the animation
}
textElement.addEventListener('animationend', resetAnimation);
});
</script>
<script>
document.addEventListener('DOMContentLoaded', function() {
var navbarToggler = document.getElementById('navbar-toggler-id');
if (navbarToggler) {
navbarToggler.addEventListener('click', function() {
navbarToggler.classList.toggle('collapsed'); // Toggle collapsed class (optional)
// Toggle icon classes immediately after toggle to trigger CSS transition
var icon = navbarToggler.querySelector('i');
if (icon.classList.contains('fa-bars')) {
icon.classList.remove('fa-bars');
icon.classList.add('fa-times');
} else {
icon.classList.remove('fa-times');
icon.classList.add('fa-bars');
}
});
}
});
</script>
<script>
function updateStatus() {
if (navigator.onLine) {
var c = document.getElementById('of');
c.innerHTML = "You are now online!";
setInterval(() => {
c.style.display = "none";
}, 2000);
} else {
c.style.display = "block";
c.innerHTML = "You are now offline!";
}
}
window.addEventListener('online', updateStatus);
window.addEventListener('offline', updateStatus);
// Check the status immediately
updateStatus();
</script>
Zerion Mini Shell 1.0