pull/7/head
dev2 siliconpin 2024-12-16 13:51:59 +00:00
parent 7efb5727c3
commit ebbc4fbc22
7 changed files with 786 additions and 70 deletions

77
.hta_404 copy.php Normal file
View File

@ -0,0 +1,77 @@
<?php
require('.hta_config/env.php');
$requestUri = $_SERVER['REQUEST_URI'];
$slug = getSlug($requestUri);
function getSlug($requestUri) {
$parts = explode('/', $requestUri);
return isset($parts[2]) ? $parts[2] : '';
}
function serveStaticFile($filePath) {
if (file_exists($filePath)) {
echo file_get_contents($filePath);
return true;
}
return false;
}
function fetchFromDatabase($slug, $pdo) {
$stmt = $pdo->prepare("SELECT * FROM `scc24` WHERE `slug` = :slug");
$stmt->bindParam(':slug', $slug, PDO::PARAM_STR);
$stmt->execute();
return $stmt->fetch(PDO::FETCH_ASSOC);
}
function saveToCache($filePath, $content) {
if (!file_put_contents($filePath, $content)) {
error_log("Failed to write cache file: $filePath");
}
}
if (empty($slug)) {
// echo "Slug not provided!";
// exit;
}
$fileName = $slug . ".html";
$filePath = __DIR__ . '/notice/' . $fileName;
ob_start();
$shouldCache = false; // Flag to determine if content should be cached.
if (!serveStaticFile($filePath)) {
try {
$pdo = new PDO("mysql:host=$mariaServer;dbname=$mariaDb", $mariaUser, $mariaPass);
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$content = fetchFromDatabase($slug, $pdo);
if ($content && isset($content['content']) && $content['content']) {
echo '<div class="container mx-auto">
<div style="padding-top:20px; padding-bottom:15px; font-size:25px;">
<p style="text-align: center;">' . htmlspecialchars($content['title']) . '</p>
</div>
<div>' . $content['content'] . '</div>
</div>';
$shouldCache = true; // Mark content as cacheable.
} else {
echo '<div style="display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 100px 0;"><p style="text-align: center; font-size: 30px; font-weight: bold;">Page not found (404).</p>
<a href="/">Back to home</a>
</div>';
}
} catch (PDOException $e) {
echo "<p class='text-danger'>Error: " . htmlspecialchars($e->getMessage()) . "</p>";
}
}
$htmlContent = ob_get_clean();
// Save to cache only if content was found.
if ($shouldCache) {
saveToCache($filePath, $htmlContent);
}
echo $htmlContent;
?>

View File

@ -1,76 +1,56 @@
<?php
require('.hta_config/env.php');
$requestUri = $_SERVER['REQUEST_URI'];
$slug = getSlug($requestUri);
function getSlug($requestUri) {
require('.hta_config/env.php');
$headerContent = file_get_contents('./.hta_header.php');
$requestUri = $_SERVER['REQUEST_URI'];
$parts = explode('/', $requestUri);
return isset($parts[2]) ? $parts[2] : '';
}
$slug = $parts[2];
$fileName = $slug;
$fileExtension = explode('.', $fileName);
function serveStaticFile($filePath) {
if (file_exists($filePath)) {
echo file_get_contents($filePath);
return true;
$querySlug = '';
if($fileExtension[1] && $fileExtension[1] === 'html'){
$querySlug = $fileExtension[0];
} else{
$querySlug = $fileExtension[0];
}
return false;
}
function fetchFromDatabase($slug, $pdo) {
$stmt = $pdo->prepare("SELECT * FROM `scc24` WHERE `slug` = :slug");
$stmt->bindParam(':slug', $slug, PDO::PARAM_STR);
$stmt->execute();
return $stmt->fetch(PDO::FETCH_ASSOC);
}
// echo $querySlug;
function saveToCache($filePath, $content) {
if (!file_put_contents($filePath, $content)) {
error_log("Failed to write cache file: $filePath");
}
}
if (empty($slug)) {
// echo "Slug not provided!";
// exit;
}
$fileName = $slug . ".html";
$filePath = __DIR__ . '/notice/' . $fileName;
ob_start();
$shouldCache = false; // Flag to determine if content should be cached.
if (!serveStaticFile($filePath)) {
try {
$pdo = new PDO("mysql:host=$mariaServer;dbname=$mariaDb", $mariaUser, $mariaPass);
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$content = fetchFromDatabase($slug, $pdo);
if ($content && isset($content['content']) && $content['content']) {
echo '<div class="container mx-auto">
<div style="padding-top:20px; padding-bottom:15px; font-size:25px;">
<p style="text-align: center;">' . htmlspecialchars($content['title']) . '</p>
</div>
<div>' . $content['content'] . '</div>
</div>';
$shouldCache = true; // Mark content as cacheable.
} else {
echo '<div style="display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 100px 0;"><p style="text-align: center; font-size: 30px; font-weight: bold;">Page not found (404).</p>
<a href="/">Back to home</a>
</div>';
}
$conn = new PDO("mysql:host=$mariaServer;dbname=$mariaDb", $mariaUser, $mariaPass);
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$stmt = $conn->prepare("SELECT * FROM `scc24` WHERE `slug` = '".$querySlug."'");
$stmt->execute();
$content = $stmt->fetchAll(PDO::FETCH_ASSOC);
if(isset($content[0]['content']) && $content[0]['content'])
$pageContent = '<div class="container mx-auto" style="">
<div class="" style="padding-top:20px; padding-bottom:15px; font-size:25px;"><p style="text-align: center;">'.$content[0]['title'].'</p></div>
<div class="">'.$content[0]['content'].'</div>
</div>';
else $pageContent = '
<div style="display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 100px 0;"><p style="text-align: center; font-size: 30px; font-weight: bold;">Page not found (404).</p>
<a href="/">Back to home</a>
</div>
';
} catch (PDOException $e) {
echo "<p class='text-danger'>Error: " . htmlspecialchars($e->getMessage()) . "</p>";
$in_page_message = "<p class='text-danger'>Error: " . $e->getMessage() . "</p>";
}
}
$htmlContent = ob_get_clean();
// Render page content here
echo $pageContent;
// Save to cache only if content was found.
if ($shouldCache) {
saveToCache($filePath, $htmlContent);
}
$footerContent = file_get_contents('./.hta_footer.php');
// if($fileExtension[1] && $fileExtension[1] === 'html'){
// $filePath = __DIR__ . '/notice/' . $fileName;
// } else{
// $filePath = __DIR__ . '/notice/' . $fileName . '.html';
// }
$filePath = __DIR__ . '/notice/' . $fileName;
$totalPageContent = $headerContent . $pageContent . $footerContent;
file_put_contents($filePath, $totalPageContent);
echo $htmlContent;
?>

View File

@ -1,6 +1,6 @@
<?php
$mariaServer = "localhost";
$mariaUser = "siliccgm_scc24";
$mariaPass = "ewojfwehuvkjvdnvkjvbivibsdb";
$mariaDb = "siliccgm_scc24";
$mongo ="";
$mariaUser = "dev2";
$mariaPass = "RLVuEexA6Lb6jfa";
$mariaDb = "scc24";
$mongo ="";

View File

@ -299,7 +299,7 @@
<ul class="submenu dropdown-menu">
<li><a class="dropdown-item" href="#">Humanitiess &raquo; </a>
<ul class="submenu dropdown-menu">
<li><a class="dropdown-item" href="#">Bengali</a></li>
<li><a class="dropdown-item" href="/academic/departments/humanities/bengali.html">Bengali</a></li>
<li><a class="dropdown-item" href="#">Economics</a></li>
<li><a class="dropdown-item" href="#">Education</a></li>
<li><a class="dropdown-item" href="#">English</a></li>
@ -481,7 +481,7 @@
font-optical-sizing: auto;
}
.dropdown-menu .dropdown-menu {
margin-left: 0.7rem;
/* margin-left: 0.7rem; */
margin-right: 0.7rem;
margin-bottom: .5rem;
}

View File

@ -35,7 +35,7 @@
<td style="border: 1px solid #6b6245; padding: 8px;">' . $serialNumber . '</td>
<td style="border: 1px solid #6b6245; padding: 8px;">' . htmlspecialchars($notice['title']) . '</td>
<td style="border: 1px solid #6b6245; padding: 8px; text-align: center;">
<a href="/notice/'.$notice['slug'].'">View</a>
<a href="/notice/'.$notice['slug'].'.html">View</a>
<a href="#"></a>
</td>
</tr>';

View File

