pull/16/head
parent
d212f88f27
commit
4ef9048f95
18
.hta_404.php
18
.hta_404.php
|
@ -18,17 +18,17 @@
|
|||
$querySlug = explode('.', $slug)[0];
|
||||
$fileName = $slug;
|
||||
|
||||
function saveHtmlFile($fileName, $headerContent, $pageContent){
|
||||
$footerContent = file_get_contents('./.hta_footer.php');
|
||||
$totalPageContent = $headerContent . $pageContent . $footerContent;
|
||||
$filePath = __DIR__ . '/' . $fileName;
|
||||
// function saveHtmlFile($fileName, $headerContent, $pageContent){
|
||||
// $footerContent = file_get_contents('./.hta_footer.php');
|
||||
// $totalPageContent = $headerContent . $pageContent . $footerContent;
|
||||
// $filePath = __DIR__ . '/' . $fileName;
|
||||
|
||||
if (file_put_contents($filePath, $totalPageContent)) {
|
||||
// if (file_put_contents($filePath, $totalPageContent)) {
|
||||
// echo "<p class='text-success'>Page saved successfully at $filePath.</p>";
|
||||
} else {
|
||||
// } else {
|
||||
// echo "<p class='text-danger'>Failed to save the page.</p>";
|
||||
}
|
||||
}
|
||||
// }
|
||||
// }
|
||||
try {
|
||||
$conn = new PDO("mysql:host=$mariaServer;dbname=$mariaDb", $mariaUser, $mariaPass);
|
||||
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
||||
|
@ -47,7 +47,7 @@
|
|||
</div>';
|
||||
|
||||
// Call the function to save the HTML file
|
||||
saveHtmlFile($fileName, $headerContent, $pageContent);
|
||||
// saveHtmlFile($fileName, $headerContent, $pageContent);
|
||||
} else {
|
||||
$pageContent = '
|
||||
<div style="display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 100px 0; ">
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
|
||||
if(isset($url[2])){
|
||||
$slug2="";
|
||||
if (strpos($url[2], "?") !== false) {
|
||||
$url2 = explode('?', $url[2]);
|
||||
$slug2=$url2[0];
|
||||
} else $slug2=$url[2];
|
||||
if($slug2=="") require_once('admin/_home.php');
|
||||
elseif(file_exists(__DIR__."/admin/".$slug2.".php")) include __DIR__."/admin/".$slug2.".php";
|
||||
else require_once('admin/.hta_404.php');
|
||||
}
|
||||
else require_once('admin/_home.php');
|
||||
|
||||
?>
|
|
@ -0,0 +1,77 @@
|
|||
<?php
|
||||
require('.hta_config/env.php');
|
||||
require('.hta_header.php');
|
||||
require('.hta_admin_header.php');
|
||||
?>
|
||||
<link href="/styles.css" rel="stylesheet" />
|
||||
<link href="https://cdn.jsdelivr.net/npm/quill@2.0.3/dist/quill.snow.css" rel="stylesheet" />
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/quill@2.0.3/dist/quill.js"></script>
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/atom-one-dark.min.css"
|
||||
/>
|
||||
<script src="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.js"></script>
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.css" />
|
||||
|
||||
<div id="toolbar-container">
|
||||
<span class="ql-formats">
|
||||
<select class="ql-font"></select>
|
||||
<select class="ql-size"></select>
|
||||
</span>
|
||||
<span class="ql-formats">
|
||||
<button class="ql-bold"></button>
|
||||
<button class="ql-italic"></button>
|
||||
<button class="ql-underline"></button>
|
||||
<button class="ql-strike"></button>
|
||||
</span>
|
||||
<span class="ql-formats">
|
||||
<select class="ql-color"></select>
|
||||
<select class="ql-background"></select>
|
||||
</span>
|
||||
<span class="ql-formats">
|
||||
<button class="ql-script" value="sub"></button>
|
||||
<button class="ql-script" value="super"></button>
|
||||
</span>
|
||||
<span class="ql-formats">
|
||||
<button class="ql-header" value="1"></button>
|
||||
<button class="ql-header" value="2"></button>
|
||||
<button class="ql-blockquote"></button>
|
||||
<button class="ql-code-block"></button>
|
||||
</span>
|
||||
<span class="ql-formats">
|
||||
<button class="ql-list" value="ordered"></button>
|
||||
<button class="ql-list" value="bullet"></button>
|
||||
<button class="ql-indent" value="-1"></button>
|
||||
<button class="ql-indent" value="+1"></button>
|
||||
</span>
|
||||
<span class="ql-formats">
|
||||
<button class="ql-direction" value="rtl"></button>
|
||||
<select class="ql-align"></select>
|
||||
</span>
|
||||
<span class="ql-formats">
|
||||
<button class="ql-link"></button>
|
||||
<button class="ql-image"></button>
|
||||
<button class="ql-video"></button>
|
||||
<button class="ql-formula"></button>
|
||||
</span>
|
||||
<span class="ql-formats">
|
||||
<button class="ql-clean"></button>
|
||||
</span>
|
||||
</div>
|
||||
<div id="editor">
|
||||
Lorem ipsum dolor sit amet consectetur adipisicing elit. Nostrum quisquam eos rerum dolore obcaecati nulla porro minus voluptas blanditiis fugiat dolorum quis earum quam excepturi, et officia quia aliquam sunt?
|
||||
</div>
|
||||
|
||||
<!-- Initialize Quill editor -->
|
||||
<script>
|
||||
const quill = new Quill('#editor', {
|
||||
modules: {
|
||||
syntax: true,
|
||||
toolbar: '#toolbar-container',
|
||||
},
|
||||
placeholder: 'Compose an epic...',
|
||||
theme: 'snow',
|
||||
});
|
||||
console.log(document.getElementById('editor').innerHTML)
|
||||
</script>
|
|
@ -1,656 +0,0 @@
|
|||
<?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.html" 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°</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 » </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 » </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="/about.html">History</a></li>
|
||||
<!-- <li><a class="dropdown-item" href="#">Mission</a></li> -->
|
||||
<li><a class="dropdown-item" href="/pricipal-desk.html">Vision</a></li>
|
||||
<!-- <li><a class="dropdown-item" href="">Objective</a></li> -->
|
||||
<li><a class="dropdown-item" href="/infrastructure-and-learning-resources.html">Infrastructure & Facilities</a></li>
|
||||
<!-- <li><a class="dropdown-item" href="#">Distinctiveness</a></li> -->
|
||||
<li><a class="dropdown-item" href="/best-practices.html">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.html">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.html">Teachers' Council</a></li>
|
||||
<li><a class="dropdown-item" href="/organogram.html">Organogram</a></li>
|
||||
<li><a class="dropdown-item" href="/code-of-ethics-and-conduct.html">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.html">RTI</a></li>
|
||||
<li><a class="dropdown-item" href="/rusa.html">RUSA</a></li>
|
||||
<li><a class="dropdown-item" href="/staff.html">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 » </a>
|
||||
<ul class="submenu dropdown-menu">
|
||||
<li><a class="dropdown-item" href="/departments.html">Humanities</a></li>
|
||||
<li><a class="dropdown-item" href="/departments-of-science.html">Science</a></li>
|
||||
<!-- <li><a class="dropdown-item" href="#">Commerce</a></li> -->
|
||||
</ul>
|
||||
</li>
|
||||
<li><a class="dropdown-item" href="/departments"> Departments » </a>
|
||||
<ul class="submenu dropdown-menu">
|
||||
<li><a class="dropdown-item" href="#">Humanitiess » </a>
|
||||
<ul class="submenu dropdown-menu">
|
||||
<li><a class="dropdown-item" href="/departments/humanities/bengali.html">Bengali</a></li>
|
||||
<li><a class="dropdown-item" href="/departments/humanities/economics.html">Economics</a></li>
|
||||
<!-- <li><a class="dropdown-item" href="#">Education</a></li> -->
|
||||
<li><a class="dropdown-item" href="/departments/humanities/english.html">English</a></li>
|
||||
<!-- <li><a class="dropdown-item" href="#">French</a></li> -->
|
||||
<li><a class="dropdown-item" href="/departments/humanities/geography.html">Geography</a></li>
|
||||
<li><a class="dropdown-item" href="/departments/humanities/history.html">History</a></li>
|
||||
<li><a class="dropdown-item" href="/departments/humanities/philosophy.html">Philosophy</a></li>
|
||||
<li><a class="dropdown-item" href="/departments/humanities/political-science.html">Political Science</a></li>
|
||||
<li><a class="dropdown-item" href="/departments/humanities/sanskrit.html">Sanskrit</a></li>
|
||||
<!-- <li><a class="dropdown-item" href="#">Sociology</a></li> -->
|
||||
</ul>
|
||||
</li>
|
||||
<li><a class="dropdown-item" href="#">Science » </a>
|
||||
<ul class="submenu dropdown-menu">
|
||||
<li><a class="dropdown-item" href="/departments/science/botany.html">Botany</a></li>
|
||||
<li><a class="dropdown-item" href="/departments/science/chemistry.html">Chemistry</a></li>
|
||||
<li><a class="dropdown-item" href="/departments/science/computer-science.html">Computer Science</a></li>
|
||||
<li><a class="dropdown-item" href="/departments/science/enviromental-science.html">Environmental Science</a></li>
|
||||
<li><a class="dropdown-item" href="/departments/science/mathematics.html">Mathematics</a></li>
|
||||
<li><a class="dropdown-item" href="/departments/science/physics.html">Physics</a></li>
|
||||
<li><a class="dropdown-item" href="/departments/science/zoology.html">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.html">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.html">Student Support Services</a></li>
|
||||
<li><a class="dropdown-item" href="/students-union.html">Students' Union</a></li>
|
||||
<li><a class="dropdown-item" href="/alumni-association.html">Alumni</a></li>
|
||||
<!-- <li><a class="dropdown-item" href="#">E-Magazine</a></li> -->
|
||||
<li><a class="dropdown-item" href="/students-feedback.html">Feedback Form</a></li>
|
||||
<li><a class="dropdown-item" href="/student-grievance.html">Online Grievance Redressal</a></li>
|
||||
<li><a class="dropdown-item" href="/anti-ragging-committee.html">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.html">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.html"> 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.html"> 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 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>
|
||||
<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">© Sree Chaitanya College | </div>
|
||||
<div class="text-white fw-normal"> 2024 | </div>
|
||||
<div><a class="text-white fw-normal" href="#">Privacy Policy</a></div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,86 @@
|
|||
<?php
|
||||
require('../.hta_header.php');
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>PocketBase Login</title>
|
||||
</head>
|
||||
<body>
|
||||
<div class="my-5">
|
||||
<form id="loginForm" style="display: flex; flex-direction: column; justify-content: center; align-items: center;">
|
||||
<div style="display: flex; flex-direction: column; max-width: 500px; width: 400px; gap: 10px; background-color: #ffddcc; padding: 30px; border-radius: 10px;">
|
||||
<h3 style="text-align: center; color: #402517; line-height: 0;">Login</h3>
|
||||
<hr style="border-top: 2px solid #402517;">
|
||||
<input type="text" id="userName" placeholder="Username or Email" style="padding: 10px;" />
|
||||
<input type="password" id="password" placeholder="Password" style="padding: 10px;" />
|
||||
<button type="submit" style="padding: 10px;">Login</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<script type="module">
|
||||
import PocketBase from 'https://cdn.jsdelivr.net/npm/pocketbase@0.15.0';
|
||||
const pb = new PocketBase('http://127.0.0.1:8090');
|
||||
|
||||
// Handle login form submission
|
||||
document.getElementById('loginForm').addEventListener('submit', async (e) => {
|
||||
e.preventDefault(); // Prevent the default form submission
|
||||
|
||||
const usernameOrEmail = document.getElementById('userName').value;
|
||||
const password = document.getElementById('password').value;
|
||||
|
||||
try {
|
||||
// Authenticate user
|
||||
const authData = await pb.collection('users').authWithPassword(usernameOrEmail, password);
|
||||
|
||||
console.log('Authentication successful!');
|
||||
console.log('Is Auth Valid:', pb.authStore.isValid);
|
||||
console.log('Auth Token:', pb.authStore.token);
|
||||
console.log('User ID:', pb.authStore.model.id);
|
||||
|
||||
alert('Login successful!');
|
||||
} catch (error) {
|
||||
console.error('Login failed:', error);
|
||||
alert('Login failed. Please check your credentials.');
|
||||
}
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<!-- <script> -->
|
||||
|
||||
<!-- // after the above you can also access the auth data from the authStore
|
||||
|
||||
// // Attach event listener to the form
|
||||
// document.getElementById('loginForm').addEventListener('submit', function (e) {
|
||||
// e.preventDefault(); // Prevent the form from reloading the page
|
||||
|
||||
// let userData = {
|
||||
// "identity": document.getElementById('userName').value,
|
||||
// "password": document.getElementById('password').value
|
||||
// };
|
||||
|
||||
// fetch('http://192.168.1.197:8090/api/collections/users/auth-with-password', {
|
||||
// method: 'POST',
|
||||
// headers: {
|
||||
// 'Content-Type': 'application/json'
|
||||
// },
|
||||
// body: JSON.stringify(userData)
|
||||
// })
|
||||
// .then(res => res.json())
|
||||
// .then(data => {
|
||||
// console.log(data);
|
||||
// })
|
||||
// .catch(error => {
|
||||
// console.error(error);
|
||||
// });
|
||||
// }); -->
|
||||
<!-- </script> -->
|
||||
|
||||
<?php
|
||||
require_once('../.hta_footer.php');
|
||||
?>
|
|
@ -1,9 +1,32 @@
|
|||
<?php
|
||||
require('../.hta_config/env.php');
|
||||
require('../.hta_header.php');
|
||||
require('../.hta_admin_header.php');
|
||||
$current_date_time = date("Y-m-d H:i:s");
|
||||
require('../.hta_config/env.php');
|
||||
require('../.hta_header.php');
|
||||
require('../.hta_admin_header.php');
|
||||
|
||||
$conn = new PDO("mysql:host=$mariaServer;dbname=$mariaDb", $mariaUser, $mariaPass);
|
||||
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
||||
|
||||
// Define the number of results per page
|
||||
$results_per_page = 30;
|
||||
|
||||
// Get the current page number from the URL (default to page 1)
|
||||
$page = isset($_GET['page']) && is_numeric($_GET['page']) ? (int) $_GET['page'] : 1;
|
||||
$offset = ($page - 1) * $results_per_page;
|
||||
|
||||
// Get total number of records
|
||||
$total_stmt = $conn->prepare("SELECT COUNT(*) AS total FROM `scc24`");
|
||||
$total_stmt->execute();
|
||||
$total_rows = $total_stmt->fetch(PDO::FETCH_ASSOC)['total'];
|
||||
$total_pages = ceil($total_rows / $results_per_page);
|
||||
|
||||
// Fetch paginated records
|
||||
$stmt = $conn->prepare("SELECT * FROM `scc24` ORDER BY id DESC LIMIT :limit OFFSET :offset");
|
||||
$stmt->bindValue(':limit', $results_per_page, PDO::PARAM_INT);
|
||||
$stmt->bindValue(':offset', $offset, PDO::PARAM_INT);
|
||||
$stmt->execute();
|
||||
$content = $stmt->fetchAll(PDO::FETCH_ASSOC);
|
||||
?>
|
||||
|
||||
<p style="font-size: 25px; text-align: center; margin-top: 10px;">Page Content List</p>
|
||||
<div class="table-container">
|
||||
<table class="responsive-table">
|
||||
|
@ -16,13 +39,7 @@
|
|||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$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 type != 'faculty' ORDER BY id DESC ");
|
||||
$stmt->execute();
|
||||
$content = $stmt->fetchAll(PDO::FETCH_ASSOC);
|
||||
foreach($content as $pageData){ ?>
|
||||
<?php foreach ($content as $pageData) { ?>
|
||||
<tr>
|
||||
<td style="border: 2px solid #7a7a7a;"><?php echo $pageData['id']; ?></td>
|
||||
<td style="border: 2px solid #7a7a7a;"><?php echo $pageData['type']; ?></td>
|
||||
|
@ -30,7 +47,13 @@
|
|||
<td style="border: 2px solid #7a7a7a;">
|
||||
<div style="display: flex; flex-direction: row; justify-content: center; color: blue;">
|
||||
<a href="edit-content.php?id=<?php echo $pageData['id'] . '&slug=' . $pageData['slug'] . '&type=' . $pageData['type']; ?>">Edit</a>
|
||||
<a target="_blank" href="<?php if($pageData['type'] === 'notice'){echo '/notice/'.$pageData['slug'].'.html';} elseif($pageData['type'] === 'page'){echo '/'.$pageData['slug'].'.html';}?>">View</a>
|
||||
<a target="_blank" href="<?php
|
||||
if ($pageData['type'] === 'notice') {
|
||||
echo '/notice/' . $pageData['slug'] . '.html';
|
||||
} elseif ($pageData['type'] === 'page') {
|
||||
echo '/' . $pageData['slug'] . '.html';
|
||||
}
|
||||
?>">View</a>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -38,9 +61,24 @@
|
|||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<?php
|
||||
require('../.hta_footer.php');
|
||||
?>
|
||||
|
||||
<!-- Pagination Links -->
|
||||
<div style="text-align: center; margin-top: 20px; display: flex; flex-direction: row; gap: 20px; justify-content: center;">
|
||||
<?php if ($page > 1): ?>
|
||||
<a href="?page=1">First</a>
|
||||
<a href="?page=<?php echo $page - 1; ?>">Prev</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<span>Page <?php echo $page; ?> of <?php echo $total_pages; ?></span>
|
||||
|
||||
<?php if ($page < $total_pages): ?>
|
||||
<a href="?page=<?php echo $page + 1; ?>">Next</a>
|
||||
<a href="?page=<?php echo $total_pages; ?>">Last</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<?php require('../.hta_footer.php'); ?>
|
||||
|
||||
<style>
|
||||
.table-container {
|
||||
margin: 20px auto;
|
||||
|
|
|
@ -59,6 +59,6 @@
|
|||
}
|
||||
|
||||
|
||||
file_put_contents($filePath, $totalPageContent);
|
||||
// file_put_contents($filePath, $totalPageContent);
|
||||
|
||||
?>
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue