init
This commit is contained in:
123
.hta_slug/_home.php
Normal file
123
.hta_slug/_home.php
Normal file
@@ -0,0 +1,123 @@
|
||||
<div style="width: 100%;height: 480px;">
|
||||
<img style="width: 100%;height: 100%;" src="/assets/adminstration/clg.jpg" alt="clg">
|
||||
|
||||
</div>
|
||||
|
||||
<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>
|
||||
<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>
|
||||
<div class="mt-3">
|
||||
<p>
|
||||
<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
|
||||
self-confidence among the students, in order to turn them into sensitive, dedicated and
|
||||
disciplined
|
||||
citizens who will display a high intellectual calibre, together with emotional balance and
|
||||
social
|
||||
commitment and particularly at helping the students with backward social and economic
|
||||
backgrounds
|
||||
living around the institution.
|
||||
</p>
|
||||
<p>
|
||||
<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
|
||||
live,
|
||||
extending the role of governance and leadership in discharging the different activities to its
|
||||
stakeholders and inculcating innovative practices. With such orientation, students are expected
|
||||
to
|
||||
get involved in societal transformation.
|
||||
</p>
|
||||
<p>
|
||||
<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
|
||||
education among this section of the society. Besides, we have to cater to a huge number of
|
||||
students
|
||||
coming from the First Generation Literate families. Thus, our Vision and Mission do not come
|
||||
from
|
||||
any ivory tower but from the 'real' situation around us.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-3 col-12">
|
||||
<div class="card" style="width: 250px; border: 1px solid #ccc;">
|
||||
<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>";
|
||||
}
|
||||
?>
|
||||
</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>
|
||||
</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="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>
|
||||
</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="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>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</main>
|
||||
27
.hta_slug/notice.php
Normal file
27
.hta_slug/notice.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
require('.hta_config/env.php');
|
||||
try {
|
||||
// Database connection
|
||||
$conn = new PDO("mysql:host=$mariaServer;dbname=$mariaDb", $mariaUser, $mariaPass);
|
||||
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
||||
|
||||
// Query the database
|
||||
$stmt = $conn->prepare("SELECT * FROM `scc24`");
|
||||
$stmt->execute();
|
||||
$content = $stmt->fetch(PDO::FETCH_ASSOC);
|
||||
|
||||
// Check and render content
|
||||
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>';
|
||||
} else {
|
||||
echo '<div class="container mx-auto"><p style="text-align: center;">Content not found (404).</p></div>';
|
||||
}
|
||||
} catch (PDOException $e) {
|
||||
echo "<p class='text-danger'>Error: " . htmlspecialchars($e->getMessage()) . "</p>";
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user