pull/7/head
dev2 siliconpin 2024-12-16 06:52:22 +00:00
parent e48d51fabf
commit 2d783ad3d0
2 changed files with 49 additions and 59 deletions

View File

@ -139,8 +139,8 @@
</div>
</div>
<div class="d-flex flex-column flex-xl-row mt-2 justify-content-between text-white font-weight-bold">
<h5 class="px-4 py-2 rounded-pill shadow shadow-lg shadow-danger" style="background-color: #3e5b66;">College Meuseum</h5>
<h5 class="px-4 py-2 rounded-pill shadow shadow-lg shadow-danger" style="background-color: #3e5b66;">Campus 360&deg;</h5>
<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>
@ -256,7 +256,7 @@
<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="#">Objective</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</a></li>
@ -275,8 +275,8 @@
<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</a></li>
<li><a class="dropdown-item" href="#">Organogram</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>
@ -327,7 +327,7 @@
</ul>
</li>
<li><a class="dropdown-item" href="#">ISR </a> </li>
<li><a class="dropdown-item" href="#">NSS </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>

View File

@ -1,3 +1,25 @@
<?php
require('.hta_config/env.php');
try {
$conn = new PDO("mysql:host=$mariaServer;dbname=$mariaDb", $mariaUser, $mariaPass);
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
// $stmt = $conn->prepare("SELECT * FROM `scc22` WHERE `type` = 'notice'");
$stmt = $conn->prepare("SELECT * FROM `scc24` WHERE `type` = 'notice' ORDER BY `date_created` DESC");
$stmt->execute();
$notices = $stmt->fetchAll(PDO::FETCH_ASSOC);
$stmt = $conn->prepare("SELECT * FROM `scc24` WHERE `position` = 'important' ORDER BY `date_created` DESC");
$stmt->execute();
$importants = $stmt->fetchAll(PDO::FETCH_ASSOC);
$stmt = $conn->prepare("SELECT * FROM `scc24` WHERE `type` = 'events' ORDER BY `date_created` DESC");
$stmt->execute();
$events = $stmt->fetchAll(PDO::FETCH_ASSOC);
} catch (PDOException $e) {
$in_page_message = "<p class='text-danger'>Error: " . $e->getMessage() . "</p>";
}
?>
<div style="width: 100%;height: 480px;">
<img style="width: 100%;height: 100%;" src="/assets/adminstration/clg.jpg" alt="clg">
@ -6,19 +28,17 @@
<main class="container my-5 ">
<div class="container row ">
<div class=" fw-normal col-lg-9 col-12">
<!-- Main Heading -->
<h3 class="text-primary mb-4 text-center">Vision of The College</h3>
<h3 class="mb-4 text-center" style="color: #6b6245;">Vision of The College <hr></h3>
<p class="text-center mb-4">Character Formation through Knowledge and Value-based Education for
Transformation
of the Society and the Nation</p>
<!-- Mission Section -->
<h3 class="text-primary my-4 text-center">Our Mission</h5>
<h3 class="my-4 text-center" style="color: #6b6245;">Our Mission <hr></h5>
<div class="mt-3">
<p>
<p style="text-align: justify;">
<b>a)</b> To suit the above 'Vision', the 'Mission' of the College is to provide balanced,
value-based and knowledge-based education informed by latest technology, with a view to
instilling
@ -30,7 +50,7 @@
backgrounds
living around the institution.
</p>
<p>
<p style="text-align: justify;">
<b>b)</b> The college aims at moulding and shaping the students as good citizens with qualities
of
mind and heart showing commitment towards the nation as well as the community in which they
@ -40,7 +60,7 @@
to
get involved in societal transformation.
</p>
<p>
<p style="text-align: justify;">
<b>c)</b> Needless to say that since our College was established to serve the higher education
needs
of the hapless youth, who had to bear the toll of Partition, we have always strived to spread
@ -58,63 +78,33 @@
<div class="card-header text-white fw-bold" style="background-color: #868756">Notice</div>
<div class="list-group list-group-flush" style="height: 200px; overflow-y: auto;">
<?php
try {
$conn = new PDO("mysql:host=$mariaServer;dbname=$mariaDb", $mariaUser, $mariaPass);
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$stmt = $conn->prepare("SELECT * FROM `scc24` ORDER BY (`date_created` = CURDATE()) DESC, `date_created` DESC");
// $stmt->bindParam(':type', $noticeType, PDO::PARAM_STR);
$stmt->execute();
$content = $stmt->fetchAll(PDO::FETCH_ASSOC);
$serialNumber = 1;
foreach ($content as $notice) {
echo '<a href="/notice/'.$notice['slug'].'" class="list-group-item list-group-item-action" style="color: #6b6245;">'.$notice['title'].'</a>';
$serialNumber++;
}
} catch (PDOException $e) {
echo "<p class='text-danger'>Error: " . htmlspecialchars($e->getMessage()) . "</p>";
foreach ($notices as $notice) {
echo '<a href="/notice/'.$notice['slug'].'" class="list-group-item list-group-item-action" style="color: #6b6245;">'.$notice['title'].'</a>';
}
?>
</div>
<div class="card-footer text-center p-0">
<a href="/notice" class="w-100" style="background-color: #868756; color: #ffffff">View All</a>
<div class="text-center" style="background-color: #868756; padding: 5px;">
<a href="/notice" class="w-100" style="color: #ffffff;">View All</a>
</div>
</div>
<div class="card" style="width: 250px; border: 1px solid #ccc;">
<div class="card-header bg-primary text-white text-center fw-bold">
Notice
</div>
<div class="card-header text-white fw-bold" style="background-color: #868756">Important Links</div>
<div class="list-group list-group-flush" style="height: 200px; overflow-y: auto;">
<!-- Notice Items -->
<a href="#" class="list-group-item list-group-item-action text-primary">wbcap.in Session2024-25 for
Phase II</a>
<a href="#" class="list-group-item list-group-item-action text-primary">Admission Notice
2024-2025</a>
<a href="#" class="list-group-item list-group-item-action text-primary">NEP SEM II ADMISSION REOPEN
2024</a>
<a href="#" class="list-group-item list-group-item-action text-primary">Verification schedule and
list of students 2024</a>
<a href="#" class="list-group-item list-group-item-action text-primary">SEM II Admission Extension
2024</a>
<a href="#" class="list-group-item list-group-item-action text-primary">Commencement of VAC
classes</a>
<a href="#" class="list-group-item list-group-item-action text-primary">Sem II Admission 2024</a>
</div>
<div class="card-footer text-center p-0">
<a href="/notice" class="btn btn-primary w-100">View All</a>
<?php
foreach ($importants as $important) {
echo '<a href="/notice/'.$important['slug'].'" class="list-group-item list-group-item-action" style="color: #6b6245;">'.$important['title'].'</a>';
}
?>
</div>
</div>
<div class="card" style="width: 250px; border: 1px solid #ccc;">
<div class="card-header bg-primary text-white text-center fw-bold">
Notice
</div>
<div class="card-header text-white fw-bold" style="background-color: #868756">Important Links</div>
<div class="list-group list-group-flush" style="height: 200px; overflow-y: auto;">
<!-- Notice Items -->
<a href="#" class="list-group-item list-group-item-action text-primary">wbcap.in Session2024-25 for
Phase II</a>
</div>
<div class="card-footer text-center p-0">
<a href="/notice" class="btn btn-primary w-100">View All</a>
<?php
foreach ($events as $event) {
echo '<a href="/notice/'.$event['slug'].'" class="list-group-item list-group-item-action" style="color: #6b6245;">'.$event['title'].'</a>';
}
?>
</div>
</div>
</div>