@ -0,0 +1,658 @@
<?php
?>
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="Sree Chaitanya College, Habra is a distinguished higher education institution located in North 24 Parganas, West Bengal. Established in 1956, it provides education to displaced youths affected by the partition of India.">
<!-- Open Graph Meta Tags for Facebook and WhatsApp -->
<meta property="og:title" content="Sree Chaitanya College, Habra">
<meta property="og:description" content="Sree Chaitanya College, Habra is a distinguished higher education institution in North 24 Parganas, West Bengal. Established in 1956, it offers Honours Departments in Arts and Science.">
<meta property="og:image" content="/assets/logo3.png">
<meta property="og:url" content="/assets/logo3.png">
<meta property="og:type" content="website">
<title>Sree Chaitanya College, Habra</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/css/bootstrap.min.css" rel="stylesheet" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/js/bootstrap.bundle.min.js"crossorigin="anonymous"></script>
<script src="https://unpkg.com/htmx.org"></script>
<!-- <div hx-get="mega-menu.html" hx-trigger="load" hx-swap="outerHTML"></div> -->
</head>
<body>
<header class="section-header ">
<div class="container-fluid" style="background-color: #e0d7d1;">
<div class="container-xl mx-auto pt-2" >
<div class="row d-none d-lg-flex">
<div class="d-grid col- col-lg-8 col-xl-8">
<div class="d-flex flex-column flex-md-row" style="width: 100%;">
<div class="d-flex flex-md-row justify-content-center" style="place-items: center;">
<img class="" src="../assets/ashok.png" alt="" width="120" height="120" />
<img class="" src="../assets/logo3.png" alt="" width="120" height="120" />
</div>
<div class="d-flex flex-column mx-4" >
<h2 class="text-uppercase" style="color: #614e41;"><b>Sree Chaitanya College</b></h2>
<h5 style="color: #614e41;">Estd: 1956</h5>
<h5 class="" style="color: #614e41;"><b>(Arts and Science)</b></h5>
<p style="color: #868756;">Prafullanagar, Habra, 24Pgs(N) Pin-743268, W.B</p>
<p style="margin-top: -15px; color: #3e5b66;" class="">sreechaitanyacollege@rediffmail.com</p>
</div>
</div>
</div>
<div class="col- col-lg-4 col-xl-4">
<div class="d-flex flex-column " style="width: 100%;">
<div class="d-flex flex-md-row justify-content-between">
<div class="mt-5">
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton" data-bs-toggle="dropdown" aria-expanded="false">NCC</button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenuButton">
<li class="dropdown-submenu">
<a class="dropdown-item dropdown-toggle" href="#">Accreditation Document</a>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="#">NAAC Certificates & Score Sheet</a></li>
</ul>
</li>
<li><a class="dropdown-item" href="#">NAAC 3rd Cycle Press Note</a></li>
<li><a class="dropdown-item" href="#">Capacity Building Program</a></li>
<li><a class="dropdown-item" href="#">NAAC SSR</a></li>
<li class="dropdown-submenu">
<a class="dropdown-item dropdown-toggle" href="#">IIQA Documents</a>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="#">IIQA Filled in Form</a></li>
<li><a class="dropdown-item" href="#">AISHE Certificate 2021-22</a></li>
<li><a class="dropdown-item" href="#">2F & 12B</a></li>
<li><a class="dropdown-item" href="#">University Affiliated Courses</a></li>
<li><a class="dropdown-item" href="#">Undertaking of H.O.I.</a></li>
<li><a class="dropdown-item" href="#">Self Declaration of H.O.I.</a></li>
</ul>
</li>
<li><a class="dropdown-item" href="#">Program Outcome</a></li>
<li><a class="dropdown-item" href="#">Syllabus</a></li>
<li><a class="dropdown-item" href="#">List of Programme</a></li>
<li><a class="dropdown-item" href="#">IQAC Minutes & Report</a></li>
<li><a class="dropdown-item" href="#">Annual Examination Report</a></li>
<li><a class="dropdown-item" href="#">Feedback</a></li>
<li><a class="dropdown-item" href="#">Project Certificate</a></li>
<li><a class="dropdown-item" href="#">Collaborative Activities</a></li>
<li><a class="dropdown-item" href="#">Career Counselling Certificate</a></li>
<li><a class="dropdown-item" href="#">JAM/NET/Exam Cleared List</a></li>
<li><a class="dropdown-item" href="#">ICT Rooms</a></li>
<li><a class="dropdown-item" href="#">Full Time Teachers & Students</a></li>
<li><a class="dropdown-item" href="#">Seminar Reports - IPR, RM & EP</a></li>
<li><a class="dropdown-item" href="#">Program Studies & Placement</a></li>
<li><a class="dropdown-item" href="#">Mentor/Mentee Meeting Report</a></li>
<li><a class="dropdown-item" href="#">Developing Grants Received</a></li>
<li><a class="dropdown-item" href="#">Solar Panel Installation</a></li>
<li><a class="dropdown-item" href="#">Water Harvesting Project</a></li>
</ul>
</div>
</div>
<div class=" mt-5">
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton" data-bs-toggle="dropdown" aria-expanded="false">IQAC</button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenuButton">
<li><a class="dropdown-item" href="#">Policy Document</a></li>
<li><a class="dropdown-item" href="#">Committee</a></li>
<li><a class="dropdown-item" href="#">IQAC Minutes</a></li>
<li><a class="dropdown-item" href="#">A.Q.A.R.</a></li>
<li><a class="dropdown-item" href="#">SSS</a></li>
<li><a class="dropdown-item" href="#">Academic Audit</a></li>
<li><a class="dropdown-item" href="#">Green Audit</a></li>
<li><a class="dropdown-item" href="#">College Annual Report</a></li>
<li><a class="dropdown-item" href="#">Gender Audit</a></li>
</ul>
</div>
</div>
<div class=" mt-5">
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton" data-bs-toggle="dropdown" aria-expanded="false">NIRF</button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenuButton">
<li><a class="dropdown-item" href="#">NIRF 2024</a></li>
<li><a class="dropdown-item" href="#">NIRF 2023</a></li>
<li><a class="dropdown-item" href="#">NIRF 2022</a></li>
<li><a class="dropdown-item" href="#">NIRF 2021</a></li>
<li><a class="dropdown-item" href="#">NIRF 2020</a></li>
</ul>
</div>
</div>
<div class=" mt-5">
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton" data-bs-toggle="dropdown" aria-expanded="false">ICC</button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenuButton">
<li><a class="dropdown-item" href="#">Members</a></li>
<li><a class="dropdown-item" href="#">Policy Document</a></li>
<li><a class="dropdown-item" href="#">Reports</a></li>
<li><a class="dropdown-item" href="#">Grievance Redressal</a></li>
<li><a class="dropdown-item" href="#">Anti-ragging Cell</a></li>
<li><a class="dropdown-item" href="#">Anti Sexual Harassment Cell</a></li>
</ul>
</div>
</div>
<div class=" mt-5">
<!-- <div class="dropdown">
<a href="https://www.chandernagorecollege.ac.in/faculty.php?faculty=59ff78ac19a7b6d9099233629e9e219e#" class="btn btn-secondary dropdown-toggle" id="dropdownMenuButton" data-bs-toggle="dropdown" aria-expanded="true">RTI</a>
</div> -->
</div>
</div>
<div class="d-flex flex-column flex-xl-row mt-2 justify-content-between text-white font-weight-bold">
<a href="/notice?type=notice" class="px-4 py-2 rounded-pill shadow shadow-lg shadow-danger" style="background-color: #3e5b66; color: #FFFFFF; text-decoration: none;">Notice</a>
<a href="/gallery" class="px-4 py-2 rounded-pill shadow shadow-lg shadow-danger" style="background-color: #3e5b66; color: #FFFFFF; text-decoration: none;">Gallery</a>
</div>
</div>
</div>
</div>
<div class=" row d-flex d-lg-none">
<div class="d-flex flex-row justify-content-between" style="width: 100%;">
<div>
<img src="/assets/ashok.png" alt="" width="60" />
</div>
<div class="d-flex flex-column " >
<h2 class="text-center text-uppercase" style="color: #6b6245;" ><b>Sree Chaitanya College</b></h2>
<p class="text-center" style="color: #6b6245;">Estd: 1956</p>
</div>
<div>
<img src="/assets/logo3.png" alt="" width="60" />
</div>
</div>
<div class="d-flex flex-column " style="margin-top: -15px;">
<h5 style="margin-top: -6px; color: #6b6245;" class="text-center">(Arts and Science)</h5>
<p style="margin-top: -6px; color: #868756;" class="text-center">Prafullanagar, Habra, 24Pgs(N) Pin-743268, W.B</p>
<p style="margin-top: -15px; color: #3e5b66;" class="text-center">sreechaitanyacollege@rediffmail.com</p>
</div>
<div class="d-flex flex-column justify-content-center text-white font-weight-bold text-center">
<h5 class="px-4 py-3 rounded-pill shadow shadow-lg shadow-danger" style="background-color: #3e5b66;">College Meuseum</h5>
<h5 class="px-4 py-3 rounded-pill shadow shadow-lg shadow-danger" style="background-color: #3e5b66;">Campus 360&deg;</h5>
</div>
</div>
</div>
</div>
<nav class="d-block d-lg-none navbar navbar-expand-lg navbar-dark text-primary" style="background-color: #c6a7a4; ">
<div class="container-fluid">
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#main_nav2" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="main_nav2">
<ul class="navbar-nav w-auto mx-auto" >
<!-- <li class="nav-item active "> <a style="padding-left: 5px; padding-right: 5px;" class="nav-link text-white" href="#">Home </a> </li> -->
<li class="nav-item dropdown">
<a style="padding-left: 5px; padding-right: 5px;" class="nav-link text-white dropdown-toggle" href="#" data-bs-toggle="dropdown"> NCC </a>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="#"> Accreditation Document &raquo; </a>
<ul class="submenu dropdown-menu">
<li><a class="dropdown-item" href="#">NAAC Certificates & Score Sheet</a></li>
</ul>
</li>
<li><a class="dropdown-item" href="#">NAAC 3rd Cycle Press Note</a></li>
<li><a class="dropdown-item" href="#">Capacity Building Program</a></li>
<li><a class="dropdown-item" href="#">NAAC SSR</a></li>
<li><a class="dropdown-item" href="#"> IIQA Documents &raquo; </a>
<ul class="submenu dropdown-menu">
<li><a class="dropdown-item" href="#">IIQA Filled in Form</a></li>
<li><a class="dropdown-item" href="#">AISHE Certificate 2021-22</a></li>
<li><a class="dropdown-item" href="#">2F & 12B</a></li>
<li><a class="dropdown-item" href="#">University Affiliated Courses</a></li>
<li><a class="dropdown-item" href="#">Undertaking of H.O.I.</a></li>
<li><a class="dropdown-item" href="#">Self Declaration of H.O.I.</a></li>
</ul>
</li>
</ul>
</li>
<li class="nav-item dropdown">
<a style="padding-left: 5px; padding-right: 5px;" class="nav-link text-white dropdown-toggle" href="#" data-bs-toggle="dropdown">IQAC</a>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="#">Policy Document</a></li>
<li><a class="dropdown-item" href="#">Committee</a></li>
<li><a class="dropdown-item" href="#">IQAC Minutes</a></li>
<li><a class="dropdown-item" href="#">A.Q.A.R.</a></li>
<li><a class="dropdown-item" href="#">SSS</a></li>
<li><a class="dropdown-item" href="#">Academic Audit</a></li>
<li><a class="dropdown-item" href="#">Green Audit</a></li>
<li><a class="dropdown-item" href="#">College Annual Report</a></li>
<li><a class="dropdown-item" href="#">Gender Audit</a></li>
</ul>
</li>
<li class="nav-item dropdown">
<a style="padding-left: 5px; padding-right: 5px;" class="nav-link text-white dropdown-toggle" href="#" data-bs-toggle="dropdown">NIRF</a>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="#">NIRF 2024</a></li>
<li><a class="dropdown-item" href="#">NIRF 2023</a></li>
<li><a class="dropdown-item" href="#">NIRF 2022</a></li>
<li><a class="dropdown-item" href="#">NIRF 2021</a></li>
<li><a class="dropdown-item" href="#">NIRF 2020</a></li>
</ul>
</li>
<li class="nav-item dropdown">
<a style="padding-left: 5px; padding-right: 5px;" class="nav-link text-white dropdown-toggle" href="#" data-bs-toggle="dropdown">ICC</a>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="#">Members</a></li>
<li><a class="dropdown-item" href="#">Policy Document</a></li>
<li><a class="dropdown-item" href="#">Reports</a></li>
<li><a class="dropdown-item" href="#">Grievance Redressal</a></li>
<li><a class="dropdown-item" href="#">Anti-ragging Cell</a></li>
<li><a class="dropdown-item" href="#">Anti Sexual Harassment Cell</a></li>
</ul>
</li>
</ul>
</div> <!-- navbar-collapse.// -->
</div> <!-- container-fluid.// -->
</nav>
<!-- ============= Main Menu ============== -->
<nav class="navbar navbar-expand-lg navbar-dark text-primary" style="background-color: #868756; ">
<div class="container-fluid">
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#main_nav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="main_nav">
<ul class="navbar-nav w-auto mx-auto" >
<li class="nav-item active "> <a style="padding-left: 5px; padding-right: 5px;" class="nav-link text-white" href="#">Home </a> </li>
<li class="nav-item dropdown">
<a style="padding-left: 5px; padding-right: 5px;" class="nav-link text-white dropdown-toggle" href="#" data-bs-toggle="dropdown">Institute</a>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="#">History</a></li>
<li><a class="dropdown-item" href="#">Mission</a></li>
<li><a class="dropdown-item" href="#">Vision</a></li>
<li><a class="dropdown-item" href="/infrastructure-and-learning-resources">Objective</a></li>
<li><a class="dropdown-item" href="#">Infrastructure & Facilities</a></li>
<li><a class="dropdown-item" href="#">Distinctiveness</a></li>
<li><a class="dropdown-item" href="/best-practices">Best Practices</a></li>
<li><a class="dropdown-item" href="#">Awards & Recognition</a></li>
<li><a class="dropdown-item" href="#">Funds Received</a></li>
<li><a class="dropdown-item" href="#">Strategic/Perspective Plan</a></li>
<li><a class="dropdown-item" href="#">Future Plan</a></li>
<li><a class="dropdown-item" href="#">Holiday List</a></li>
<li><a class="dropdown-item" href="#">Campus</a></li>
<li><a class="dropdown-item" href="#">SWOC of College</a></li>
<li><a class="dropdown-item" href="#">Site Map</a></li>
<li><a class="dropdown-item" href="/contact-us">Contact </a> </li>
</ul>
</li>
<li class="nav-item dropdown">
<a style="padding-left: 5px; padding-right: 5px;" class="nav-link text-white dropdown-toggle" href="#" data-bs-toggle="dropdown">Administration</a>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="#">Administrative Committee</a></li>
<li><a class="dropdown-item" href="/teachers-council">Teachers' Council</a></li>
<li><a class="dropdown-item" href="/organogram">Organogram</a></li>
<li><a class="dropdown-item" href="#">Code of Conduct</a></li>
<li><a class="dropdown-item" href="#">Disciplinary Rules</a></li>
<li><a class="dropdown-item" href="#">Feedback Form</a></li>
<li><a class="dropdown-item" href="/rti">RTI</a></li>
<li><a class="dropdown-item" href="/rusa">RUSA</a></li>
<li><a class="dropdown-item" href="/staff">Support Staff</a></li>
</ul>
</li>
<li class="nav-item dropdown">
<a style="padding-left: 5px; padding-right: 5px;" class="nav-link text-white dropdown-toggle" href="#" data-bs-toggle="dropdown"> Academics </a>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="#"> Programs Offered &raquo; </a>
<ul class="submenu dropdown-menu">
<li><a class="dropdown-item" href="/#">Humanities</a></li>
<li><a class="dropdown-item" href="/departments-of-science">Science</a></li>
<li><a class="dropdown-item" href="#">Commerce</a></li>
</ul>
</li>
<li><a class="dropdown-item" href="/departments"> Departments &raquo; </a>
<ul class="submenu dropdown-menu">
<li><a class="dropdown-item" href="#">Humanitiess &raquo; </a>
<ul class="submenu dropdown-menu">
<li><a class="dropdown-item" href="/academic/departments/humanities/bengali.html">Bengali</a></li>
<li><a class="dropdown-item" href="#">Economics</a></li>
<li><a class="dropdown-item" href="#">Education</a></li>
<li><a class="dropdown-item" href="#">English</a></li>
<li><a class="dropdown-item" href="#">French</a></li>
<li><a class="dropdown-item" href="#">Geography</a></li>
<li><a class="dropdown-item" href="#">History</a></li>
<li><a class="dropdown-item" href="#">Philosophy</a></li>
<li><a class="dropdown-item" href="#">Political Science</a></li>
<li><a class="dropdown-item" href="#">Sanskrit</a></li>
<li><a class="dropdown-item" href="#">Sociology</a></li>
</ul>
</li>
<li><a class="dropdown-item" href="#">Science &raquo; </a>
<ul class="submenu dropdown-menu">
<li><a class="dropdown-item" href="#">Botany</a></li>
<li><a class="dropdown-item" href="#">Chemistry</a></li>
<li><a class="dropdown-item" href="#">Computer Science</a></li>
<li><a class="dropdown-item" href="#">Environmental Science</a></li>
<li><a class="dropdown-item" href="#">Mathematics</a></li>
<li><a class="dropdown-item" href="#">Physics</a></li>
<li><a class="dropdown-item" href="#">Zoology</a></li>
</ul>
</li>
<li><a class="dropdown-item" href="#">Commerce</a></li>
</ul>
</li>
<li><a class="dropdown-item" href="#">ISR </a> </li>
<li><a class="dropdown-item" href="/nss">NSS </a> </li>
<li><a class="dropdown-item" href="#"> Syllabus </a></li>
<li><a class="dropdown-item" href="#"> Faculty List (5 Years) </a></li>
<li><a class="dropdown-item" href="#"> Add-on Courses </a></li>
<li><a class="dropdown-item" href="#"> PO, PSO & CO </a></li>
<li><a class="dropdown-item" href="#"> Academic Audit Report </a></li>
<li><a class="dropdown-item" href="#"> University Examination </a></li>
<li><a class="dropdown-item" href="#"> University Result </a></li>
<li><a class="dropdown-item" href="#"> Internal Examination </a></li>
<li><a class="dropdown-item" href="#"> LMS </a></li>
<li><a class="dropdown-item" href="#"> Language Lab </a></li>
<li><a class="dropdown-item" href="#"> Feedback on Curriculum </a></li>
<li><a class="dropdown-item" href="#"> Study Tours & Field Trips </a></li>
<li><a class="dropdown-item" href="#"> Exam Related Grievances </a></li>
</ul>
</li>
<li class="nav-item dropdown">
<a style="padding-left: 5px; padding-right: 5px;" class="nav-link text-white dropdown-toggle" href="#" data-bs-toggle="dropdown">Student's Corner</a>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="#">Rules & Regulations</a></li>
<li><a class="dropdown-item" href="#">Routine</a></li>
<li><a class="dropdown-item" href="#">Scholarship</a></li>
<li><a class="dropdown-item" href="#">Placement Cell</a></li>
<li><a class="dropdown-item" href="#">Online Competitive Exam</a></li>
<li><a class="dropdown-item" href="#">Skill Development Program</a></li>
<li><a class="dropdown-item" href="#">Achievements</a></li>
<li><a class="dropdown-item" href="/activities">Student Support Services</a></li>
<li><a class="dropdown-item" href="/students-union">Students' Union</a></li>
<li><a class="dropdown-item" href="/alumni-association">Alumni</a></li>
<li><a class="dropdown-item" href="#">E-Magazine</a></li>
<li><a class="dropdown-item" href="/students-feedback">Feedback Form</a></li>
<li><a class="dropdown-item" href="/student-grievance">Online Grievance Redressal</a></li>
<li><a class="dropdown-item" href="/anti-ragging-committee">Anti Ragging Cell</a></li>
<li><a class="dropdown-item" href="#">Minority Cell</a></li>
<li><a class="dropdown-item" href="#">ST/SC Cell</a></li>
<li><a class="dropdown-item" href="#">OBC Cell</a></li>
<li><a class="dropdown-item" href="#">Anti Sexual Harassment Cell</a></li>
<li><a class="dropdown-item" href="/students-health-home">Add on Information</a></li>
</ul>
</li>
<li class="nav-item dropdown">
<a style="padding-left: 5px; padding-right: 5px;" class="nav-link text-white dropdown-toggle" href="#" data-bs-toggle="dropdown">Research</a>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="#">PhD/Mphil/PG Teachers</a></li>
<li><a class="dropdown-item" href="#">Research Guides</a></li>
<li><a class="dropdown-item" href="#">Research Projects</a></li>
<li><a class="dropdown-item" href="#">Know Your Ganges</a></li>
<li><a class="dropdown-item" href="#">Central Instrumental Facility</a></li>
</ul>
</li>
<li class="nav-item dropdown">
<a style="padding-left: 5px; padding-right: 5px;" class="nav-link text-white dropdown-toggle" href="#" data-bs-toggle="dropdown">Publications</a>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="#">Journal Trivium</a></li>
<li><a class="dropdown-item" href="#">Journal Ruellia</a></li>
<li><a class="dropdown-item" href="#">Papers & Journals</a></li>
<li><a class="dropdown-item" href="#">Books & Chapters</a></li>
</ul>
</li>
<li class="nav-item dropdown">
<a style="padding-left: 5px; padding-right: 5px;" class="nav-link text-white dropdown-toggle" href="#" data-bs-toggle="dropdown">Notifications</a>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="/notice?type=notice">General Notice</a></li>
<li><a class="dropdown-item" href="/notice?type=tender">Tender Notice</a></li>
</ul>
</li>
<li class="nav-item dropdown">
<a style="padding-left: 5px; padding-right: 5px;" class="nav-link text-white dropdown-toggle" href="#" data-bs-toggle="dropdown">News & Events</a>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="#"> Events </a></li>
<li><a class="dropdown-item" href="#"> Press Coverage </a></li>
<li><a class="dropdown-item" href="/gallery"> Gallery </a></li>
<li><a class="dropdown-item" href="#"> Videos </a></li>
</ul>
</li>
<li class="nav-item dropdown">
<a style="padding-left: 5px; padding-right: 5px;" class="nav-link text-white dropdown-toggle" href="#" data-bs-toggle="dropdown">Facilities</a>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="/welfare-programme"> ICT & Other Facilities </a></li>
<li><a class="dropdown-item" href="#"> Girl's Hostel </a></li>
</ul>
</li>
</ul>
</div> <!-- navbar-collapse.// -->
</div> <!-- container-fluid.// -->
</nav>
<!-- ============= COMPONENT END// ============== -->
<style type="text/css">
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Roboto+Slab:wght@100..900&display=swap');
/* ============ desktop view ============ */
.dropdown-item{
color: #fff;
border-bottom: 1px solid #fff;
padding-top: 10px;
padding-bottom: 10px;
}
.dropdown-item:hover {
background-color: #273c45;
color: #fbaf00;
}
.nav-link{
border-right: 1px solid #333;
}
.nav-link:hover{
background-color: #614e41;
}
@media all and (min-width: 992px) {
body{
font-size: 16px;
font-weight: 700;
font-weight: 700;
font-family: "Roboto Slab", serif;
font-optical-sizing: auto;
}
.navbar{
height: 40px;
}
.dropdown-menu li{
position: relative;
}
.dropdown-menu{
background-color: #3e5b66;
}
.dropdown-menu .submenu{
display: none;
position: absolute;
left:100%; top:-7px;
}
.dropdown-menu .submenu-left{
right:100%; left: auto;
}
.dropdown-menu > li:hover{ background-color: #273c45 }
.dropdown-menu > li:hover > .submenu{
display: block;
}
}
/* ============ desktop view .end// ============ */
/* ============ small devices ============ */
@media (max-width: 1499px) {
body{
font-size: 13.5px;
font-weight: 700;
font-weight: 700;
font-family: "Roboto Slab", serif;
font-optical-sizing: auto;
}
.dropdown-menu .dropdown-menu {
/* margin-left: 0.7rem; */
margin-right: 0.7rem;
margin-bottom: .5rem;
}
.dropdown-menu {
background-color: #3e5b66;
}
}
/* ============ small devices .end// ============ */
.dropdown-submenu {
position: relative;
}
.dropdown-submenu .dropdown-menu {
display: none;
position: absolute;
top: 0;
left: 100%;
margin-top: -1px;
margin-left: 0.1rem;
}
.dropdown-submenu:hover .dropdown-menu {
display: block;
}
.nav-pills .nav-link.active {
background-color: #004848 !important;
}
.nav-pills .nav-link {
white-space: nowrap;
place-items: center;
background-color: #966650;
border-bottom: 1px solid #fff;
color: #fff;
}
.nav-pills .nav-link:last-child {
border-bottom: none; /* Remove border from last item */
}
th{
background-color: #595959;
border: 1px solid #808080;
text-align: center;
color: #ffffff;
padding: 8px;
/* border-radius: 5px; */
}
td{
background-color: #ccdddc;
border: 1px solid #808080;
color: #000;
padding: 8px;
/* border-radius: 5px; */
}
</style>
<script type="text/javascript">
document.addEventListener("DOMContentLoaded", function(){
/////// Prevent closing from click inside dropdown
document.querySelectorAll('.dropdown-menu').forEach(function(element){
element.addEventListener('click', function (e) {
e.stopPropagation();
});
})
// make it as accordion for smaller screens
if (window.innerWidth < 992) {
// close all inner dropdowns when parent is closed
document.querySelectorAll('.navbar .dropdown').forEach(function(everydropdown){
everydropdown.addEventListener('hidden.bs.dropdown', function () {
// after dropdown is hidden, then find all submenus
this.querySelectorAll('.submenu').forEach(function(everysubmenu){
// hide every submenu as well
everysubmenu.style.display = 'none';
});
})
});
document.querySelectorAll('.dropdown-menu a').forEach(function(element){
element.addEventListener('click', function (e) {
let nextEl = this.nextElementSibling;
if(nextEl && nextEl.classList.contains('submenu')) {
// prevent opening link if link needs to open dropdown
e.preventDefault();
console.log(nextEl);
if(nextEl.style.display == 'block'){
nextEl.style.display = 'none';
} else {
nextEl.style.display = 'block';
}
}
});
})
}
// end if innerWidth
});
// DOMContentLoaded end
document.addEventListener('DOMContentLoaded', function () {
document.querySelectorAll('.dropdown-submenu a.dropdown-toggle').forEach(function(element) {
element.addEventListener('click', function (e) {
let nextEl = this.nextElementSibling;
if (nextEl && nextEl.classList.contains('dropdown-menu')) {
e.preventDefault();
if (nextEl.style.display === 'block') {
nextEl.style.display = 'none';
} else {
nextEl.style.display = 'block';
}
}
});
});
});
</script>
</header><div class="container mx-auto" style="">
<div class="" style="padding-top:20px; padding-bottom:15px; font-size:25px;"><p style="text-align: center;">Sem II Admission 2024</p></div>
<div class=""><div><img src="https://file-vault.siliconpin.com/scc_php0/gxpujhar60"></div></div>
</div><footer>
<div class="container-fluid mt-5" style="background-image: radial-gradient(circle at 100% 150%, #554b28 24%, #5c522c 24%, #5c522c 28%, #554b28 28%, #554b28 36%, #5c522c 36%, #5c522c 40%, transparent 40%, transparent), radial-gradient(circle at 0 150%, #554b28 24%, #5c522c 24%, #5c522c 28%, #554b28 28%, #554b28 36%, #5c522c 36%, #5c522c 40%, transparent 40%, transparent), radial-gradient(circle at 50% 100%, #5c522c 10%, #554b28 10%, #554b28 23%, #5c522c 23%, #5c522c 30%, #554b28 30%, #554b28 43%, #5c522c 43%, #5c522c 50%, #554b28 50%, #554b28 63%, #5c522c 63%, #5c522c 71%, transparent 71%, transparent), radial-gradient(circle at 100% 50%, #5c522c 5%, #554b28 5%, #554b28 15%, #5c522c 15%, #5c522c 20%, #554b28 20%, #554b28 29%, #5c522c 29%, #5c522c 34%, #554b28 34%, #554b28 44%, #5c522c 44%, #5c522c 49%, transparent 49%, transparent), radial-gradient(circle at 0 50%, #5c522c 5%, #554b28 5%, #554b28 15%, #5c522c 15%, #5c522c 20%, #554b28 20%, #554b28 29%, #5c522c 29%, #5c522c 34%, #554b28 34%, #554b28 44%, #5c522c 44%, #5c522c 49%, transparent 49%, transparent); background-size: 100px 50px; background-repeat: repeat; background-color: #554b28; color: #fff;"><br>
<div class="row container mx-auto">
<div class="d-flex flex-column flex-md-row justify-content-between align-items-center border-top border-bottom border-2 py-2 border-white">
<h4 class="fw-normal">Social Media Presence</h4>
<div>
<a href="">
<img src="/assets/fb.svg" alt="" />
</a>
<a href="">
<img src="/assets/insta.svg" alt="" />
</a>
<a href="">
<img src="/assets/youtube.svg" alt="" />
</a>
<a href="">
<img src="/assets/twitter.svg" alt="" />
</a>
</div>
</div>
<div class="col-12 col-md-6 col-lg-4 pt-2">
<h2 class="text-uppercase">About College</h2>
<p class="fw-normal" style="text-align: justify;">Sree Chaitanya College, Habra occupies a very distinguished status in the higher education map of the district of North 24 Parganas as well as of the state of West Bengal. The institution with its imposing building-structures amid a lush green of more than 20 acres of land, overlooking Jessore Road (NH 35), is about 40 km from Kolkata.</p>
</div>
<div class="col-12 col-md-6 col-lg-4 pt-2">
<h2 class="text-uppercase">IMPORTANT WEBSITES</h2>
<div class="d-flex flex-column justify-content-between">
<a class="text-white fw-normal mb-1" href="#">University Grants Commission (UGC)</a>
<a class="text-white fw-normal mb-1" href="#">Wes Bengal State University (WBSU)</a>
<a class="text-white fw-normal mb-1" href="#">Dept. of Higher Education, Govt. of W.B.</a>
<a class="text-white fw-normal mb-1" href="#">Dept. of Finance, Govt. of W.B.</a>
<a class="text-white fw-normal mb-1" href="#">Netaji Subhas Open University</a>
<a class="text-white fw-normal mb-1" href="#">National Service Scheme (NSS)</a>
</div>
</div>
<div class="col-12 col-md-6 col-lg-4 pt-2">
<h2 class="text-uppercase">REACH US</h2>
<div class="d-flex flex-column">
<p class="fw-normal">Strand Road, Bara Bazar, Chandannagar, Dist: Hooghly, West Bengal, Pin: 712136</p>
<div style="overflow-x: hidden;">
<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3677.078181830616!2d88.63989767601856!3d22.83659682324147!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x39f8b071c69b9933%3A0x5181c48a7b97726e!2sSree%20Chaitanya%20College%2C%20Habra!5e0!3m2!1sen!2sin!4v1720765140520!5m2!1sen!2sin" width="500" height="250" style="border:0; overflow-x: hidden;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>
</div>
</div>
</div>
</div>
</div>
<div class="container-fluid " style="background-color: #0f171c;">
<div class="d-flex flex-row justify-content-center" style="place-items: center; padding-top: 12px; padding-bottom: 12px;">
<div class="text-white fw-normal">&#169; Sree Chaitanya College &nbsp;|&nbsp; </div>
<div class="text-white fw-normal"> 2024 &nbsp;|&nbsp; </div>
<div><a class="text-white fw-normal" href="#">Privacy Policy</a></div>
</div>
</div>
</footer>
</body>
</html>
<?php
?>

1
test.txt Normal file
View File

@ -0,0 +1 @@
Hello World. Testing!