Commit b17f3ac3 authored by Deep Dey's avatar Deep Dey

feat: implement admin admission feature

parent bc107254
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
<div class="la-header-title">SUBMISSION OF APPLICATION FOR ADMISSION</div> <div class="la-header-title">SUBMISSION OF APPLICATION FOR ADMISSION</div>
<div class="la-header-sub-title">Please <span>REVIEW</span> the form carefully before you submit your <div class="la-header-sub-title">Please <span>REVIEW</span> the form carefully before you submit your
application for admission</div> application for admission</div>
<div class="la-header-sub-title font-weight-bold text-danger">(ADMIN PORTAL)</div>
</div> </div>
<div class="la-form-container"> <div class="la-form-container">
......
...@@ -67,6 +67,11 @@ ...@@ -67,6 +67,11 @@
<div>Total Records for LMB: <span id="totalRecordsLMB">0</span></div> <div>Total Records for LMB: <span id="totalRecordsLMB">0</span></div>
<div>Total Records for LMG: <span id="totalRecordsLMG">0</span></div> <div>Total Records for LMG: <span id="totalRecordsLMG">0</span></div>
</div> </div>
<div class="d-flex justify-content-end mb-3">
<a class="btn btn-primary btn-sm"
href="./admission_portal.html">Add new Record</a>
</div>
<div class="details-container" style="height: 350px;"> <div class="details-container" style="height: 350px;">
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-bordered"> <table class="table table-bordered">
......
$(document).ready(function () { $(document).ready(function () {
var loginData = JSON.parse(sessionStorage.getItem('loginData'));
if (!loginData || !loginData.apiKey) {
window.location.href = 'index.html';
}
$('#staffDepartmentContainer').hide(); $('#staffDepartmentContainer').hide();
$('#staffCategoryContainer').hide(); $('#staffCategoryContainer').hide();
$('#exStudentInfoContainer').hide(); $('#exStudentInfoContainer').hide();
......
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Proof of Delivery</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
}
.container {
max-width: 800px;
margin: 50px auto;
padding: 20px;
border-radius: 10px;
}
.header {
text-align: center;
}
.header h1 {
margin-bottom: 5px;
}
.proof-of-delivery {
text-align: center;
margin: 20px 0;
padding: 10px;
background-color: #d9edf7;
color: #31708f;
border: 1px solid #bce8f1;
border-radius: 5px;
}
.email {
color: green;
}
.details {
margin: 20px 0;
}
.details p {
margin: 5px 0;
}
.details span {
font-weight: bold;
}
.footer {
margin: 20px 0;
text-align: center;
font-size: 12px;
color: #555;
}
.social-links {
text-align: center;
margin: 20px 0;
}
.social-links a {
margin: 0 10px;
text-decoration: none;
color: #007bff;
}
.social-links a:hover {
text-decoration: underline;
}
</style>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
</head>
<body>
<div class="container">
<div class="header">
<img src="https://i0.wp.com/lamartiniere.co/wp-content/uploads/2020/10/cropped-lmbb-logo-site-logo.png?w=240&ssl=1"
alt="Proof of Delivery" height="80px">
<h2 id="school"></h2>
</div>
<div class="proof-of-delivery">
<p>Thank you. Your application has been received.</p>
</div>
<div class="details" id="details"></div>
<div class="footer">
<p>Please quote the reference <span class="email"></span> for further correspondence
until such time the admission procedure is under way.</p>
</div>
</div>
<script>
$(document).ready(function () {
var loginData = JSON.parse(sessionStorage.getItem('loginData'));
if (!loginData || !loginData.apiKey) {
window.location.href = 'index.html';
}
// Retrieve the JSON string from session storage
var jsonData = sessionStorage.getItem('userData');
// Parse the JSON string back to an object
if (jsonData) {
var userObject = JSON.parse(jsonData);
// Display the data
var userDataHtml = `
<p><span>CATEGORY:</span> ${userObject.category}</p>
<p><span>CLASS:</span> ${userObject.admissionClass}</p>
<p><span>NAME OF CANDIDATE:</span> ${userObject.fullName}</p>
<p><span>DATE OF BIRTH:</span> ${userObject.dateOfBirth}</p>
<p><span>FATHER'S NAME:</span> ${userObject.fatherName}</p>
<p><span>MOTHER'S NAME:</span> ${userObject.motherName}</p>
`;
$('#details').html(userDataHtml);
$('#school').html(userObject.school);
$('.email').html(userObject.fatherEmail);
} else {
$('#details').html('<p>No user data found.</p>');
}
});
</script>
</body>
</html>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment