commitall
This commit is contained in:
792
application/views/student/admission.php
Normal file
792
application/views/student/admission.php
Normal file
@@ -0,0 +1,792 @@
|
||||
<style>
|
||||
form#admission-register ul {
|
||||
background-color: transparent !important;
|
||||
border: none !important;
|
||||
border-bottom: 2px solid #b7b3b3 !important;
|
||||
list-style: none;
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
}
|
||||
|
||||
form#admission-register ul li {
|
||||
flex-basis: 25%;
|
||||
margin: 0 !important;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
form label.error,
|
||||
#secNameerr {
|
||||
color: red;
|
||||
font-size: 13px;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
input[type="date"]::-webkit-calendar-picker-indicator {
|
||||
right: 27px;
|
||||
}
|
||||
|
||||
.register-radio label {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.register-row {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
form#admission-register .ui-widget-header .ui-state-active {
|
||||
background-color: transparent !important;
|
||||
color: #032da1 !important;
|
||||
}
|
||||
|
||||
form#admission-register .ui-widget-header .ui-state-active a {
|
||||
color: #032da1;
|
||||
}
|
||||
|
||||
form#admission-register ul li a {
|
||||
background: none;
|
||||
color: #222;
|
||||
padding: 10px 15px;
|
||||
cursor: pointer;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
form#admission-register ul li.ui-state-active:after {
|
||||
position: absolute;
|
||||
content: "";
|
||||
left: 0;
|
||||
background: #032da1;
|
||||
right: 0;
|
||||
height: 4px;
|
||||
bottom: -1px;
|
||||
width: 96%;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.has-float-label .form-control:placeholder-shown:not(:focus)+* {
|
||||
opacity: 0.5;
|
||||
top: 1em;
|
||||
}
|
||||
|
||||
.has-float-label .nepal-date-student:placeholder-shown:not(:focus)+* {
|
||||
opacity: 0.5;
|
||||
top: 0.4em;
|
||||
}
|
||||
|
||||
.ui-widget input,
|
||||
.ui-widget select,
|
||||
.ui-widget textarea,
|
||||
.ui-widget button {
|
||||
font-family: Poppins;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.register-radio {
|
||||
width: 24%;
|
||||
}
|
||||
|
||||
.form-control {
|
||||
padding: 0.5rem 0.75rem;
|
||||
}
|
||||
|
||||
.upload-doc label.upload-btn {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.passwrd-icon {
|
||||
right: 25px;
|
||||
}
|
||||
</style>
|
||||
<script src="https://code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
|
||||
<div class="adm-cover">
|
||||
<header class="login-header">
|
||||
<div class="login-wrap">
|
||||
<div class="logo-wrap">
|
||||
<a href="<?php echo base_url() . $this->uri->segment(1); ?>"><img src="<?php echo base_url(); ?>common_assets/<?php echo $school_info['color_logo'] ?>"> </a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="header-menu-wrap">
|
||||
<div class="login-mob-menu"><i class="fas fa-bars"></i></div>
|
||||
<ul class="mob-menu">
|
||||
<li><a href="">About Us</a></li>
|
||||
<li><a href="">Contact Us</a></li>
|
||||
<li><a href="admission-process.html"><button class="join-class-btn">Admission Process ></button></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</header>
|
||||
<div class="admission-wrap">
|
||||
<div class="admission-cover">
|
||||
<div class="admission-head">
|
||||
<h3 class="common-heading">Application for Admission</h3>
|
||||
</div>
|
||||
<?php if ($this->session->flashdata('success')) { ?>
|
||||
|
||||
<div class="alert alert-success alert-dismissible fade show" role="alert">
|
||||
<p><?php echo $this->session->flashdata('success') ?></p>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('failed')) { ?>
|
||||
|
||||
<div class="alert alert-danger alert-dismissible fade show" role="alert">
|
||||
<p><?php echo $this->session->flashdata('failed') ?></p>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
<form id="admission-register" action="<?php echo base_url(); ?>Student/addedit_apllication" method="post" enctype="multipart/form-data">
|
||||
|
||||
<div class="tab-head" id="formtabs">
|
||||
<ul>
|
||||
<li class="tab-link" data-ref="enabled"><a href="#tab-1">Student Details</a> </li>
|
||||
<li class="tab-link" data-ref="disabled"><a href="#tab-2">Guardian details</a></li>
|
||||
<li class="tab-link" data-ref="disabled"><a href="#tab-3">Documents</a> </li>
|
||||
<li class="tab-link" data-ref="disabled"><a href="#tab-4">Other Details</a> </li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
<div class="tab-content-wrap">
|
||||
|
||||
<div id="tab-1" class="tab-content current">
|
||||
|
||||
<div class="row">
|
||||
<h4 class="adm-heading px-3">General Details</h4>
|
||||
<div class="col">
|
||||
<label class="has-float-label mb-0">
|
||||
<input type="text" id="sfname" name="sfname" class="form-control" placeholder='Enter First Name' pattern="[a-zA-Z]+">
|
||||
<span>First Name <b class="text-danger">*</b></span>
|
||||
</label>
|
||||
<label id="sfname-error" class="error" for="sfname"></label>
|
||||
</div>
|
||||
<div class="col">
|
||||
<label class="has-float-label mb-0">
|
||||
<input type="text" id="ssname" name="ssname" class="form-control" placeholder='Enter Last Name' pattern="[a-zA-Z]+">
|
||||
<span>Last Name <b class="text-danger">*</b></span>
|
||||
</label>
|
||||
<label id="ssname-error" class="error" for="ssname"></label>
|
||||
</div>
|
||||
<div class="col">
|
||||
<label class="has-float-label mb-0">
|
||||
<input type="email" id="semail" name="semail" class="form-control" placeholder='Enter email address'>
|
||||
<span>Email Address <b class="text-danger">*</b></span>
|
||||
</label>
|
||||
<label id="semail-error" class="error" for="semail"></label>
|
||||
</div>
|
||||
<div class="w-100 mt-3"></div>
|
||||
<div class="col">
|
||||
<label class="has-float-label mb-0">
|
||||
<input type="text" name="sdob" class="form-control nepal-date-student sdob" id="sdob" placeholder="DOB (YYYY-mm-dd)">
|
||||
<i class="fas fa-calendar-alt cal-icon"></i>
|
||||
<span>Date of Birth <b class="text-danger">*</b></span>
|
||||
</label>
|
||||
<label id="sdob-error" class="error" for="sdob"></label>
|
||||
</div>
|
||||
<div class="col">
|
||||
<label class="has-float-label mb-0">
|
||||
<input type="text" id="scontact" name="scontact" class="form-control" placeholder='Enter Contact Number' pattern="[0-9]+">
|
||||
<span>Contact Number</span>
|
||||
</label>
|
||||
<label id="scontact-error" class="error" for="scontact"></label>
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="register-radio">Gender:</div>
|
||||
<div class="register-radio">
|
||||
<label for="Male"><input type="radio" id="Male" name="sgender" value="Male" checked> Male </label>
|
||||
</div>
|
||||
<div class="register-radio">
|
||||
<label for="Female"><input type="radio" id="Female" name="sgender" value="Female"> Female</label>
|
||||
</div>
|
||||
<div class="register-radio">
|
||||
<label for="Other"><input type="radio" id="Other" name="sgender" value="Other"> Other</label>
|
||||
</div>
|
||||
<label id="sgender-error" class="error" for="sgender"></label>
|
||||
</div>
|
||||
<div class="w-100 mt-3"></div>
|
||||
<div class="col">
|
||||
<label class="has-float-label mb-0">
|
||||
<input type="text" id="sbirth-certificate" name="sbirth-certificate" class="form-control" placeholder='Enter Birth Certificate Number'>
|
||||
<span>Birth Certificate</span>
|
||||
</label>
|
||||
<label id="sbirth-certificate-error" class="error" for="sbirth-certificate"></label>
|
||||
</div>
|
||||
<div class="col">
|
||||
<label class="has-float-label mb-0">
|
||||
<input type="text" id="scaste" name="scaste" class="form-control" placeholder='Enter Caste'>
|
||||
<span>Caste</span>
|
||||
</label>
|
||||
<label id="scaste-error" class="error" for="scaste"></label>
|
||||
</div>
|
||||
<div class="col">
|
||||
<label class="has-float-label">
|
||||
<select name="sreligion" id="sreligion" class="form-control custom-select selectpicker" data-live-search="true">
|
||||
<option value="">Select Religion</option>
|
||||
<option value="Hinduism">Hinduism </option>
|
||||
<option value="Islam">Islam</option>
|
||||
<option value="Buddhism">Buddhism</option>
|
||||
<option value="Christianity">Christianity</option>
|
||||
<option value="Other">Other</option>
|
||||
</select>
|
||||
<span>Religion</span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="w-100 mt-3"></div>
|
||||
<div class="col-md-4">
|
||||
<label class="has-float-label mb-0">
|
||||
<input type="text" id="sprevious-school" name="sprevious-school" class="form-control" placeholder='Enter previous school name'>
|
||||
<span>Previous School</span>
|
||||
</label>
|
||||
<label id="sprevious-school-error" class="error" for="sprevious-school"></label>
|
||||
</div>
|
||||
<div class="w-100 mt-3"></div>
|
||||
<h4 class="adm-heading px-3">Address Details</h4>
|
||||
<div class="col">
|
||||
<label class="has-float-label mb-0">
|
||||
<input type="text" id="saddress" name="saddress" class="form-control" placeholder='Enter Address' required>
|
||||
<span>Address <b style="color:red;"> * </b></span>
|
||||
</label>
|
||||
<label id="saddress-error" class="error" for="saddress"></label>
|
||||
</div>
|
||||
<div class="col">
|
||||
<label class="has-float-label mb-0">
|
||||
<select name="sprovince" id="sprovince" class="form-control custom-select selectpicker" required>
|
||||
<?php
|
||||
foreach ($provinces as $province) {
|
||||
?>
|
||||
<option value="<?= $province['name'] ?>" <?= $province['id'] == 7 ? 'selected' : '' ?>> <?= $province['name'] ?> </option>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
</select>
|
||||
<span>Province <b style="color:red;"> * </b></span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="col">
|
||||
<label class="has-float-label">
|
||||
<select name="scountry" id="scountry" class="form-control custom-select selectpicker" data-live-search="true">
|
||||
<option value="">Select Country</option>
|
||||
<option value="Nepal" selected>Nepal </option>
|
||||
<option value="Other">Other</option>
|
||||
</select>
|
||||
<span>Country <span style="color:red;"> * </span></span>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="register-btn mt-3">
|
||||
<a id="cont_1" type="button" class="text-white join-class-btn" href="#tab-2">Continue</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="tab-2" class="tab-content tab_2">
|
||||
|
||||
<div class="row">
|
||||
<h4 class="adm-heading px-3">Father's Details</h4>
|
||||
<div class="col">
|
||||
<label class="has-float-label mb-0">
|
||||
<input type="text" id="sfathername" name="sfathername" class="form-control" placeholder='Enter Father Name' pattern="[a-zA-Z]+">
|
||||
<span>Full Name</span>
|
||||
</label>
|
||||
<label id="sfathername-error" class="error" for="sfathername"></label>
|
||||
</div>
|
||||
<div class="col">
|
||||
<label class="has-float-label mb-0">
|
||||
<input type="text" id="fcitizenship-number" name="fcitizenship-number" class="form-control" placeholder='Enter citizenship number'>
|
||||
<span>Citizendhip Number</span>
|
||||
</label>
|
||||
<label id="fcitizenship-number-error" class="error" for="fcitizenship-number"></label>
|
||||
</div>
|
||||
<div class="col">
|
||||
<label class="has-float-label mb-0">
|
||||
<input type="text" id="fcontact" name="fcontact" class="form-control" placeholder='Enter Contact Number'>
|
||||
<span>Contact Number</span>
|
||||
</label>
|
||||
<label id="fcontact-error" class="error" for="fcontact"></label>
|
||||
</div>
|
||||
<div class="w-100 mt-3"></div>
|
||||
<h4 class="adm-heading px-3">Mother's Details</h4>
|
||||
<div class="col">
|
||||
<label class="has-float-label mb-0">
|
||||
<input type="text" id="mfathername" name="mfathername" class="form-control" placeholder='Enter Mother Name' pattern="[a-zA-Z]+">
|
||||
<span>Full Name</span>
|
||||
</label>
|
||||
<label id="mfathername-error" class="error" for="mfathername"></label>
|
||||
</div>
|
||||
<div class="col">
|
||||
<label class="has-float-label mb-0">
|
||||
<input type="text" id="mcitizenship-number" name="mcitizenship-number" class="form-control" placeholder='Enter citizenship number'>
|
||||
<span>Citizendhip Number</span>
|
||||
</label>
|
||||
<label id="mcitizenship-number-error" class="error" for="mcitizenship-number"></label>
|
||||
</div>
|
||||
<div class="col">
|
||||
<label class="has-float-label mb-0">
|
||||
<input type="text" id="mcontact" name="mcontact" class="form-control" placeholder='Enter Contact Number'>
|
||||
<span>Contact Number</span>
|
||||
</label>
|
||||
<label id="fcontact-error" class="error" for="mcontact"></label>
|
||||
</div>
|
||||
<div class="w-100 mt-3"></div>
|
||||
<h4 class="adm-heading px-3">Local Guardian (if any)</h4>
|
||||
<div class="col">
|
||||
<label class="has-float-label mb-0">
|
||||
<input type="text" id="lgfullname" name="lgfullname" class="form-control" placeholder='Enter Local Guardian' pattern="[a-zA-Z]+">
|
||||
<span>Full Name</span>
|
||||
</label>
|
||||
<label id="lgfullname-error" class="error" for="lgfullname"></label>
|
||||
</div>
|
||||
<div class="col">
|
||||
<label class="has-float-label mb-0">
|
||||
<input type="text" id="lgaddress" name="lgaddress" class="form-control" placeholder='Enter address'>
|
||||
<span>Address</span>
|
||||
</label>
|
||||
<label id="lgaddress-error" class="error" for="lgaddress"></label>
|
||||
</div>
|
||||
<div class="col">
|
||||
<label class="has-float-label mb-0">
|
||||
<input type="text" id="lgcontact" name="lgcontact" class="form-control" placeholder='Enter Contact Number'>
|
||||
<span>Contact Number</span>
|
||||
</label>
|
||||
<label id="lgcontact-error" class="error" for="lgcontact"></label>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="register-btn mt-4">
|
||||
<button class="join-class-btn" type="button" id="previous_1">Previous</button>
|
||||
<button class="join-class-btn" type="button" id="cont_2">Continue</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="tab-3" class="tab-content tab_3">
|
||||
<h4 class="adm-heading">Upload required document</h4>
|
||||
|
||||
<div class="upload-doc">
|
||||
<label>Passport size photo</label>
|
||||
<!-- <span id="uploaded-file"> </span> -->
|
||||
<div class="upload-doc-btn-wrap">
|
||||
<input type="file" name="photo" id="photo" name="No file uploaded" />
|
||||
<label for="photo" class="upload-btn" id="uploadBtn1">Upload</label>
|
||||
<label for="photo" class="upload-btn re-upload-btn" id="uploadBtn2">Re-Upload</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="upload-doc">
|
||||
<label>School certificate</label>
|
||||
<!-- <span id="uploaded-file"> </span> -->
|
||||
<div class="upload-doc-btn-wrap">
|
||||
<input type="file" name="school" id="school" name="No file uploaded" />
|
||||
<label for="school" class="upload-btn" id="uploadBtn3">Upload</label>
|
||||
<label for="school" class="upload-btn re-upload-btn" id="uploadBtn4">Re-Upload</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="upload-doc">
|
||||
<label>Exam Results</label>
|
||||
<!-- <span id="uploaded-file"> </span> -->
|
||||
<div class="upload-doc-btn-wrap">
|
||||
<input type="file" name="exam" id="exam" name="No file uploaded" />
|
||||
<label for="exam" class="upload-btn" id="uploadBtn5">Upload</label>
|
||||
<label for="exam" class="upload-btn re-upload-btn" id="uploadBtn6">Re-Upload</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="upload-doc">
|
||||
<label>Medical Certificate</label>
|
||||
<!-- <span id="uploaded-file"> </span> -->
|
||||
<div class="upload-doc-btn-wrap">
|
||||
<input type="file" name="medical" id="medical" name="No file uploaded" />
|
||||
<label for="medical" class="upload-btn" id="uploadBtn7">Upload</label>
|
||||
<label for="medical" class="upload-btn re-upload-btn" id="uploadBtn8">Re-Upload</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="register-btn">
|
||||
<button class="join-class-btn" type="button" id="previous_2">Previous</button>
|
||||
<button class="join-class-btn" type="button" id="cont_3">Continue</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="tab-4" class="tab-content">
|
||||
<div class="row">
|
||||
<h4 class="adm-heading px-3">General Details</h4>
|
||||
<div class="col-md-4">
|
||||
<label class="has-float-label mb-0">
|
||||
<select name="scourse" class="form-control custom-select selectpicker scourse" id="scourse">
|
||||
<option value="">Select Class</option>
|
||||
<?php foreach ($courses as $c) { ?>
|
||||
<option value="<?= $c['id'] ?>"><?= $c['course_name'] ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
<span>Class <b class="text-danger">*</b></span>
|
||||
</label>
|
||||
<label id="scourse-error" class="error" for="scourse"></label>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label class="has-float-label mb-0">
|
||||
<select name="sbatch" class="form-control custom-select selectpicker sbatch" id="sbatch">
|
||||
<?php foreach ($batch as $c) { ?>
|
||||
<option value="<?= $c['id'] ?>" <?= $c['id'] == $school_info['batch_id'] ? 'selected' : '' ?>><?= $c['b_name'] ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
<span>Batch <b class="text-danger">*</b></span>
|
||||
</label>
|
||||
<label id="sbatch-error" class="error" for="sbatch"></label>
|
||||
</div>
|
||||
<div class="w-100 mt-4"></div>
|
||||
<h4 class="adm-heading px-3">Credentials</h4>
|
||||
<div class="col-md-4">
|
||||
<label class="has-float-label mb-0">
|
||||
<input type="password" name="spaswd" class="spaswd form-control" placeholder="Password" id="password1">
|
||||
|
||||
<span>Password <b class="text-danger">*</b></span>
|
||||
</label>
|
||||
<span class="passwrd-icon icon-y" id="p_icon1">
|
||||
<i class="far fa-eye"></i>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-4">
|
||||
<label class="has-float-label mb-0">
|
||||
<input type="password" name="spaswdre" class="spaswdre form-control" id="spaswdre" placeholder="Re-enter Password">
|
||||
|
||||
<span>Confirmation Password <b class="text-danger">*</b></span>
|
||||
</label>
|
||||
<span class="passwrd-icon icon-y" id="p_icon2">
|
||||
<i class="far fa-eye"></i>
|
||||
</span>
|
||||
<label id="spaswdre-error" class="error" for="spaswdre"></label>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="register-btn mt-4">
|
||||
<button class="join-class-btn" type="button" id="previous_3">Previous</button>
|
||||
<button class="join-class-btn" data-toggle="modal" data-target="#paymentDone">Continue</button>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Javascript -->
|
||||
|
||||
<script>
|
||||
$("#formtabs").tabs({
|
||||
active: 0,
|
||||
beforeActivate: function(event, ui) {
|
||||
|
||||
let NewTabIndex = ui.newTab.index();
|
||||
let CurrentTabIndex = ui.oldTab.index();
|
||||
|
||||
if (NewTabIndex > (CurrentTabIndex + 1)) {
|
||||
console.log(ui.newTab.data('ref'));
|
||||
if (ui.newTab.data('ref') == 'enabled') {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
if (NewTabIndex < CurrentTabIndex) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if ($('#admission-register').valid()) {
|
||||
ui.newTab.attr("data-ref", "enabled");
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
function loadTab(id) {
|
||||
console.log('isdss asdasds asdasd');
|
||||
$("#formtabs").tabs({
|
||||
active: id
|
||||
})
|
||||
}
|
||||
|
||||
// First Tab Change
|
||||
$("#cont_1").click(function() {
|
||||
$("#formtabs").tabs("option", "active", 1);
|
||||
});
|
||||
$("#previous_1").click(function() {
|
||||
$("#formtabs").tabs("option", "active", 0);
|
||||
});
|
||||
// First Tab Change
|
||||
|
||||
// Second Tab Change
|
||||
$("#cont_2").click(function() {
|
||||
$("#formtabs").tabs("option", "active", 2);
|
||||
});
|
||||
$("#previous_2").click(function() {
|
||||
$("#formtabs").tabs("option", "active", 1);
|
||||
});
|
||||
// Second Tab Change
|
||||
|
||||
// Third Tab Change
|
||||
$("#cont_3").click(function() {
|
||||
$("#formtabs").tabs("option", "active", 3);
|
||||
});
|
||||
$("#previous_3").click(function() {
|
||||
$("#formtabs").tabs("option", "active", 2);
|
||||
});
|
||||
// Third Tab Change
|
||||
</script>
|
||||
|
||||
|
||||
<script>
|
||||
jQuery.validator.addMethod("fullnameregex", function(value, element) {
|
||||
return this.optional(element) || /^[a-zA-Z ]{3,40}$/.test(value);
|
||||
}, 'Please enter alpha characters only ');
|
||||
|
||||
jQuery.validator.addMethod("passwordregex", function(value, element) {
|
||||
return this.optional(element) || /^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$#!%*?&])[A-Za-z\d@$!%*#?&]{6,16}$/.test(value);
|
||||
}, 'Your password must be atleast 6 characters long, which inculdes one upper case, one numerical value and one special character.');
|
||||
|
||||
jQuery.validator.addMethod("emailregex", function(value, element) {
|
||||
return this.optional(element) || /^[a-zA-Z0-9._-]+@[a-zA-Z0-9-]+\.[a-zA-Z.]{2,8}$/.test(value);
|
||||
}, 'Email Address is invalid: Please enter a valid email address.');
|
||||
|
||||
|
||||
jQuery.validator.addMethod("phonenumberregex", function(value, element) {
|
||||
return this.optional(element) || /^[0-9]{8,14}$/.test(value);
|
||||
}, 'Please enter a 8-14 digits vaild phone number.');
|
||||
|
||||
jQuery.validator.addMethod("zipregex", function(value, element) {
|
||||
return this.optional(element) || /^[0-9]{3,8}$/.test(value);
|
||||
}, 'Please enter a 3-8 digits numbers: digits only allowed');
|
||||
|
||||
jQuery.validator.addMethod("genral_regex", function(value, element) {
|
||||
return this.optional(element) || /^[a-zA-Z -#]{1,50}$/.test(value);
|
||||
}, 'Please enter alpha characters only');
|
||||
|
||||
var v = $("#admission-register").validate({
|
||||
|
||||
ignore: ':hidden',
|
||||
|
||||
rules: {
|
||||
sfname: {
|
||||
required: true,
|
||||
minlength: 3,
|
||||
maxlength: 40,
|
||||
fullnameregex: true,
|
||||
},
|
||||
ssname: {
|
||||
required: true,
|
||||
minlength: 1,
|
||||
genral_regex: true
|
||||
},
|
||||
semail: {
|
||||
required: true,
|
||||
email: true,
|
||||
emailregex: true
|
||||
},
|
||||
spaswd: {
|
||||
required: true,
|
||||
minlength: 6,
|
||||
maxlength: 12,
|
||||
passwordregex: true
|
||||
},
|
||||
spaswdre: {
|
||||
required: true,
|
||||
equalTo: '[name="spaswd"]'
|
||||
},
|
||||
scontact: {
|
||||
minlength: 8,
|
||||
maxlength: 14,
|
||||
phonenumberregex: true
|
||||
},
|
||||
sdob: "required",
|
||||
sgender: {
|
||||
required: true
|
||||
},
|
||||
scourse: {
|
||||
required: true
|
||||
},
|
||||
sbatch: {
|
||||
required: true
|
||||
},
|
||||
semfname: {
|
||||
required: true,
|
||||
genral_regex: true
|
||||
},
|
||||
semlname: {
|
||||
required: true,
|
||||
minlength: 1,
|
||||
genral_regex: true
|
||||
},
|
||||
semphone: {
|
||||
required: true,
|
||||
minlength: 10,
|
||||
maxlength: 14,
|
||||
phonenumberregex: true
|
||||
},
|
||||
scountry: {
|
||||
required: true,
|
||||
genral_regex: true
|
||||
|
||||
},
|
||||
sstate: {
|
||||
required: true,
|
||||
genral_regex: true
|
||||
},
|
||||
saddress1: {
|
||||
required: true
|
||||
},
|
||||
szipcode: {
|
||||
required: true,
|
||||
zipregex: true
|
||||
},
|
||||
|
||||
|
||||
amount: {
|
||||
required: true
|
||||
}
|
||||
|
||||
|
||||
},
|
||||
messages: {
|
||||
sfname: {
|
||||
required: "Enter first name",
|
||||
equalTo: "Please enter the same email address again.",
|
||||
},
|
||||
ssname: {
|
||||
required: "Enter last Email",
|
||||
equalTo: "Please enter the same email address again.",
|
||||
},
|
||||
semail: {
|
||||
required: "Enter email address",
|
||||
equalTo: "Please enter the same email address again.",
|
||||
},
|
||||
sdob: {
|
||||
required: "Enter date of birth"
|
||||
},
|
||||
spaswd: {
|
||||
required: "Please enter password"
|
||||
},
|
||||
spaswdre: {
|
||||
equalTo: "Please enter the same password again.",
|
||||
},
|
||||
semphone: {
|
||||
minlength: "Please Enter a 8 digits valid phone Number",
|
||||
maxlength: "Please Enter a 14 digits valid phone Number",
|
||||
|
||||
},
|
||||
scontact: {
|
||||
minlength: "Please Enter a 8 digits valid phone Number",
|
||||
maxlength: "Please Enter a 14 digits valid phone Number",
|
||||
|
||||
},
|
||||
scourse: {
|
||||
required: "Select a class you want to enroll"
|
||||
|
||||
},
|
||||
|
||||
|
||||
},
|
||||
submitHandler: function(form) {
|
||||
|
||||
form.submit();
|
||||
|
||||
},
|
||||
highlight: function(element, errorClass) {
|
||||
|
||||
window.scrollTo(0, 0);
|
||||
|
||||
},
|
||||
unhighlight: function(element, errorClass) {
|
||||
|
||||
},
|
||||
|
||||
});
|
||||
</script>
|
||||
<script>
|
||||
$("#p_icon1").click(function() {
|
||||
|
||||
$("#p_icon1").toggleClass("icon-y");
|
||||
|
||||
var input = $("#password1");
|
||||
if (input.attr("type") == "password") {
|
||||
input.attr("type", "text");
|
||||
} else {
|
||||
input.attr("type", "password");
|
||||
}
|
||||
});
|
||||
$("#p_icon2").click(function() {
|
||||
|
||||
$("#p_icon2").toggleClass("icon-y");
|
||||
|
||||
var input = $("#spaswdre");
|
||||
if (input.attr("type") == "password") {
|
||||
input.attr("type", "text");
|
||||
} else {
|
||||
input.attr("type", "password");
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
$('#sbatch').change(function() {
|
||||
var sbatch = $(this).val();
|
||||
var scourse = $('#scourse option:selected').val();
|
||||
// alert(scourse);
|
||||
var div_data = '';
|
||||
var total_fee = 0;
|
||||
$('#fee-section').html("");
|
||||
$('#total-fee').text();
|
||||
$('#textbox-totalfee').val('');
|
||||
if (scourse != '' && scourse != 0) {
|
||||
$('#course_error').addClass("d-none");
|
||||
$.ajax({
|
||||
url: "<?php echo base_url(); ?>Student/get_applicationfee",
|
||||
method: "post",
|
||||
data: {
|
||||
batch_id: sbatch,
|
||||
course_id: scourse
|
||||
},
|
||||
dataType: "json",
|
||||
success: function(data) {
|
||||
console.log(data);
|
||||
if (data != 0) {
|
||||
total_fee = (data.amount != '') ? data.amount : 0;
|
||||
div_data += '<div class="payment-row"><label>Application Fee:</label><span>' + data.amount + '</span></div>';
|
||||
$('#total-fee').text(total_fee);
|
||||
|
||||
$('#textbox-totalfee').val(total_fee);
|
||||
} else {
|
||||
div_data += '<div class="payment-row"><label class="text-danger"> Application Fee Not Found </label></div>';
|
||||
$('#total-fee').text(total_fee);
|
||||
$('#textbox-totalfee').val('');
|
||||
}
|
||||
$('#fee-section').append(div_data);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
$('#course_error').removeClass("d-none");
|
||||
}
|
||||
});
|
||||
</script>
|
196
application/views/student/admission_payment.php
Normal file
196
application/views/student/admission_payment.php
Normal file
@@ -0,0 +1,196 @@
|
||||
<style>
|
||||
.logo-wrap img {
|
||||
width: 40px !important;
|
||||
}
|
||||
|
||||
.payment-method label {
|
||||
font-weight: 500;
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
input {
|
||||
overflow: visible;
|
||||
border-color: #fff;
|
||||
border: none;
|
||||
width: 130px;
|
||||
}
|
||||
|
||||
.payment-right {
|
||||
width: 300px;
|
||||
margin: 0;
|
||||
|
||||
}
|
||||
</style>
|
||||
<!-- -->
|
||||
|
||||
<body oncontextmenu="return false">
|
||||
<div class="adm-cover">
|
||||
<header class="login-header">
|
||||
<div class="login-wrap">
|
||||
<div class="logo-wrap">
|
||||
<img src="<?php echo base_url(); ?>common_assets/<?= $school_info['color_logo']; ?>" style="width: 150px !important;">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="header-menu-wrap">
|
||||
<div class="login-mob-menu"><i class="fas fa-bars"></i></div>
|
||||
<ul class="mob-menu">
|
||||
<li><a href="">About Us</a></li>
|
||||
<li><a href="">Contact Us</a></li>
|
||||
<li><a href="admission-process.html"><button class="join-class-btn">Admission Process ></button></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</header>
|
||||
<div class="admission-wrap">
|
||||
<div class="admission-cover admission-cover-payment">
|
||||
<div class="payment-selection-wrap">
|
||||
<h4>Your Application is Successfully Registered.</h4>
|
||||
<h5>Make payment selection</h5>
|
||||
<?php
|
||||
// echo "<pre>";
|
||||
// print_r($appinfo);
|
||||
?>
|
||||
<div class="payment-selection">
|
||||
<div class="payment-method">
|
||||
<div class="row mt-2">
|
||||
<div class="col-md-6">
|
||||
<label style="font-weight:bold">Programme Name: </label>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<span style="font-weight:bold"> <?php echo (isset($appinfo['course_name']) && !empty($appinfo['course_name'])) ? $appinfo['course_name'] : ''; ?></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mt-2">
|
||||
<div class="col-md-6">
|
||||
<label style="font-weight:bold"> Course fees - Total </label>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<span style="font-weight:bold"> <?php echo (isset($course_fees['amount']) && !empty($course_fees['amount'])) ? $course_fees['amount'] : ''; ?></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mt-2">
|
||||
<div class="col-md-6">
|
||||
<label>Course Fee Breakdowns :</label>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<?php
|
||||
$feesresult = (isset($course_fees['fees_name']) && !empty($course_fees['fees_name'])) ? $course_fees['fees_name'] : 0;
|
||||
if ($feesresult > 0) {
|
||||
$fees_array = json_decode($feesresult);
|
||||
foreach ($fees_array as $fees_name) {
|
||||
echo "<label>" . $fees_name->name . " - " . $fees_name->amount . "</label><br>";
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mt-3">
|
||||
<div class="col-md-6"><label>Payment Method:</label></div>
|
||||
<div class="col-md-6">
|
||||
<input type="hidden" name="installment_id" id="installment_id" value="<?php echo (isset($installment['id'])) ? $installment['id'] : 0; ?>">
|
||||
<select id="install">
|
||||
<option value="">Select</option>
|
||||
<?php
|
||||
$installmentresult = (isset($installment['due_amount_date']) && !empty($installment['due_amount_date'])) ? $installment['due_amount_date'] : 0;
|
||||
|
||||
$installmentTypes = json_decode($installment['due_amount_date']);
|
||||
foreach ($installmentTypes as $key => $val) {
|
||||
$paytypesname = $this->db->get_where('payment_types', array('id' => $key))->row_array();
|
||||
?>
|
||||
<option value="<?= $key; ?>"><?php echo $paytypesname['payment_type_name']; ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mt-2">
|
||||
<div class="col-md-6"><label>Payment Dates:</label></div>
|
||||
<div class="col-md-6">
|
||||
<div class="instalments-cover" style="position: absolute;">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="payment-right">
|
||||
<form id="admission-register" action="<?php echo base_url(); ?>Student/process_coursefee" method="post" enctype="multipart/form-data">
|
||||
<h4 class="adm-heading">Price Details</h4>
|
||||
<div class="payment-row">
|
||||
<label>Course Fee:</label><span><input type="text" value='' id="courseamount" readonly />
|
||||
<input type="hidden" name="appid" value="<?= $appinfo['id'] ?>" id="appid" readonly>
|
||||
<input type="hidden" value='<?= $course_fees['id'] ?>' name="coursefeeid" id="coursefeeid" readonly /></span>
|
||||
<input type="hidden" name="install_typeid" id="install_typeid">
|
||||
</div>
|
||||
<div class="payment-row">
|
||||
<!-- <label>Tax applied</label><span>000.00</span> -->
|
||||
</div>
|
||||
<hr>
|
||||
<div class="payment-row mt-3">
|
||||
<label>Total Amount:</label><span><input type="text" value='' id="totalamount" name="totalamount" readonly /></span>
|
||||
</div>
|
||||
<div class="payment-btn mt-4">
|
||||
<!--button class="join-class-btn" data-toggle="modal" data-target="#paymentDone">Continue</button-->
|
||||
<input type="submit" class="join-class-btn " value="Make Payment" />
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
// $("#install").on('change', function() {
|
||||
// //alert("hiii");
|
||||
// var ins = $(this).val();
|
||||
// $.ajax({
|
||||
// type: 'post',
|
||||
// url: '<?php //echo base_url();
|
||||
?>Student/get_installdetails',
|
||||
// data: {
|
||||
// inst: ins
|
||||
// },
|
||||
// success: function(resposne) {
|
||||
// $('.instalments-cover').html(resposne);
|
||||
// amt = $('#feeamount').val();
|
||||
// $('#courseamount').val(amt);
|
||||
// $('#totalamount').val(amt);
|
||||
// }
|
||||
// });
|
||||
// });
|
||||
$("#install").on('change', function() {
|
||||
//alert("hiii");
|
||||
var install_typeId = $('#install option:selected').val();
|
||||
var installmentId = $('#installment_id').val();
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: '<?php echo base_url(); ?>Student/get_installdetails',
|
||||
data: {
|
||||
installment_id: installmentId,
|
||||
install_type: install_typeId
|
||||
},
|
||||
success: function(resposne) {
|
||||
$('.instalments-cover').html(resposne);
|
||||
amt = $('#feeamount').val();
|
||||
$('#install_typeid').val(install_typeId);
|
||||
$('#courseamount').val(amt);
|
||||
$('#totalamount').val(amt);
|
||||
}
|
||||
});
|
||||
});
|
||||
document.onkeydown = function(e) {
|
||||
if (event.keyCode == 123) {
|
||||
return false;
|
||||
}
|
||||
if (e.ctrlKey && e.shiftKey && e.keyCode == 'I'.charCodeAt(0)) {
|
||||
return false;
|
||||
}
|
||||
if (e.ctrlKey && e.shiftKey && e.keyCode == 'C'.charCodeAt(0)) {
|
||||
return false;
|
||||
}
|
||||
if (e.ctrlKey && e.shiftKey && e.keyCode == 'J'.charCodeAt(0)) {
|
||||
return false;
|
||||
}
|
||||
if (e.ctrlKey && e.keyCode == 'U'.charCodeAt(0)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
46
application/views/student/admission_process.php
Normal file
46
application/views/student/admission_process.php
Normal file
@@ -0,0 +1,46 @@
|
||||
<div class="adm-cover">
|
||||
<header class="login-header">
|
||||
<div class="login-wrap">
|
||||
<div class="logo-wrap">
|
||||
<img src="<?php echo base_url(); ?>common_assets/<?= $school_info['color_logo']; ?>" style="width: 150px !important;">
|
||||
<!-- <div class="logo-name">
|
||||
<h3>Erisn</h3>
|
||||
<p>Classrooms</p>
|
||||
</div> -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="header-menu-wrap">
|
||||
<div class="login-mob-menu"><i class="fas fa-bars"></i></div>
|
||||
<ul class="mob-menu">
|
||||
<li><a href="">About Us</a></li>
|
||||
<li><a href="">Contact Us</a></li>
|
||||
<li><a href="<?php echo base_url(); ?>student/admission-process"><button class="join-class-btn">Admission Process ></button></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</header>
|
||||
<div class="admission-process-wrap">
|
||||
<div class="breadcrumb-section">
|
||||
<ol class="breadcrumb breadcrumb-back">
|
||||
<li class="breadcrumb-item"> <a href="<?php echo base_url(); ?>Student"> Back to home</a></li>
|
||||
</ol>
|
||||
</div>
|
||||
<div class="admission-start">
|
||||
<div class="admission-left">
|
||||
<h3>Admission process</h3>
|
||||
<p>Schools offer a nurturing environment which fosters skills in children to empower them for the 21st century. Our endeavour has been to ensure Quality in Education and to provide a platform where learning is experiential, sequential and a lifelong memory.</p><p> Just as learning is child’s play at Millennium, the admission procedure too is simple and parent friendly. </p><p>Follow these easy steps to be a part of the Millennium family-</p>
|
||||
<h4>Requried documnets for application process:</h4>
|
||||
<ul>
|
||||
<li>Evidence of having graduated from the previous class.</li>
|
||||
<li>4 photographs of the student</li>
|
||||
<li>2 parents photographs</li>
|
||||
<li>Original TC from the previous school</li>
|
||||
</ul>
|
||||
<div class="adm-fee"><strong>Application Fee:</strong><span> Rs 7,000.00</span></div>
|
||||
<a href="<?php echo base_url(); ?>student/admission"><button class="join-class-btn">Start with application</button></a>
|
||||
</div>
|
||||
<div class="admission-right">
|
||||
<img src="<?php echo base_url(); ?>assets_student/images/admission.jpg">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
21
application/views/student/application-payment-success.php
Normal file
21
application/views/student/application-payment-success.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<div class="payment-moal-cover">
|
||||
<div class="payment-modal">
|
||||
<div class="payment-modal-content">
|
||||
<button type="button" class="close">×</button>
|
||||
<div class="payment-done-cover">
|
||||
<div class="payment-done-img"><i class="fas fa-check-circle"></i></div>
|
||||
<h3>Payment Successfull</h3>
|
||||
<?php if ($sent_mail) { ?>
|
||||
<p class="text-success">Your Application is submitted successfully. We have sent you a e-mail Please Check.</p>
|
||||
<?php } else { ?>
|
||||
<p class="text-success">Your Application is submitted successfully</p>
|
||||
<br>
|
||||
<p class="text-danger text-center">We are unable to send you a e-mail, Due to incorrect e-mail id</p>
|
||||
<?php } ?>
|
||||
|
||||
<a href="<?php echo base_url(); ?>Student"><button class="join-class-btn">Done</button></a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
104
application/views/student/attendance-detail.php
Normal file
104
application/views/student/attendance-detail.php
Normal file
@@ -0,0 +1,104 @@
|
||||
|
||||
<main class="common_margin" id="main">
|
||||
<div class="main-wrap">
|
||||
<div class="breadcrumb-section">
|
||||
<ol class="breadcrumb breadcrumb-back">
|
||||
<li class="breadcrumb-item"> <a href="<?= base_url() ?>student/attendance"> Back </a></li>
|
||||
</ol>
|
||||
</div>
|
||||
<div class="attendance-view-cover">
|
||||
<div class="attendance-view-sub">
|
||||
<div class="att-row">
|
||||
<div class="att-subject">
|
||||
<img src="<?= base_url() ?>assets_student/images/physics.png">
|
||||
<h5>Physics</h5>
|
||||
</div>
|
||||
<div class="att-bar">
|
||||
<div class="progress maths-att"></div>
|
||||
</div>
|
||||
<div class="att-number">
|
||||
73/90
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="attendance-table">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Date</th>
|
||||
<th>Present (P)/ Absent (A)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>24/Sep/2020</td>
|
||||
<td><span class="att-present">P</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>24/Sep/2020</td>
|
||||
<td><span class="att-present">P</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>24/Sep/2020</td>
|
||||
<td><span class="att-absent">A</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>24/Sep/2020</td>
|
||||
<td><span class="att-present">P</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>24/Sep/2020</td>
|
||||
<td><span class="att-present">P</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>24/Sep/2020</td>
|
||||
<td><span class="att-present">P</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>24/Sep/2020</td>
|
||||
<td><span class="att-present">P</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>24/Sep/2020</td>
|
||||
<td><span class="att-present">P</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>24/Sep/2020</td>
|
||||
<td><span class="att-absent">A</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>24/Sep/2020</td>
|
||||
<td><span class="att-present">P</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>24/Sep/2020</td>
|
||||
<td><span class="att-present">P</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>24/Sep/2020</td>
|
||||
<td><span class="att-present">P</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>24/Sep/2020</td>
|
||||
<td><span class="att-present">P</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>24/Sep/2020</td>
|
||||
<td><span class="att-present">P</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>24/Sep/2020</td>
|
||||
<td><span class="att-absent">A</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td><strong>Total Days</strong></td>
|
||||
<td><strong>73/90</strong></td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
74
application/views/student/attendance.php
Normal file
74
application/views/student/attendance.php
Normal file
@@ -0,0 +1,74 @@
|
||||
|
||||
<main class="common_margin" id="main">
|
||||
<div class="main-wrap">
|
||||
<div class="breadcrumb-section">
|
||||
<!-- <ol class="breadcrumb breadcrumb-back">
|
||||
<li class="breadcrumb-item"> <a href="<?= base_url(); ?>student/dashboard"> Back </a></li>
|
||||
</ol> -->
|
||||
</div>
|
||||
<?php if($this->session->flashdata('failed')) { ?>
|
||||
|
||||
<div class="alert alert-danger alert-dismissible fade show" role="alert">
|
||||
<p><?php echo $this->session->flashdata('failed') ?></p>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
<div class="syllabus-wrap">
|
||||
<div class="syllabus-head">
|
||||
<h3 class="common-heading">Attendance</h3>
|
||||
</div>
|
||||
<div class="syllabus-main">
|
||||
|
||||
<?php
|
||||
if(!empty($subject_names)) {
|
||||
|
||||
foreach ($subject_names as $key => $value) {
|
||||
|
||||
if($count[$key]['student_id'] == $value['student_id']) {
|
||||
|
||||
?>
|
||||
|
||||
<form action="<?php echo base_url() ?>student/view-attendance" method="post">
|
||||
<div class="syllabus-tab">
|
||||
<div class="syllabus-image"><img src="<?= base_url(); ?>assets_admin/images/icons/<?php echo $value['icon'] ?>"></div>
|
||||
<h5><?php echo $value['subject_name'] ?></h5>
|
||||
<?php if(isset($count[$key])) { ?>
|
||||
<span><?php echo $count[$key]['present_count'] . '/' . $count[$key]['total_count'] ?></span>
|
||||
<?php } else {
|
||||
echo '<span>0/0</span>';
|
||||
} ?>
|
||||
<input type="hidden" name="subject_name" value="<?php echo $value['subject_name'] ?>">
|
||||
<input type="hidden" name="subject_id" value="<?php echo $value['subject_id'] ?>">
|
||||
<input type="hidden" name="classroom_id" value="<?php echo $value['classroom_id'] ?>">
|
||||
<input type="hidden" name="icon" value="<?php echo $value['icon'] ?>">
|
||||
<input type="hidden" name="total_count" value="<?php echo $count[$key]['total_count'] ?>">
|
||||
<input type="hidden" name="present_count" value="<?php echo $count[$key]['present_count'] ?>">
|
||||
<button type="submit" class="join-class-btn text-white">View Details</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
<?php }
|
||||
}
|
||||
|
||||
} else { ?>
|
||||
|
||||
<div class="alert alert-danger alert-dismissible fade show" role="alert">
|
||||
<p>Student has no subjects</p>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
|
||||
<?php }
|
||||
|
||||
?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
45
application/views/student/bus.php
Normal file
45
application/views/student/bus.php
Normal file
@@ -0,0 +1,45 @@
|
||||
<main class="common_margin" id="main">
|
||||
<div class="main-wrap">
|
||||
<div class="my-info-inner">
|
||||
|
||||
<?php if($this->session->flashdata('success')) { ?>
|
||||
|
||||
<div class="alert alert-success alert-dismissible fade show" role="alert">
|
||||
<p><?php echo $this->session->flashdata('success') ?></p>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
<div class="payment-selection-wrap">
|
||||
<div class="hostel_img bus_img">
|
||||
<h4>Would you like to opt for Bus Facility ?</h4>
|
||||
<a href="<?php echo base_url() ?>student/bus-details">
|
||||
<button class="join-class-btn">Yes, Continue</button>
|
||||
</a>
|
||||
<img src="<?php echo base_url() ?>assets_student/images/bus-img.png" />
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
<style type="text/css">
|
||||
main {
|
||||
margin-bottom: 70px;
|
||||
}
|
||||
.main-wrap {
|
||||
width: 100%;
|
||||
}
|
||||
.my-info-inner {
|
||||
padding: 0px;
|
||||
width: inherit;
|
||||
}
|
||||
.payment-selection-wrap {
|
||||
margin-left: auto;
|
||||
text-align: left;
|
||||
margin-top: 30px;
|
||||
margin-right: auto;
|
||||
}
|
||||
</style>
|
204
application/views/student/bus_details.php
Normal file
204
application/views/student/bus_details.php
Normal file
@@ -0,0 +1,204 @@
|
||||
<main class="common_margin" id="main">
|
||||
<div class="main-wrap">
|
||||
<div class="my-info-inner">
|
||||
<div class="breadcrumb-section">
|
||||
<ol class="breadcrumb breadcrumb-back">
|
||||
<a href="<?php echo base_url()?>student/bus-facility">
|
||||
<li class="breadcrumb-item"> Back</li>
|
||||
</a>
|
||||
</ol>
|
||||
</div>
|
||||
<form id="bus_fee_form" method="POST" action="<?php echo base_url()?>student/bus-fee">
|
||||
<div class="subject_lhead"> Choose your stop</div>
|
||||
<?php
|
||||
$paymet_types = array('Full Payment','Payable in 2 parts','Payable in 4 parts','Payable in 6 parts');
|
||||
$payment_method_total=$decode_installment='';
|
||||
if (isset($installment) && !empty($installment)) {
|
||||
|
||||
$decode_installment = json_decode($installment['due_amount_date']);
|
||||
$payment_method_total = count((array)$decode_installment);
|
||||
|
||||
}
|
||||
?>
|
||||
<div class="bus_wrap">
|
||||
<div class="bus_form_wrap">
|
||||
<div class="bus_formArea">
|
||||
<div class="form-group assign_subject">
|
||||
<label>Select Route </label>
|
||||
<select class="form-control selectpicker" id="select_route" name="route_name">
|
||||
<?php if (isset($route_name) && !empty($route_name)) {
|
||||
$i = 1;
|
||||
foreach ($route_name as $key => $value) {
|
||||
if ($i==1) { ?>
|
||||
<option value="<?php echo $value['id'] ?>" selected><?php echo $value['route_name']; ?></option>
|
||||
<?php }else{ ?>
|
||||
<option value="<?php echo $value['id'] ?>"><?php echo $value['route_name']; ?></option>
|
||||
<?php }
|
||||
$i++;
|
||||
}
|
||||
} ?>
|
||||
|
||||
</select>
|
||||
<label id="course_id-error" class="error" for="course_id"></label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bus_formArea">
|
||||
<div class="form-group assign_subject">
|
||||
<label>Select Stop </label>
|
||||
<select class="form-control selectpicker " id="select_stop" name="stop_name">
|
||||
|
||||
</select>
|
||||
<label id="course_id-error" class="error" for="course_id"></label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bus_details">
|
||||
<ul class="bus_details_list">
|
||||
<!-- <li>
|
||||
<label>Route name:</label><span class="route_name_show"></span>
|
||||
</li> -->
|
||||
<li>
|
||||
<label>Bus Fee Total:</label><span><?php echo $bus_fee ? $bus_fee['amount'] : 'Fees not found' ?></span>
|
||||
<input type="hidden" name="totol_bus_fee" value="<?php echo $bus_fee ? $bus_fee['amount'] : '' ?>">
|
||||
<input type="hidden" name="course_fee_id" id="course_fee_id" value="<?php echo $bus_fee ? $bus_fee['course_fee_id'] : '' ?>">
|
||||
<input type="hidden" name="fee_type_id" value="<?php echo $bus_fee ? $bus_fee['fees_type']: '' ?>">
|
||||
</li>
|
||||
<li>
|
||||
<label>Payment Method:</label>
|
||||
<span>
|
||||
<div class="form-group assign_subject">
|
||||
<select class="form-control selectpicker " id="Payment_mode" name="mode_payment">
|
||||
<option value="">--- Select --- </option>
|
||||
<?php if (isset($payment_method_total) && !empty($payment_method_total)) {
|
||||
for ($i=0; $i < $payment_method_total ; $i++) {
|
||||
?>
|
||||
<option value="<?php echo $i+1 ?>"> <?php echo $paymet_types[$i]; ?></option>
|
||||
|
||||
<?php
|
||||
}
|
||||
} ?>
|
||||
|
||||
</select>
|
||||
<label id="course_id-error" class="error" for="course_id"></label>
|
||||
</div>
|
||||
</span>
|
||||
</li>
|
||||
<li>
|
||||
<label>Payment Dates:</label>
|
||||
<span>
|
||||
<ul class="sele-sub-opt-two" style="list-style-type: none;">
|
||||
</ul>
|
||||
</span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<!-- <div class="hostel_btn">
|
||||
<button class="join-class-btn">Continue</button>
|
||||
</div> -->
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<style type="text/css">
|
||||
.error{
|
||||
color: red;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
|
||||
$(document).ready(function() {
|
||||
get_route_stop_list($('#select_route :selected').val());
|
||||
|
||||
|
||||
});
|
||||
|
||||
$('#Payment_mode').change(function(){
|
||||
var course_id = $('#course_fee_id').val();
|
||||
var id = $('#Payment_mode :selected').val();
|
||||
$.ajax({
|
||||
url: '<?php echo base_url() . 'student/get_bus_payment_json/' ?>' + id +'/'+ course_id,
|
||||
type: 'POST',
|
||||
dataType: 'json',
|
||||
success: function(result) {
|
||||
var view_pay_details = '';var i = 1;
|
||||
$.each(result, function(index, value) {
|
||||
if (i == 1) {
|
||||
view_pay_details += '<li><div class="outter-pay-wrap" style="display: flex;"><div class="outter-check green-pay"><i class="fa fa-check"></i></div><p class="paid-para"> Rs '+ value['amount'] +'</p></div><div class="paid-space"> Due on: '+ value['due_date'] +' </div><button class="fees-pay-btn text-white" type="submit">Pay Now</button></li><input type="hidden" name="paying_amount" value="'+ value['amount'] +'"><input type="hidden" name="due_amount_date" value="'+ value['due_date'] +'">';
|
||||
}else{
|
||||
view_pay_details += '<li><div class="outter-pay-wrap" style="display: flex;"><div class="outter-check"><i class="fa fa-check"></i></div><p class="paid-para">Rs '+ value['amount'] +'</p></div><div class="paid-space"> Due on: '+ value['due_date'] +' </div></li>';
|
||||
}
|
||||
i++;
|
||||
});
|
||||
|
||||
$('.sele-sub-opt-two').html(view_pay_details);
|
||||
$('.fees-pay-btn').css('width','76px');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$('#select_route').change(function(){
|
||||
// alert($('#select_route :selected').val());
|
||||
get_route_stop_list($('#select_route :selected').val());
|
||||
});
|
||||
|
||||
function get_route_stop_list(id)
|
||||
{
|
||||
$.ajax({
|
||||
url: '<?php echo base_url() . 'student/get_bus_stops_name/' ?>' + id,
|
||||
type: 'POST',
|
||||
dataType: 'json',
|
||||
success: function(result) {
|
||||
|
||||
var stops = '';
|
||||
stops = '<option value="" selected> -------Select---------</option>';
|
||||
$.each(result, function(index, value) {
|
||||
stops += '<option value="'+ value['id']+'">'+ value['place_name'] +'</option>';
|
||||
});
|
||||
|
||||
$('#select_stop').html(stops);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
$("#bus_fee_form").validate({
|
||||
ignore: ":hidden",
|
||||
rules: {
|
||||
route_name : {
|
||||
required : true,
|
||||
|
||||
},
|
||||
stop_name : {
|
||||
required : true,
|
||||
|
||||
},
|
||||
mode_payment:{
|
||||
required:true
|
||||
}
|
||||
|
||||
|
||||
},
|
||||
messages: {
|
||||
|
||||
route_name : {
|
||||
required : 'Select Route Name'
|
||||
},
|
||||
stop_name : {
|
||||
required : 'Please Select Stop Name'
|
||||
},
|
||||
mode_payment:{
|
||||
required : 'Select Mode of Paymet'
|
||||
},
|
||||
|
||||
},
|
||||
submitHandler: function(form) {
|
||||
|
||||
form.submit();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
</main>
|
||||
|
197
application/views/student/bus_details_info.php
Normal file
197
application/views/student/bus_details_info.php
Normal file
@@ -0,0 +1,197 @@
|
||||
<main class="common_margin" id="main">
|
||||
<div class="main-wrap">
|
||||
<div class="my-info-inner">
|
||||
<div class="breadcrumb-section">
|
||||
<ol class="breadcrumb breadcrumb-back">
|
||||
<a href="<?php echo base_url()?>student/bus-facility">
|
||||
<li class="breadcrumb-item"> Back</li>
|
||||
</a>
|
||||
</ol>
|
||||
</div>
|
||||
<?php if($this->session->flashdata('success')) { ?>
|
||||
|
||||
<div class="alert alert-success alert-dismissible fade show" role="alert">
|
||||
<p><?php echo $this->session->flashdata('success') ?></p>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<?php
|
||||
$paymet_types = array('Full Payment','Payable in 2 parts','Payable in 4 parts','Payable in 6 parts');
|
||||
|
||||
$totol_bus_fee=$fee_type_id=$mode_payment=$variable=$r_name=$stop_name=$name_route=$stop_name_de=$course_fee_id='';
|
||||
if (isset($payment_details) && !empty($payment_details)) {
|
||||
|
||||
$totol_bus_fee = $payment_details['amount'];
|
||||
$fee_type_id = $payment_details['fees_type'];
|
||||
$mode_payment = $payment_details['installment_type_id'];
|
||||
$course_fee_id = $payment_details['course_fee_id'];
|
||||
|
||||
$variable = json_decode($payment_details['payment_details']);
|
||||
|
||||
}
|
||||
|
||||
if (isset($route_name) && !empty($route_name)) {
|
||||
|
||||
$r_name = $route_name['route_id'];
|
||||
$stop_name = $route_name['pick_up_id'];
|
||||
$name_route = $route_name['route_name'];
|
||||
$stop_name_de = $route_name['place_name'];
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<form id="bus_fee_form" method="POST" action="<?php echo base_url()?>student/bus-fee">
|
||||
<div class="subject_lhead"> Choose your stop</div>
|
||||
|
||||
<div class="bus_wrap">
|
||||
<div class="bus_form_wrap">
|
||||
<div class="bus_formArea">
|
||||
<div class="form-group assign_subject">
|
||||
<label>Select Route </label>
|
||||
<select class="form-control selectpicker" id="select_route" name="route_name">
|
||||
<option value="<?php echo $r_name ?>"> <?php echo $name_route ?></option>
|
||||
|
||||
</select>
|
||||
<label id="course_id-error" class="error" for="course_id"></label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bus_formArea">
|
||||
<div class="form-group assign_subject">
|
||||
<label>Select Stop </label>
|
||||
<select class="form-control selectpicker " id="select_stop" name="stop_name">
|
||||
<option value="<?php echo $stop_name ?>"> <?php echo $stop_name_de ?></option>
|
||||
</select>
|
||||
<label id="course_id-error" class="error" for="course_id"></label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bus_details">
|
||||
<ul class="bus_details_list">
|
||||
|
||||
<li>
|
||||
<label>Bus Fee Total:</label><span><?php echo $totol_bus_fee ?></span>
|
||||
<input type="hidden" name="totol_bus_fee" value="<?php echo $totol_bus_fee ?>">
|
||||
<input type="hidden" name="course_fee_id" id="course_fee_id" value="<?php echo $course_fee_id ?>">
|
||||
<input type="hidden" name="fee_type_id" value="<?php echo $fee_type_id ?>">
|
||||
</li>
|
||||
<li>
|
||||
<label>Payment Method:</label>
|
||||
<span>
|
||||
<div class="form-group assign_subject">
|
||||
<select class="form-control selectpicker " id="Payment_mode" name="mode_payment">
|
||||
<option value="<?php echo $mode_payment ?>"> <?php echo $paymet_types[$mode_payment - 1 ]; ?></option>
|
||||
|
||||
</select>
|
||||
<label id="course_id-error" class="error" for="course_id"></label>
|
||||
</div>
|
||||
</span>
|
||||
</li>
|
||||
<li>
|
||||
<label>Payment Dates:</label>
|
||||
<span>
|
||||
<ul class="sele-sub-opt-two" style="list-style-type: none;">
|
||||
|
||||
<?php if (isset($variable) && !empty($variable)) {
|
||||
$flag =true;
|
||||
foreach ($variable as $key => $value) {
|
||||
$class = $value->payment_status == 'yes' ? 'green-pay' : '';
|
||||
?>
|
||||
|
||||
<li>
|
||||
<div class="outter-pay-wrap" style="display: flex;">
|
||||
<div class="outter-check <?= $class ?>"><i class="fa fa-check"></i></div> <!-- green-pay -->
|
||||
<p class="paid-para">Rs <?= $value->feeamount ?> </p>
|
||||
</div>
|
||||
<div class="paid-space"> Due date: <?= $value->due_date ?> </div>
|
||||
<?php if($value->payment_status == 'no' && $flag) { ?>
|
||||
<button type="submit" class="fees-pay-btn text-white" style="width: 75px;">Pay Now</button>
|
||||
<input type="hidden" name="paying_amount" value="<?= $value->feeamount ?>">
|
||||
<input type="hidden" name="due_amount_date" value="<?= $value->due_date ?>">
|
||||
<?php $flag = false; } ?>
|
||||
|
||||
</li>
|
||||
|
||||
<?php }
|
||||
|
||||
} ?>
|
||||
|
||||
<!-- <li>
|
||||
<div class="outter-pay-wrap" style="display: flex;">
|
||||
<div class="outter-check green-pay">
|
||||
<i class="fa fa-check"></i>
|
||||
</div>
|
||||
<p class="paid-para"> Rs '+ value['amount'] +'</p>
|
||||
</div>
|
||||
<div class="paid-space"> Paid on: '+ value['due_date'] +' </div>
|
||||
<button class="fees-pay-btn text-white" type="submit">Pay Now</button>
|
||||
</li>
|
||||
<input type="hidden" name="paying_amount" value="'+ value['amount'] +'">
|
||||
<input type="hidden" name="due_amount_date" value="'+ value['due_date'] +'"> -->
|
||||
|
||||
</ul>
|
||||
</span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<!-- <div class="hostel_btn">
|
||||
<button class="join-class-btn">Continue</button>
|
||||
</div> -->
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<style type="text/css">
|
||||
.error{
|
||||
color: red;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
|
||||
|
||||
|
||||
|
||||
$("#bus_fee_form").validate({
|
||||
ignore: ":hidden",
|
||||
rules: {
|
||||
route_name : {
|
||||
required : true,
|
||||
|
||||
},
|
||||
stop_name : {
|
||||
required : true,
|
||||
|
||||
},
|
||||
mode_payment:{
|
||||
required:true
|
||||
}
|
||||
|
||||
|
||||
},
|
||||
messages: {
|
||||
|
||||
route_name : {
|
||||
required : 'Select Route Name'
|
||||
},
|
||||
stop_name : {
|
||||
required : 'Please Select Stop Name'
|
||||
},
|
||||
mode_payment:{
|
||||
required : 'Select Mode of Paymet'
|
||||
},
|
||||
|
||||
},
|
||||
submitHandler: function(form) {
|
||||
|
||||
form.submit();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
</main>
|
||||
|
158
application/views/student/dashboard.php
Normal file
158
application/views/student/dashboard.php
Normal file
@@ -0,0 +1,158 @@
|
||||
<main class="common_margin" id="main">
|
||||
<div class="main-wrap">
|
||||
<div class="classes-section">
|
||||
<div class="class-head">
|
||||
<h3 class="common-heading">Today's Classes</h3>
|
||||
<button class="view-more-link"><a href="<?= base_url(); ?>student/my-calendar">View More</a></button>
|
||||
</div>
|
||||
<div class="class-section-main">
|
||||
<?php if (isset($subject_names) && !empty($subject_names)) { ?>
|
||||
<?php foreach ($subject_names as $key => $value) {?>
|
||||
|
||||
<div class="class-tab">
|
||||
<div class="class-tab-img">
|
||||
<?php if(array_key_exists("teacher_name",$value)) { ?>
|
||||
<img src="<?php echo base_url(); ?>assets_admin/images/teacher-profile/<?= $value['teacher_image']?>">
|
||||
<?php } else { ?>
|
||||
<img src="<?php echo base_url(); ?>assets_admin/images/teacher-profile/dummy-user.png">
|
||||
<?php } ?>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="class-tab-details">
|
||||
<?php if(array_key_exists("teacher_name",$value)) { ?>
|
||||
<h4> <?= $value['teacher_name'] ?> </h4>
|
||||
<?php } else {
|
||||
echo '<h4>Unknown Teacher</h4>';
|
||||
} ?>
|
||||
|
||||
<p title="math:Trigonometry"><?= $value['subject_name']?></p>
|
||||
<?php if($value['class_session'] == 'Active') { ?>
|
||||
<a target="_blank" href="<?= $value['join_link'] ?>" class="join-class-btn">Join Class</a>
|
||||
<?php } else { ?>
|
||||
<p><?= $value['class_time'] ?></p>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php } }else{?>
|
||||
|
||||
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="todays-assignments-section">
|
||||
<div class="class-head">
|
||||
<h3 class="common-heading">Assignments</h3>
|
||||
<button class="view-more-link"><a href="<?= base_url(); ?>student/my-assignments">View More</a></button>
|
||||
</div>
|
||||
<div class="todays-assignments-main">
|
||||
<!-- <div class="todays-assignments-tab">
|
||||
<div class="no_assignment_div">
|
||||
No Assignments
|
||||
</div>
|
||||
</div> -->
|
||||
<?php if(isset($list_assignmet) && !empty($list_assignmet)){
|
||||
$i=0;
|
||||
foreach($list_assignmet as $key=>$value){ $i++;
|
||||
?>
|
||||
<div class="todays-assignments-tab" style="overflow:hidden;">
|
||||
<img src="<?php echo base_url(); ?>assets_admin/images/icons/<?php echo $value['subject_icon'] ?>">
|
||||
<div class="todays-assignments-tab-details" style="overflow:hidden;overflow-wrap: break-word;">
|
||||
<h4><?php echo $value['subject_name']; ?></h4>
|
||||
<p class="dash_subj" style="overflow: hidden;overflow-wrap: break-word;"><?php echo substr($value['title'],0,22) ?></p>
|
||||
<p style="overflow: hidden;overflow-wrap: break-word;"><?php echo substr($value['remark'],0,150)?></p>
|
||||
</div>
|
||||
</div>
|
||||
<?php if ($i == 4) { break; } } }else{?>
|
||||
<h4 class="text-info mt-2 ml-3">No Assignment</h4>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="att-grade-section">
|
||||
|
||||
<div class="att-section-wrap">
|
||||
<div class="class-head">
|
||||
<h3 class="common-heading">Attendance</h3>
|
||||
<button class="view-more-link"><a href="<?= base_url(); ?>student/attendance">View More</a></button>
|
||||
</div>
|
||||
<div class="att-progress-bar">
|
||||
<?php
|
||||
if(!empty($attendece_subject_names) && isset($attendece_subject_names)) {
|
||||
|
||||
foreach ($attendece_subject_names as $key => $value) {
|
||||
|
||||
if($count[$key]['student_id'] == $value['student_id']) {
|
||||
|
||||
?>
|
||||
|
||||
<div class="att-row">
|
||||
<div class="att-subject">
|
||||
<img src="<?= base_url(); ?>assets_admin/images/icons/<?php echo $value['icon'] ?>">
|
||||
<h5><?php echo $value['subject_name'] ?></h5>
|
||||
</div>
|
||||
<div class="att-bar">
|
||||
<?php if(isset($count[$key])) {
|
||||
$per = ($count[$key]['present_count']/$count[$key]['total_count'])*100;
|
||||
?>
|
||||
<div class="progress" style="width: <?php echo $per.'%'; ?>;"></div>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
<div class="att-number">
|
||||
<?php if(isset($count[$key])) { ?>
|
||||
<span><?php echo $count[$key]['present_count'] . '/' . $count[$key]['total_count'] ?></span>
|
||||
<?php } else {
|
||||
echo '<span>0/0</span>';
|
||||
} ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php }
|
||||
}
|
||||
|
||||
}?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="grade-section-wrap">
|
||||
<div class="class-head">
|
||||
<h3 class="common-heading">Grade</h3>
|
||||
<button class="view-more-link"><a href="<?= base_url(); ?>student/my-grades">View More</a></button>
|
||||
</div>
|
||||
|
||||
<?php if (isset($student_results) && !empty($student_results)) {
|
||||
$total_mark = 0;$total_scored_mark=0;
|
||||
foreach($student_results as $key=>$value){
|
||||
$total_mark = $total_mark+$value['total_marks'];
|
||||
$total_scored_mark = $total_scored_mark+$value['get_marks'];
|
||||
$scored_percentage = round(($total_scored_mark*(100/$total_mark)), 2);
|
||||
$grade = student_grade_show($scored_percentage);
|
||||
}
|
||||
?>
|
||||
<div class="grade-view">
|
||||
<div class="grade-wrap">
|
||||
<img src="<?php echo base_url(); ?>assets_student/images/grade.png">
|
||||
<div class="grade-achieved">
|
||||
<?php
|
||||
|
||||
echo $grade['grade_name'];
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="grade-progress-bar">
|
||||
<p>Congratulations! You're at <?php echo $scored_percentage ?></p>
|
||||
<div class="att-bar grade-bar">
|
||||
<div class="progress " style="width: <?php echo $scored_percentage.'%'; ?>;"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
} ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
13
application/views/student/footer.php
Normal file
13
application/views/student/footer.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<!--<script src="<?php echo base_url(); ?>assets_student/js/jquery-3.6.0.min.js"></script>-->
|
||||
|
||||
|
||||
|
||||
<script src="<?php echo base_url(); ?>assets_student/js/popper.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>assets_student/js/bootstrap.min.js"></script>
|
||||
<script defer src="<?php echo base_url(); ?>assets_student/js/all.js"></script>
|
||||
<script defer src="<?php echo base_url(); ?>assets_student/js/main.js"></script>
|
||||
<script src="<?php echo base_url(); ?>assets_student/owl-carousel/js/owl.carousel.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>assets_admin/js/jquery.dataTables.min.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
130
application/views/student/header.php
Normal file
130
application/views/student/header.php
Normal file
@@ -0,0 +1,130 @@
|
||||
<?php
|
||||
if (isset($_SESSION['student_id'])) {
|
||||
$CI = &get_instance();
|
||||
$CI->load->model('Admin_model');
|
||||
$query = "SELECT students.name, students.email, classroom.classroom_name,classroom.id as classroom_id, classroom.course_id FROM students INNER JOIN student_batch sb on students.id = sb.student_id inner join classroom ON sb.classroom_id = classroom.id WHERE students.id = '" . $_SESSION['student_id'] . "'";
|
||||
$get_class = $CI->Admin_model->get_table_info('students', '', $query);
|
||||
if (!empty($get_class)) {
|
||||
$classRoomId = $get_class[0]['classroom_id'];
|
||||
$notification_query = "SELECT * from notifications where notification_read = 'No' AND student_classroom = '" . $classRoomId . "' ORDER BY notification_id DESC LIMIT 5";
|
||||
$notifications = $CI->Admin_model->get_notification_details('', $notification_query);
|
||||
}
|
||||
}
|
||||
|
||||
$schoolInfo = $this->Admin_model->get_logo_from_setting();
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="robots" content="noindex, nofollow">
|
||||
<title><?php echo (isset($schoolInfo['school_name']) && !empty($schoolInfo['school_name'])) ? $schoolInfo['school_name'] : 'Application Name'; ?> </title>
|
||||
<link rel="icon" type="image/x-icon" href="<?php echo base_url(); ?>common_assets/fav.png">
|
||||
<!--styles links-->
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>assets_admin/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>assets_admin/css/jquery-ui.min.css">
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>assets_student/css/font-family.css">
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>assets_student/css/all.css">
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>assets_admin/owl-carousel/css/owl.carousel.min.css">
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>assets_student/css/fontawesome.min.css" />
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>assets_admin/css/jquery.dataTables.min.css" />
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>assets_student/css/style.css">
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>assets_student/css/style-responsive.css">
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>assets_student/css/mobile.css">
|
||||
<script src="<?php echo base_url(); ?>assets_student/js/jquery-3.6.0.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>assets_student/js/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url(); ?>assets_student/js/jquery-ui.min.js"></script>
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>assets_admin/css/nepali.datepicker.v3.7.min.css">
|
||||
<script src="<?php echo base_url(); ?>assets_admin/js/nepali.datepicker.v3.7.min.js" type="text/javascript"></script>
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>assets_admin/css/datatable/buttons.dataTables.min.css">
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>assets_admin/css/datatable/dt-custom.css">
|
||||
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>assets_admin/css/bootstrap-float-label.min.css" />
|
||||
<!--sweet alert -->
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/1.1.3/sweetalert-dev.js"></script>
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/1.1.3/sweetalert.css">
|
||||
<?php
|
||||
|
||||
if (empty($notifications)) { ?>
|
||||
<style>
|
||||
.notification-icon-wrap:after {
|
||||
content: none;
|
||||
}
|
||||
</style>
|
||||
<?php }
|
||||
|
||||
?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<?php if (isset($_SESSION['student_id'])) { ?>
|
||||
<header class="common_margin">
|
||||
<div class="search-bar-wrappp">
|
||||
<!-- <input type="text" name="" placeholder="Search.."> -->
|
||||
</div>
|
||||
<div class="user-login-section">
|
||||
<div class="notification-icon-wrap">
|
||||
<img src="<?php echo base_url(); ?>assets_student/images/notification.png">
|
||||
<span></span>
|
||||
<div class="notifications-wrap">
|
||||
<div class="notifications">
|
||||
<h4>Notifications</h4>
|
||||
<ul>
|
||||
<?php if (!empty($notifications)) { ?>
|
||||
<?php foreach ($notifications as $key => $value) { ?>
|
||||
<li class="notification-row">
|
||||
<a class="text-white" href="<?php echo base_url() ?>teacher/teacher_notification">
|
||||
<p><?php echo $value['description'] ?></p>
|
||||
</a>
|
||||
<i class="fas fa-trash-alt" onclick="delete_notificaton('<?php echo $value['notification_id'] ?>',$(this).parent())"></i>
|
||||
</li>
|
||||
<?php } ?>
|
||||
<?php } else {
|
||||
echo "<li><p>There no new notifications</p></li>";
|
||||
} ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="user-wrap">
|
||||
<div class="user-login-head">
|
||||
<!--img src="<?php echo base_url(); ?>assets_student/images/A.png"-->
|
||||
<h5 title="<?php echo $_SESSION['student_name']; ?>"><span class="user-name"><?php echo $_SESSION['student_name']; ?></span><i class="fa fa-caret-down" aria-hidden="true"></i><i class="fa fa-caret-up" aria-hidden="true"></i></h5>
|
||||
</div>
|
||||
<div class="login-wrap-open">
|
||||
<ul>
|
||||
<li><a href="<?= base_url(); ?>student/my-info"><span><i class="fa fa-user" aria-hidden="true"></i></span>My Profile</a></li>
|
||||
<li><a href="<?= base_url(); ?>Student/student_logout"><span><i class="fas fa-sign-out-alt"></i></span>Sign Out</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mobileMenu">
|
||||
<i class="fas fa-bars"></i>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<aside id="mySidebar" class="sideMenu">
|
||||
<div class="logo-wrap">
|
||||
<img src="<?= base_url(); ?>common_assets/<?= $schoolInfo['logo']; ?>">
|
||||
</div>
|
||||
<ul>
|
||||
<?php $url = explode(base_url(), $currentURL); ?>
|
||||
<?php foreach ($menulist as $menu) {
|
||||
?>
|
||||
<li class="list <?php if (str_replace('index.php/', '', $url[1]) == $menu['page_link']) {
|
||||
echo 'active';
|
||||
} ?> ">
|
||||
<a href="<?php echo base_url(); ?><?php echo $menu['page_link']; ?>">
|
||||
<!-- <img src="<?php echo base_url(); ?>assets_student/images/<?php echo $menu['inactive_icon']; ?>" class="icon-inactive"> -->
|
||||
<img src="<?php echo base_url(); ?>assets_student/images/<?php echo $menu['active_icon']; ?>" class="icon-active">
|
||||
<span><?php echo $menu['menu_name']; ?></span>
|
||||
</a>
|
||||
</li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</aside>
|
||||
<?php } ?>
|
110
application/views/student/hostel-fee.php
Normal file
110
application/views/student/hostel-fee.php
Normal file
@@ -0,0 +1,110 @@
|
||||
<style>
|
||||
label.error {
|
||||
color: red;
|
||||
}
|
||||
</style>
|
||||
<main class="common_margin" id="main">
|
||||
<div class="main-wrap">
|
||||
<div class="my-info-inner">
|
||||
|
||||
<?php if($this->session->flashdata('failed')) { ?>
|
||||
<div class="alert alert-danger alert-dismissible fade show" role="alert">
|
||||
<p><?php echo $this->session->flashdata('failed') ?></p>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if(empty($hostel_fees)) {
|
||||
echo '<p>Hostel Fees has not been created for this student\'s batch or course</p>';
|
||||
} else { ?>
|
||||
|
||||
<div class="payment-selection-wrap">
|
||||
<form action="<?php base_url() ?>get_hostel_details" id="hostel-form" method="post">
|
||||
<div class="hostel_details_wrap">
|
||||
<h4 class="payment_subhead">Select Hostel Plan</h4>
|
||||
<ul class="hostel_details_info">
|
||||
<input type="hidden" id="fee_name" name="feetype_name">
|
||||
<?php foreach ($hostel_fees as $key => $value) { ?>
|
||||
<li>
|
||||
<div class="radio_btn">
|
||||
<input type="radio" onclick="getInstallments(this)" value="<?= $value['cf_id'] ?>" name="course_fee_id" class="radio_b">
|
||||
<span class="checkmark"></span>
|
||||
</div>
|
||||
|
||||
₹<?= $value['amount'] ?>/Year - <?= $value['fee_values'] ?>
|
||||
|
||||
<div class="installment-container">
|
||||
|
||||
</div>
|
||||
</li>
|
||||
<?php } ?>
|
||||
|
||||
</ul>
|
||||
|
||||
<label id="course_fee_id-error" class="error" for="course_fee_id"></label>
|
||||
|
||||
<div class="hostel_btn">
|
||||
<button type="submit" class="join-class-btn">Continue</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
$(document).ready(function() {
|
||||
$("#hostel-form").validate({
|
||||
|
||||
rules: {
|
||||
course_fee_id : "required",
|
||||
installment_type : "required"
|
||||
},
|
||||
messages: {
|
||||
|
||||
course_fee_id : "Please choose 1 Hostel Plan",
|
||||
installment_type : "Please choose 1 installment type",
|
||||
|
||||
|
||||
|
||||
},
|
||||
submitHandler: function(form) {
|
||||
|
||||
form.submit();
|
||||
|
||||
}
|
||||
});
|
||||
})
|
||||
|
||||
|
||||
const getInstallments = function(ele) {
|
||||
$('.installment-container').empty();
|
||||
let course_fee_id = ele.value;
|
||||
|
||||
let installmentContainer = $(ele).parent().siblings('.installment-container');
|
||||
|
||||
$.ajax({
|
||||
type : 'POST',
|
||||
url : "<?php echo base_url(); ?>student/ajax_get_hostel_installments",
|
||||
data : {
|
||||
id : course_fee_id
|
||||
},
|
||||
success:function(response){
|
||||
if(!response) {
|
||||
$(installmentContainer).append('<p style="color:red">Installments have not been created for this fees. Please contact administrator for further service</p>');
|
||||
} else {
|
||||
$(installmentContainer).append(response);
|
||||
}
|
||||
|
||||
},
|
||||
});
|
||||
}
|
||||
</script>
|
110
application/views/student/hostel-info.php
Normal file
110
application/views/student/hostel-info.php
Normal file
@@ -0,0 +1,110 @@
|
||||
<style type="text/css">
|
||||
|
||||
.user-info-row-one {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.hostel_details_wrap .sele-sub-opt-two {
|
||||
margin-left: 20px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
.red-pay {
|
||||
background-color: red;
|
||||
}
|
||||
</style>
|
||||
<main class="common_margin" id="main">
|
||||
<div class="main-wrap">
|
||||
<div class="my-info-inner">
|
||||
|
||||
<?php if($this->session->flashdata('success')) { ?>
|
||||
|
||||
<div class="alert alert-success alert-dismissible fade show" role="alert">
|
||||
<p><?php echo $this->session->flashdata('success') ?></p>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<div class="payment-selection-wrap">
|
||||
<div class="hostel_details_wrap">
|
||||
<h4 class="payment_subhead">Hostel Details</h4>
|
||||
<?php if(!isset($hostel_room)) {
|
||||
echo 'Student has not been assigned with any room. Please contact Hostel Administrator';
|
||||
} else { ?>
|
||||
<ul class="hostel_details">
|
||||
<li><label>Joined Date:</label><span><?= date('d-m-Y', strtotime($hostel_room['joined_date'])) ?></span></li>
|
||||
<li><label>Block:</label><span><?= $hostel_room['block_name'] ?></span></li>
|
||||
<li><label>Floor:</label><span><?= $hostel_room['floor_name'] ?></span></li>
|
||||
<li><label>Room No:</label><span><?= $hostel_room['room_name'] ?></span></li>
|
||||
<li><label>Room Type:</label><span><?= $hostel_room['room_ac'] ?></span></li>
|
||||
<li><label>Bed No:</label><span><?= $hostel_room['bed_name'] ?></span></li>
|
||||
<li><label>Food Type:</label><span><?= $hostel_room['food_type'] ?></span></li>
|
||||
</ul>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
</div>
|
||||
<?php if(isset($installment)) { ?>
|
||||
<div class="hostel_details_wrap">
|
||||
<h4 class="payment_subhead">Hostel Fee Details</h4>
|
||||
<div class="user-info-row-one">
|
||||
<div class="user-info-one-fees">
|
||||
<p>Hostel Fee Total:</p>
|
||||
<p>N<?= $installment['amount'] ?></p>
|
||||
</div>
|
||||
<div class="user-info-one-fees">
|
||||
<p>Payment Dates:</p>
|
||||
<ul class="sele-sub-opt-two" style="list-style-type: none;">
|
||||
<?php
|
||||
$flag = true;
|
||||
foreach ($installment['due_amount_date'] as $key => $value) {
|
||||
foreach ($value as $index => $ele) {
|
||||
$due_date = date('Y-m-d', strtotime($ele->due_date));
|
||||
$current_date = date('Y-m-d');
|
||||
$class = $ele->payment_status == 'yes' ? 'green-pay' : '';
|
||||
?>
|
||||
|
||||
<li>
|
||||
<?php if($ele->payment_status == 'yes') { ?>
|
||||
<div class="outter-pay-wrap" style="display: flex;">
|
||||
<div class="outter-check <?= $class ?>"><i class="fa fa-check"></i></div> <!-- green-pay -->
|
||||
<p class="paid-para">N<?= $ele->amount ?> </p>
|
||||
</div>
|
||||
<div class="paid-space"> Paid date: <?= $ele->paid_date ?> </div>
|
||||
<?php } else { ?>
|
||||
<div class="outter-pay-wrap" style="display: flex;">
|
||||
<?php if(($due_date > $current_date)) { ?>
|
||||
<div class="outter-check <?= $class ?>"><i class="fa fa-check"></i></div>
|
||||
<?php } else { ?>
|
||||
<div class="outter-check red-pay"><i class="fas fa-times"></i></div>
|
||||
<?php } ?>
|
||||
<!-- green-pay -->
|
||||
<p class="paid-para">N<?= $ele->amount ?> </p>
|
||||
</div>
|
||||
<div class="paid-space"> Due date: <?= $ele->due_date ?> </div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if($ele->payment_status == 'no' && $flag) { ?>
|
||||
<a href="<?= base_url() ?>student/pay_hostel_fees/<?= $encrypted ?>" class="fees-pay-btn text-white">Pay Now</a>
|
||||
<?php $flag = false; } ?>
|
||||
|
||||
</li>
|
||||
|
||||
<?php }
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
61
application/views/student/hostel.php
Normal file
61
application/views/student/hostel.php
Normal file
@@ -0,0 +1,61 @@
|
||||
<main class="common_margin" id="main">
|
||||
<div class="main-wrap w-100">
|
||||
<div class="my-info-inner w-100">
|
||||
|
||||
<!-- <div class="payment-selection-wrap">
|
||||
<div class="hostel_img">
|
||||
<h4>Would You like to have hostel facility ?</h4>
|
||||
<a href="<?= base_url() ?>student/hostel-fee" class="join-class-btn">Yes, Continue</a>
|
||||
<img src="<?= base_url() ?>assets_student/images/hostel-img.png" />
|
||||
</div>
|
||||
</div> -->
|
||||
<div class="row">
|
||||
<div class="col-md-2 col-12">
|
||||
<span style="font-weight : 600">Batch : </span>
|
||||
</div>
|
||||
<div class="col-md-6 col-12">
|
||||
<span class="ml-3"><?= $course_details['b_name'] ?></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mt-2 mb-5">
|
||||
<div class="col-md-2 col-12">
|
||||
<span style="font-weight : 600">Course : </span>
|
||||
</div>
|
||||
<div class="col-md-6 col-12">
|
||||
<span class="ml-3"><?= $course_details['course_name'] ?></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if(!empty($hostel_details)) { ?>
|
||||
<div class="subject_lhead">Hostel Details</div>
|
||||
<div style="width:50%" class="mt-2">
|
||||
<table class="table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>Hostel Type</th>
|
||||
<th>Amount</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($hostel_details as $key => $value) { ?>
|
||||
<tr>
|
||||
<td><?= $key + 1 ?></td>
|
||||
<td><?= $value['fee_values'] ?></td>
|
||||
<td><?= $value['amount'] ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<?php } else {
|
||||
echo '<p>Hostel Fees has not been created for student\'s batch and course</p>';
|
||||
} ?>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
13
application/views/student/hostel_old.php
Normal file
13
application/views/student/hostel_old.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<main class="common_margin" id="main">
|
||||
<div class="main-wrap w-100">
|
||||
<div class="my-info-inner w-100">
|
||||
<div class="payment-selection-wrap">
|
||||
<div class="hostel_img">
|
||||
<h4>Would You like to have hostel facility ?</h4>
|
||||
<a href="<?= base_url() ?>student/hostel-fee" class="join-class-btn">Yes, Continue</a>
|
||||
<img src="<?= base_url() ?>assets_student/images/hostel-img.png" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
206
application/views/student/invoicepdf.php
Normal file
206
application/views/student/invoicepdf.php
Normal file
@@ -0,0 +1,206 @@
|
||||
|
||||
<div class="wraper responsive-width" style="height:100% !important;">
|
||||
<main class="" id="main">
|
||||
<div class="main-wrap">
|
||||
<div class="dashboard-cover">
|
||||
|
||||
<?php
|
||||
if(empty($school_info['color_logo'])) {
|
||||
$logo_img=base_url().'common_assets/black_logo.png';
|
||||
}
|
||||
else if(file_exists('common_assets/'.$school_info['color_logo']))
|
||||
{
|
||||
$logo_img=base_url().'common_assets/'.$school_info['color_logo'];
|
||||
}
|
||||
else {
|
||||
$logo_img=base_url().'common_assets/black_logo.png';
|
||||
}
|
||||
?>
|
||||
<div class="invoice_wrap">
|
||||
|
||||
|
||||
<div class="invoice_head_row" style="background-color:#F1F1F1">
|
||||
<table width="100%" class="head_tbl" style="padding-top: 25px;">
|
||||
<tr>
|
||||
<td style="width:30%">
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td width="100%" ><img class="logo_img" src="<?= $logo_img; ?>" alt="Logo Here"></td>
|
||||
</tr>
|
||||
<tr><td><hr style="width:100%;"></td></tr>
|
||||
<tr>
|
||||
<td width="100%"><h4><?= $school_info['school_name']; ?></h4></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="100%"><p class="address"><?= $school_info['address']; ?></p></td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="top_logo" style="padding-left:10px;">
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td style="width:30%">
|
||||
<table >
|
||||
<tr>
|
||||
<th style="padding:0px 0px 0px 50px;">Bill Type</th><th> :</th><td>Copy</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td style="width:40%">
|
||||
<table style="text-align: left;">
|
||||
<tr>
|
||||
<th style="text-align: left;padding:5px;">Phone</th><th>:</th><td><span><?= $school_info['phone']; ?></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;padding:5px;">Email</th><th>:</th><td><span><?= $school_info['email']; ?></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;padding:5px;">Website</th><th>:</th><td><span><?= $school_info['website_link']; ?></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;padding:5px;">School PAN</th><th>:</th><td><span><?= (!empty($school_info['pan'])) ? $school_info['pan']:"-"; ?></span></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<hr/>
|
||||
</div>
|
||||
|
||||
|
||||
<div style="margin:20px 5px">
|
||||
|
||||
|
||||
<table width="100%" >
|
||||
<tr>
|
||||
<th style="padding:7px 7px 7px 0px;text-align:left; width:12%">Student Name </th><th style="text-align:left; width:2%">:</th><td style="text-align:left; width:20%"><span><?= $invoice_data['studentname'] ?></span></td>
|
||||
<th style="padding:7px 7px 7px 0px;text-align:left;width:12%">Parent PAN </th><th style="text-align:left; width:2%">:</th><td style="text-align:left; width:20%"><span><?= (!empty($invoice_data['parent_pan'])) ? $invoice_data['parent_pan'] : '-'; ?></span></td>
|
||||
<th style="padding:7px 7px 7px 0px;text-align:left;width:14%">Bill Print Count </th><th style="text-align:left; width:2%">:</th><td style="text-align:left; width:16%"><span><?= $invoice_data['bill_print_count'] ?></span></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th style="padding:7px 7px 7px 0px;text-align:left; width:12%">Classroom </th><th style="text-align:left; width:2%">:</th><td style="text-align:left; width:20%"><span><?php
|
||||
$section_id = (!empty($invoice_data['section_id']) && isset($invoice_data['section_id'])) ? $invoice_data['section_id'] : 0;
|
||||
if ($section_id != 0)
|
||||
$section_name = $this->db->get_where('section', array('id' => $section_id))->row()->section_name;
|
||||
else
|
||||
$section_name = '';
|
||||
|
||||
$course_name = $this->db->get_where('course', array('id' => $invoice_data['course_id']))->row()->course_name;
|
||||
echo (!empty($section_name)) ? $course_name . ' - ' . $section_name : $course_name;
|
||||
?></span></td>
|
||||
|
||||
|
||||
<th style="padding:7px 7px 7px 0px;text-align:left; width:12%">Student ID </th><th style="text-align:left; width:2%">:</th><td style="text-align:left; width:20%"><span><?= $invoice_data['studentId'] ?></span></td>
|
||||
<th style="padding:7px 7px 7px 0px;text-align:left;width:14%">Transaction Date & Time </th><th style="text-align:left; width:2%">:</th><td style="text-align:left; width:16%"><span><span><?= date('d-m-Y H:i:s', strtotime($invoice_data['tdt'])) ?></span></td>
|
||||
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th style="padding:7px 7px 7px 0px;text-align:left; width:15%">Batch </th><th style="text-align:left; width:2%">:</th><td style="text-align:left; width:20%"><span><?= $invoice_data['batch_name']; ?></span></td>
|
||||
<th style="padding:7px 7px 7px 0px;text-align:left;width:15%"></th><th style="text-align:left; width:2%"></th><td style="text-align:left; width:20%"><span></span></td>
|
||||
<th style="padding:7px 7px 7px 0px;text-align:left;width:15%"></th><th style="text-align:left; width:2%"></th><td style="text-align:left; width:20%"><span></span></td>
|
||||
</tr>
|
||||
|
||||
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="invoice_table">
|
||||
<table class="tblbody" style="border:1px solid #000; border-collapse: collapse; margin:5px;width: 100%;">
|
||||
<thead>
|
||||
<tr >
|
||||
<th style="width:5%; text-align:center;border:1px solid #000;color: #212529; padding: 7px;">SNo</th>
|
||||
<th style="width:25%; text-align:center;border:1px solid #000;color: #212529; padding: 7px;">Description</th>
|
||||
<th style="width:10%; text-align:center;border:1px solid #000;color: #212529; padding: 7px;">Bill No</th>
|
||||
<th style="width:10%; text-align:center;border:1px solid #000;color: #212529; padding: 7px;">Bill By</th>
|
||||
|
||||
<th style="width:10%; text-align:center;border:1px solid #000;color: #212529; padding: 7px;">Mode of Payment</th>
|
||||
<th style="width:15%; text-align:center;border:1px solid #000;color: #212529; padding: 7px;">Paid Date</th>
|
||||
<th style="width:10%; text-align:center;border:1px solid #000;color: #212529; padding: 7px;"><?php echo (!empty(ucfirst($invoice_data['deduction_type']))) ? ucfirst($invoice_data['deduction_type']) : "Scholarship/\nDiscount"; ?></th>
|
||||
<th style="width:10%; text-align:center;border:1px solid #000;color: #212529; padding: 7px;">Fine</th>
|
||||
|
||||
<th style="width:10%; text-align:center;border:1px solid #000;color: #212529; padding: 7px;">Amount</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="width:5%; text-align:center;border:1px solid #000;color: #212529;padding: 7px;">1</td>
|
||||
<td style="width:20%; text-align:center;border:1px solid #000;color: #212529;padding: 7px;"><?= $invoice_data['payment_for'] ?></td>
|
||||
<td style="width:10%; text-align:center;border:1px solid #000;color: #212529;padding: 7px;"><?php echo $invoice_data['invoice_no']; //echo $invoice_data['course_fee_id'].$invoice_data['studentId'].'/'.$invoice_data['install_sno'] ?></td>
|
||||
<td style="width:10%; text-align:center;border:1px solid #000;color: #212529;padding: 7px;"><?= $invoice_data['received_by'] ?></td>
|
||||
<td style="width:10%; text-align:center;border:1px solid #000;color: #212529;padding: 7px;"><?= $invoice_data['payment_method'] ?></td>
|
||||
<td style="width:15%; text-align:center;border:1px solid #000;color: #212529;padding: 7px;"><?= date('d-m-Y H:i:s', strtotime($invoice_data['paid_date'])) ?></td>
|
||||
<td style="width:10%; text-align:center;border:1px solid #000;color: #212529;padding: 7px;"><?= $invoice_data['deduction_amount']; ?></td>
|
||||
<td style="width:10%; text-align:center;border:1px solid #000;color: #212529;padding: 7px;"><?= $invoice_data['fine_amount']; ?></td>
|
||||
<td style="width:10%; text-align:center;border:1px solid #000;color: #212529;padding: 7px;"><?= (($invoice_data['payment_amt'] + $invoice_data['fine_amount'] ) - $invoice_data['deduction_amount']) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="6" style="border:1px solid #000;padding:5px;text-align:center;"></td>
|
||||
<td style="border:1px solid #000;padding:5px;text-align:center;"><?= $invoice_data['deduction_amount']; ?></td>
|
||||
<td style="border:1px solid #000;padding:5px;text-align:center;"><?= $invoice_data['fine_amount']; ?></td>
|
||||
<td style="border:1px solid #000;padding:5px;text-align:center;"><?= $invoice_data['payment_amt']; ?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td colspan="6" style="padding:10px 5px 10px 50px;text-align:left;width:60%">
|
||||
<p style="padding:5px;font-weight:bold;"><span><b>Amount In Word :</b>
|
||||
<?php echo '"'. amountInWords((($invoice_data['payment_amt'] + $invoice_data['fine_amount'] ) - $invoice_data['deduction_amount'])) .'"'; ?></span></p>
|
||||
<br>
|
||||
<p style="padding:5px;"> “This is computer generated receipt, no signature required.”</p>
|
||||
</td>
|
||||
<td colspan="3" style="padding:5px;width:40%;">
|
||||
<table style="border:2px solid #000;border-collapse: collapse; margin:5px;width:100%;background-color:white;">
|
||||
<tbody>
|
||||
|
||||
<tr >
|
||||
<th style="padding:5px;text-align:left;width:65%">Total Fee Amount </th><th style="padding:5px;text-align:left;width:5%">:</th><td style="width:30%;padding:5px;text-align:right;font-weight:bold;"><?= $invoice_data['payment_amt']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="padding:5px;text-align:left;width:65%">Total Fine </th><th style="padding:5px;text-align:left;width:5%">:</th><td style="width:30%;padding:5px;text-align:right;font-weight:bold;"><?= $invoice_data['fine_amount']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="padding:5px;text-align:left;width:65%">Total <?php echo (!empty(ucfirst($invoice_data['deduction_type']))) ? ucfirst($invoice_data['deduction_type']) : "Scholarship/\nDiscount"; ?> </th><th style="padding:5px;text-align:left;width:5%">:</th><td style="width:30%;padding:5px;text-align:right;font-weight:bold;"><?= $invoice_data['deduction_amount']; ?></td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="padding:5px;text-align:left;width:65%">Total Paid Amount </th><th style="padding:5px;text-align:left;width:5%">:</th><td style="width:30%;padding:5px;text-align:right;font-weight:bold;"><?= $school_info['currency_symbol']; ?>. <?= (($invoice_data['payment_amt'] + $invoice_data['fine_amount'] ) - $invoice_data['deduction_amount']) ?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<hr>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</main>
|
||||
</div>
|
186
application/views/student/library.php
Normal file
186
application/views/student/library.php
Normal file
@@ -0,0 +1,186 @@
|
||||
<style>
|
||||
*,
|
||||
html,
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
font-size: 14px;
|
||||
font-weight: 500 !important;
|
||||
}
|
||||
</style>
|
||||
<main class="common_margin" id="main">
|
||||
<div class="main-wrap">
|
||||
<div class="classes-section">
|
||||
<div class="class-head">
|
||||
<h3 class="common-heading">School Library</h3>
|
||||
</div>
|
||||
<form method="post" action="<?= base_url(); ?>student/library">
|
||||
<div class="top-filter report_filter">
|
||||
<div class="filter_lbl">
|
||||
<i class="fas fa-filter"></i>
|
||||
Filter
|
||||
</div>
|
||||
<?php
|
||||
$startDate = (isset($start_date) && !empty($start_date)) ? date('Y-m-d', strtotime($start_date)) : '';
|
||||
$endtDate = (isset($end_date) && !empty($end_date)) ? date('Y-m-d', strtotime($end_date)) : '';
|
||||
$status = (isset($status) && !empty($status)) ? $status : '';
|
||||
?>
|
||||
<div class="date-filter">
|
||||
<div class="date-fil-row">
|
||||
<label>Start Date</label>
|
||||
<input type="text" name="start_date" class="nepal-date-student form-control" placeholder="Please Select Start Date" value="<?= $startDate; ?>">
|
||||
</div>
|
||||
<div class="date-fil-row">
|
||||
<label>End Date</label>
|
||||
<input type="text" name="end_date" id="end_date" class="nepal-date-student form-control" placeholder="Please Select End Date" value="<?= $endtDate; ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="subject-filter">
|
||||
<label>Status</label>
|
||||
<select id="status" name="status" class=" form-control">
|
||||
<option value="">All</option>
|
||||
<option value="due" <?php echo (!empty($status) ? 'selected' : ''); ?>> Due </option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="filter-reset">
|
||||
<button type="submit" name="searchfilter" id="filter_reset" class="btn btn-success" value="search_filter">Search Filter</button>
|
||||
<a href=" ">
|
||||
<button type="button" class="subject_addbtn subject_addbtn_nobg"><i class="fas fa-redo"></i>Reset</button></a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<table id="tbl1" class="display table-responsive dataTable" style="display:table;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Sl.No</th>
|
||||
<th>Book Name</th>
|
||||
<th>Borrowed Date</th>
|
||||
<th>Last Date</th>
|
||||
<th>Submitted Date</th>
|
||||
<th>Remaining Days</th>
|
||||
<th>Overdue</th>
|
||||
<th>Fine <?php echo '(' . $general_setting['currency'] . ')' ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
|
||||
$generalfee = $general_setting['due_fee_per_day'];
|
||||
$sno = 1;
|
||||
$totalfee = 0;
|
||||
foreach ($book_data as $bvalue) {
|
||||
$issuedDate = date('d-m-Y', strtotime($bvalue['issued_date']));
|
||||
$returnedDate = date('d-m-Y', strtotime($bvalue['return_date']));
|
||||
$today = (!empty($bvalue['returned_on_date'])) ? date('d-m-Y', strtotime($bvalue['returned_on_date'])) : $todayDate;
|
||||
$diff = strtotime($returnedDate) - strtotime($today);
|
||||
$remaingDays = ($diff / 86400);
|
||||
$total_duedays = ($remaingDays < 0) ? abs($remaingDays) : 0;
|
||||
|
||||
$fine = ($bvalue['fine'] > 0) ? $bvalue['fine'] : $generalfee;
|
||||
$fineamt = ($total_duedays * $fine);
|
||||
|
||||
?>
|
||||
|
||||
<?php
|
||||
if ($status == 'due') {
|
||||
|
||||
if ($total_duedays > 0) {
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $sno; ?></td>
|
||||
<td><?= $bvalue['title']; ?></td>
|
||||
<td><?= $issuedDate; ?></td>
|
||||
<td><?= $returnedDate; ?></td>
|
||||
<td><?= (!empty($bvalue['returned_on_date'])) ? date('d-m-Y', strtotime($bvalue['returned_on_date'])) : '-' ?></td>
|
||||
<td><?php
|
||||
|
||||
|
||||
if ($remaingDays == 0)
|
||||
echo "<label style='color:red;font-weight:bold;'>Due Today</label>";
|
||||
else if ($remaingDays > 0)
|
||||
echo $remaingDays . " Days";
|
||||
else if ($remaingDays < 0)
|
||||
echo "0 Days";
|
||||
?>
|
||||
</td>
|
||||
<td><?php
|
||||
if ($total_duedays > 0) {
|
||||
echo "<label style='color:red;font-weight:400;'>" . $total_duedays . " Days</label>";
|
||||
} else {
|
||||
echo "<label style='font-weight:400;'>" . $total_duedays . " Days</label>";
|
||||
}
|
||||
|
||||
?>
|
||||
</td>
|
||||
<td><?php echo $fineamt; ?> </td>
|
||||
</tr>
|
||||
<?php
|
||||
$totalfee += $fineamt;
|
||||
$sno++;
|
||||
}
|
||||
} else {
|
||||
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td><?php echo $sno; ?></td>
|
||||
<td><?= $bvalue['title']; ?></td>
|
||||
<td><?= $issuedDate; ?></td>
|
||||
<td ><?= $returnedDate; ?></td>
|
||||
<td class="text-center"><?= (!empty($bvalue['returned_on_date'])) ? date('d-m-Y', strtotime($bvalue['returned_on_date'])) : ''; ?></td>
|
||||
<td class="text-center"><?php
|
||||
|
||||
$diff = strtotime($returnedDate) - strtotime($today);
|
||||
$remaingDays = ($diff / 86400);
|
||||
if ($remaingDays == 0)
|
||||
echo "<label style='color:red;font-weight:bold;'>Due Today</label>";
|
||||
else if ($remaingDays > 0)
|
||||
echo $remaingDays . " Days";
|
||||
else if ($remaingDays < 0)
|
||||
echo "0 Days";
|
||||
?>
|
||||
</td>
|
||||
<td class="text-center"><?php
|
||||
|
||||
if ($total_duedays > 0) {
|
||||
echo "<label style='color:red;font-weight:400;'>" . $total_duedays . " Days</label>";
|
||||
} else {
|
||||
echo "<label style='font-weight:400;'>" . $total_duedays . " Days</label>";
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
<td class="text-center"><?php echo $fineamt; ?> </td>
|
||||
</tr>
|
||||
<?php
|
||||
$totalfee += $fineamt;
|
||||
$sno++;
|
||||
}
|
||||
} ?>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="7">
|
||||
<label style="float: right;font-size: 13px;">Total Late Fee:</label>
|
||||
</td>
|
||||
<td style="font-size: 13px;">l
|
||||
<?= $totalfee . " " . $general_setting['currency']; ?>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
<script src="<?php echo base_url(); ?>assets_student/js/jquery.dataTables.min.js"></script>
|
||||
<script>
|
||||
$('#tbl1').DataTable({
|
||||
"lengthMenu": [
|
||||
[5, 10, 25, 50, -1],
|
||||
[5, 10, 25, 50, "All"]
|
||||
]
|
||||
});
|
||||
</script>
|
21
application/views/student/login-header.php
Normal file
21
application/views/student/login-header.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>ERISN Classroom</title>
|
||||
<!--styles links-->
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>assets_student/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>assets_student/css/jquery-ui.min.css">
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>assets_student/css/font-family.css">
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>assets_student/css/all.css">
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>assets_student/owl-carousel/css/owl.carousel.min.css">
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>assets_student/css/fontawesome.min.css" />
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>assets_student/css/style.css">
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>assets_student/css/style-responsive.css">
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>assets_student/css/mobile.css">
|
||||
<script src="<?php echo base_url(); ?>assets_student/js/jquery-3.6.0.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
172
application/views/student/login.php
Normal file
172
application/views/student/login.php
Normal file
@@ -0,0 +1,172 @@
|
||||
|
||||
<div class="container-login">
|
||||
<img src="<?php echo base_url(); ?>assets_student/images/LMS-Video-Animation-min.gif" class="login-image">
|
||||
<!-- <video class="login-video" preload="metadata" playsinline autoplay muted loop >
|
||||
<source src="<?php echo base_url(); ?>assets_student/images/login.webm#t=0.001" type="video/webm">
|
||||
<source src="<?php echo base_url(); ?>assets_student/images/login.webm#t=0.001" type="video/webm">
|
||||
Your browser does not support the video tag.
|
||||
</video> -->
|
||||
<header class="login-header">
|
||||
<div class="login-wrap">
|
||||
<div class="logo-wrap">
|
||||
<img src="<?php echo base_url(); ?>common_assets/<?php echo $school_info['color_logo'] ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="header-menu-wrap">
|
||||
<div class="login-mob-menu"><i class="fas fa-bars"></i></div>
|
||||
<ul class="mob-menu">
|
||||
<li><a href="#">About Us</a></li>
|
||||
<li><a href="#">Contact Us</a></li>
|
||||
<li><a href="<?php echo base_url(); ?>student/admission"><button class="join-class-btn">Admission Process ></button></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<?php
|
||||
$uname = ''; $pass = ''; $rme = 'Off';
|
||||
if(isset($_COOKIE["username"]))
|
||||
$uname = $_COOKIE["username"];
|
||||
if(isset($_COOKIE["password"]))
|
||||
$pass = $_COOKIE["password"];
|
||||
if(isset($_COOKIE["rem_me"]))
|
||||
$rme = $_COOKIE["rem_me"];
|
||||
?>
|
||||
<div class="login-body">
|
||||
<div class="login-box-wrap">
|
||||
<div class="login-box">
|
||||
<h3>Student Login</h3>
|
||||
<?php if($this->session->flashdata('success')) { ?>
|
||||
|
||||
<div class="alert alert-success alert-dismissible fade show" role="alert">
|
||||
<p><?php echo $this->session->flashdata('success') ?></p>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<?php if($this->session->flashdata('danger')) { ?>
|
||||
|
||||
<div class="alert alert-danger alert-dismissible fade show" role="alert">
|
||||
<p><?php echo $this->session->flashdata('danger') ?></p>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
<form id="loginform" method="post">
|
||||
<div class="login-form-row">
|
||||
<input type="text" name="email" id="email" value="<?php echo $uname;?>" placeholder="Enter Student Id">
|
||||
<p id="email_error" style="color:red;"></p>
|
||||
</div>
|
||||
<div class="login-form-row">
|
||||
<input type="password" name="password" id="password" value="<?php echo $pass;?>" placeholder="Enter password" class="password_hide">
|
||||
<span class="passwrd-icon icon-y"><i class="far fa-eye"></i></span>
|
||||
<p id="password_error" style="color:red;"></p><p id="invalid_error" style="color:red;"></p>
|
||||
</div>
|
||||
<div class="login-form-row">
|
||||
<a href="<?php echo base_url(); ?>student/reset-password"><label class="forgotPswd">Forgot password?</label></a>
|
||||
<span class="rem-paswd"><input type="checkbox" name="remember_me" <?php if($rme=='On'){?>checked<?php } ?> ><label>Remember Me</label></span>
|
||||
</div>
|
||||
<div class="login-form-row">
|
||||
<button type="button" class="join-class-btn" onclick="validate_login_form()" >Login</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$(".passwrd-icon").click(function() {
|
||||
|
||||
$(".passwrd-icon").toggleClass("icon-y");
|
||||
|
||||
var input = $( ".password_hide");
|
||||
if (input.attr("type") == "password") {
|
||||
input.attr("type", "text");
|
||||
} else {
|
||||
input.attr("type", "password");
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
function hide_all_login_errors()
|
||||
{
|
||||
$('#email_error').hide();
|
||||
$('#password_error').hide();
|
||||
|
||||
}
|
||||
|
||||
function celanup_login_form()
|
||||
{
|
||||
$('#email').val('');
|
||||
$('#passsword').val('');
|
||||
$('#invalid_error').html('');
|
||||
}
|
||||
|
||||
function validate_login_form(){
|
||||
|
||||
hide_all_login_errors();
|
||||
|
||||
var errArr = new Array();
|
||||
|
||||
var lemail = $('#email').val().trim();
|
||||
var regex = /^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
|
||||
/* if(lemail==''){
|
||||
errArr.push('email_Sep@Str_Please enter your registered email address.');
|
||||
}
|
||||
else if(!regex.test(lemail)){
|
||||
errArr.push('email_Sep@Str_Please enter a valid email address.');
|
||||
}
|
||||
*/
|
||||
|
||||
if(lemail==''){
|
||||
errArr.push('email_Sep@Str_Please enter your StudentId.');
|
||||
}
|
||||
|
||||
var lpwd = $('#password').val().trim();
|
||||
if(lpwd==''){
|
||||
errArr.push('password_Sep@Str_Please enter your password.');
|
||||
}
|
||||
|
||||
if(errArr.length>0)
|
||||
{
|
||||
for(i=0; i<errArr.length; i++)
|
||||
{
|
||||
var resArr = errArr[i].split("_Sep@Str_");
|
||||
$("#"+resArr[0]+"_error").html(resArr[1]);;
|
||||
$("#"+resArr[0]+"_error").show();
|
||||
}
|
||||
var xxxVal = errArr[0].split('_Sep@Str_');
|
||||
$('#'+xxxVal[0]).focus();
|
||||
return false;
|
||||
}
|
||||
else{
|
||||
$('#loginform').submit();
|
||||
}
|
||||
}
|
||||
|
||||
$('#loginform').submit(function(e){
|
||||
e.preventDefault();
|
||||
var formData = new FormData($("#loginform")[0]);
|
||||
$.ajax({
|
||||
url : '<?php echo base_url(); ?>Student/student_login',
|
||||
dataType : 'json',
|
||||
type : 'POST',
|
||||
data : formData,
|
||||
contentType : false,
|
||||
processData : false,
|
||||
success: function(response) {
|
||||
console.log(response);
|
||||
if(response == '1'){
|
||||
window.location.href="<?php echo base_url(); ?>student/dashboard";
|
||||
}else if(response == '0'){
|
||||
$('#invalid_error').html("Invalid Student Id or Password.");
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
506
application/views/student/my-assignments.php
Normal file
506
application/views/student/my-assignments.php
Normal file
@@ -0,0 +1,506 @@
|
||||
<style type="text/css">
|
||||
.assignment-calendar.po-calendar {
|
||||
margin: 25px 0;
|
||||
}
|
||||
.po-relative {
|
||||
position: relative;
|
||||
}
|
||||
.assignment-calendar .po-relative {
|
||||
width: 40%;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<main class="common_margin" id="main">
|
||||
<div class="main-wrap">
|
||||
<div class="assignment-section">
|
||||
<div class="assignment-section-wrap">
|
||||
<div class="class-head">
|
||||
<h3 class="common-heading">Assignment</h3>
|
||||
</div>
|
||||
<div class="po-calendar assignment-calendar">
|
||||
<div class="po-relative">
|
||||
<input type="text" class="form-control" placeholder="Select a date" id="nepali-datepicker">
|
||||
<i class="fas fa-calendar-alt cal-icon"></i>
|
||||
</div>
|
||||
<p>Note : To view different months notification, please select the required month and any day</p>
|
||||
</div>
|
||||
<div class="assignment-main">
|
||||
<div class="assignment-subj">
|
||||
|
||||
</div>
|
||||
<div class="assignment-detail-main">
|
||||
<div class="assignment-detail">
|
||||
<div class="assgnmt-upload">
|
||||
<div class="uploaded-assignmnts">
|
||||
|
||||
</div>
|
||||
<div class="submit-assignment-text">
|
||||
<h5 class="text-success text-center "><small>Assignment submitted waiting for Teacher Remark</small></h5>
|
||||
</div>
|
||||
<div class="upload-btn-wrap btn-upload">
|
||||
<button class="upload-btn"><span><i class="fas fa-cloud-upload-alt"></i></span>Upload Assignment</button>
|
||||
<input type="file" name="myfile[]" id="imgInp" multiple />
|
||||
</div>
|
||||
<div class="upload-btn-wrap btn-submit">
|
||||
<button class="upload-btn btn-success" data-toggle="modal" data-target="#confirmModal" style="background:green"> Submit </button>
|
||||
</div>
|
||||
<div class="upload-btn-wrap re-upload-btn">
|
||||
<button class="upload-btn"><span><i class="fas fa-cloud-upload-alt"></i></span>Re - Upload </button>
|
||||
<input type="file" name="myfile[]" id="re-imgInp" multiple />
|
||||
</div>
|
||||
<div class="upload-btn-wrap btn-cancel">
|
||||
<button class="upload-btn" style="background:black"> Cancel </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="assignmt-remark">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
<div class="syllabus-modal assignment-modal">
|
||||
<div class="modal fade" id="viewAssignment" role="dialog">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="down-btn-wrap">
|
||||
<div class="page-number">
|
||||
<div class="slider-counter">
|
||||
<div class="slider-no"></div>
|
||||
<div class="tot-slider"></div>
|
||||
<span>Pages</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="viewDoc accept-modal-wrap">
|
||||
<div class="modal fade" id="confirmModal" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content-one">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<div class="accept-modal">
|
||||
<input type="hidden" id="reject" />
|
||||
<h3 class="text-center">Are you sure?</h3>
|
||||
<p>You won't be able to alter/re-upload the assignment after submission</p>
|
||||
<div class="delete-modal-btn mr-auto ml-auto">
|
||||
<button type="button" id="asgn_submit" class="subject_addbtn btn-success ">Submit</button>
|
||||
</a>
|
||||
<button type="button" class="subject_addbtn subject_addbtn_cancel" data-dismiss="modal">Cancel</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<style type="text/css">
|
||||
@media (min-width: 576px) {
|
||||
.modal-dialog {
|
||||
max-width: 500px;
|
||||
margin: 6rem auto;
|
||||
}
|
||||
}
|
||||
|
||||
.modal-content-one {
|
||||
position: relative;
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-box-direction: normal;
|
||||
-ms-flex-direction: column;
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
pointer-events: auto;
|
||||
background-color: #fff;
|
||||
background-clip: padding-box;
|
||||
border: 1px solid rgba(0, 0, 0, .2);
|
||||
border-radius: .3rem;
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
#loader {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
margin: auto;
|
||||
border: 6px solid #f3f3f3;
|
||||
border-radius: 50%;
|
||||
border-top: 6px solid #3498db;
|
||||
-webkit-animation: spin 2s linear infinite;
|
||||
animation: spin 2s linear infinite;
|
||||
}
|
||||
|
||||
@-webkit-keyframes spin {
|
||||
0% { -webkit-transform: rotate(0deg); }
|
||||
100% { -webkit-transform: rotate(360deg); }
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
0% { transform: rotate(0deg); }
|
||||
100% { transform: rotate(360deg); }
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
var asgn = '0',
|
||||
m = '0',
|
||||
y = '0';
|
||||
$('.submit-assignment-text').hide();
|
||||
get_assignment_list(m, y);
|
||||
get_assginment(asgn, m, y);
|
||||
});
|
||||
|
||||
function get_assignment_list(month = '', year = '') {
|
||||
$('.assignment-sub-tab').remove();
|
||||
$.ajax({
|
||||
url: '<?php echo base_url() . 'student/get_assignment_list/' ?>' + month + '/' + year,
|
||||
type: 'GET',
|
||||
dataType: 'json',
|
||||
success: function(result) {
|
||||
|
||||
var assign = '';
|
||||
var i = 1;
|
||||
var id = '';
|
||||
$.each(result, function(k, v) {
|
||||
|
||||
if (result) {
|
||||
if (i == 1) {
|
||||
id = v['assignment_id'];
|
||||
}
|
||||
|
||||
if (v['status']) {
|
||||
if (v['flag'] == '1') {
|
||||
assign += '<div class="assignment-sub-tab" id="border_' + v['assignment_id'] + '"><a href="#" onClick="get_assginment(' + v['assignment_id'] + ', 0 , 0)" style="text-decoration:none;color:inherit;"><div class="assignmnt-tab-head"><img src="<?= base_url(); ?>assets_admin/images/icons/' + v['subject_icon'] + '"><h3> ' + v['subject_name'] + ' </h3></div><div class="assignmt-detail" style="overflow-wrap: break-word;">' + v['remark'] + '</div><div class="assignmt-bott"><p>By: ' + v['teacher_name'] + '</p><span>Due Date: ' + v['due_date'] + '</span></div><div class="select-tab"><i class="fas fa-check"></i></div></a></div>';
|
||||
} else {
|
||||
assign += '<div class="assignment-sub-tab" id="border_' + v['assignment_id'] + '"><a href="#" onClick="get_assginment(' + v['assignment_id'] + ', 0 ,0)" style="text-decoration:none;color:inherit;"><div class="assignmnt-tab-head"><img src="<?= base_url(); ?>assets_admin/images/icons/' + v['subject_icon'] + '"><h3> ' + v['subject_name'] + ' </h3></div><div class="assignmt-detail" style="overflow-wrap: break-word;">' + v['remark'] + '</div><div class="assignmt-bott"><p>By: ' + v['teacher_name'] + '</p><span>Due Date: ' + v['due_date'] + '</span></div></a></div>';
|
||||
}
|
||||
} else {
|
||||
assign += '<div class="assignment-sub-tab" id="border_' + v['assignment_id'] + '"><a href="#" onClick="get_assginment(' + v['assignment_id'] + ', 0 ,0)" style="text-decoration:none;color:inherit;"><div class="assignmnt-tab-head"><img src="<?= base_url(); ?>assets_admin/images/icons/' + v['subject_icon'] + '"><h3> ' + v['subject_name'] + ' </h3></div><div class="assignmt-detail" style="overflow-wrap: break-word;">' + v['remark'] + '</div><div class="assignmt-bott"><p>By: ' + v['teacher_name'] + '</p><span>Due Date: ' + v['due_date'] + '</span></div></a></div>';
|
||||
}
|
||||
|
||||
i++;
|
||||
|
||||
} else {
|
||||
assign += '<div class="assignment-sub-tab" > No Assignment Available</div>';
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
$('.assignment-subj').append(assign);
|
||||
$("#border_" + id).css("border-left", "5px solid #032da1");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function get_assginment(asgn_id, month, year) {
|
||||
$('.assignment-sub-tab').css("border-left", "5px solid #fff");
|
||||
$("#border_" + asgn_id).css("border-left", "5px solid #032da1");
|
||||
$('.btn-upload').show();
|
||||
$('.submit-assignment-text').hide();
|
||||
$('.assignmt-detail-top').remove();
|
||||
$('.assignmt-sub-detail').remove();
|
||||
$('.assignmt-remark-wrap').remove();
|
||||
|
||||
$.ajax({
|
||||
url: '<?php echo base_url() . 'student/get_assignment/' ?>' + asgn_id + '/' + month + '/' + year,
|
||||
type: 'GET',
|
||||
dataType: 'json',
|
||||
success: function(result) {
|
||||
console.log('hello word');
|
||||
$('.re-upload-btn').hide();
|
||||
$('.btn-submit').hide();
|
||||
$('.btn-cancel').hide();
|
||||
$('.no_data_div').remove();
|
||||
$('.assgnmt-upload').show();
|
||||
|
||||
var assign_details = '<div class="assignmt-detail-top"><div class="assignmt-sub-name"><h5>' + result['subject'][0]['subject_name'] + '</h5><p>By: ' + result['subject'][0]['teacher_name'] + '</p></div><div class="assignmt-date">Due Date : ' + result['subject'][0]['due_date'] + '</div></div><div class="assignmt-sub-detail"><h4 style="overflow-wrap: break-word;">' + result['subject'][0]['subject_name'] + ' assignment essay on: ' + result['subject'][0]['title'] + '</h4><p style="overflow-wrap: break-word;">' + result['subject'][0]['remark'] + '</p></div><input type="hidden" id="asgn_id" name="asgn_id" value="' + result['subject'][0]['assignment_id'] + '">';
|
||||
|
||||
if (result['images'] != '') {
|
||||
|
||||
$('.btn-upload').hide();
|
||||
// $('.re-upload-btn').show();
|
||||
$('.re-upload-btn').css('display', 'inline-block');
|
||||
$('.btn-submit').css('display', 'inline-block');
|
||||
$('.btn-cancel').css('display', 'inline-block');
|
||||
|
||||
}
|
||||
console.log(result['remark_by_teacher']);
|
||||
if (result['remark_by_teacher'].length != 0 || result['remark_by_teacher'].length != "") {
|
||||
if (result['remark_by_teacher'][0]['Flag'] == 2) {
|
||||
console.log('images blank');
|
||||
$('.btn-upload').hide();
|
||||
// $('.re-upload-btn').show();
|
||||
$('.re-upload-btn').css('display', 'none');
|
||||
$('.btn-submit').css('display', 'none');
|
||||
$('.btn-cancel').css('display', 'none');
|
||||
$('.submit-assignment-text').show();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
if (result['remark_by_teacher'].length != 0 && result['remark_by_teacher'].length != "" && result['remark_by_teacher'][0]['remark'] != '') {
|
||||
$('.re-upload-btn').css('display', 'none');
|
||||
$('.btn-submit').css('display', 'none');
|
||||
$('.btn-cancel').css('display', 'none');
|
||||
var assignmt_remark = '<div class="assignmt-remark-wrap"><div class="assignmt-remark-head"><h5>Remarks</h5><p>By:<span> ' + result['subject'][0]['teacher_name'] + '</span></p></div><div class="remark-detail">' + result['remark_by_teacher'][0]['remark'] + '</div>';
|
||||
$('.submit-assignment-text').hide();
|
||||
} else {
|
||||
var assignmt_remark = '';
|
||||
}
|
||||
|
||||
var images = '';
|
||||
|
||||
var img = Object.keys(result['images']).length;
|
||||
var owl_img = '';
|
||||
|
||||
$('.modal-content').html('<div id="testing" class="owl-carousel"></div>');
|
||||
for (var i = 2; i <= img + 1; i++) {
|
||||
images += '<div class="uploaded-img uploaded_img" data-toggle="modal" data-target="#viewAssignment"><img src="<?= base_url(); ?>' + result['images'][i] + '" id="upImage"></div>';
|
||||
if (i == 2) {
|
||||
$(".owl-carousel").append('<div class="item active"><img src="<?= base_url(); ?>' + result['images'][i] + '" alt="" /></div>');
|
||||
} else {
|
||||
$(".owl-carousel").append('<div class="item"><img src="<?= base_url(); ?>' + result['images'][i] + '" alt="" /></div>');
|
||||
}
|
||||
|
||||
}
|
||||
images += '<div id="loader" style="display:none;"></div>';
|
||||
$('.assignment-detail').prepend(assign_details);
|
||||
if (assignmt_remark != '') {
|
||||
$('.assignmt-remark').css('display', 'block');
|
||||
$('.assignmt-remark').append(assignmt_remark);
|
||||
} else {
|
||||
$('.assignmt-remark').css('display', 'none');
|
||||
}
|
||||
// $('.assignmt-remark').append(assignmt_remark);
|
||||
$('.uploaded-assignmnts').html(images);
|
||||
|
||||
var owl = $("#testing");
|
||||
owl.owlCarousel({
|
||||
nav: true,
|
||||
loop: true,
|
||||
slideSpeed: 300,
|
||||
paginationSpeed: 400,
|
||||
items: 1,
|
||||
itemsDesktop: false,
|
||||
itemsDesktopSmall: false,
|
||||
itemsTablet: false,
|
||||
itemsMobile: false
|
||||
});
|
||||
|
||||
},
|
||||
error: function(jqXHR, status, err) {
|
||||
$('.assgnmt-upload').hide();
|
||||
$('.no_data_div').remove();
|
||||
$('.assignment-detail').append('<div class="no_data_div"><div class="No_data"><span><h5>No Assignments</h5></span></div></div>');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$('#imgInp').on('change', function() {
|
||||
var id = 'imgInp';
|
||||
var count = 1;
|
||||
$('#loader').show();
|
||||
|
||||
upload_images_multiple(id, count);
|
||||
});
|
||||
|
||||
$('#re-imgInp').on('change', function() {
|
||||
var id = 're-imgInp';
|
||||
var count = 2;
|
||||
$('#loader').show();
|
||||
upload_images_multiple(id, count);
|
||||
});
|
||||
|
||||
function upload_images_multiple(id, count) {
|
||||
|
||||
var file_img = $('#' + id)[0].files;
|
||||
var error = '';
|
||||
var form_data = new FormData();
|
||||
|
||||
for (var i = 0; i < file_img.length; i++) {
|
||||
var name = file_img[i].name;
|
||||
var extension = name.split('.').pop().toLowerCase();
|
||||
|
||||
if (jQuery.inArray(extension, ['gif', 'png', 'jpg', 'jpeg']) == -1) {
|
||||
error += "Upload Only Images";
|
||||
$('.btn-submit').css('display', 'none');
|
||||
alert(error);
|
||||
return;
|
||||
} else {
|
||||
form_data.append("images[]", file_img[i]);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
if (count == 1) {
|
||||
$('.btn-upload').hide();
|
||||
// $('.re-upload-btn').show();
|
||||
$('.btn-submit').css('display', 'inline-block');
|
||||
$('.re-upload-btn').css('display', 'inline-block');
|
||||
$('.btn-cancel').css('display', 'inline-block');
|
||||
}
|
||||
if (count == 2) {
|
||||
$('.submit-btn').hide();
|
||||
}
|
||||
|
||||
$('.uploaded_img').remove();
|
||||
|
||||
|
||||
// var file_img = $('#' + id)[0].files;
|
||||
// var error = '';
|
||||
// form_data = new FormData();
|
||||
// for (var i = 0; i < file_img.length; i++) {
|
||||
// var name = file_img[i].name;
|
||||
// var extension = name.split('.').pop().toLowerCase();
|
||||
// if (jQuery.inArray(extension, ['gif', 'png', 'jpg', 'jpeg']) == -1) {
|
||||
// error += "Invalid" + count + "Image File";
|
||||
// alert(error);
|
||||
// return;
|
||||
// } else {
|
||||
// form_data.append("images[]", file_img[i]);
|
||||
// }
|
||||
|
||||
// }
|
||||
var asgn_id = $('#asgn_id').val();
|
||||
form_data.append("asgn_id", asgn_id);
|
||||
|
||||
if (error == '') {
|
||||
$.ajax({
|
||||
url: '<?php echo base_url() . 'student/assignment_image' ?>',
|
||||
method: 'POST',
|
||||
data: form_data,
|
||||
cache: false,
|
||||
contentType: false,
|
||||
processData: false,
|
||||
beforeSend: function() {
|
||||
// $().html("<label class='text success'>Uploading.....</label>")
|
||||
},
|
||||
|
||||
success: function(result) {
|
||||
var obj = JSON.parse(result);
|
||||
console.log(obj);
|
||||
//console.log(result);
|
||||
var image = '',
|
||||
owl_img = '';
|
||||
var count = 1;
|
||||
|
||||
$('.modal-content').html('<div id="testing" class="owl-carousel"></div>');
|
||||
$.each(obj, function(index, value) {
|
||||
|
||||
image += '<div class="uploaded-img uploaded_img" data-toggle="modal" data-target="#viewAssignment"><img src="' + value + '" id="upImage"></div>';
|
||||
|
||||
if (count == 1) {
|
||||
$(".owl-carousel").append('<div class="item active"><img src="' + value + '" alt="" /></div>');
|
||||
// owl_img += '<div class="item "><img src="'+ value +'" alt="" class="img-fluid w-100" /></div>';
|
||||
} else {
|
||||
$(".owl-carousel").append('<div class="item"><img src="' + value + '" alt="" /></div>');
|
||||
// owl_img += '<div class="item"><img src="'+ value +'" alt="" class="img-fluid w-100"/></div>';
|
||||
}
|
||||
|
||||
count++;
|
||||
});
|
||||
$('.uploaded-assignmnts').append(image);
|
||||
$('#loader').hide();
|
||||
var owl = $("#testing");
|
||||
owl.owlCarousel({
|
||||
nav: true,
|
||||
loop: true,
|
||||
slideSpeed: 300,
|
||||
paginationSpeed: 400,
|
||||
items: 1,
|
||||
itemsDesktop: false,
|
||||
itemsDesktopSmall: false,
|
||||
itemsTablet: false,
|
||||
itemsMobile: false
|
||||
});
|
||||
|
||||
// $('.owl-carousel.slider').html(owl_img);
|
||||
// console.log($('.owl-carousel.slider'));
|
||||
|
||||
}
|
||||
});
|
||||
} else {
|
||||
alert("Please add only images...!");
|
||||
}
|
||||
// get_assignment_list();
|
||||
}
|
||||
|
||||
$(function() {
|
||||
$("#assignCal").datepicker({
|
||||
numberOfMonths: 1,
|
||||
changeYear: true,
|
||||
changeMonth: true,
|
||||
showOtherMonths: true,
|
||||
onChangeMonthYear: function(year, month) {
|
||||
var m = month;
|
||||
var y = year;
|
||||
var asgn = '0';
|
||||
get_assignment_list(m, y);
|
||||
get_assginment(asgn, m, y);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$('#nepali-datepicker').nepaliDatePicker({
|
||||
language : 'english',
|
||||
ndpYear: true,
|
||||
ndpMonth: true,
|
||||
ndpYearCount: 10,
|
||||
language : 'english',
|
||||
onChange: function(data) {
|
||||
console.log(data)
|
||||
var m = data.object.month;
|
||||
var y = data.object.year;
|
||||
var asgn = '0';
|
||||
get_assignment_list(m, y);
|
||||
get_assginment(asgn, m, y);
|
||||
}
|
||||
});
|
||||
|
||||
$('#asgn_submit').click(function() {
|
||||
|
||||
var asgn_id = $('#asgn_id').val();
|
||||
$.ajax({
|
||||
url: '<?php echo base_url() . 'student/assignment_class_submit/' ?>' + asgn_id,
|
||||
type: 'POST',
|
||||
dataType: 'json',
|
||||
success: function(result) {
|
||||
if (result) {
|
||||
var m = '0',
|
||||
y = '0';
|
||||
$('.modal').modal('toggle');
|
||||
get_assginment(asgn_id, m, y);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
$('.btn-cancel').click(function() {
|
||||
|
||||
var asgn_id = $('#asgn_id').val();
|
||||
|
||||
$.ajax({
|
||||
url: '<?php echo base_url() . 'student/assignment_class_cancel/' ?>' + asgn_id,
|
||||
type: 'POST',
|
||||
dataType: 'json',
|
||||
success: function(result) {
|
||||
if (result) {
|
||||
var m = '0',
|
||||
y = '0';
|
||||
get_assginment(asgn_id, m, y);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
171
application/views/student/my-assignments11-10-21.php
Normal file
171
application/views/student/my-assignments11-10-21.php
Normal file
@@ -0,0 +1,171 @@
|
||||
|
||||
<main class="common_margin" id="main">
|
||||
<div class="main-wrap">
|
||||
<div class="assignment-section">
|
||||
<div class="assignment-section-wrap">
|
||||
<div class="class-head">
|
||||
<h3 class="common-heading">Assignment</h3>
|
||||
<div class="common-datepicker" >
|
||||
<div class="calendar-date-year">
|
||||
<img src="<?= base_url(); ?>assets_student/images/calendar2.png">
|
||||
</div>
|
||||
<div id="Datepicker1" onchange = " "></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="assignment-main">
|
||||
<div class="assignment-subj">
|
||||
<div class="assignment-sub-tab">
|
||||
<div class="assignmnt-tab-head">
|
||||
<img src="<?= base_url(); ?>assets_student/images/physics.png">
|
||||
<h3>Physics</h3>
|
||||
</div>
|
||||
<div class="assignmt-detail">
|
||||
Lorem ipsum dolor in sit amet, consetetur sadip scing elitr, sed diam nonumy eirmod tempor of invidunt ut ipsum dolor sit amet, consetetur of a sadip scing elitr, sed diam nonumy fro all aeirmod tempor invidunt.
|
||||
</div>
|
||||
<div class="assignmt-bott">
|
||||
<p>By: E. Morris</p>
|
||||
<span>Due Date: 11/03/2021</span>
|
||||
</div>
|
||||
<div class="select-tab">
|
||||
<i class="fas fa-check"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="assignment-sub-tab">
|
||||
<div class="assignmnt-tab-head">
|
||||
<img src="<?= base_url(); ?>assets_student/images/chemistry.png">
|
||||
<h3>Chemistry</h3>
|
||||
</div>
|
||||
<div class="assignmt-detail">
|
||||
Lorem ipsum dolor in sit amet, consetetur sadip scing elitr, sed diam nonumy eirmod tempor of invidunt ut ipsum dolor sit amet, consetetur of a sadip scing elitr, sed diam nonumy fro all aeirmod tempor invidunt.
|
||||
</div>
|
||||
<div class="assignmt-bott">
|
||||
<p>By: E. Morris</p>
|
||||
<span>Due Date: 11/03/2021</span>
|
||||
</div>
|
||||
<div class="select-tab">
|
||||
<i class="fas fa-check"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="assignment-sub-tab">
|
||||
<div class="assignmnt-tab-head">
|
||||
<img src="<?= base_url(); ?>assets_student/images/biology.png">
|
||||
<h3>Biology</h3>
|
||||
</div>
|
||||
<div class="assignmt-detail">
|
||||
Lorem ipsum dolor in sit amet, consetetur sadip scing elitr, sed diam nonumy eirmod tempor of invidunt ut ipsum dolor sit amet, consetetur of a sadip scing elitr, sed diam nonumy fro all aeirmod tempor invidunt.
|
||||
</div>
|
||||
<div class="assignmt-bott">
|
||||
<p>By: E. Morris</p>
|
||||
<span>Due Date: 11/03/2021</span>
|
||||
</div>
|
||||
<div class="select-tab">
|
||||
<i class="fas fa-check"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="assignment-detail-main">
|
||||
<div class="assignment-detail">
|
||||
<div class="assignmt-detail-top">
|
||||
<div class="assignmt-sub-name">
|
||||
<h5>Physics</h5>
|
||||
<p>By: Charlotte B. Johnson</p>
|
||||
</div>
|
||||
<div class="assignmt-date">
|
||||
Due - 29/09/2020
|
||||
</div>
|
||||
</div>
|
||||
<div class="assignmt-sub-detail">
|
||||
<h4>Physics assignment essay on: DAMP AND MOULD GROWTH</h4>
|
||||
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est.</p>
|
||||
</div>
|
||||
<div class="assgnmt-upload">
|
||||
<div class="uploaded-assignmnts">
|
||||
<div class="uploaded-img" data-toggle="modal" data-target="#viewAssignment"><img src="<?= base_url(); ?>assets_student/images/syllabus-doc.png" id="upImage"></div>
|
||||
<div class="uploaded-img"></div>
|
||||
<div class="uploaded-img"></div>
|
||||
<div class="uploaded-img"></div>
|
||||
<div class="uploaded-img"></div>
|
||||
|
||||
</div>
|
||||
<div class="upload-btn-wrap">
|
||||
<button class="upload-btn"><span><i class="fas fa-cloud-upload-alt"></i></span>Upload Assignment</button>
|
||||
<input type="file" name="myfile" id="imgInp" />
|
||||
</div>
|
||||
<div class="upload-btn-wrap re-upload-btn">
|
||||
<button class="upload-btn"><span><i class="fas fa-cloud-upload-alt"></i></span>Re - Upload </button>
|
||||
<input type="file" name="myfile" id="imgInp"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="assignmt-remark">
|
||||
<div class="assignmt-remark-wrap">
|
||||
<div class="assignmt-remark-head">
|
||||
<h5>Remarks</h5><p>By:<span> Charlotte B. Johnson</span></p>
|
||||
</div>
|
||||
<div class="remark-detail">
|
||||
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
<div class="syllabus-modal assignment-modal">
|
||||
<div class="modal fade" id="viewAssignment" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<div class="owl-carousel slider">
|
||||
<div class="item active">
|
||||
<img src="<?= base_url(); ?>assets_student/images/syllabus-doc.png" alt="" />
|
||||
</div>
|
||||
<div class="item">
|
||||
<img src="<?= base_url(); ?>assets_student/images/syllabus-doc.png" alt="" />
|
||||
</div>
|
||||
<div class="item">
|
||||
<img src="<?= base_url(); ?>assets_student/images/syllabus-doc.png" alt="" />
|
||||
</div>
|
||||
<div class="item">
|
||||
<img src="<?= base_url(); ?>assets_student/images/syllabus-doc.png" alt="" />
|
||||
</div>
|
||||
<div class="item">
|
||||
<img src="<?= base_url(); ?>assets_student/images/syllabus-doc.png" alt="" />
|
||||
</div>
|
||||
<div class="item">
|
||||
<img src="<?= base_url(); ?>assets_student/images/syllabus-doc.png" alt="" />
|
||||
</div>
|
||||
<div class="item">
|
||||
<img src="<?= base_url(); ?>assets_student/images/syllabus-doc.png" alt="" />
|
||||
</div>
|
||||
<div class="item">
|
||||
<img src="<?= base_url(); ?>assets_student/images/syllabus-doc.png" alt="" />
|
||||
</div>
|
||||
<div class="item">
|
||||
<img src="<?= base_url(); ?>assets_student/images/syllabus-doc.png" alt="" />
|
||||
</div>
|
||||
<div class="item">
|
||||
<img src="<?= base_url(); ?>assets_student/images/syllabus-doc.png" alt="" />
|
||||
</div>
|
||||
<div class="item">
|
||||
<img src="<?= base_url(); ?>assets_student/images/syllabus-doc.png" alt="" />
|
||||
</div>
|
||||
<div class="item">
|
||||
<img src="<?= base_url(); ?>assets_student/images/syllabus-doc.png" alt="" />
|
||||
</div>
|
||||
<div class="item">
|
||||
<img src="<?= base_url(); ?>assets_student/images/syllabus-doc.png" alt="" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="down-btn-wrap">
|
||||
<div class="page-number">
|
||||
<div class="slider-counter"><div class="slider-no"></div><div class="tot-slider"></div>
|
||||
<span>Pages</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
80
application/views/student/my-calendar-old.php
Normal file
80
application/views/student/my-calendar-old.php
Normal file
@@ -0,0 +1,80 @@
|
||||
<main class="common_margin" id="main">
|
||||
<div class="main-wrap">
|
||||
<div class="calendar-section">
|
||||
<div class="calendar-section-wrap">
|
||||
<div class="calendar-main">
|
||||
<div class="class-head">
|
||||
<h3 class="common-heading">Calendar</h3>
|
||||
</div>
|
||||
<div class="calendar-cover" id="calendar">
|
||||
<div class="calendar-date-year">
|
||||
<img src="<?= base_url(); ?>assets_student/images/calendar2.png">
|
||||
</div>
|
||||
<div id="Datepicker1" onchange = "showsessions($(this).datepicker().val())"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="upcoming-section-wrap">
|
||||
<div class="class-head">
|
||||
<h3 class="common-heading"><span><?php echo date("d/m/Y"); ?></span></h3>
|
||||
</div>
|
||||
<div class="upcoming-cover">
|
||||
<?php if($student_sess != ''){ foreach($student_sess as $c) { ?>
|
||||
<div class="upcoming-tab">
|
||||
<div class="upcoming-sub-img"><img src="<?= base_url(); ?>assets_admin/images/icons/<?= $c['subject_icon']; ?>"></div>
|
||||
<div class="upcoming-subject">
|
||||
<h4><?php echo $c['subject_name']; ?></h4>
|
||||
<p>By:<span> <?php echo $c['teacher_name']; ?></span></p>
|
||||
</div>
|
||||
<?php
|
||||
$pday = date("l");
|
||||
$sessionDay = $c['day'];
|
||||
|
||||
$s = $c['start'];
|
||||
// $s = "15:03";
|
||||
$p = date("H:i");
|
||||
|
||||
$mins = (strtotime($s)-strtotime($p)) / 60;
|
||||
|
||||
$duration = $c['duration'];
|
||||
$end = date('H:i', strtotime($s) + ($duration * 60));
|
||||
|
||||
?>
|
||||
<div class="upcoming-date">
|
||||
<?php if(strtolower($pday) === strtolower($sessionDay) && abs($mins) <= 10)
|
||||
{ ?>
|
||||
<div class="my-class-btn-wrap"> <a href = "<?php echo $c['join_link']; ?>"> <button class="join-class-btn">Join Class</button></a></div>
|
||||
<?php } else { ?>
|
||||
<span><?php echo ucfirst($c['day']).', '.date('h:i a',strtotime($c['start'])); ?></span>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php }
|
||||
} else { ?>
|
||||
<div class="upcoming-tab">No Sessions scheduled </div>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<script>
|
||||
function showsessions(dateval){
|
||||
// alert(dateval);
|
||||
$.ajax({
|
||||
type : 'POST',
|
||||
url : "<?= base_url(); ?>Student/calenderSessions",
|
||||
data:{dateval:dateval},
|
||||
success:function(resposne){
|
||||
$('.upcoming-section-wrap').html(resposne);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
</script>
|
36
application/views/student/my-calendar-session.php
Normal file
36
application/views/student/my-calendar-session.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<div class="class-head">
|
||||
<h3 class="common-heading"><span><?php echo date('d/m/Y',strtotime($day)); ?></span></h3>
|
||||
</div>
|
||||
<div class="upcoming-cover">
|
||||
<?php if($student_sess != ''){ foreach($student_sess as $c) { ?>
|
||||
<div class="upcoming-tab">
|
||||
<div class="upcoming-sub-img"><img src="<?= base_url(); ?>assets_admin/images/icons/<?= $c['subject_icon']; ?>"></div>
|
||||
<div class="upcoming-subject">
|
||||
<h4><?php echo $c['subject_name']; ?></h4>
|
||||
<p>By:<span> <?php echo $c['teacher_name']; ?></span></p>
|
||||
</div>
|
||||
<div class="upcoming-date">
|
||||
<?php
|
||||
$pday = date("l");
|
||||
$sessionDay = $c['day'];
|
||||
|
||||
$s = $c['start'];
|
||||
// $s = "15:03";
|
||||
$p = date("H:i");
|
||||
|
||||
$mins = (strtotime($s)-strtotime($p)) / 60;
|
||||
|
||||
?>
|
||||
<?php if(strtolower($pday) === strtolower($sessionDay) && abs($mins) <= 10)
|
||||
{ ?>
|
||||
<div class="my-class-btn-wrap"> <a href = "<?php echo $c['join_link']; ?>" <button class="join-class-btn">Join Class</button></a></div>
|
||||
<?php } else { ?>
|
||||
<span><?php echo ucfirst($c['day']).', '.date('h:i a',strtotime($c['start'])); ?></span>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php }
|
||||
} else { ?>
|
||||
<div class="upcoming-tab">No Sessions scheduled </div>
|
||||
<?php } ?>
|
||||
</div>
|
110
application/views/student/my-calendar.php
Normal file
110
application/views/student/my-calendar.php
Normal file
@@ -0,0 +1,110 @@
|
||||
<main class="common_margin" id="main">
|
||||
<div class="main-wrap">
|
||||
<div class="calendar-section">
|
||||
<div class="calendar-section-wrap">
|
||||
<div class="calendar-main">
|
||||
<div class="class-head">
|
||||
<h3 class="common-heading">Calendar</h3>
|
||||
</div>
|
||||
|
||||
<div class="po-calendar">
|
||||
<input type="text" class="form-control" placeholder="Select a date" id="nepali-datepicker">
|
||||
<i class="fas fa-calendar-alt cal-icon"></i>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="upcoming-section-wrap">
|
||||
<div class="class-head">
|
||||
<h3 class="common-heading"><span><?php echo date("d/m/Y", strtotime($curr_date)); ?></span></h3>
|
||||
</div>
|
||||
<div class="upcoming-cover">
|
||||
|
||||
<?php if($subject_names){ ?>
|
||||
|
||||
<?php foreach ($subject_names as $key => $value) {
|
||||
|
||||
$pday = date("l");
|
||||
$sessionDay = $value['day'];
|
||||
|
||||
$s = $value['start'];
|
||||
// $s = "15:03";
|
||||
$p = date("H:i");
|
||||
|
||||
$mins = (strtotime($s)-strtotime($p)) / 60;
|
||||
|
||||
$duration = $value['duration'];
|
||||
$end = date('H:i', strtotime($s) + ($duration * 60));
|
||||
|
||||
$now = new Datetime("now");
|
||||
$begintime = new DateTime($s);
|
||||
$endtime = new DateTime($end);
|
||||
|
||||
$teacher_info = array_key_exists('teacher_name',$value) ? 'By: <span>'.$value["teacher_name"].'</span>' : 'Teacher not assigned';
|
||||
|
||||
?>
|
||||
|
||||
<div class="upcoming-tab">
|
||||
<div class="upcoming-sub-img"><img src="<?= base_url(); ?>assets_admin/images/icons/<?= $value["icon"] ?>"></div>
|
||||
<div class="upcoming-subject">
|
||||
<h4><?php echo $value['subject_name'] ?></h4>
|
||||
|
||||
<p class="class_tr_name"><?php echo $teacher_info ?></p>
|
||||
</div>
|
||||
<!-- <div class="upcoming-date">
|
||||
<span>Today, 11.00 am</span>
|
||||
</div> -->
|
||||
<div class="upcoming-date">
|
||||
<?php if(strtolower($pday) === strtolower($sessionDay) && ($now >= $begintime && $now <= $endtime))
|
||||
{ ?>
|
||||
<div class="my-class-btn-wrap"> <a target="_blank" href = "<?php echo $value['join_link']; ?>"> <button class="join-class-btn">Join Class</button></a></div>
|
||||
<?php } else { ?>
|
||||
<span><?php echo date('h:i a',strtotime($value['start'])); ?></span>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php }
|
||||
} else {
|
||||
echo '<div class="upcoming-tab">No Sessions scheduled </div>';
|
||||
} ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<script>
|
||||
|
||||
$('#nepali-datepicker').nepaliDatePicker({
|
||||
language : 'english',
|
||||
ndpYear: true,
|
||||
ndpMonth: true,
|
||||
ndpYearCount: 10,
|
||||
onChange: function(data) {
|
||||
console.log(data.bs)
|
||||
showsessions(data.bs);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
function showsessions(dateval){
|
||||
|
||||
$.ajax({
|
||||
type : 'POST',
|
||||
url : "<?= base_url(); ?>Student/ajax_get_sessions_from_date",
|
||||
data:{dateval:dateval},
|
||||
success:function(resposne){
|
||||
|
||||
if(resposne != 'failed'){
|
||||
$('.upcoming-section-wrap').html(resposne);
|
||||
} else {
|
||||
let msg = 'No classes scheduled for selected date';
|
||||
$('.upcoming-section-wrap').html(msg);
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
</script>
|
53
application/views/student/my-classes.php
Normal file
53
application/views/student/my-classes.php
Normal file
@@ -0,0 +1,53 @@
|
||||
|
||||
<main class="common_margin" id="main">
|
||||
<div class="main-wrap">
|
||||
<div class="classes-section">
|
||||
<div class="class-head">
|
||||
<h3 class="common-heading">Today's Classes</h3>
|
||||
|
||||
</div>
|
||||
<div class="class-section-main">
|
||||
<?php if (isset($subject_names) || !empty($subject_names)) { ?>
|
||||
<?php foreach ($subject_names as $key => $value) {?>
|
||||
|
||||
<div class="class-tab">
|
||||
<div class="class-tab-img">
|
||||
<?php if(array_key_exists("teacher_name",$value)) { ?>
|
||||
<img src="<?php echo base_url(); ?>assets_admin/images/teacher-profile/<?= $value['teacher_image']?>">
|
||||
<?php } else { ?>
|
||||
<img src="<?php echo base_url(); ?>assets_admin/images/teacher-profile/dummy-user.png">
|
||||
<?php } ?>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="class-tab-details">
|
||||
<?php if(array_key_exists("teacher_name",$value)) { ?>
|
||||
<h4> <?= $value['teacher_name'] ?> </h4>
|
||||
<?php } else {
|
||||
echo '<h4>Uknown Teacher</h4>';
|
||||
} ?>
|
||||
|
||||
<p title="math:Trigonometry"><?= $value['subject_name']?></p>
|
||||
<?php if($value['class_session'] == 'Active') { ?>
|
||||
<a target="_blank" href="<?= $value['join_link'] ?>" class="join-class-btn">Join Class</a>
|
||||
<?php } else { ?>
|
||||
<p><?= $value['class_time'] ?></p>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php } }else{?>
|
||||
|
||||
<h4 class="text-info mt-4 ml-3">No Class Assigned</h4>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="check-syllabus-btn">
|
||||
<a class="check-syllabus" href="<?= base_url(); ?>student/my-syllabus">
|
||||
<img src="<?php echo base_url(); ?>assets_student/images/syllabus.png">
|
||||
<h5>Check Syllabus</h5>
|
||||
</a>
|
||||
</div>
|
||||
</main>
|
68
application/views/student/my-course.php
Normal file
68
application/views/student/my-course.php
Normal file
@@ -0,0 +1,68 @@
|
||||
|
||||
<main class="common_margin" id="main">
|
||||
<div class="my-info-inner">
|
||||
<h5><strong>Course Details</strong></h5>
|
||||
<div class="my-info-wraper">
|
||||
<ul class="my-info-header">
|
||||
<li><a href="<?php echo base_url() ?>student/my-info">My Info</a></li>
|
||||
<li><a href="<?php echo base_url() ?>student/my-course">Course Details</a></li>
|
||||
<li><a href="<?php echo base_url() ?>student/my-payments">Fee & Payments</a></li>
|
||||
</ul>
|
||||
<div class="user-info-row-one">
|
||||
<?php if($student_exist) { ?>
|
||||
|
||||
<div class="user-info-one">
|
||||
<p>Student ID :</p>
|
||||
<p><?php echo $student['studentId'] ?></p>
|
||||
</div>
|
||||
<div class="user-info-one">
|
||||
<p>Batch :</p>
|
||||
<p><?php echo $startEndDate ?></p>
|
||||
</div>
|
||||
<div class="user-info-one">
|
||||
<p>Class :</p>
|
||||
<p><?php echo $course_subject[0]['classroom_name'] ?></p>
|
||||
</div>
|
||||
<div class="user-info-one">
|
||||
<p>Programme :</p>
|
||||
<p><?php echo $course_subject[0]['course_name'] ?></p>
|
||||
</div>
|
||||
<div class="user-info-one">
|
||||
<p>Subjects :</p>
|
||||
<ul class="sele-sub-opt" style="list-style-type: none;">
|
||||
<!-- <li>Subject 01</li>
|
||||
<li>Subject 02</li>
|
||||
<li>Subject 03</li>
|
||||
<li>Subject 04</li> -->
|
||||
<?php foreach ($course_subject as $key => $value) {
|
||||
echo "<li>$value[subject_name]</li>";
|
||||
} ?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<?php } else {
|
||||
echo 'Student has not been assigned to any batch or classroom';
|
||||
} ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<script>
|
||||
$("document").ready(function () {
|
||||
|
||||
$(".my-info-header li a").each(function(index,ele) {
|
||||
$(this).parent().removeClass("blue-line");
|
||||
|
||||
let thisEle = $(this).attr('href').split('/').pop();;
|
||||
|
||||
var current_path = window.location.pathname.split('/').pop();
|
||||
|
||||
if(thisEle == current_path) {
|
||||
$(this).parent().addClass("blue-line");
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
27
application/views/student/my-grades.php
Normal file
27
application/views/student/my-grades.php
Normal file
@@ -0,0 +1,27 @@
|
||||
|
||||
<main class="common_margin" id="main">
|
||||
<div class=" main-wrap">
|
||||
<div class="class-head">
|
||||
<h3 class="common-heading">My Grades</h3>
|
||||
</div>
|
||||
<div class="main-inner-content">
|
||||
<div class=" row grade-container-sec">
|
||||
<?php if (!empty($exam_details)) {
|
||||
foreach ($exam_details as $key => $value) {
|
||||
?>
|
||||
|
||||
<div class="my-grade-sec-one">
|
||||
<p><?= $value['e_name'] ?></p>
|
||||
<p><?= (isset($value['bs_date']) && !empty($value['bs_date'])) ? $value['bs_date'] : '' ?></p>
|
||||
<div class="grade-btn">
|
||||
<a href="<?= base_url(); ?>student/view-grade-detail/<?php echo $value['exam_id'] ?>"><input type="button" class="grade-inner-btn" value="View Details"></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php } }else{ ?>
|
||||
<h4 class="text-center text-success">No Data Found</h4>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
240
application/views/student/my-info.php
Normal file
240
application/views/student/my-info.php
Normal file
@@ -0,0 +1,240 @@
|
||||
<style>
|
||||
form label.error, #Nameerr {
|
||||
color : red;
|
||||
}
|
||||
.subject_l {
|
||||
width : 50%;
|
||||
}
|
||||
.con-pass {
|
||||
position: absolute;
|
||||
top: 8px;
|
||||
right: 8px;
|
||||
cursor: pointer;
|
||||
color: #878a8d;
|
||||
}
|
||||
.password-wrp {
|
||||
position: relative;
|
||||
}
|
||||
</style>
|
||||
<main class="common_margin" id="main">
|
||||
<div class="my-info-inner">
|
||||
<h3 class="common-heading"> My info</h3>
|
||||
<div class="my-info-wraper">
|
||||
<ul class="my-info-header">
|
||||
<li><a href="<?php echo base_url() ?>student/my-info">My Info</a></li>
|
||||
<li><a href="<?php echo base_url() ?>student/my-course">Course Details</a></li>
|
||||
<li><a href="<?php echo base_url() ?>student/my-payments">Fee & Payments</a></li>
|
||||
</ul>
|
||||
<div class="user-info-row-one mb-4">
|
||||
<div class="user-info- mb-4">
|
||||
<?php if (empty($result['photo'])) {
|
||||
if (strtolower($result['gender']) == 'female'){ ?>
|
||||
<img src="<?php echo base_url() ?>common_assets/female_image.jpg" class="img-fluid" style="max-width: 200px;">
|
||||
<?php } else { ?>
|
||||
<img src="<?php echo base_url() ?>common_assets/male_image.jpg" class="img-fluid" style="max-width: 200px;">
|
||||
<?php }
|
||||
} else if (file_exists('assets_student/application/'.$result['photo'])) { ?>
|
||||
<img src="<?php echo base_url() ?>assets_student/application/<?php echo $result['photo'] ?>" class="img-fluid" style="max-width: 200px;">
|
||||
<?php } else{
|
||||
if ($result['gender'] == 'Female' ) {?>
|
||||
<img src="<?php echo base_url() ?>common_assets/female_image.jpg" class="img-fluid" style="max-width: 200px;">
|
||||
<?php } else{
|
||||
?>
|
||||
<img src="<?php echo base_url() ?>common_assets/male_image.jpg" class="img-fluid" style="max-width: 200px;">
|
||||
<?php } } ?>
|
||||
</div>
|
||||
<div class="user-info-one ">
|
||||
<p>Roll Number :</p>
|
||||
<p><?php echo $result['roll_no'] ?></p>
|
||||
</div>
|
||||
<div class="user-info-one ">
|
||||
<p>Student ID :</p>
|
||||
<p><?php echo $result['studentId'] ?></p>
|
||||
</div>
|
||||
<div class="user-info-one">
|
||||
<p>Name :</p>
|
||||
<p><?php echo $result['name'] ?></p>
|
||||
</div>
|
||||
<div class="user-info-one">
|
||||
<p>Email :</p>
|
||||
<p><?php echo $result['email'] ?></p>
|
||||
</div>
|
||||
<div class="user-info-one">
|
||||
<p>Contact number :</p>
|
||||
<p><?php echo $result['mobile'] ?></p>
|
||||
</div>
|
||||
<div class="user-info-one">
|
||||
<p>Date of birth :</p>
|
||||
<p><?php echo $result['dob'] ?></p>
|
||||
</div>
|
||||
<div class="user-info-one">
|
||||
<p>Gender :</p>
|
||||
<p><?php echo $result['gender'] ?></p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<h5 class="emergency-heading">Emergency contacts</h5>
|
||||
<div class="user-info-row-two">
|
||||
|
||||
<div class="user-info-one">
|
||||
<p>Parent Name :</p>
|
||||
<p><?php echo $result['emergency_contact_name'] ?></p>
|
||||
</div>
|
||||
|
||||
<div class="user-info-one">
|
||||
<p>Contact number :</p>
|
||||
<p><?php echo $result['emergency_contact_number'] ?></p>
|
||||
</div>
|
||||
<div class="user-info-one">
|
||||
<p>Address :</p>
|
||||
<p><?php echo $result['address1'] ?></p>
|
||||
</div>
|
||||
<div class="user-info-one">
|
||||
<p>Parent/Guardian PAN :</p>
|
||||
<p><?php echo $result['parent_pan'] ?></p>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<h6><a href="javascript:void(0)" onclick="showPwd()">Reset password</a></h6>
|
||||
|
||||
<div class="reset-pwd-container mt-4" style="display:none">
|
||||
<form id="studentForm" class="w-50">
|
||||
<div class="form-group">
|
||||
<label for="">Password<span class="text-danger font-weight-bold">*</span></label>
|
||||
<div class="password-wrp">
|
||||
<input type="password" name="password" id="password" class="form-control" placeholder="Enter your password">
|
||||
<span class="passwrd-icon icon-y"><i class="far fa-eye"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="">Confirm Password<span class="text-danger font-weight-bold">*</span></label>
|
||||
<div class="password-wrp">
|
||||
<input type="password" id="confirm-password" name="confirm_password" class=" form-control" placeholder="Enter your password">
|
||||
<span class="con-pass icon-y eye-icon"><i class="far fa-eye"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary">Submit</button>
|
||||
|
||||
<div id="success-change" class="text-success mt-3" style="display:none">Password has been successfully updated</div>
|
||||
<div id="failure-change" class="text-danger mt-3" style="display:none">Password could not be updated. Please try again!</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<script>
|
||||
|
||||
$("document").ready(function () {
|
||||
|
||||
$(".my-info-header li a").each(function(index,ele) {
|
||||
$(this).parent().removeClass("blue-line");
|
||||
|
||||
let thisEle = $(this).attr('href').split('/').pop();;
|
||||
|
||||
var current_path = window.location.pathname.split('/').pop();
|
||||
|
||||
if(thisEle == current_path) {
|
||||
$(this).parent().addClass("blue-line");
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
$(".con-pass").click(function() {
|
||||
|
||||
$(".con-pass").toggleClass("icon-y");
|
||||
|
||||
var input = $("#confirm-password");
|
||||
if (input.attr("type") == "password") {
|
||||
input.attr("type", "text");
|
||||
} else {
|
||||
input.attr("type", "password");
|
||||
}
|
||||
});
|
||||
|
||||
const showPwd = function() {
|
||||
$('.reset-pwd-container').show();
|
||||
}
|
||||
|
||||
$(".passwrd-icon").click(function() {
|
||||
|
||||
$(".passwrd-icon").toggleClass("icon-y");
|
||||
|
||||
var input = $("#password");
|
||||
if (input.attr("type") == "password") {
|
||||
input.attr("type", "text");
|
||||
} else {
|
||||
input.attr("type", "password");
|
||||
}
|
||||
});
|
||||
|
||||
jQuery.validator.addMethod("passwordregex", function(value, element) {
|
||||
return this.optional( element ) || /^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$#!%*?&])[A-Za-z\d@$!#%*?&]{6,16}$/.test( value );
|
||||
}, 'Your password must be atleast 6 characters long, which inculdes one upper case, one numerical value and one special character.');
|
||||
|
||||
$("#studentForm").validate({
|
||||
ignore: ":hidden",
|
||||
rules: {
|
||||
|
||||
password : {
|
||||
required : true,
|
||||
minlength : 6,
|
||||
passwordregex:true
|
||||
},
|
||||
confirm_password : {
|
||||
required : true,
|
||||
minlength : 6,
|
||||
equalTo : '#password'
|
||||
},
|
||||
|
||||
|
||||
},
|
||||
messages: {
|
||||
|
||||
password : {
|
||||
required : 'Please enter a valid password',
|
||||
minlength : 'Password should be more than 6 characters'
|
||||
},
|
||||
confirm_password : {
|
||||
required : 'Please re-enter your password',
|
||||
equalTo : "Passwords doesn't match. Please provide a password same as above"
|
||||
},
|
||||
|
||||
},
|
||||
submitHandler: function(form) {
|
||||
|
||||
$('#success-change').hide();
|
||||
$('#failure-change').hide();
|
||||
|
||||
var inputValue = $("input[name='password']",form).val();
|
||||
|
||||
inputValue = inputValue.trim().replace(/\s\s+/g, ' ');
|
||||
|
||||
let flag = false;
|
||||
|
||||
$.ajax({
|
||||
url : '<?php echo base_url() ?>' +'student/ajax_update_student_password',
|
||||
data : {
|
||||
pwd : inputValue,
|
||||
},
|
||||
type : 'POST',
|
||||
async : false,
|
||||
success: function(data){
|
||||
console.log(data);
|
||||
if(data == 'success'){
|
||||
$('#success-change').show();
|
||||
} else {
|
||||
$('#failure-change').show();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
</script>
|
168
application/views/student/my-notifications.php
Normal file
168
application/views/student/my-notifications.php
Normal file
@@ -0,0 +1,168 @@
|
||||
|
||||
<style type="text/css">
|
||||
.w-95 {
|
||||
width: 95%;
|
||||
}
|
||||
</style>
|
||||
<main class="common_margin" id="main">
|
||||
<div class="main-inner-content w-95">
|
||||
<div class="class-head">
|
||||
<h3 class="common-heading">Notification</h3>
|
||||
</div>
|
||||
<div class=" row cal-assinment-new mb-5" style="margin: 0;">
|
||||
<div class="po-calendar d-inline mt-3 mb-3" style="width: 30%;">
|
||||
<input type="text" class="form-control" placeholder="Select a date" id="nepali-datepicker">
|
||||
<i class="fas fa-calendar-alt cal-icon"></i>
|
||||
</div>
|
||||
|
||||
<p class="mb-2">Note : To view different months notification, please select the required month and any day</p>
|
||||
<hr>
|
||||
</div>
|
||||
<div class="noti-wrap-sec">
|
||||
<div class="noti-wrap-sec-left" id="notifications-container">
|
||||
<?php if(isset($result)) {?>
|
||||
<?php foreach ($result as $key => $value) {
|
||||
$originalDate = $result[$key]['created_at'];
|
||||
$newDate = date("d-m-Y", strtotime($originalDate));
|
||||
$newTime = date("h:i", strtotime($originalDate));
|
||||
if($key == 0) {
|
||||
echo '<div class="content-exam-box-one notif-active">';
|
||||
} else {
|
||||
echo '<div class="content-exam-box-one">';
|
||||
}
|
||||
?>
|
||||
<div class="content-box-one-inner">
|
||||
<div class="content-right-side">
|
||||
<h6 class="exs-notif-title"><?php echo $result[$key]['notification_title']?></h6>
|
||||
</div>
|
||||
</div>
|
||||
<div class="content-mid-text">
|
||||
<p class="exs-notif-desc"><?php echo substr($result[$key]['description'], 0, 90)?></p>
|
||||
</div>
|
||||
<div class="content-last-sec">
|
||||
<li><b>Date : <span class="exs-notif-date"><?php echo $newDate ?></span></b></li>
|
||||
<li><b>Time : <span class="exs-notif-time"><?php echo $newTime ?></span></b></li>
|
||||
<li><input type="button" value="View details" onClick="displaySelectedNotification(event, <?php echo $result[$key]['notification_id']?>)" class="view-detail-notify"></li>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php }
|
||||
} else {
|
||||
echo '<p> There are no notifications for this month </p>';
|
||||
}?>
|
||||
|
||||
</div>
|
||||
<div class="noti-wrap-sec-right">
|
||||
<div class="notif_content">
|
||||
<?php if(isset($result)) { ?>
|
||||
<div class="noti-wrap-sec-right-inner">
|
||||
<?php
|
||||
|
||||
$originalDate = $result[0]['created_at'];
|
||||
$newDate = date("d-m-Y", strtotime($originalDate));
|
||||
$newTime = date("h:i", strtotime($originalDate));
|
||||
|
||||
?>
|
||||
|
||||
<p class="dis-notif-title"><?php echo $result[0]['notification_title']?></p>
|
||||
<p class="dis-notif-datetime"><?php echo $newDate ?>, <?php echo $newTime ?></p>
|
||||
</div>
|
||||
<div class="noti-para-sec">
|
||||
|
||||
<p class="dis-notif-desc"><?php echo $result[0]['description']?></p>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<script>
|
||||
// Notification Module
|
||||
|
||||
$('#nepali-datepicker').nepaliDatePicker({
|
||||
language : 'english',
|
||||
ndpYear: true,
|
||||
ndpMonth: true,
|
||||
ndpYearCount: 10,
|
||||
onChange: function(data) {
|
||||
console.log(typeof data.object.month)
|
||||
let month = data.object.month;
|
||||
let YM = data.object.year + '-' + month;
|
||||
monthNotification(YM);
|
||||
}
|
||||
});
|
||||
|
||||
const monthNotification = function(date) {
|
||||
let nContainer = $('#notifications-container');
|
||||
let dateArr = JSON.stringify(date.split('-'));
|
||||
$.ajax({
|
||||
url : 'ajax_displayNotificationByDate',
|
||||
data : {dateArr : dateArr},
|
||||
type : 'POST',
|
||||
async : false,
|
||||
success: function(data){
|
||||
let result = JSON.parse(data);
|
||||
|
||||
if(result == 'failed') {
|
||||
nContainer.empty();
|
||||
nContainer.append('<p> You have no Notification for this month </p>');
|
||||
|
||||
} else {
|
||||
|
||||
nContainer.empty();
|
||||
$.each(result, function(iresultndex, value) {
|
||||
nContainer.append(value);
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
const displaySelectedNotification = function(e, id) {
|
||||
|
||||
$('.content-exam-box-one').removeClass('notif-active');
|
||||
e = e || window.event;
|
||||
|
||||
var target = e.srcElement || e.target;
|
||||
|
||||
while (target && target.className !== "content-exam-box-one") {
|
||||
target = target.parentNode;
|
||||
}
|
||||
target.classList.add('notif-active');
|
||||
let notifDesc = '';
|
||||
$.ajax({
|
||||
url : 'ajax_getNotificationDescription',
|
||||
data : {notifid : id},
|
||||
type : 'POST',
|
||||
async : false,
|
||||
success: function(data){
|
||||
|
||||
|
||||
let result = JSON.parse(data);
|
||||
|
||||
if(result == 'failed') {
|
||||
let notifDesc = target.querySelector('.exs-notif-desc').textContent;
|
||||
} else {
|
||||
notifDesc = result['description'];
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
let notifTitle = target.querySelector('.exs-notif-title').textContent;
|
||||
|
||||
let notifTime = target.querySelector('.exs-notif-time').textContent;
|
||||
let notifDate = target.querySelector('.exs-notif-date').textContent;
|
||||
|
||||
$('.dis-notif-title').text(notifTitle);
|
||||
$('.dis-notif-desc').text(notifDesc);
|
||||
$('.dis-notif-datetime').text(notifDate + ', ' + notifTime);
|
||||
|
||||
|
||||
}
|
||||
|
||||
</script>
|
307
application/views/student/my-payments.php
Normal file
307
application/views/student/my-payments.php
Normal file
@@ -0,0 +1,307 @@
|
||||
<style type="text/css">
|
||||
.user-info-row-one {
|
||||
margin-bottom: 30px !important;
|
||||
}
|
||||
|
||||
.fee-title p {
|
||||
font-weight: 500;
|
||||
font-size: 20px;
|
||||
padding-bottom: 3px;
|
||||
border-bottom: 1px solid #c6c6c6;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.user-info-row-one {
|
||||
border-bottom: 3px solid #c6c6c6;
|
||||
}
|
||||
|
||||
.red-pay {
|
||||
background-color: red !important;
|
||||
}
|
||||
|
||||
table.dataTable thead th,
|
||||
table.dataTable thead td {
|
||||
padding: 10px 38px !important;
|
||||
}
|
||||
|
||||
table.dataTable th,
|
||||
table.dataTable tbody td {
|
||||
text-align: center !important;
|
||||
}
|
||||
|
||||
.unpaid-fee-container {
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
</style>
|
||||
<main class="common_margin" id="main">
|
||||
<div class="my-info-inner " style="width:100%">
|
||||
<h5><strong> Fee & Payments</strong></h5>
|
||||
<div class="my-info-wraper">
|
||||
<ul class="my-info-header">
|
||||
<li><a href="<?php echo base_url() ?>student/my-info">My Info</a></li>
|
||||
<li><a href="<?php echo base_url() ?>student/my-course">Course Details</a></li>
|
||||
<li><a href="<?php echo base_url() ?>student/my-payments">Fee & Payments</a></li>
|
||||
</ul>
|
||||
|
||||
<?php
|
||||
|
||||
if(empty($transactions)) {
|
||||
echo '<p>No Fees has been payed by the student\'s</p>';
|
||||
} else { ?>
|
||||
|
||||
<div class="recent-transaction mb-5">
|
||||
<h5 class="mb-3"> Recent Transactions</h5>
|
||||
|
||||
<div class="recent-table">
|
||||
<table class="tbl display table-responsive" style="width: 100% !important">
|
||||
<thead style="width: 100% !important">
|
||||
<tr>
|
||||
<th>Date</th>
|
||||
<th>Transaction ID</th>
|
||||
<th>Payment purpose</th>
|
||||
<th>Payment Status</th>
|
||||
<th>Paid Amount</th>
|
||||
<th>Discount/Scholarship</th>
|
||||
<th>Fine Amount</th>
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($transactions as $key => $value) {
|
||||
$paid = ((float)$value['payment_amt'] + (float)$value['fine_amount']) - (float)$value['deduction_amount'];
|
||||
?>
|
||||
<tr>
|
||||
<td><?= date('d-m-Y', strtotime($value['payment_date'])) ?></td>
|
||||
<td><?= $value['txn_id'] ?></td>
|
||||
<td><?= $value['fee_values'] ?><small>(<?= $value['payment_for'] ?>)</small></td>
|
||||
<td><?= $value['status'] ?></td>
|
||||
<td><?= number_format((float)$paid, 2, '.', ''); ?>
|
||||
</td>
|
||||
<td><?= number_format((float)$value['deduction_amount'], 2, '.', ''); ?>
|
||||
</td>
|
||||
<td><?= number_format((float)$value['fine_amount'], 2, '.', ''); ?></td>
|
||||
<td>
|
||||
<div class="sub_tabbtnsec">
|
||||
<div class="sub_viewbtn" title="View"><a target="_blank"
|
||||
href="<?= base_url(); ?>Student/invoice/<?= urlsafe_b64encode($student_info_array['studentId']) ?>/<?= urlsafe_b64encode($value['txn_id']) ?>/<?= urlsafe_b64encode(0) ?> "><i
|
||||
class="fa fa-eye" aria-hidden="true"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="my-info-inner">
|
||||
<div class="my-info-wraper">
|
||||
<?php foreach ($payments as $key => $value) {
|
||||
$flag = true;
|
||||
$installments = json_decode($value['payment_details']);
|
||||
?>
|
||||
<div>
|
||||
<div class="fee-title">
|
||||
<p><?= $value['feetype_name'] ?></p>
|
||||
<?php if ($key == 0) {?>
|
||||
<a href="<?php echo base_url()?>student/student_fees" class="float-right">
|
||||
<button class="btn " style="background-color: #032da1;color: #fff;">View Invoice</button>
|
||||
</a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="user-info-row-one">
|
||||
<div class="user-info-one-fees">
|
||||
<p>Programme Fee Total:</p>
|
||||
<p>N-<?= $value['amount'] ?></p>
|
||||
</div>
|
||||
<div class="user-info-one-fees">
|
||||
<p>Payment Option:</p>
|
||||
<p class="pay_op"><?=$value['payment_type_name'] ?></p>
|
||||
</div>
|
||||
|
||||
<div class="user-info-one-fees">
|
||||
<p>Payment Dates:</p>
|
||||
<ul class="sele-sub-opt-two" style="list-style-type: none;">
|
||||
|
||||
<?php foreach ($installments as $index => $ele) {
|
||||
$class = $ele->payment_status == 'yes' ? 'green-pay' : '';
|
||||
$due_date = date('Y-m-d', strtotime($ele->due_date));
|
||||
$current_date = date('Y-m-d');
|
||||
$payClass = $due_date > $current_date ? '' : 'red-pay';
|
||||
?>
|
||||
<li>
|
||||
<div class="outter-pay-wrap" style="display: flex;">
|
||||
<div class="outter-check-wrap">
|
||||
<?php if($ele->payment_status == 'yes') { ?>
|
||||
<div class="outter-check <?= $class ?> ">
|
||||
<i class="fa fa-check"></i>
|
||||
</div>
|
||||
<?php } else {
|
||||
if($due_date > $current_date) { ?>
|
||||
<div class="outter-check <?= $class ?> ">
|
||||
<i class="fa fa-check"></i>
|
||||
</div>
|
||||
<?php } else { ?>
|
||||
<div class="outter-check <?= $payClass ?> ">
|
||||
<i class="fas fa-times"></i>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
<?php } ?>
|
||||
</div>
|
||||
<p class="paid-para"><?= $ele->feeamount; ?></p>
|
||||
</div>
|
||||
<?php if($ele->payment_status == 'yes') { ?>
|
||||
<div class="paid-space" title="<?= date('d-m-Y', strtotime($ele->paid_date)) ?>"> Paid on:
|
||||
<?= date('d-m-Y', strtotime($ele->paid_date)) ?></div>
|
||||
<?php } else { ?>
|
||||
<div class="paid-space" title="<?= date('d-m-Y', strtotime($ele->due_date)) ?>"> Due on:
|
||||
<?= date('d-m-Y', strtotime($ele->due_date)) ?></div>
|
||||
<?php if($flag) {
|
||||
echo '<a href="'. base_url() .'/student/pay_unpaid_fees/'.$value['encrypted'].'" class="fees-pay-btn text-white">Pay Now</a>';
|
||||
$flag = false;
|
||||
} ?>
|
||||
<?php } ?>
|
||||
|
||||
</li>
|
||||
<?php } ?>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<?php }
|
||||
} ?>
|
||||
<div class="user-info-row-one">
|
||||
<!-- // NOT PAID INSTALLMENTS -->
|
||||
<?php if(isset($not_paid_fees)) {
|
||||
foreach ($not_paid_fees as $key => $value) {
|
||||
?>
|
||||
<div class="unpaid-fee-container">
|
||||
<div>
|
||||
<div class="fee-title">
|
||||
<p><?= $value['feetype_name'] ?></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="user-info-one-fees">
|
||||
<p>Programme Fee Total:</p>
|
||||
<p>N-<?= $value['amount'] ?></p>
|
||||
</div>
|
||||
|
||||
<?php if($value['single_payment'] == 'Yes') {
|
||||
$installments = json_decode($value['due_amount_date']);
|
||||
?>
|
||||
|
||||
<div class="user-info-one-fees">
|
||||
<p>Payment Option:</p>
|
||||
<p class="pay_op">Full Payment</p>
|
||||
</div>
|
||||
|
||||
<div class="user-info-one-fees mb-5">
|
||||
<p>Payment Dates:</p>
|
||||
<ul class="sele-sub-opt-two" style="list-style-type: none;">
|
||||
<?php foreach ($installments as $index => $val) {
|
||||
foreach ($val as $key2 => $ele) {
|
||||
$due_date = date('Y-m-d', strtotime($ele->due_date));
|
||||
$current_date = date('Y-m-d');
|
||||
$payClass = $due_date > $current_date ? '' : 'red-pay';
|
||||
?>
|
||||
<li>
|
||||
<div class="outter-pay-wrap" style="display: flex;">
|
||||
<div class="outter-check <?= $payClass ?>">
|
||||
<?php if($due_date > $current_date) {
|
||||
echo '<i class="fas fa-check"></i>';
|
||||
} else {
|
||||
echo '<i class="fas fa-times"></i>';
|
||||
} ?>
|
||||
</div>
|
||||
<p class="paid-para">N-<?=$ele->amount; ?></p>
|
||||
</div>
|
||||
|
||||
<div class="paid-space"> Due on:
|
||||
<?= date('d-m-Y', strtotime($ele->due_date)) ?></div>
|
||||
<a href="<?= base_url() ?>/student/pay_unpaid_fees/<?= $value['encrypted']?>"
|
||||
class="fees-pay-btn text-white">Pay Now</a>
|
||||
</li>
|
||||
<?php }
|
||||
} ?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<?php } else { ?>
|
||||
|
||||
<div class="multiple-fee-container">
|
||||
<label>Select Type of Payment</label>
|
||||
<div><?= $value['dropdown'] ?></div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<script>
|
||||
$("document").ready(function() {
|
||||
|
||||
//table js
|
||||
$('.tbl').DataTable({
|
||||
"lengthMenu": [
|
||||
[5, 10, 25, 50, -1],
|
||||
[5, 10, 25, 50, "All"]
|
||||
]
|
||||
});
|
||||
|
||||
$(".my-info-header li a").each(function(index, ele) {
|
||||
$(this).parent().removeClass("blue-line");
|
||||
|
||||
let thisEle = $(this).attr('href').split('/').pop();
|
||||
|
||||
var current_path = window.location.pathname.split('/').pop();
|
||||
|
||||
if (thisEle == current_path) {
|
||||
$(this).parent().addClass("blue-line");
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
const get_payment_details = function(ele, course_fee_id) {
|
||||
|
||||
|
||||
let payment_type_id = ele.value;
|
||||
let container = $(ele).parent().parent();
|
||||
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: "<?php echo base_url(); ?>student/ajax_get_fee_installments",
|
||||
data: {
|
||||
installment_type: payment_type_id,
|
||||
course_fee_id: course_fee_id
|
||||
},
|
||||
success: function(response) {
|
||||
$(container).empty();
|
||||
if (!response) {
|
||||
$(container).append(
|
||||
'<p style="color:red">Could Not fetch amount, Please try again later</p>');
|
||||
} else {
|
||||
$(container).append(response);
|
||||
}
|
||||
|
||||
},
|
||||
});
|
||||
|
||||
}
|
||||
</script>
|
0
application/views/student/my-profile.php
Normal file
0
application/views/student/my-profile.php
Normal file
112
application/views/student/my-syllabus.php
Normal file
112
application/views/student/my-syllabus.php
Normal file
@@ -0,0 +1,112 @@
|
||||
|
||||
<main class="common_margin" id="main">
|
||||
<div class="main-wrap">
|
||||
<div class="breadcrumb-section">
|
||||
<ol class="breadcrumb breadcrumb-back">
|
||||
<a href="<?= base_url(); ?>student/my-classes"> <li class="breadcrumb-item"> Back</li> </a>
|
||||
</ol>
|
||||
</div>
|
||||
<div class="syllabus-wrap">
|
||||
<div class="syllabus-head">
|
||||
<h3 class="common-heading">Syllabus</h3>
|
||||
</div>
|
||||
<div class="syllabus-main">
|
||||
<?php if(!empty($student_syllabus)){
|
||||
foreach ($student_syllabus as $value) { ?>
|
||||
<div class="syllabus-tab">
|
||||
<div class="syllabus-image"><img src="<?php echo base_url(); ?>assets_admin/images/icons/<?php echo $value['subject_icon']; ?>"></div>
|
||||
<h5><?php echo $value['subject_name']; ?></h5>
|
||||
<button class="join-class-btn" data-toggle="modal" data-target='<?php echo "#myModal_".$value['subject_syllabus_id']; ?>' >View</button>
|
||||
</div>
|
||||
|
||||
<?php }
|
||||
}else{ ?>
|
||||
<div class="syllabus-tab">
|
||||
|
||||
<h5> No Syllabus </h5>
|
||||
|
||||
</div>
|
||||
<?php }?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</main>
|
||||
<!-- Syllabus modal -->
|
||||
<div class="syllabus-modal">
|
||||
|
||||
<?php if(!empty($student_syllabus)){
|
||||
foreach ($student_syllabus as $value) {
|
||||
|
||||
?>
|
||||
|
||||
<div class="modal fade" id='<?php echo "myModal_".$value['subject_syllabus_id']; ?>' role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<div class="owl-carousel slider1">
|
||||
<div class="item active">
|
||||
<!-- <img src="<?php echo base_url().$value['syllabus'] ?>" alt="" /> -->
|
||||
<embed src="<?php echo base_url().$value['syllabus'] ?>" frameborder="0" width="100%" height="650px">
|
||||
</div>
|
||||
</div>
|
||||
<div class="down-btn-wrap">
|
||||
<div class="page-number">
|
||||
<div class="slider-counter1"><div class="slider-no1"></div><div class="tot-slider1"></div></div>
|
||||
<span>Pages</span>
|
||||
</div>
|
||||
<a href="<?php echo base_url().$value['syllabus'] ?>" download>
|
||||
<button type="button" class="dowload-sylla">Download Syllabus</button>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<!-- <div class="modal fade" id="myModal1" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<div class="owl-carousel slider1">
|
||||
<div class="item active">
|
||||
<img src="<?php echo base_url(); ?>assets_student/images/syllabus-doc.png" alt="" />
|
||||
</div>
|
||||
<div class="item">
|
||||
<img src="<?php echo base_url(); ?>assets_student/images/syllabus-doc.png" alt="" />
|
||||
</div>
|
||||
<div class="item">
|
||||
<img src="<?php echo base_url(); ?>assets_student/images/syllabus-doc.png" alt="" />
|
||||
</div>
|
||||
<div class="item">
|
||||
<img src="<?php echo base_url(); ?>assets_student/images/syllabus-doc.png" alt="" />
|
||||
</div>
|
||||
<div class="item">
|
||||
<img src="<?php echo base_url(); ?>assets_student/images/syllabus-doc.png" alt="" />
|
||||
</div>
|
||||
<div class="item">
|
||||
<img src="<?php echo base_url(); ?>assets_student/images/syllabus-doc.png" alt="" />
|
||||
</div>
|
||||
<div class="item">
|
||||
<img src="<?php echo base_url(); ?>assets_student/images/syllabus-doc.png" alt="" />
|
||||
</div>
|
||||
<div class="item">
|
||||
<img src="<?php echo base_url(); ?>assets_student/images/syllabus-doc.png" alt="" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="down-btn-wrap">
|
||||
<div class="page-number">
|
||||
<div class="slider-counter1"><div class="slider-no1"></div><div class="tot-slider1"></div></div>
|
||||
<span>Pages</span>
|
||||
</div>
|
||||
<button type="button" class="dowload-sylla">Download Syllabus</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div> -->
|
||||
</div>
|
||||
<script src="https://github.com/pipwerks/PDFObject/blob/master/pdfobject.min.js"></script>
|
124
application/views/student/my-tests-exams.php
Normal file
124
application/views/student/my-tests-exams.php
Normal file
@@ -0,0 +1,124 @@
|
||||
<style type="text/css">
|
||||
.content-last-sec li {
|
||||
list-style-type: none;
|
||||
color: #585469;
|
||||
font-size: 13px;
|
||||
width: 30%;
|
||||
}
|
||||
</style>
|
||||
<main class="common_margin" id="main">
|
||||
<div class="main-inner-content main-wrap">
|
||||
<div class="class-head">
|
||||
<h3 class="common-heading">Up coming Tests/Exams</h3>
|
||||
</div>
|
||||
<div class="content-box-scroll">
|
||||
<!--------------------exam -notification-box -->
|
||||
|
||||
<?php
|
||||
if (isset($exams_data) && !empty($exams_data)) {
|
||||
|
||||
foreach ($exams_data as $key => $value) {
|
||||
$st_date = new DateTime($value['exam_starttime']);
|
||||
$ed_date = new DateTime($value['exam_endtime']);
|
||||
$currentTime = new DateTime($nepali_curr_date);
|
||||
|
||||
if ($currentTime >= $st_date && $currentTime <= $ed_date) {
|
||||
$active = 1;
|
||||
}elseif($currentTime >= $ed_date){
|
||||
$active = 2;
|
||||
}else{
|
||||
$active = 0;
|
||||
}
|
||||
|
||||
$interval = $ed_date->diff($st_date);
|
||||
if ($interval->format('%H') == '' || $interval->format('%H') == 0) {
|
||||
$duration = $interval->format('%I min');
|
||||
}else{
|
||||
$duration = $interval->format(' %H hr %I min');
|
||||
}
|
||||
|
||||
?>
|
||||
<div class="content-exam-box-one">
|
||||
<div class="content-box-one-inner">
|
||||
<div class="content-right-side">
|
||||
<h6><?php echo $value['subject_name'] .' : '. $value['e_name'] ?> </h6>
|
||||
</div>
|
||||
<?php if ($active == 2 ) { ?>
|
||||
|
||||
<div class="content-left-side">
|
||||
<div class="blue-tick bg-success"><i class="fas fa-check"></i></div>
|
||||
</div>
|
||||
|
||||
<?php } else{
|
||||
if ($active == 2 ) { ?>
|
||||
<div class="content-left-side">
|
||||
<div class="blue-tick bg-success"><i class="fas fa-check"></i></div>
|
||||
</div>
|
||||
<?php } else{?>
|
||||
<div class="content-left-side">
|
||||
<div class="blue-tick"></div>
|
||||
</div>
|
||||
<?php } } ?>
|
||||
</div>
|
||||
|
||||
<div class="content-last-sec">
|
||||
<li><?php echo ($NDate == $value['exam_date'] ? 'Today - '. $value['exam_date'] : 'Date - '.$value['exam_date']) ?></li>
|
||||
<li>Time - <?php echo $st_date->format('H:i A'); ?></li>
|
||||
<li>Duration - <?php echo $duration ?></li>
|
||||
|
||||
<?php
|
||||
|
||||
if ($value['attempt'] == 'yes') {?>
|
||||
<li>
|
||||
<span class="font-weight-bold text-success "> Completed</span>
|
||||
</li>
|
||||
|
||||
<?php }else{
|
||||
if ($active == 1){
|
||||
|
||||
if ($value['total_marks'] == $value['counting_mark']) {
|
||||
|
||||
?>
|
||||
<li>
|
||||
<a href="<?= base_url() ?>student/view-test-detail/<?php echo $value['questions_id']; ?>"><input type="button" value="Start-exam" class="exam-last-sec-btn"></a>
|
||||
</li>
|
||||
<?php
|
||||
}else{?>
|
||||
|
||||
<li>
|
||||
<div class="text-danger font-weight-bold float-left">
|
||||
<p> Invalid Question Paper Contact Admin/Teacher</p>
|
||||
</div>
|
||||
</li>
|
||||
<?php }
|
||||
}elseif ($active == 2) { ?>
|
||||
|
||||
<li>
|
||||
<span class="font-weight-bold text-danger "> Finish Exam</span>
|
||||
</li>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
|
||||
<?php }?>
|
||||
</div>
|
||||
<div class="content-last-sec">
|
||||
<span style=" color: #585469;font-size: 13px;">Marks : <?php echo $value['counting_mark']; ?></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<?php } }else{ ?>
|
||||
|
||||
<div class="content-exam-box-one">
|
||||
<h4 class="text-center font-weight-bold text-info">
|
||||
No Up-coming Exam
|
||||
</h4>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
663
application/views/student/offline-admission.php
Normal file
663
application/views/student/offline-admission.php
Normal file
@@ -0,0 +1,663 @@
|
||||
<style>
|
||||
form#admission-register ul {
|
||||
background-color: transparent !important;
|
||||
border: none !important;
|
||||
border-bottom: 2px solid #b7b3b3 !important;
|
||||
list-style: none;
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
}
|
||||
|
||||
form#admission-register ul li {
|
||||
flex-basis: 25%;
|
||||
margin: 0 !important;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
form label.error,
|
||||
#secNameerr {
|
||||
color: red;
|
||||
font-size: 13px;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
input[type="date"]::-webkit-calendar-picker-indicator {
|
||||
right: 27px;
|
||||
}
|
||||
|
||||
.register-radio label {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.register-row {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
form#admission-register .ui-widget-header .ui-state-active {
|
||||
background-color: transparent !important;
|
||||
color: #032da1 !important;
|
||||
}
|
||||
|
||||
form#admission-register .ui-widget-header .ui-state-active a {
|
||||
color: #032da1;
|
||||
}
|
||||
|
||||
form#admission-register ul li a {
|
||||
background: none;
|
||||
color: #222;
|
||||
padding: 10px 15px;
|
||||
cursor: pointer;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
form#admission-register ul li.ui-state-active:after {
|
||||
position: absolute;
|
||||
content: "";
|
||||
left: 0;
|
||||
background: #032da1;
|
||||
right: 0;
|
||||
height: 4px;
|
||||
bottom: -1px;
|
||||
width: 96%;
|
||||
margin: auto;
|
||||
}
|
||||
</style>
|
||||
<script src="https://code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
|
||||
<div class="adm-cover">
|
||||
<header class="login-header">
|
||||
<div class="login-wrap">
|
||||
<div class="logo-wrap">
|
||||
<a href="<?php echo base_url() . $this->uri->segment(1); ?>"><img src="<?= base_url(); ?>common_assets/<?= $school_info['color_logo']; ?>"> </a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="header-menu-wrap">
|
||||
<div class="login-mob-menu"><i class="fas fa-bars"></i></div>
|
||||
<ul class="mob-menu">
|
||||
<li><a href="">About Us</a></li>
|
||||
<li><a href="">Contact Us</a></li>
|
||||
<li><a href="admission-process.html"><button class="join-class-btn">Admission Process ></button></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</header>
|
||||
<div class="admission-wrap">
|
||||
<div class="admission-cover">
|
||||
<div class="admission-head">
|
||||
<h3 class="common-heading">Application for Admission</h3>
|
||||
</div>
|
||||
<form id="admission-register" action="<?php echo base_url(); ?>Student/addedit_apllication" method="post" enctype="multipart/form-data">
|
||||
|
||||
<div class="tab-head" id="formtabs">
|
||||
<ul>
|
||||
<li class="tab-link" data-ref="enabled"><a href="#tab-1">Register</a> </li>
|
||||
<li class="tab-link" data-ref="disabled"><a href="#tab-2">Additional details</a></li>
|
||||
<li class="tab-link" data-ref="disabled"><a href="#tab-3">Documents</a> </li>
|
||||
<li class="tab-link" data-ref="disabled"><a href="#tab-4">Application fee</a> </li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
<div class="tab-content-wrap">
|
||||
|
||||
<div id="tab-1" class="tab-content current">
|
||||
<h4 class="adm-heading">Create your centralized account</h4>
|
||||
|
||||
<div class="register-form">
|
||||
|
||||
<div class="register-row">
|
||||
<input type="text" name="sfname" class="sfname" id="sfname" placeholder="First name" pattern="[a-zA-Z]+" />
|
||||
</div>
|
||||
|
||||
<div class="register-row">
|
||||
<input type="text" name="ssname" class="ssname" id="ssname" placeholder="Second name">
|
||||
</div>
|
||||
|
||||
<div class="register-row">
|
||||
<input type="text" name="semail" id="semail" class="semail" placeholder="Email Address">
|
||||
</div>
|
||||
|
||||
<div class="register-row">
|
||||
<input type="text" name="semailre" class="semailre" id="semailre" placeholder="Re-Enter your Email address">
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="register-row password-wrp">
|
||||
<input type="password" name="spaswd" class="spaswd" placeholder="Password" id="password1">
|
||||
<span class="passwrd-icon icon-y" id="p_icon1">
|
||||
<i class="far fa-eye"></i>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="register-row password-wrp">
|
||||
<input type="password" name="spaswdre" class="spaswdre" id="spaswdre" placeholder="Re-enter Password">
|
||||
<span class="passwrd-icon icon-y" id="p_icon2">
|
||||
<i class="far fa-eye"></i>
|
||||
</span>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="register-row">
|
||||
<input type="text" name="scontact" class="scontact" id="scontact" placeholder="Contact number">
|
||||
</div>
|
||||
|
||||
<div class="register-row">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-2 text-center" style="font-size: 14px;padding-top: 5px;">DOB</div>
|
||||
<div class="col-md-10">
|
||||
<input type="date" name="sdob" class="sdob" id="sdob" placeholder="dd">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="register-row">
|
||||
<div class="register-radio">
|
||||
<label for="Male"><input type="radio" id="Male" name="sgender" value="Male" checked> Male </label>
|
||||
</div>
|
||||
<div class="register-radio">
|
||||
<label for="Female"><input type="radio" id="Female" name="sgender" value="Female"> Female</label>
|
||||
</div>
|
||||
<div class="register-radio">
|
||||
<label for="Other"><input type="radio" id="Other" name="sgender" value="Other"> Other</label>
|
||||
</div>
|
||||
<label id="sgender-error"></label>
|
||||
</div>
|
||||
|
||||
<div class="register-btn">
|
||||
<a id="cont_1" type="button" class="text-white join-class-btn" href="#tab-2">Continue</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="tab-2" class="tab-content tab_2">
|
||||
<h4 class="adm-heading">Select Course</h4>
|
||||
<div class="register-form">
|
||||
|
||||
<div class="register-row">
|
||||
<select name="scourse" class="scourse" id="scourse">
|
||||
<option value="">Select Course</option>
|
||||
<?php foreach ($courses as $c) { ?>
|
||||
<option value="<?= $c['id'] ?>"><?= $c['course_name'] ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
<p id="course_error" class="d-none text-danger">Please Select Course </p>
|
||||
</div>
|
||||
<div class="register-row">
|
||||
<select name="sbatch" class="sbatch" id="sbatch">
|
||||
<option value="">Select Batch</option>
|
||||
<?php foreach ($batch as $c) { ?>
|
||||
<option value="<?= $c['id'] ?>"><?= $c['b_name'] ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<h4 class="adm-heading">Emergency Contact</h4>
|
||||
<div class="register-row">
|
||||
<input type="text" name="semfname" class="semfname" id="semfname" placeholder="Enter name">
|
||||
</div>
|
||||
<div class="register-row">
|
||||
<input type="text" name="semlname" class="semlname" id="semlname" placeholder="Last Name">
|
||||
</div>
|
||||
<div class="register-row">
|
||||
<input type="text" name="semphone" class="semphone" id="semphone" placeholder="Phone Number">
|
||||
</div>
|
||||
|
||||
<h4 class="adm-heading">Address</h4>
|
||||
<div class="register-row">
|
||||
<select name="scountry" class="scountry" id="scountry">
|
||||
<option value="">Country</option>
|
||||
<option value="India">India</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="register-row">
|
||||
<input type="text" name="sstate" class="sstate" id="sstate" placeholder="Provinces/state">
|
||||
</div>
|
||||
<div class="register-row">
|
||||
<input type="text" name="saddress1" class="saddress1" id="saddress1" placeholder="Address 1">
|
||||
</div>
|
||||
<div class="register-row">
|
||||
<input type="text" name="saddress2" class="saddress2" id="saddress2" placeholder="Address 2">
|
||||
</div>
|
||||
<div class="register-row">
|
||||
<input type="text" name="szipcode" class="szipcode" id="szipcode" placeholder="PMB / Zip code">
|
||||
</div>
|
||||
<div class="register-btn">
|
||||
<button class="join-class-btn" type="button" id="previous_1">Previous</button>
|
||||
<button class="join-class-btn" type="button" id="cont_2">Continue</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="tab-3" class="tab-content tab_3">
|
||||
<h4 class="adm-heading">Upload required document</h4>
|
||||
|
||||
<div class="upload-doc">
|
||||
<label>Passport size photo</label>
|
||||
<!-- <span id="uploaded-file"> </span> -->
|
||||
<div class="upload-doc-btn-wrap">
|
||||
<input type="file" name="photo" id="photo" name="No file uploaded" />
|
||||
<label for="photo" class="upload-btn" id="uploadBtn1">Upload</label>
|
||||
<label for="photo" class="upload-btn re-upload-btn" id="uploadBtn2">Re-Upload</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="upload-doc">
|
||||
<label>School certificate</label>
|
||||
<!-- <span id="uploaded-file"> </span> -->
|
||||
<div class="upload-doc-btn-wrap">
|
||||
<input type="file" name="school" id="school" name="No file uploaded" />
|
||||
<label for="school" class="upload-btn" id="uploadBtn3">Upload</label>
|
||||
<label for="school" class="upload-btn re-upload-btn" id="uploadBtn4">Re-Upload</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="upload-doc">
|
||||
<label>Exam Results</label>
|
||||
<!-- <span id="uploaded-file"> </span> -->
|
||||
<div class="upload-doc-btn-wrap">
|
||||
<input type="file" name="exam" id="exam" name="No file uploaded" />
|
||||
<label for="exam" class="upload-btn" id="uploadBtn5">Upload</label>
|
||||
<label for="exam" class="upload-btn re-upload-btn" id="uploadBtn6">Re-Upload</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="upload-doc">
|
||||
<label>Medical Certificate</label>
|
||||
<!-- <span id="uploaded-file"> </span> -->
|
||||
<div class="upload-doc-btn-wrap">
|
||||
<input type="file" name="medical" id="medical" name="No file uploaded" />
|
||||
<label for="medical" class="upload-btn" id="uploadBtn7">Upload</label>
|
||||
<label for="medical" class="upload-btn re-upload-btn" id="uploadBtn8">Re-Upload</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="register-btn">
|
||||
<button class="join-class-btn" type="button" id="previous_2">Previous</button>
|
||||
<button class="join-class-btn" type="button" id="cont_3">Continue</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="tab-4" class="tab-content">
|
||||
<div class="payment-cover">
|
||||
<!-- <div class="payment-left">
|
||||
<h4 class="adm-heading">Purpose of payment</h4>
|
||||
<div class="register-row">
|
||||
<select>
|
||||
<option>Select Purpose</option>
|
||||
<option>A</option>
|
||||
<option>B</option>
|
||||
<option>C</option>
|
||||
</select>
|
||||
</div>
|
||||
<h4 class="adm-heading">Select a payment method</h4>
|
||||
<div class="register-row">
|
||||
|
||||
</div>
|
||||
<h4 class="adm-heading">Purpose of payment</h4>
|
||||
<div class="register-row">
|
||||
<input type="text" name="" placeholder="Name on the Card">
|
||||
</div>
|
||||
<div class="register-row">
|
||||
<input type="number" name="" placeholder="16 Digits Card number">
|
||||
</div>
|
||||
<div class="register-row reg-date">
|
||||
<input type="number" name="" placeholder="mm">
|
||||
<input type="number" name="" placeholder="yyyy">
|
||||
</div>
|
||||
</div> -->
|
||||
<div class="payment-center">
|
||||
<h4 class="adm-heading">Price Details</h4>
|
||||
|
||||
<div class="register-row">
|
||||
<select name="payment_method" id="payment_method" class="form-control">
|
||||
<option>Select Purpose</option>
|
||||
<option value="offline">Offline Payment</option>
|
||||
<option value="online">Online Payment</option>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div id="fee-section">
|
||||
|
||||
</div>
|
||||
|
||||
<div id="total-amt" class="payment-row total-amt">
|
||||
<label>Total Amount:</label><span id="total-fee"></span>
|
||||
<input type="hidden" id="textbox-totalfee" name="amount" />
|
||||
</div>
|
||||
<div class="payment-btn">
|
||||
<button class="join-class-btn" data-toggle="modal" data-target="#paymentDone">Continue</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="payment-modal">
|
||||
<div class="modal fade" id="paymentDone" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<div class="payment-done-cover">
|
||||
<div class="payment-done-img"><i class="fas fa-check-circle"></i></div>
|
||||
<h3>Payment Successfull</h3>
|
||||
<p>Your Admission Procedures has been completed successfully you will get you're <strong>User ID & Password</strong> to your registered <strong>Email ID</strong> within <strong>24 Hrs.</strong></p>
|
||||
<a href="my-info-one.html"><button class="join-class-btn">Done</button></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div> -->
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!-- Javascript -->
|
||||
|
||||
<script>
|
||||
$("#formtabs").tabs({
|
||||
active: 0,
|
||||
beforeActivate: function(event, ui) {
|
||||
|
||||
let NewTabIndex = ui.newTab.index();
|
||||
let CurrentTabIndex = ui.oldTab.index();
|
||||
|
||||
if (NewTabIndex > (CurrentTabIndex + 1)) {
|
||||
console.log(ui.newTab.data('ref'));
|
||||
if (ui.newTab.data('ref') == 'enabled') {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
if (NewTabIndex < CurrentTabIndex) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if ($('#admission-register').valid()) {
|
||||
ui.newTab.attr("data-ref", "enabled");
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
function loadTab(id) {
|
||||
console.log('isdss asdasds asdasd');
|
||||
$("#formtabs").tabs({
|
||||
active: id
|
||||
})
|
||||
}
|
||||
|
||||
// First Tab Change
|
||||
$("#cont_1").click(function() {
|
||||
$("#formtabs").tabs("option", "active", 1);
|
||||
});
|
||||
$("#previous_1").click(function() {
|
||||
$("#formtabs").tabs("option", "active", 0);
|
||||
});
|
||||
// First Tab Change
|
||||
|
||||
// Second Tab Change
|
||||
$("#cont_2").click(function() {
|
||||
$("#formtabs").tabs("option", "active", 2);
|
||||
});
|
||||
$("#previous_2").click(function() {
|
||||
$("#formtabs").tabs("option", "active", 1);
|
||||
});
|
||||
// Second Tab Change
|
||||
|
||||
// Third Tab Change
|
||||
$("#cont_3").click(function() {
|
||||
$("#formtabs").tabs("option", "active", 3);
|
||||
});
|
||||
$("#previous_3").click(function() {
|
||||
$("#formtabs").tabs("option", "active", 2);
|
||||
});
|
||||
// Third Tab Change
|
||||
</script>
|
||||
|
||||
|
||||
<script>
|
||||
jQuery.validator.addMethod("fullnameregex", function(value, element) {
|
||||
return this.optional(element) || /^[a-zA-Z]{3,30}$/.test(value);
|
||||
}, 'Please enter alpha characters only ');
|
||||
|
||||
jQuery.validator.addMethod("passwordregex", function(value, element) {
|
||||
return this.optional(element) || /^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$#!%*?&])[A-Za-z\d@$!%*#?&]{6,16}$/.test(value);
|
||||
}, 'Your password must be atleast 6 characters long, which inculdes one upper case, one numerical value and one special character.');
|
||||
|
||||
jQuery.validator.addMethod("emailregex", function(value, element) {
|
||||
return this.optional(element) || /^[a-zA-Z0-9._-]+@[a-zA-Z0-9-]+\.[a-zA-Z.]{2,5}$/.test(value);
|
||||
}, 'Email Address is invalid: Please enter a valid email address.');
|
||||
|
||||
|
||||
jQuery.validator.addMethod("phonenumberregex", function(value, element) {
|
||||
return this.optional(element) || /^[0-9]{10,12}$/.test(value);
|
||||
}, 'Please enter a 10 digits vaild phone number.');
|
||||
|
||||
jQuery.validator.addMethod("zipregex", function(value, element) {
|
||||
return this.optional(element) || /^[0-9]{6}$/.test(value);
|
||||
}, 'Please enter 6 digits number: digits only allowed');
|
||||
|
||||
jQuery.validator.addMethod("genral_regex", function(value, element) {
|
||||
return this.optional(element) || /^[a-zA-Z -#]{1,50}$/.test(value);
|
||||
}, 'Please enter alpha characters only');
|
||||
|
||||
var v = $("#admission-register").validate({
|
||||
|
||||
ignore: ':hidden',
|
||||
|
||||
rules: {
|
||||
sfname: {
|
||||
required: true,
|
||||
minlength: 3,
|
||||
maxlength: 30,
|
||||
fullnameregex: true,
|
||||
},
|
||||
ssname: {
|
||||
required: true,
|
||||
minlength: 1,
|
||||
genral_regex: true
|
||||
},
|
||||
semail: {
|
||||
required: true,
|
||||
email: true,
|
||||
emailregex: true
|
||||
},
|
||||
semailre: {
|
||||
required: true,
|
||||
equalTo: '[name="semail"]'
|
||||
},
|
||||
spaswd: {
|
||||
required: true,
|
||||
minlength: 6,
|
||||
maxlength: 12,
|
||||
passwordregex: true
|
||||
},
|
||||
spaswdre: {
|
||||
required: true,
|
||||
equalTo: '[name="spaswd"]'
|
||||
},
|
||||
scontact: {
|
||||
required: true,
|
||||
minlength: 10,
|
||||
maxlength: 10,
|
||||
phonenumberregex: true
|
||||
},
|
||||
sdob: "required",
|
||||
sgender: {
|
||||
required: true
|
||||
},
|
||||
scourse: {
|
||||
required: true
|
||||
},
|
||||
sbatch: {
|
||||
required: true
|
||||
},
|
||||
semfname: {
|
||||
required: true,
|
||||
genral_regex: true
|
||||
},
|
||||
semlname: {
|
||||
required: true,
|
||||
minlength: 1,
|
||||
genral_regex: true
|
||||
},
|
||||
semphone: {
|
||||
required: true,
|
||||
minlength: 10,
|
||||
maxlength: 10,
|
||||
phonenumberregex: true
|
||||
},
|
||||
scountry: {
|
||||
required: true,
|
||||
genral_regex: true
|
||||
|
||||
},
|
||||
sstate: {
|
||||
required: true,
|
||||
genral_regex: true
|
||||
},
|
||||
saddress1: {
|
||||
required: true
|
||||
},
|
||||
szipcode: {
|
||||
required: true,
|
||||
zipregex: true
|
||||
},
|
||||
school: {
|
||||
required: true,
|
||||
},
|
||||
photo: {
|
||||
required: true,
|
||||
},
|
||||
exam: {
|
||||
required: true,
|
||||
},
|
||||
medical: {
|
||||
required: true,
|
||||
},
|
||||
amount: {
|
||||
required: true
|
||||
}
|
||||
|
||||
|
||||
},
|
||||
messages: {
|
||||
semailre: {
|
||||
required: "Enter your Email",
|
||||
equalTo: "Please enter the same email address again.",
|
||||
},
|
||||
spaswdre: {
|
||||
equalTo: "Please enter the same password again.",
|
||||
},
|
||||
semphone: {
|
||||
minlength: "Please Enter a 10 digits valid phone Number",
|
||||
maxlength: "Please Enter a 10 digits valid phone Number",
|
||||
|
||||
},
|
||||
scontact: {
|
||||
minlength: "Please Enter a 10 digits valid phone Number",
|
||||
maxlength: "Please Enter a 10 digits valid phone Number",
|
||||
|
||||
},
|
||||
|
||||
|
||||
},
|
||||
submitHandler: function(form) {
|
||||
|
||||
form.submit();
|
||||
|
||||
},
|
||||
highlight: function(element, errorClass) {
|
||||
|
||||
window.scrollTo(0, 0);
|
||||
|
||||
},
|
||||
unhighlight: function(element, errorClass) {
|
||||
|
||||
},
|
||||
|
||||
});
|
||||
</script>
|
||||
<script>
|
||||
$("#p_icon1").click(function() {
|
||||
|
||||
$("#p_icon1").toggleClass("icon-y");
|
||||
|
||||
var input = $("#password1");
|
||||
if (input.attr("type") == "password") {
|
||||
input.attr("type", "text");
|
||||
} else {
|
||||
input.attr("type", "password");
|
||||
}
|
||||
});
|
||||
$("#p_icon2").click(function() {
|
||||
|
||||
$("#p_icon2").toggleClass("icon-y");
|
||||
|
||||
var input = $("#spaswdre");
|
||||
if (input.attr("type") == "password") {
|
||||
input.attr("type", "text");
|
||||
} else {
|
||||
input.attr("type", "password");
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
$('#sbatch').change(function() {
|
||||
var sbatch = $(this).val();
|
||||
var scourse = $('#scourse option:selected').val();
|
||||
// alert(scourse);
|
||||
var div_data = '';
|
||||
var total_fee = 0;
|
||||
$('#fee-section').html("");
|
||||
$('#total-fee').text();
|
||||
$('#textbox-totalfee').val('');
|
||||
if (scourse != '' && scourse != 0) {
|
||||
$('#course_error').addClass("d-none");
|
||||
$.ajax({
|
||||
url: "<?php echo base_url(); ?>Student/get_applicationfee",
|
||||
method: "post",
|
||||
data: {
|
||||
batch_id: sbatch,
|
||||
course_id: scourse
|
||||
},
|
||||
dataType: "json",
|
||||
success: function(data) {
|
||||
console.log(data);
|
||||
if (data != 0) {
|
||||
total_fee = (data.amount != '') ? data.amount : 0;
|
||||
div_data += '<div class="payment-row"><label>Application Fee:</label><span>' + data.amount + '</span></div>';
|
||||
$('#total-fee').text(total_fee);
|
||||
|
||||
$('#textbox-totalfee').val(total_fee);
|
||||
} else {
|
||||
div_data += '<div class="payment-row"><label class="text-danger"> Application Fee Not Found </label></div>';
|
||||
$('#total-fee').text(total_fee);
|
||||
$('#textbox-totalfee').val('');
|
||||
}
|
||||
$('#fee-section').append(div_data);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
$('#course_error').removeClass("d-none");
|
||||
}
|
||||
});
|
||||
</script>
|
14
application/views/student/payment-success-modal.php
Normal file
14
application/views/student/payment-success-modal.php
Normal file
@@ -0,0 +1,14 @@
|
||||
|
||||
<div class="payment-moal-cover">
|
||||
<div class="payment-modal">
|
||||
<div class="payment-modal-content">
|
||||
<button type="button" class="close">×</button>
|
||||
<div class="payment-done-cover">
|
||||
<div class="payment-done-img"><i class="fas fa-check-circle"></i></div>
|
||||
<h3>Payment Successfull</h3>
|
||||
<p>Your Admission Procedures has been completed successfully you will get you're <strong>User ID & Password</strong> to your registered <strong>Email ID</strong> within <strong>24 Hrs.</strong></p>
|
||||
<a href="<?php echo base_url(); ?>Student"><button class="join-class-btn" >Done</button></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
807
application/views/student/question-paper.php
Normal file
807
application/views/student/question-paper.php
Normal file
@@ -0,0 +1,807 @@
|
||||
<style type="text/css">
|
||||
.invisible {
|
||||
display: none;
|
||||
}
|
||||
.exmqus_btnblock{
|
||||
margin-inline: auto;
|
||||
}
|
||||
</style>
|
||||
<main class="common_margin" id="main">
|
||||
<div class=" main-inner-content main-wrap">
|
||||
<div class="main-inner-content">
|
||||
<!------test/exam page start------>
|
||||
<div class="exm_mainblock">
|
||||
<div class="exmqus_inner">
|
||||
<div class="exmdiv_sec">
|
||||
<div class="exm_block">
|
||||
<div class="exmqus_header">
|
||||
<div class="exmqusheader_l">
|
||||
<div id="exam-name" class="exmqus_headerheading"></div>
|
||||
</div>
|
||||
<div class="exmqusheader_r">
|
||||
|
||||
<div id="pagination-num" class="exmqus_headerqus"></div>
|
||||
<div class="exmqus_headertym"></div>
|
||||
<div id="marks_per_question" style="margin-left:30px;font-size: 12px;font-weight: 600;"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="exm_scrollsec">
|
||||
<div class="exm_qusblock">
|
||||
<div id="ques-num" class="exmqus"></div>
|
||||
<div id="ques-body" class="exmqus_detail"></div>
|
||||
</div>
|
||||
<div class="img-block">
|
||||
|
||||
</div>
|
||||
<div class="exm_ansblock">
|
||||
<div class="exm_anshead">Please Answer Your Question </div>
|
||||
<div class="exmradiobtn">
|
||||
<input type="radio" id="r1" value="A" name="ans" class="radio-ans" aria-label="Single radio One">
|
||||
<label id="a1"><span>A</span></label>
|
||||
</div>
|
||||
<div class="exmradiobtn">
|
||||
<input type="radio" id="r2" value="B" name="ans" class="radio-ans" aria-label="Single radio One">
|
||||
<label id="a2"><span>B</span></label>
|
||||
</div>
|
||||
<div class="exmradiobtn">
|
||||
<input type="radio" id="r3" value="C" name="ans" class="radio-ans" aria-label="Single radio One">
|
||||
<label id="a3"><span>C</span></label>
|
||||
</div>
|
||||
<div class="exmradiobtn">
|
||||
<input type="radio" id="r4" value="D" name="ans" class="radio-ans" aria-label="Single radio One">
|
||||
<label id="a4"><span>D</span></label>
|
||||
</div>
|
||||
<div class="exmradiobtn">
|
||||
<input type="radio" id="tf1" value="1" name="anss" class="radio-ans" aria-label="Single radio One">
|
||||
<label id="t1"><span>True</span></label>
|
||||
</div>
|
||||
<div class="exmradiobtn">
|
||||
<input type="radio" id="tf2" value="0" name="anss" class="radio-ans" aria-label="Single radio One">
|
||||
<label id="t2"><span>False</span></label>
|
||||
</div>
|
||||
<div class="txtarea">
|
||||
<textarea id="sa" name="sa" class="form-control" rows="4"></textarea>
|
||||
</div>
|
||||
<div class="txtarea">
|
||||
<textarea id="la" name="la" class="form-control" rows="6"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="exmqus_btnsec">
|
||||
<div class="exmqus_btnblock">
|
||||
<button id="btn-prev" type="button" class="exm_prebtn" >Previous question</button>
|
||||
|
||||
|
||||
<button id="btn-next" type="button" class="exm_nxtbtn">Next question</button>
|
||||
|
||||
<button id="btn-finish" type="button" class="exm_prevbtns finishexambtn">Submit</button>
|
||||
</div>
|
||||
<!-- <div class="exmqus_skip"><i class="fa fa-angle-right" aria-hidden="true"></i><i class="fa fa-angle-right" aria-hidden="true"></i>Skip for now</div> -->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="exm_pagination">
|
||||
<div class="exm_paginationsec">
|
||||
<div id="blocks" class="exm_pagination_top">
|
||||
|
||||
</div>
|
||||
<div id="pagination-btns" class="exm_pagination_btm">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!------test/exam page end------>
|
||||
|
||||
<!-- model for click -->
|
||||
<div class="viewDoc delete-modal-wrap" >
|
||||
<div class="modal fade" id="submitModal" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<div class="delete-modal">
|
||||
<i class="fas fa-exclamation-circle"></i>
|
||||
<input type="hidden" id="sdid" />
|
||||
<h4 >Are you sure?</h4>
|
||||
<p>Are you sure you want to submit the record?</p>
|
||||
<div class="delete-modal-btn">
|
||||
<button type="button" class="subject_addbtn subject_addbtn_green btn_submit_answer" >Submit</button>
|
||||
<button type="button" class="subject_addbtn subject_addbtn_cancel" data-dismiss="modal">Cancel</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal fade" id="timeUpModal" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<button type="button" class="close btn_submit_answer" data-dismiss="modal">×</button>
|
||||
<div class="delete-modal">
|
||||
<i class="fas fa-exclamation-circle"></i>
|
||||
<input type="hidden" id="sdid" />
|
||||
<h4>Time up !!!</h4>
|
||||
<p>Thank you</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<!-- Live exam logics -->
|
||||
<script type="text/javascript">
|
||||
|
||||
function displayFormat(qtype)
|
||||
{
|
||||
|
||||
if(qtype=='2')
|
||||
{
|
||||
$('#a1').css('display','none');
|
||||
$('#a2').css('display','none');
|
||||
$('#a3').css('display','none');
|
||||
$('#a4').css('display','none');
|
||||
$('#t1').css('display','block');
|
||||
$('#t2').css('display','block');
|
||||
$('#sa').css('display','none');
|
||||
$('#la').css('display','none');
|
||||
}else if(qtype=='1')
|
||||
{
|
||||
$('#a1').css('display','block');
|
||||
$('#a2').css('display','block');
|
||||
$('#a3').css('display','block');
|
||||
$('#a4').css('display','block');
|
||||
$('#t1').css('display','none');
|
||||
$('#t2').css('display','none');
|
||||
$('#sa').css('display','none');
|
||||
$('#la').css('display','none');
|
||||
}else if(qtype=='3')
|
||||
{
|
||||
$('#a1').css('display','none');
|
||||
$('#a2').css('display','none');
|
||||
$('#a3').css('display','none');
|
||||
$('#a4').css('display','none');
|
||||
$('#t1').css('display','none');
|
||||
$('#t2').css('display','none');
|
||||
$('#sa').css('display','block');
|
||||
$('#la').css('display','none');
|
||||
}else if(qtype=='4')
|
||||
{
|
||||
$('#a1').css('display','none');
|
||||
$('#a2').css('display','none');
|
||||
$('#a3').css('display','none');
|
||||
$('#a4').css('display','none');
|
||||
$('#t1').css('display','none');
|
||||
$('#t2').css('display','none');
|
||||
$('#sa').css('display','none');
|
||||
$('#la').css('display','block');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
$(document).ready(function(){
|
||||
|
||||
var my_id = '<?php echo $student_id; ?>';
|
||||
var arr_ques='';
|
||||
var test_id = '<?= $exam_question_Id; ?>';
|
||||
var s_date,e_date,msec ;
|
||||
$.post(
|
||||
"<?= base_url(); ?>student/getAllQues",
|
||||
{ test_id: test_id },
|
||||
function(data)
|
||||
{
|
||||
arr_ques = JSON.parse(data);
|
||||
arr_ans = [];
|
||||
// console.log(arr_ques);
|
||||
|
||||
for(var i=0;i<arr_ques.length;i++)
|
||||
{
|
||||
arr_ans['a_'+i] = '';
|
||||
}
|
||||
|
||||
|
||||
//setting initial questions
|
||||
$('#exam-name').html( arr_ques[0].subject_name +' - '+ arr_ques[0].e_name);
|
||||
$('#marks_per_question').html(arr_ques[0].marks +' Mark');
|
||||
$('#pagination-num').html('1/'+arr_ques.length);
|
||||
$('#ques-num').html('1: ');
|
||||
$('#ques-body').html(arr_ques[0].question_name);
|
||||
|
||||
|
||||
$('#a1').html(arr_ques[0].option_a);
|
||||
$('#a2').html(arr_ques[0].option_b);
|
||||
$('#a3').html(arr_ques[0].option_c);
|
||||
$('#a4').html(arr_ques[0].option_d);
|
||||
if (arr_ques[0].image != "") {
|
||||
var img = '<img src="<?php echo base_url() ?>'+ arr_ques[0].image +'" width="120" height="120" class="my-3">';
|
||||
$('.img-block').html(img);
|
||||
}
|
||||
displayFormat(arr_ques[0].question_type_id);
|
||||
|
||||
|
||||
|
||||
//setting initial paginations - blocks
|
||||
var counter = arr_ques.length;
|
||||
var i=0;
|
||||
var r1=1;
|
||||
var r2=10;
|
||||
while(counter>0)
|
||||
{
|
||||
i++;
|
||||
if(counter<=10)
|
||||
{
|
||||
if(i==1)
|
||||
{
|
||||
$('#blocks').append('<div id="block_'+i+'" class="exm_pagination_block exm_pagination_active">'+r1+'-'+arr_ques.length+'</div>');
|
||||
}
|
||||
else
|
||||
{
|
||||
$('#blocks').append('<div id="block_'+i+'" class="exm_pagination_block">'+r1+'-'+arr_ques.length+'</div>');
|
||||
}
|
||||
counter-=10;
|
||||
}
|
||||
else
|
||||
{
|
||||
if(i==1)
|
||||
{
|
||||
$('#blocks').append('<div id="block_'+i+'" class="exm_pagination_block exm_pagination_active">'+r1+'-'+r2+'</div>');
|
||||
}
|
||||
else
|
||||
{
|
||||
$('#blocks').append('<div id="block_'+i+'" class="exm_pagination_block">'+r1+'-'+r2+'</div>');
|
||||
}
|
||||
counter-=10;
|
||||
r1+=10;
|
||||
r2+=10;
|
||||
}
|
||||
}
|
||||
|
||||
//setting initial paginations - pagination btns
|
||||
var r1=1;
|
||||
var r2=10;
|
||||
if(arr_ques.length<=10)
|
||||
{
|
||||
r2=arr_ques.length;
|
||||
}
|
||||
for(i=1;i<=arr_ques.length;i++)
|
||||
{
|
||||
if(i==1)
|
||||
{
|
||||
$('#pagination-btns').append('<div id="page_'+i+'" class="exm_pagination_no exm_pagination_noactive">'+i+'</div>');
|
||||
}
|
||||
else
|
||||
{
|
||||
if(i>=r1 && i<=r2)
|
||||
{
|
||||
$('#pagination-btns').append('<div id="page_'+i+'" class="exm_pagination_no">'+i+'</div>');
|
||||
}
|
||||
else
|
||||
{
|
||||
$('#pagination-btns').append('<div id="page_'+i+'" class="exm_pagination_no invisible">'+i+'</div>');
|
||||
}
|
||||
}
|
||||
}
|
||||
$('#btn-finish').css('display','none');
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
|
||||
// Previous button logic
|
||||
$('#btn-prev').click(function(){
|
||||
if($('#r1').is(':checked') || $('#r2').is(':checked') || $('#r3').is(':checked') || $('#r4').is(':checked') || $('#tf1').is(':checked') || $('#tf2').is(':checked') || $('#sa').val() !='' || $('#la').val() !='')
|
||||
{
|
||||
var current_ques_num = parseInt($('.exm_pagination_noactive').html());
|
||||
var next_ques_num = parseInt(current_ques_num) - parseInt(1);
|
||||
|
||||
if(arr_ques[next_ques_num].question_type_id=='1')
|
||||
{
|
||||
var ans = $('input[name="ans"]:checked').val();
|
||||
}else if(arr_ques[next_ques_num].question_type_id=='2'){
|
||||
var ans = $('input[name="anss"]:checked').val();
|
||||
}else if(arr_ques[next_ques_num].question_type_id=='3') {
|
||||
var ans = $('#sa').val();
|
||||
}else if(arr_ques[next_ques_num].question_type_id=='4') {
|
||||
var ans = $('#la').val();
|
||||
}
|
||||
|
||||
// store answer in answer array
|
||||
|
||||
if (next_ques_num <= 0) {
|
||||
next_ques_num = arr_ques.length;
|
||||
}
|
||||
|
||||
arr_ans[current_ques_num-1] = ans;
|
||||
|
||||
$('.exm_pagination_no').removeClass('exm_pagination_noactive');
|
||||
$('#page_'+next_ques_num).addClass('exm_pagination_noactive');
|
||||
|
||||
//Setting up question & options
|
||||
$('#exam-name').html(arr_ques[next_ques_num-1].e_name);
|
||||
$('#marks_per_question').html(arr_ques[next_ques_num-1].marks +' Mark');
|
||||
$('#pagination-num').html(next_ques_num+'/'+arr_ques.length);
|
||||
$('#ques-num').html(next_ques_num+': ');
|
||||
$('#ques-body').html(arr_ques[next_ques_num-1].question_name);
|
||||
$('#a1').html(arr_ques[next_ques_num-1].option_a);
|
||||
$('#a2').html(arr_ques[next_ques_num-1].option_b);
|
||||
$('#a3').html(arr_ques[next_ques_num-1].option_c);
|
||||
$('#a4').html(arr_ques[next_ques_num-1].option_d);
|
||||
|
||||
if (arr_ques[next_ques_num-1].image != "") {
|
||||
$('.img-block').show();
|
||||
var img = '<img src="<?php echo base_url() ?>'+ arr_ques[next_ques_num-1].image +'" width="120" height="120" class="my-3">';
|
||||
$('.img-block').html(img);
|
||||
}else{
|
||||
$('.img-block').hide();
|
||||
}
|
||||
|
||||
displayFormat(arr_ques[next_ques_num-1].question_type_id);
|
||||
|
||||
//Check for checked radios
|
||||
if(typeof arr_ans[next_ques_num-1]!=='undefined')
|
||||
{
|
||||
if(arr_ans[next_ques_num-1]=='A')
|
||||
{
|
||||
$('#r1').prop('checked',true);
|
||||
}
|
||||
else if(arr_ans[next_ques_num-1]=='B')
|
||||
{
|
||||
$('#r2').prop('checked',true);
|
||||
}
|
||||
else if(arr_ans[next_ques_num-1]=='C')
|
||||
{
|
||||
$('#r3').prop('checked',true);
|
||||
}
|
||||
else if(arr_ans[next_ques_num-1]=='D')
|
||||
{
|
||||
$('#r4').prop('checked',true);
|
||||
}
|
||||
else if(arr_ans[next_ques_num-1]=='1')
|
||||
{
|
||||
$('#tf1').prop('checked',true);
|
||||
}
|
||||
else if(arr_ans[next_ques_num-1]=='0')
|
||||
{
|
||||
$('#tf2').prop('checked',true);
|
||||
}
|
||||
else if(arr_ques[next_ques_num-1].question_type_id=='3')
|
||||
{
|
||||
$('#sa').val(arr_ans[next_ques_num-1]);
|
||||
}
|
||||
else{
|
||||
$('#la').val(arr_ans[next_ques_num-1]);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$('#r1').prop('checked',false);
|
||||
$('#r2').prop('checked',false);
|
||||
$('#r3').prop('checked',false);
|
||||
$('#r4').prop('checked',false);
|
||||
$('#tf1').prop('checked',false);
|
||||
$('#tf2').prop('checked',false);
|
||||
$('#sa').val('');
|
||||
$('#la').val('');
|
||||
}
|
||||
// Check for blocks
|
||||
var num_of_blocks = $('.exm_pagination_block').length;
|
||||
for(var i=1;i<=num_of_blocks;i++)
|
||||
{
|
||||
var block_r2 = i*10;
|
||||
var block_r1 = block_r2-9;
|
||||
var active_block_number = 0;
|
||||
if(next_ques_num<=block_r2 && next_ques_num>=block_r1)
|
||||
{
|
||||
active_block_number = i;
|
||||
$('.exm_pagination_block').removeClass('exm_pagination_active');
|
||||
$('#block_'+active_block_number).addClass('exm_pagination_active');
|
||||
//check pagination btns
|
||||
$('.exm_pagination_no').addClass('invisible');
|
||||
for(var x=block_r1;x<=block_r2;x++)
|
||||
{
|
||||
$('#page_'+x).removeClass('invisible');
|
||||
}
|
||||
}
|
||||
}
|
||||
// Last Question logic
|
||||
if(next_ques_num==arr_ques.length)
|
||||
{
|
||||
$('#btn-next').css('display','none');
|
||||
$('#btn-finish').css('display','inline-block');
|
||||
}
|
||||
else
|
||||
{
|
||||
$('#btn-next').css('display','inline-block');
|
||||
$('#btn-finish').css('display','none');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
alert('Please Answer your Question');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
// Next button logic
|
||||
$('#btn-next').click(function(){
|
||||
if($('#r1').is(':checked') || $('#r2').is(':checked') || $('#r3').is(':checked') || $('#r4').is(':checked') || $('#tf1').is(':checked') || $('#tf2').is(':checked') || $('#sa').val() !='' || $('#la').val() !='')
|
||||
{
|
||||
var current_ques_num = parseInt($('.exm_pagination_noactive').html());
|
||||
var next_ques_num = current_ques_num+1;
|
||||
// store answer in answer array
|
||||
|
||||
if(arr_ques[next_ques_num-2].question_type_id=='1')
|
||||
{
|
||||
var ans = $('input[name="ans"]:checked').val();
|
||||
}else if(arr_ques[next_ques_num-2].question_type_id=='2'){
|
||||
var ans = $('input[name="anss"]:checked').val();
|
||||
}else if(arr_ques[next_ques_num-2].question_type_id=='3') {
|
||||
var ans = $('#sa').val();
|
||||
}else if(arr_ques[next_ques_num-2].question_type_id=='4') {
|
||||
var ans = $('#la').val();
|
||||
}
|
||||
arr_ans[current_ques_num-1] = ans;
|
||||
|
||||
$('.exm_pagination_no').removeClass('exm_pagination_noactive');
|
||||
$('#page_'+next_ques_num).addClass('exm_pagination_noactive');
|
||||
|
||||
//Setting up quesiion & options
|
||||
$('#exam-name').html(arr_ques[next_ques_num-1].e_name);
|
||||
$('#marks_per_question').html(arr_ques[next_ques_num-1].marks +' Mark');
|
||||
$('#pagination-num').html(next_ques_num+'/'+arr_ques.length);
|
||||
$('#ques-num').html(next_ques_num+': ');
|
||||
$('#ques-body').html(arr_ques[next_ques_num-1].question_name);
|
||||
$('#a1').html(arr_ques[next_ques_num-1].option_a);
|
||||
$('#a2').html(arr_ques[next_ques_num-1].option_b);
|
||||
$('#a3').html(arr_ques[next_ques_num-1].option_c);
|
||||
$('#a4').html(arr_ques[next_ques_num-1].option_d);
|
||||
|
||||
if (arr_ques[next_ques_num-1].image != "") {
|
||||
$('.img-block').show();
|
||||
var img = '<img src="<?php echo base_url() ?>'+ arr_ques[next_ques_num-1].image +'" width="120" height="120" class="my-3">';
|
||||
$('.img-block').html(img);
|
||||
}else{
|
||||
$('.img-block').hide();
|
||||
}
|
||||
|
||||
displayFormat(arr_ques[next_ques_num-1].question_type_id);
|
||||
|
||||
//Check for checked radios
|
||||
if(typeof arr_ans[next_ques_num-1]!=='undefined')
|
||||
{
|
||||
if(arr_ans[next_ques_num-1]=='A')
|
||||
{
|
||||
$('#r1').prop('checked',true);
|
||||
}
|
||||
else if(arr_ans[next_ques_num-1]=='B')
|
||||
{
|
||||
$('#r2').prop('checked',true);
|
||||
}
|
||||
else if(arr_ans[next_ques_num-1]=='C')
|
||||
{
|
||||
$('#r3').prop('checked',true);
|
||||
}
|
||||
else if(arr_ans[next_ques_num-1]=='D')
|
||||
{
|
||||
$('#r4').prop('checked',true);
|
||||
}
|
||||
else if(arr_ans[next_ques_num-1]=='1')
|
||||
{
|
||||
$('#tf1').prop('checked',true);
|
||||
}
|
||||
else if(arr_ans[next_ques_num-1]=='0')
|
||||
{
|
||||
$('#tf2').prop('checked',true);
|
||||
}
|
||||
else if(arr_ques[next_ques_num-1].question_type_id == '3')
|
||||
{
|
||||
$('#sa').val(arr_ans[next_ques_num-1]);
|
||||
}
|
||||
else{
|
||||
$('#la').val(arr_ans[next_ques_num-1]);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$('#r1').prop('checked',false);
|
||||
$('#r2').prop('checked',false);
|
||||
$('#r3').prop('checked',false);
|
||||
$('#r4').prop('checked',false);
|
||||
$('#tf1').prop('checked',false);
|
||||
$('#tf2').prop('checked',false);
|
||||
$('#sa').val('');
|
||||
$('#la').val('');
|
||||
}
|
||||
// Check for blocks
|
||||
var num_of_blocks = $('.exm_pagination_block').length;
|
||||
for(var i=1;i<=num_of_blocks;i++)
|
||||
{
|
||||
var block_r2 = i*10;
|
||||
var block_r1 = block_r2-9;
|
||||
var active_block_number = 0;
|
||||
if(next_ques_num<=block_r2 && next_ques_num>=block_r1)
|
||||
{
|
||||
active_block_number = i;
|
||||
$('.exm_pagination_block').removeClass('exm_pagination_active');
|
||||
$('#block_'+active_block_number).addClass('exm_pagination_active');
|
||||
//check pagination btns
|
||||
$('.exm_pagination_no').addClass('invisible');
|
||||
for(var x=block_r1;x<=block_r2;x++)
|
||||
{
|
||||
$('#page_'+x).removeClass('invisible');
|
||||
}
|
||||
}
|
||||
}
|
||||
// Last Question logic
|
||||
if(next_ques_num==arr_ques.length)
|
||||
{
|
||||
$('#btn-next').css('display','none');
|
||||
$('#btn-finish').css('display','inline-block');
|
||||
}
|
||||
else
|
||||
{
|
||||
$('#btn-next').css('display','inline-block');
|
||||
$('#btn-finish').css('display','none');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
alert('Please select an Answer');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
// block change logic
|
||||
$(document).on('click', '.exm_pagination_block', function(){
|
||||
var block_id = $(this).attr('id');
|
||||
$('.exm_pagination_block').removeClass('exm_pagination_active');
|
||||
$('#'+block_id).addClass('exm_pagination_active');
|
||||
var block_num = block_id.substring(block_id.indexOf('_') + 1);
|
||||
var block_r2 = block_num*10;
|
||||
var block_r1 = block_r2-9;
|
||||
$('.exm_pagination_no').addClass('invisible');
|
||||
for(var i=1;i<=arr_ques.length;i++)
|
||||
{
|
||||
if(i>=block_r1 && i<=block_r2)
|
||||
{
|
||||
$('#page_'+i).removeClass('invisible');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// pagination btns click logic
|
||||
$(document).on('click', '.exm_pagination_no', function(){
|
||||
var current_ques_num = parseInt($('.exm_pagination_noactive').html());
|
||||
|
||||
// arr_ans[current_ques_num-1] = ans;
|
||||
if(arr_ques[current_ques_num-1].question_type_id=='1')
|
||||
{
|
||||
var ans = $('input[name="ans"]:checked').val();
|
||||
}else if(arr_ques[current_ques_num-1].question_type_id=='2'){
|
||||
var ans = $('input[name="anss"]:checked').val();
|
||||
}else if(arr_ques[current_ques_num-1].question_type_id=='3') {
|
||||
var ans = $('#sa').val();
|
||||
}else if(arr_ques[current_ques_num-1].question_type_id=='4') {
|
||||
var ans = $('#la').val();
|
||||
}
|
||||
arr_ans[current_ques_num-1] = ans;
|
||||
|
||||
|
||||
var pagination_id = $(this).attr('id');
|
||||
$('.exm_pagination_no').removeClass('exm_pagination_noactive');
|
||||
$('#'+pagination_id).addClass('exm_pagination_noactive');
|
||||
var ques_num = $('#'+pagination_id).html();
|
||||
ques_num = parseInt(ques_num)-1;
|
||||
$('#exam-name').html(arr_ques[ques_num].e_name);
|
||||
$('#marks_per_question').html(arr_ques[ques_num].marks +' Mark');
|
||||
$('#pagination-num').html((ques_num+1)+'/'+arr_ques.length);
|
||||
$('#ques-num').html((ques_num+1)+': ');
|
||||
$('#ques-body').html(arr_ques[ques_num].question_name);
|
||||
$('#a1').html(arr_ques[ques_num].option_a);
|
||||
$('#a2').html(arr_ques[ques_num].option_b);
|
||||
$('#a3').html(arr_ques[ques_num].option_c);
|
||||
$('#a4').html(arr_ques[ques_num].option_d);
|
||||
|
||||
if (arr_ques[ques_num].image != "") {
|
||||
$('.img-block').show();
|
||||
var img = '<img src="<?php echo base_url() ?>'+ arr_ques[ques_num].image +'" width="120" height="120" class="my-3">';
|
||||
$('.img-block').html(img);
|
||||
}else{
|
||||
$('.img-block').hide();
|
||||
}
|
||||
|
||||
|
||||
displayFormat(arr_ques[ques_num].question_type_id);
|
||||
|
||||
//Check for checked radios
|
||||
var next_ques_num = parseInt($('.exm_pagination_noactive').html());
|
||||
|
||||
if(typeof arr_ans[next_ques_num-1]!=='undefined')
|
||||
{
|
||||
if(arr_ans[next_ques_num-1]=='A')
|
||||
{
|
||||
$('#r1').prop('checked',true);
|
||||
}
|
||||
else if(arr_ans[next_ques_num-1]=='B')
|
||||
{
|
||||
$('#r2').prop('checked',true);
|
||||
}
|
||||
else if(arr_ans[next_ques_num-1]=='C')
|
||||
{
|
||||
$('#r3').prop('checked',true);
|
||||
}
|
||||
else if(arr_ans[next_ques_num-1]=='D')
|
||||
{
|
||||
$('#r4').prop('checked',true);
|
||||
}
|
||||
else if(arr_ans[next_ques_num-1]=='1')
|
||||
{
|
||||
$('#tf1').prop('checked',true);
|
||||
}
|
||||
else if(arr_ans[next_ques_num-1]=='0')
|
||||
{
|
||||
$('#tf2').prop('checked',true);
|
||||
}
|
||||
else if(arr_ques[next_ques_num-1].question_type_id == '3')
|
||||
{
|
||||
$('#sa').val(arr_ans[next_ques_num-1]);
|
||||
}
|
||||
else{
|
||||
$('#la').val(arr_ans[next_ques_num-1]);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$('#r1').prop('checked',false);
|
||||
$('#r2').prop('checked',false);
|
||||
$('#r3').prop('checked',false);
|
||||
$('#r4').prop('checked',false);
|
||||
$('#tf1').prop('checked',false);
|
||||
$('#tf2').prop('checked',false);
|
||||
$('#sa').val('');
|
||||
$('#la').val('');
|
||||
}
|
||||
// Last Question logic
|
||||
if(next_ques_num==arr_ques.length)
|
||||
{
|
||||
$('#btn-next').css('display','none');
|
||||
$('#btn-finish').css('display','inline-block');
|
||||
}
|
||||
else
|
||||
{
|
||||
$('#btn-next').css('display','inline-block');
|
||||
$('#btn-finish').css('display','none');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
// Ask user before submit
|
||||
|
||||
$(document).on('click', '#btn-finish', function(){
|
||||
|
||||
$('#submitModal').modal({
|
||||
backdrop: 'static',
|
||||
keyboard: false
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
// finish exam and store answer
|
||||
$(document).on('click', '.btn_submit_answer', function(){
|
||||
|
||||
var current_ques_num = parseInt($('.exm_pagination_noactive').html());
|
||||
var next_ques_num = current_ques_num+1;
|
||||
// store answer in answer array
|
||||
|
||||
if(arr_ques[next_ques_num-2].question_type_id=='1')
|
||||
{
|
||||
var ans = $('input[name="ans"]:checked').val();
|
||||
}else if(arr_ques[next_ques_num-2].question_type_id=='2'){
|
||||
var ans = $('input[name="anss"]:checked').val();
|
||||
}else if(arr_ques[next_ques_num-2].question_type_id=='3') {
|
||||
var ans = $('#sa').val();
|
||||
}else if(arr_ques[next_ques_num-2].question_type_id=='4') {
|
||||
var ans = $('#la').val();
|
||||
}
|
||||
|
||||
arr_ans[current_ques_num-1] = ans;
|
||||
|
||||
var arr_to_send = {};
|
||||
for(var i=0;i<arr_ques.length;i++)
|
||||
{
|
||||
arr_to_send[i] = {
|
||||
'student_id':my_id,
|
||||
'exams_id':arr_ques[i].test_id,
|
||||
'exam_questions_id':arr_ques[i].id,
|
||||
'answer':arr_ans[i]};
|
||||
}
|
||||
var arr_json = JSON.stringify(arr_to_send);
|
||||
// console.log(arr_json);
|
||||
$.post(
|
||||
"<?php echo base_url(); ?>student/submit_exam_answer",
|
||||
{ ans_array: arr_json},
|
||||
function(data)
|
||||
{
|
||||
window.location.href = "<?php echo base_url(); ?>student/my-tests-exams";
|
||||
}
|
||||
);
|
||||
|
||||
});
|
||||
|
||||
function convert(s){
|
||||
|
||||
var hrs = Math.floor(s % (3600*24) / 3600);
|
||||
var min = Math.floor(s % 3600 / 60);
|
||||
var sec = Math.floor(s % 60);
|
||||
return "Time Remaining " + hrs + " hrs : " + min + " min : " + sec +" sec";
|
||||
}
|
||||
|
||||
var interval = setInterval(timer , 1000);
|
||||
var counter = 0;
|
||||
|
||||
var s_date = new Date('<?php echo $exams_data[0]['exam_starttime']; ?>').getTime();
|
||||
var e_date = new Date('<?php echo $exams_data[0]['exam_endtime']; ?>').getTime();
|
||||
|
||||
|
||||
let NDate = NepaliFunctions.GetCurrentBsDate();
|
||||
|
||||
var temp_date = new Date();
|
||||
let bSDate = NepaliFunctions.GetAdMonth(NDate.month-1);
|
||||
|
||||
|
||||
var append_time = bSDate + ' ' + NDate.day +','+ NDate.year +' '+ temp_date.getHours()+':'+ temp_date.getMinutes()+':'+temp_date.getSeconds();
|
||||
|
||||
|
||||
var current_date = new Date(append_time).getTime();
|
||||
|
||||
var check_time_start = s_date - current_date;
|
||||
var timeLeft ;
|
||||
|
||||
if (check_time_start < 0) {
|
||||
timeLeft = parseInt((e_date - current_date) / 1000);
|
||||
} else{
|
||||
timeLeft = (e_date - s_date) / 1000;
|
||||
}
|
||||
|
||||
// var timeLeft = (e_date - s_date) / 1000;
|
||||
|
||||
$(".exmqus_headertym").html(convert(timeLeft - counter));
|
||||
|
||||
function timer(){
|
||||
counter ++;
|
||||
$(".exmqus_headertym").html(convert(timeLeft - counter));
|
||||
if (counter == timeLeft) {
|
||||
clearInterval(interval);
|
||||
pop_up_message();
|
||||
// alert("time's up");
|
||||
}
|
||||
}
|
||||
|
||||
//show user popup after time out
|
||||
|
||||
function pop_up_message() {
|
||||
$('#timeUpModal').modal({
|
||||
backdrop: 'static',
|
||||
keyboard: false
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
|
||||
$(".closehide_btn").click(function() {
|
||||
$('.my-tabs-items').removeClass('my-tabs-items_toggler');
|
||||
});
|
||||
$(".toggler_resp").click(function() {
|
||||
$('.my-tabs-items').addClass('my-tabs-items_toggler');
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo base_url() ?>/assets_student/css/test-exam.css">
|
0
application/views/student/settings.php
Normal file
0
application/views/student/settings.php
Normal file
113
application/views/student/student-fee-details.php
Normal file
113
application/views/student/student-fee-details.php
Normal file
@@ -0,0 +1,113 @@
|
||||
<style type="text/css">
|
||||
table.dataTable thead th, table.dataTable thead td {
|
||||
padding: 10px 18px;
|
||||
border-bottom: 1px solid #111;
|
||||
width: 110px !important;
|
||||
}
|
||||
</style>
|
||||
<link rel="stylesheet" href="<?php echo base_url() ?>assets_admin/css/jquery.dataTables.min.css">
|
||||
<main class="common_margin" id="main">
|
||||
<!----admin template section---->
|
||||
<div class="admin_tempblock form-group_full-width">
|
||||
<div class="admin_tempsec">
|
||||
<div class="admin_sec">
|
||||
<form>
|
||||
<div class="subsec_sec ">
|
||||
<div class="subject_r subject_r_lng">
|
||||
<a href="<?php echo base_url() ?>student/my-payments"> <button type="button" class="btn btn-success btn-sm btn-dark">Back</button>
|
||||
</a>
|
||||
<div class="subject_lsec my-4">
|
||||
<div class="subject_lhead"><h3>Invoice Details</h3></div>
|
||||
</div>
|
||||
|
||||
<table id="tbl" class="display table-responsive w-100" style="width: 100%;">
|
||||
<thead>
|
||||
<tr >
|
||||
<th colspan="2">Sl.No</th>
|
||||
<th>Payment</th>
|
||||
<th>Amount</th>
|
||||
<th>Transaction id</th>
|
||||
<th>Date</th>
|
||||
<th>Status</th>
|
||||
<th class="textCenter" colspan="2">Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
|
||||
foreach($result as $key => $value) {
|
||||
$createdDate = date(MY_DATE_FORMAT, strtotime($value['payment_date']));
|
||||
// $modifiedDate = date(MY_DATE_FORMAT, strtotime($value['modified']));
|
||||
|
||||
?>
|
||||
<tr >
|
||||
<td colspan="2"><?php echo $key+1; ?></td>
|
||||
<td><?php echo $value['payment_for'];?></td>
|
||||
<td><?php echo $value['payment_amt'];?></td>
|
||||
<td><?php echo $value['txn_id'];?></td>
|
||||
<td><?php echo $createdDate;?></td>
|
||||
<td><?php echo $value['status'];?></td>
|
||||
<td >
|
||||
<div class="sub_tabbtnsec">
|
||||
<div class="sub_editbtn text-center">
|
||||
<a href="<?= base_url(); ?>Student/invoice/<?= urlsafe_b64encode($value['studentId']) ?>/<?= urlsafe_b64encode($value['txn_id']) ?> ">
|
||||
<i class="fa fa-eye" aria-hidden="true" style="color: #032da1;">
|
||||
|
||||
</i>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="6"></td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!----admin template section end---->
|
||||
</main>
|
||||
<!--End right-top side-->
|
||||
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$('.user-drpdown').click(function(){
|
||||
$('.drpdown-items').toggle();
|
||||
});
|
||||
|
||||
|
||||
//table js
|
||||
$('#tbl').DataTable( {
|
||||
"lengthMenu": [[5,10, 25, 50, -1], [5,10, 25, 50, "All"]],
|
||||
"fixedColumns":true,
|
||||
} );
|
||||
//table js end
|
||||
//multiple select js start
|
||||
$('select').selectpicker();
|
||||
//multiple select js end
|
||||
});
|
||||
|
||||
</script>
|
||||
<script src="<?php echo base_url() ?>assets_admin/js/jquery.dataTables.min.js"></script>
|
||||
|
||||
|
||||
|
252
application/views/student/student-fee-invoice.php
Normal file
252
application/views/student/student-fee-invoice.php
Normal file
@@ -0,0 +1,252 @@
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>assets_admin/css/invoice.css">
|
||||
|
||||
<div class="wraper responsive-width">
|
||||
<main class="common_margin" id="main">
|
||||
<div class="main-wrap">
|
||||
<div class="dashboard-cover">
|
||||
<a href="<?= base_url(); ?>student/my-payments"><button type="button" class="btn btn-success btn-sm btn-dark">Back</button></a>
|
||||
<div class="common-heading">
|
||||
<h2>Transactions Details</h2>
|
||||
</div>
|
||||
<div class="invoice_wrap" id="printpage">
|
||||
<div class="invoice_head" id="printableArea">
|
||||
<div class="invoice_head_left">
|
||||
Bill Details
|
||||
</div>
|
||||
<div class="invoice_right">
|
||||
<p id="printSection"><img src="<?php echo base_url(); ?>assets_admin/images/print.png" /></p>
|
||||
<a href="<?= base_url(); ?>student/invoicedownload/<?= urlsafe_b64encode($invoice_data['studentId']) ?>/<?= urlsafe_b64encode($invoice_data['txn_id']) ?>"><i class="fas fa-download"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="invoice_main" style="">
|
||||
<?php
|
||||
if(empty($school_info['color_logo'])) {
|
||||
$logo_img=base_url().'common_assets/black_logo.png';
|
||||
}
|
||||
else if(file_exists('common_assets/'.$school_info['color_logo']))
|
||||
{
|
||||
$logo_img=base_url().'common_assets/'.$school_info['color_logo'];
|
||||
}
|
||||
else {
|
||||
$logo_img=base_url().'common_assets/black_logo.png';
|
||||
}
|
||||
?>
|
||||
<div class="invoice_head_row">
|
||||
<table width="100%" class="head_tbl">
|
||||
<tr>
|
||||
<td style="width:40%">
|
||||
<div class="top_logo">
|
||||
<img class="logo_img" src="<?= $logo_img; ?>" alt="Logo Here">
|
||||
<hr align="left" style="width:50%;">
|
||||
<h4 style="margin:0;padding:0;"><?= $school_info['school_name']; ?></h4>
|
||||
<p class="address" style="width:250px;word-wrap: break-word;margin:0;padding:0;"><?= $school_info['address']; ?></p>
|
||||
</div>
|
||||
</td>
|
||||
<td style="width:20%">
|
||||
<div class="bill-type">
|
||||
<p><label for="">Bill Type</label> : <span>Copy</span></p>
|
||||
</div>
|
||||
</td>
|
||||
<td style="width:30%">
|
||||
<ul>
|
||||
<li><label for="">Phone :</label><span><?= $school_info['phone']; ?></span></li>
|
||||
<li><label for="">Email :</label><span><?= $school_info['email']; ?></span></li>
|
||||
<li><label for="">Website :</label><span><?= $school_info['website_link']; ?></span></li>
|
||||
<li><label for="">School PAN :</label><span><?= (!empty($school_info['pan'])) ? $school_info['pan']:"-"; ?></span></li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<hr/>
|
||||
</div>
|
||||
<div class="invoice_body" >
|
||||
<table style="width:100%">
|
||||
<tr>
|
||||
<th style="padding:2px 2px 2px 5px;width:12%;font-weight:600;font-size:12px;text-align:left;">Student Name</th><th style="width:2%;font-weight:600;font-size:12px">:</th><td style="width:20%;font-size:12px;text-align:left;"><?= $invoice_data['studentname'] ?></td>
|
||||
<th style="padding:5px;width:10%;font-weight:600;font-size:12px;text-align:left;">Parent PAN</th><th style="width:2%;font-weight:600;font-size:12px">:</th><td style="width:17%;font-size:12px;text-align:left;"><?= (!empty($invoice_data['parent_pan'])) ? $invoice_data['parent_pan'] : '--'; ?></td>
|
||||
<th style="padding:5px;width:18%;font-weight:600;font-size:12px;text-align:left;"> Bill Print Count</th><th style="width:1%;font-weight:600;font-size:12px">:</th><td style="width:20%;font-size:12px;text-align:left;"><?= $invoice_data['bill_print_count'] ?></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th style="padding:2px 2px 2px 5px;width:12%;font-weight:600;font-size:12px;text-align:left;">Classroom</th><th style="width:2%;font-weight:600;font-size:12px">:</th><td style="width:20%;font-size:12px;text-align:left;"><?php
|
||||
$section_id = (!empty($invoice_data['section_id']) && isset($invoice_data['section_id'])) ? $invoice_data['section_id'] : 0;
|
||||
if ($section_id != 0)
|
||||
$section_name = $this->db->get_where('section', array('id' => $section_id))->row()->section_name;
|
||||
else
|
||||
$section_name = '';
|
||||
|
||||
$course_name = $this->db->get_where('course', array('id' => $invoice_data['course_id']))->row()->course_name;
|
||||
echo (!empty($section_name)) ? $course_name . ' - ' . $section_name : $course_name;
|
||||
?></td>
|
||||
<th style="padding:5px;width:10%;font-weight:600;font-size:12px;text-align:left;">Student ID</th><th style="width:2%;font-weight:600;font-size:12px">:</th><td style="width:17%;font-size:12px;text-align:left;"><?= $invoice_data['studentId'] ?></td>
|
||||
<th style="padding:5px;width:18%;font-weight:600;font-size:12px;text-align:left;">Transaction Date & Time</th><th style="width:1%;font-weight:600;font-size:12px">:</th><td style="width:20%;font-size:12px;text-align:left;"><?= $invoice_data['tdt'] ?></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th style="padding:2px 2px 2px 5px;width:12%;font-weight:600;font-size:12px;text-align:left;">Batch</th><th style="width:2%;font-weight:600;font-size:12px">:</th><td style="width:20%;font-size:12px;text-align:left;"><?= $invoice_data['batch_name']; ?></td>
|
||||
<th style="padding:5px;width:10%;font-weight:600;font-size:12px"></th><th style="width:2%;font-weight:600;font-size:12px"></th><td style="width:17%;font-weight:600;font-size:12px;text-align:left;"></td>
|
||||
<th style="padding:5px;width:18%;font-weight:600;font-size:12px"></th><th style="width:1%;font-weight:600;font-size:12px"></th><td style="width:20%;font-weight:600;font-size:12px;text-align:left;"></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
</div>
|
||||
<div class="invoice_footer_row" style="padding: 20px 10px 0px;" >
|
||||
<table class="footer_tbl_main" width="100%" style="border-collapse: collapse;text-align:center;font-size:12px;" >
|
||||
<thead >
|
||||
<tr>
|
||||
<th style="width:5%;border:1px solid #000;padding:2px;font-weight:600">SNO</th>
|
||||
<th style="width:20%;border:1px solid #000;padding:2px;font-weight:600">Description</th>
|
||||
<th style="width:15%;border:1px solid #000;padding:2px;font-weight:600">Bill No</th>
|
||||
<th style="width:10%;border:1px solid #000;padding:2px;font-weight:600">Bill By </th>
|
||||
<th style="width:10%;border:1px solid #000;padding:2px;font-weight:600">Mode of Payment</th>
|
||||
<th style="width:10%;border:1px solid #000;padding:2px;font-weight:600">Paid Date</th>
|
||||
<th style="width:10%;border:1px solid #000;padding:2px;font-weight:600"><?php echo (!empty(ucfirst($invoice_data['deduction_type']))) ? ucfirst($invoice_data['deduction_type']) : "Scholarship/\nDiscount"; ?></th>
|
||||
<th style="width:10%;border:1px solid #000;padding:2px;font-weight:600">Fine</th>
|
||||
<th style="width:10%;border:1px solid #000;padding:2px;font-weight:600">Amount</th>
|
||||
<!-- <th>Fine</th> -->
|
||||
<!-- <th><?php //echo (!empty(ucfirst($invoice_data['deduction_type']))) ? ucfirst($invoice_data['deduction_type']) : "Scholarship/Discount"; ?></th> -->
|
||||
<!-- <th>Total Amount</th> -->
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr style="border:1px solid #000">
|
||||
<td style="border:1px solid #000;padding:2px;">1</td>
|
||||
<td style="border:1px solid #000;padding:2px;"><?= $invoice_data['payment_for'] ?></td>
|
||||
<td style="border:1px solid #000;padding:2px;"><?php
|
||||
if($school_info['invoice_prefix_status'] == 1 && !empty($invoice_data['invoice_no']))
|
||||
echo $school_info['invoice_prefix'].$invoice_data['invoice_no'];
|
||||
else
|
||||
echo $invoice_data['invoice_no'];
|
||||
// echo $invoice_data['invoice_no'];
|
||||
|
||||
// $invoice_data['course_fee_id'].$invoice_data['studentId'].'/'.$invoice_data['install_sno'] ?></td>
|
||||
|
||||
<td style="border:1px solid #000;padding:2px;"><?= $invoice_data['received_by'] ?></td>
|
||||
<td style="border:1px solid #000;padding:2px;"><?= $invoice_data['payment_method'] ?></td>
|
||||
<td style="border:1px solid #000;padding:2px;"><?= date('d-m-Y H:i:s', strtotime($invoice_data['paid_date'])) ?></td>
|
||||
<td style="border:1px solid #000;padding:2px;"><?= $invoice_data['deduction_amount']; ?></td>
|
||||
<td style="border:1px solid #000;padding:2px;"><?= $invoice_data['fine_amount']; ?></td>
|
||||
<!-- <td><?php //echo $invoice_data['payment_amt'] ?></td> -->
|
||||
<!-- <td><?php // echo $invoice_data['fine_amount'] ?></td> -->
|
||||
<!-- <td></td> -->
|
||||
<td style="border:1px solid #000;text-align:center;padding:5px;"> <?= $invoice_data['payment_amt']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
|
||||
<td colspan="6" style="border:1px solid #000;padding:2px;text-align:center;"></td>
|
||||
<td style="border:1px solid #000;padding:2px;text-align:center;"><?= $invoice_data['deduction_amount']; ?></td>
|
||||
<td style="border:1px solid #000;padding:2px;text-align:center;"><?= $invoice_data['fine_amount']; ?></td>
|
||||
<td style="border:1px solid #000;padding:2px;text-align:center;"><?= $invoice_data['payment_amt']; ?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
<tr>
|
||||
<td colspan="9">
|
||||
<table class="footer_tbl_sub" style="border-collapse: collapse;" width=100% >
|
||||
<tr>
|
||||
<td colspan="7" width=65% style="border:1px solid #000;text-align:left;border-right:0;border-top: 0;padding-left:35px;">
|
||||
<label for="" style="font-size: 12px;width: 100px;font-weight: 600;">Amount In Word</label> :
|
||||
<span style="font-size: 12px;width: 100px;font-weight: 600;"><?php echo '"'. amountInWords((($invoice_data['payment_amt'] + $invoice_data['fine_amount'] ) - $invoice_data['deduction_amount'])) .'"'; ?></span>
|
||||
<p style="color: #212529;padding-top:5px;">“This is computer generated receipt, no signature required.”</p>
|
||||
</td>
|
||||
<td width=45% style="border:1px solid #000;padding: 5px;border-left:0;border-top: 0;">
|
||||
<table class="bottom-tbl" width=100% style="border: 2px solid #000;" >
|
||||
<tr >
|
||||
<th style="padding:2px;text-align:left;width:65%">Total Fee Amount </th><th style="padding:2px;text-align:left;width:5%">:</th><td style="width:30%;padding:5px;text-align:right;"><?= $invoice_data['payment_amt']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="padding:2px;text-align:left;width:65%">Total Fine </th><th style="padding:2px;text-align:left;width:5%">:</th><td style="width:30%;padding:5px;text-align:right;"><?= $invoice_data['fine_amount']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="padding:2px;text-align:left;width:65%">Total <?php echo (!empty(ucfirst($invoice_data['deduction_type']))) ? ucfirst($invoice_data['deduction_type']) : "Scholarship/\nDiscount"; ?> </th><th style="padding:2px;text-align:left;width:5%">:</th><td style="width:30%;padding:5px;text-align:right;"><?= $invoice_data['deduction_amount']; ?></td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="padding:2px;text-align:left;width:65%">Total Paid Amount </th><th style="padding:2px;text-align:left;width:5%">:</th><td style="width:30%;padding:5px;text-align:right;"><?= $school_info['currency_symbol']; ?>. <?= (($invoice_data['payment_amt'] + $invoice_data['fine_amount'] ) - $invoice_data['deduction_amount']) ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
// $("#printSection").on("click", function() {
|
||||
// //alert($(window).height());
|
||||
// var ht = $(window).height();
|
||||
// var wt = $(window).width();
|
||||
// var divContents = $("#printpage").html();
|
||||
// var printWindow = window.open('', '', 'height=' + ht + 'px,width=' + wt + 'px');
|
||||
// printWindow.document.write('<html><head><title>Invoice</title>');
|
||||
// printWindow.document.write('<link rel="stylesheet" href="<?php echo base_url(); ?>assets_admin/css/invoice.css">');
|
||||
// printWindow.document.write('</head><body>');
|
||||
// printWindow.document.write(divContents);
|
||||
// printWindow.document.write('</body></html>');
|
||||
// printWindow.document.close();
|
||||
// printWindow.print();
|
||||
// });
|
||||
|
||||
$("#printSection").on("click", function() {
|
||||
var element = $(".bill_count").text();
|
||||
$(".bill_count").text(parseInt(element)+1);
|
||||
$.ajax({
|
||||
url: "<?= base_url().'admin/printcount_increment'; ?>",
|
||||
method: "POST",
|
||||
data: {
|
||||
inoviceids: <?php echo $invoice_data['student_fee_online_transactions_id']; ?>
|
||||
},
|
||||
success: function(response) {
|
||||
console.log('done');
|
||||
} });
|
||||
|
||||
var frame1 = $('<iframe />').attr("id", "printDiv");
|
||||
frame1[0].name = "frame1";
|
||||
frame1.css({"position": "absolute", "top": "-1000000px"});
|
||||
var divContents = $("#printpage").html();
|
||||
$("body").append(frame1);
|
||||
var frameDoc = frame1[0].contentWindow ? frame1[0].contentWindow : frame1[0].contentDocument.document ? frame1[0].contentDocument.document : frame1[0].contentDocument;
|
||||
frameDoc.document.open();
|
||||
//Create a new HTML document.
|
||||
frameDoc.document.write('<html>');
|
||||
frameDoc.document.write('<head>');
|
||||
frameDoc.document.write('<title></title>');
|
||||
|
||||
// frameDoc.document.write('<link rel="stylesheet" href="<?php echo base_url(); ?>assets_admin/css/bootstrap.min.css">');
|
||||
frameDoc.document.write('<link rel="stylesheet" href="<?php echo base_url(); ?>assets_admin/css/invoice.css">');
|
||||
frameDoc.document.write('</head>');
|
||||
frameDoc.document.write('<body>');
|
||||
frameDoc.document.write(divContents);
|
||||
frameDoc.document.write('</body>');
|
||||
frameDoc.document.write('</html>');
|
||||
frameDoc.document.close();
|
||||
setTimeout(function () {
|
||||
document.getElementById('printDiv').contentWindow.focus();
|
||||
document.getElementById('printDiv').contentWindow.print();
|
||||
// frame1.remove();
|
||||
if (winload) {
|
||||
window.location.reload(true);
|
||||
}
|
||||
}, 500);
|
||||
|
||||
|
||||
return true;
|
||||
|
||||
});
|
||||
|
||||
|
||||
</script>
|
118
application/views/student/student-new-password.php
Normal file
118
application/views/student/student-new-password.php
Normal file
@@ -0,0 +1,118 @@
|
||||
<style type="text/css">
|
||||
.error{
|
||||
color: red;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="container-login">
|
||||
<img src="<?php echo base_url(); ?>assets_student/images/LMS-Video-Animation-min.gif" class="login-image">
|
||||
|
||||
<!-- <video class="login-video" preload="metadata" playsinline autoplay muted loop >
|
||||
<source src="<?php echo base_url(); ?>assets_student/images/login.webm#t=0.001" type="video/webm">
|
||||
<source src="<?php echo base_url(); ?>assets_student/images/login.webm#t=0.001" type="video/webm">
|
||||
Your browser does not support the video tag.
|
||||
</video> -->
|
||||
<header class="login-header">
|
||||
<div class="login-wrap">
|
||||
<div class="logo-wrap">
|
||||
<img src="<?php echo base_url(); ?>assets_student/images/erisn-blue.png">
|
||||
</div>
|
||||
</div>
|
||||
<div class="header-menu-wrap">
|
||||
<div class="login-mob-menu"><i class="fas fa-bars"></i></div>
|
||||
<ul class="mob-menu">
|
||||
<li><a href="#">About Us</a></li>
|
||||
<li><a href="#">Contact Us</a></li>
|
||||
<li><a href="<?php echo base_url(); ?>student/admission-process"><button class="join-class-btn">Admission Process ></button></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</header>
|
||||
<div class="login-body">
|
||||
<div class="login-box-wrap">
|
||||
<div class="login-box">
|
||||
<h3>Create New Password</h3>
|
||||
<form class="login-form" id="recreatePassword" action="<?php echo base_url()?>student/change_student_password" method="post">
|
||||
<?php if($student_data){?>
|
||||
<div class="login-form-row"><p>Please reset your password</p></div>
|
||||
<input type="hidden" name="student_id" value="<?php echo $student_data['id']; ?>">
|
||||
<input type="hidden" name="student_email" value="<?php echo $student_data['email']; ?>">
|
||||
|
||||
<div class="login-form-row">
|
||||
<input type="password" name="password" id="password" class="pass" placeholder="New Password" required>
|
||||
<p class="loginErr loginErr-pass text-danger"></p>
|
||||
</div>
|
||||
|
||||
<div class="login-form-row">
|
||||
<input type="password" name="password_confirm" id="re_pass" class="re_pass" placeholder="Re-enter Password" required>
|
||||
<p class="loginErr loginErr-rePass text-danger"></p>
|
||||
<!-- <h5>Both Passwords Must Match</h5></div> -->
|
||||
<p class="loginSuccess text-success"></p>
|
||||
</div>
|
||||
|
||||
<div class="login-form-row" style="margin-top: 10px;">
|
||||
<button type="submit" class="join-class-btn">Reset Password</button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
|
||||
|
||||
|
||||
jQuery.validator.addMethod("passwordregex", function(value, element) {
|
||||
return this.optional( element ) || /^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!#%*?&])[A-Za-z\d@$#!%*?&]{6,16}$/.test( value );
|
||||
}, 'Your password must be atleast 6 characters long, which inculdes one upper case, one numerical value and one special character.');
|
||||
|
||||
$("#recreatePassword").validate({
|
||||
rules: {
|
||||
password: {
|
||||
required: true,
|
||||
minlength:6,
|
||||
maxlength:12,
|
||||
passwordregex:true
|
||||
},
|
||||
password_confirm:{
|
||||
required: true,
|
||||
equalTo : '#password'
|
||||
},
|
||||
},
|
||||
messages: {
|
||||
password : {
|
||||
required : 'Please enter a valid password',
|
||||
minlength : 'Password should be more than 6 characters',
|
||||
maxlength : 'Password should not exceed 16 Characters'
|
||||
},
|
||||
password_confirm : {
|
||||
required : 'Please re-enter your password',
|
||||
equalTo : "Please enter the same password again."
|
||||
},
|
||||
|
||||
},
|
||||
|
||||
submitHandler: function(form) {
|
||||
|
||||
form.submit();
|
||||
},
|
||||
highlight: function(element, errorClass) {
|
||||
|
||||
window.scrollTo(0, 0);
|
||||
|
||||
},
|
||||
unhighlight: function(element, errorClass) {
|
||||
//$(element).closest(".form-group").removeClass("has-error");
|
||||
},
|
||||
|
||||
|
||||
});
|
||||
|
||||
// function myFunction() {
|
||||
// var x = document.getElementById("password");
|
||||
// if (x.type === "password") {
|
||||
// x.type = "text";
|
||||
// } else {
|
||||
// x.type = "password";
|
||||
// }
|
||||
// }
|
||||
</script>
|
157
application/views/student/student-password-reset.php
Normal file
157
application/views/student/student-password-reset.php
Normal file
@@ -0,0 +1,157 @@
|
||||
<style>
|
||||
.error-msg {
|
||||
color: red;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
form label.error {
|
||||
color: #ff0000;
|
||||
}
|
||||
</style>
|
||||
<div class="container-login">
|
||||
<img src="<?php echo base_url(); ?>assets_student/images/LMS-Video-Animation-min.gif" class="login-image">
|
||||
<!-- <video class="login-video" preload="metadata" playsinline autoplay muted loop >
|
||||
<source src="<?php echo base_url(); ?>assets_student/images/login.webm#t=0.001" type="video/webm">
|
||||
<source src="<?php echo base_url(); ?>assets_student/images/login.webm#t=0.001" type="video/webm">
|
||||
Your browser does not support the video tag.
|
||||
</video> -->
|
||||
<header class="login-header">
|
||||
<div class="login-wrap">
|
||||
<div class="logo-wrap">
|
||||
<img src="<?php echo base_url(); ?>common_assets/<?= $school_info['color_logo']; ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="header-menu-wrap">
|
||||
<div class="login-mob-menu"><i class="fas fa-bars"></i></div>
|
||||
<ul class="mob-menu">
|
||||
<li><a href="#">About Us</a></li>
|
||||
<li><a href="#">Contact Us</a></li>
|
||||
<li><a href="<?php echo base_url(); ?>student/admission-process"><button class="join-class-btn">Admission Process ></button></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</header>
|
||||
<div class="login-body">
|
||||
<div class="login-box-wrap">
|
||||
<div class="login-box">
|
||||
<h3>Reset Password</h3>
|
||||
|
||||
<?php
|
||||
if($this->session->flashdata('success')) { ?>
|
||||
|
||||
<div class="alert alert-success alert-dismissible fade show" role="alert">
|
||||
<p><?php echo $this->session->flashdata('success') ?></p>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<?php }?>
|
||||
<?php
|
||||
if($this->session->flashdata('failed')) { ?>
|
||||
|
||||
<div class="alert alert-danger alert-dismissible fade show" role="alert">
|
||||
<p><?php echo $this->session->flashdata('failed') ?></p>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<?php }?>
|
||||
|
||||
<form class="login-form" id="forgot_password" action="<?php echo base_url() ?>student/send_email_reset_password" method="post">
|
||||
|
||||
<div class="login-form-row">
|
||||
<p>Enter the registered Email address to send request for resetting password.</p> </div>
|
||||
|
||||
<div class="login-form-row">
|
||||
<label>Email address</label>
|
||||
<input type="text" name="studentID" placeholder=" " id="email" onkeydown="hideMessages()">
|
||||
</div>
|
||||
<p class="error-msg loginError text-danger font-weight-bold" style="text-align:left">Email Does not exist </p>
|
||||
<p class="loading text-success" style="display:none">Please wait....</p>
|
||||
|
||||
|
||||
|
||||
<div class="reset-passsword-btn" style="margin-top: 10px;">
|
||||
<button class="join-class-btn" type="submit" id="send_email">Send</button>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
|
||||
function hideMessages()
|
||||
{
|
||||
$('.error-msg').hide();
|
||||
}
|
||||
|
||||
jQuery.validator.addMethod("emailregex", function(value, element) {
|
||||
|
||||
return this.optional( element ) || /^[a-zA-Z0-9._-]+@[a-zA-Z0-9-]+\.[a-zA-Z.]{2,5}$/.test( value );
|
||||
}, 'Please enter a valid email address.');
|
||||
|
||||
$("#forgot_password").validate({
|
||||
rules: {
|
||||
studentID: {
|
||||
required: true,
|
||||
email:true,
|
||||
emailregex:true,
|
||||
},
|
||||
messages: {
|
||||
studentID : {
|
||||
required: "Please provide an email-id",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
submitHandler: function(form,e) {
|
||||
e.preventDefault();
|
||||
var email = $('#email').val();
|
||||
$.ajax({
|
||||
url: '<?php echo base_url().'student/fp_check_is_emailid_valid/'?>',
|
||||
type:'POST',
|
||||
data:{
|
||||
'email': email
|
||||
},
|
||||
beforeSend: function() {
|
||||
$('.loading').show();
|
||||
$('.join-class-btn').hover(function() {
|
||||
$(this).css({'cursor' : 'wait'})
|
||||
});
|
||||
$(document.body).css({'cursor' : 'wait'}); // Spinning
|
||||
$('.join-class-btn').prop('disabled', false);
|
||||
},
|
||||
success: function(result) {
|
||||
console.log(result);
|
||||
if (result == 'success') {
|
||||
|
||||
// $('.loading').hide();
|
||||
$(document.body).css({'cursor' : 'default'}); // Not spinning
|
||||
$('.join-class-btn').hover(function() {
|
||||
$(this).css({'cursor' : 'default'})
|
||||
});
|
||||
|
||||
$('.error-msg').hide();
|
||||
$('.loginSuccess').show();
|
||||
form.submit();
|
||||
}
|
||||
else{
|
||||
$('.error-msg').hide();
|
||||
|
||||
$('.loginError').show();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
$(document).ready(function(){
|
||||
|
||||
$('.error-msg').hide();
|
||||
|
||||
});
|
||||
</script>
|
38
application/views/student/student-reset.php
Normal file
38
application/views/student/student-reset.php
Normal file
@@ -0,0 +1,38 @@
|
||||
|
||||
<div class="container-login">
|
||||
<img src="<?php echo base_url(); ?>assets_student/images/LMS-Video-Animation-min.gif" class="login-image">
|
||||
<!-- <video class="login-video" preload="metadata" playsinline autoplay muted loop >
|
||||
<source src="<?php echo base_url(); ?>assets_student/images/login.webm#t=0.001" type="video/webm">
|
||||
<source src="<?php echo base_url(); ?>assets_student/images/login.webm#t=0.001" type="video/webm">
|
||||
Your browser does not support the video tag.
|
||||
</video> -->
|
||||
<header class="login-header">
|
||||
<div class="login-wrap">
|
||||
<div class="logo-wrap">
|
||||
<img src="<?php echo base_url(); ?>assets_student/images/erisn-blue.png">
|
||||
</div>
|
||||
</div>
|
||||
<div class="header-menu-wrap">
|
||||
<div class="login-mob-menu"><i class="fas fa-bars"></i></div>
|
||||
<ul class="mob-menu">
|
||||
<li><a href="#">About Us</a></li>
|
||||
<li><a href="#">Contact Us</a></li>
|
||||
<li><a href="<?php echo base_url(); ?>student/admission-process"><button class="join-class-btn">Admission Process ></button></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</header>
|
||||
<div class="login-body">
|
||||
<div class="login-box-wrap">
|
||||
<div class="login-box">
|
||||
<h3>Reset Password</h3>
|
||||
<form class="login-form" id="reset_from" method="post">
|
||||
<div class="login-form-row"><p>Enter the registered Email address to send request for resetting password.</p> </div>
|
||||
<div class="login-form-row"><label>Email address</label><input type="Email" name="studentID" placeholder=" "></div>
|
||||
<div class="reset-passsword-btn">
|
||||
<a href="student-new-password.html"><button type="button" class="join-class-btn">Send</button></a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
170
application/views/student/student-route-batch.php
Normal file
170
application/views/student/student-route-batch.php
Normal file
@@ -0,0 +1,170 @@
|
||||
<style type="text/css">
|
||||
.fa-eye:hover{
|
||||
color: black;
|
||||
}
|
||||
</style>
|
||||
<main class="common_margin" id="main">
|
||||
<div class="main-wrap">
|
||||
<div class="my-info-inner">
|
||||
<div class="breadcrumb-section">
|
||||
<ol class="breadcrumb breadcrumb-back">
|
||||
<a href="<?php echo base_url()?>student/dashboard">
|
||||
<li class="breadcrumb-item"> Back</li>
|
||||
</a>
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<form id="bus_fee_form" method="POST" action="<?php echo base_url()?>student/bus-fee">
|
||||
<div class="w-100">
|
||||
|
||||
<table id="tbl1" class="display table-responsive w-100">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
<th>Route Name</th>
|
||||
<th>Pickup Start Time</th>
|
||||
<th>Drop Start Time</th>
|
||||
<th>Amount</th>
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (isset($route_data) && !empty($route_data)) {
|
||||
|
||||
foreach($route_data as $key => $value){ ?>
|
||||
<tr>
|
||||
|
||||
<td ><?php echo $value['route_name'] ?></td>
|
||||
<td class="text-center"><?php echo date('h:i a ', strtotime($value['pickup_start'])) ?></td>
|
||||
<td class="text-center"><?php echo date('h:i a ', strtotime($value['drop_start'])) ?></td>
|
||||
<td class="text-center" style="color: <?php echo $value['color']; ?>"><?php echo $value['amount']; ?></td>
|
||||
<td class="text-center">
|
||||
<div class="sub_tabbtnsec" title="view">
|
||||
<a href="#" onclick="pop_up_data(<?php echo $value['id']; ?>)" style="color: #1c6aad;" class="hover_change">
|
||||
<i class="fa fa-eye" aria-hidden="true"></i>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } } else{ ?>
|
||||
<tr colspan="4"> No Data found</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="viewDoc accept-modal-wrap">
|
||||
<div class="modal fade " id="confirmModal" role="dialog">
|
||||
<div class="modal-dialog modal-dialog-centered">
|
||||
<div class="modal-content bg-light" >
|
||||
<div class="modal-header" style="border-bottom: none;">
|
||||
<h5 class="modal-title" id="exampleModalLongTitle">Route Details</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="model-body">
|
||||
<div class="container">
|
||||
<div class="row justify-content-md-center">
|
||||
<div class="col-md-12">
|
||||
<table class="table" id="drop_list">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>SI No</th>
|
||||
<th>Stop Name</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="list_drop">
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<style type="text/css">
|
||||
.error{
|
||||
color: red;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
|
||||
|
||||
$(document).ready(function() {
|
||||
$('.user-drpdown').click(function() {
|
||||
$('.drpdown-items').toggle();
|
||||
});
|
||||
|
||||
//table js
|
||||
$('#tbl1').DataTable({
|
||||
scrollX: "100%",
|
||||
columnDefs: [
|
||||
{ width: '20%', targets: 1 }
|
||||
],
|
||||
"lengthMenu": [
|
||||
[5, 10, 25, 50, -1],
|
||||
[5, 10, 25, 50, "All"]
|
||||
],
|
||||
dom: 'lBfrtip',
|
||||
buttons: [{
|
||||
extend: 'pdfHtml5',
|
||||
title: 'Student List',
|
||||
exportOptions: {
|
||||
columns: [1, 3, 4, 5, 6, 7]
|
||||
}
|
||||
},
|
||||
{
|
||||
extend: 'csvHtml5',
|
||||
exportOptions: {
|
||||
columns: [1, 3, 4, 5, 6, 7]
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
//table js end
|
||||
//multiple select js start
|
||||
$('select').selectpicker();
|
||||
//multiple select js end
|
||||
});
|
||||
|
||||
function pop_up_data(id)
|
||||
{
|
||||
$.ajax({
|
||||
url : '<?php echo base_url() ?>' +'student/get_route_price_list',
|
||||
data : {
|
||||
route_id : id
|
||||
},
|
||||
type : 'POST',
|
||||
async : false,
|
||||
success: function(data){
|
||||
var result = JSON.parse(data);
|
||||
if(data == ''){
|
||||
|
||||
}else{
|
||||
var d ='';
|
||||
$.each(result, function(k, v) {
|
||||
k++;
|
||||
d += '<tr><td>'+ k +'</td><td>'+ v['place_name']+'</td></tr>';
|
||||
});
|
||||
|
||||
$('.list_drop').html(d);
|
||||
$("#confirmModal").modal('show');
|
||||
}
|
||||
}
|
||||
});
|
||||
// $("#confirmModal").modal('show');
|
||||
}
|
||||
</script>
|
||||
|
||||
</main>
|
||||
|
62
application/views/student/view-grade-detail.php
Normal file
62
application/views/student/view-grade-detail.php
Normal file
@@ -0,0 +1,62 @@
|
||||
<main class="common_margin" id="main">
|
||||
<div class="main-inner-content main-wrap">
|
||||
<?php if (isset($student_results) && !empty($student_results)) {
|
||||
$total_mark = 0;$total_scored_mark=0; ?>
|
||||
|
||||
<div class="stud-drade-wraps mb-5">
|
||||
<div class="breadcrumb-section">
|
||||
<ol class="breadcrumb breadcrumb-back">
|
||||
<a href="<?= base_url(); ?>student/my-grades"> <li class="breadcrumb-item"> Back</li> </a>
|
||||
</ol>
|
||||
</div>
|
||||
<p>My grades / <?php echo $student_results[0]['e_name'] .' '. $student_results[0]['bs_date'] ?></p>
|
||||
</div>
|
||||
<div class="stud-table-wrap">
|
||||
<h6><?php
|
||||
echo $student_results[0]['e_name'] .' '. $student_results[0]['bs_date'] ?>
|
||||
</h6>
|
||||
<?php foreach ($student_results as $key => $value) {
|
||||
$total_mark = $total_mark+$value['total_marks'];
|
||||
$total_scored_mark = $total_scored_mark+$value['get_marks'];
|
||||
?>
|
||||
|
||||
<?php } ?>
|
||||
<table>
|
||||
<thead>
|
||||
<tr id="heading-height">
|
||||
<th>Subject</th>
|
||||
<th>Total Marks</th>
|
||||
<th>Passing marks</th>
|
||||
<th>Scored</th>
|
||||
<th>Grade</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<?php foreach ($student_results as $key => $value) { ?>
|
||||
<tr>
|
||||
<td><?php echo $value['subject_name']; ?></td>
|
||||
<td><?php echo $value['total_marks']; ?></td>
|
||||
<td><?php echo $value['passing_marks']; ?></td>
|
||||
<td><?php echo $value['get_marks']; ?></td>
|
||||
<td><?php echo $value['grade_name']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<tr class="total-bold">
|
||||
<td>Grand Total</td>
|
||||
<td><?php echo $total_mark; ?></td>
|
||||
<td></td>
|
||||
<td><?php echo $total_scored_mark; ?></td>
|
||||
<?php
|
||||
if ($total_scored_mark == 0) {
|
||||
$scored_percentage = 0;
|
||||
}else{
|
||||
$scored_percentage = round((($total_scored_mark*100)/$total_mark), 2);}
|
||||
$grade = student_grade_show($scored_percentage);
|
||||
?>
|
||||
<td><?php echo $grade['grade_name'] ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
52
application/views/student/view-test-detail.php
Normal file
52
application/views/student/view-test-detail.php
Normal file
@@ -0,0 +1,52 @@
|
||||
|
||||
<main class="common_margin" id="main">
|
||||
<div class="main-wrap">
|
||||
<h5 class="content-heading-sec"><a href="<?= base_url(); ?>student/my-tests-exams"><<Back</a></h5>
|
||||
<div class="content-box-scroll-less">
|
||||
<!--------------------exam -notification-box -->
|
||||
|
||||
<?php
|
||||
if (isset($exams_data) != '' || !empty($exams_data)) {
|
||||
|
||||
foreach ($exams_data as $key => $value) {
|
||||
$st_date = new DateTime($value['exam_starttime']);
|
||||
$ed_date = new DateTime($value['exam_endtime']);
|
||||
|
||||
$interval = $ed_date->diff($st_date);
|
||||
if ($interval->format('%H') == '' || $interval->format('%H') == 0) {
|
||||
$duration = $interval->format('%I mins');
|
||||
}else{
|
||||
$duration = $interval->format(' %H hr - %I mins');
|
||||
}
|
||||
|
||||
?>
|
||||
<div class="content-exam-box-blue">
|
||||
<div class="content-box-one-inner">
|
||||
<div class="content-right-side">
|
||||
<h6><?php echo $value['subject_name'] .' : '. $value['e_name'] ?></h6>
|
||||
</div>
|
||||
<div class="content-left-side">
|
||||
<div class="blue-tick"><i class="fa fa-check"></i></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="content-last-sec mt-2">
|
||||
<li>Today - <?php echo $value['exam_date']; ?></li>
|
||||
<li>Time - <?php echo $st_date->format('H:i A'); ?></li>
|
||||
<li>Duration - <?php echo $duration ?></li>
|
||||
<li>
|
||||
<div class="exam-detail-btn">
|
||||
<a href="<?= base_url() ?>student/question-paper/<?php echo $value['question_id']; ?>"> <input type="button" value="Start-exam " class="exam-last-sec-btn "></a>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
</div>
|
||||
<div style="color: #585469; font-size: 13px;">
|
||||
Total Marks - <?php echo $value['total_marks']; ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php } } ?>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
112
application/views/student/view_attendance.php
Normal file
112
application/views/student/view_attendance.php
Normal file
@@ -0,0 +1,112 @@
|
||||
|
||||
<main class="common_margin" id="main">
|
||||
<div class="main-wrap">
|
||||
<div class="breadcrumb-section">
|
||||
<ol class="breadcrumb breadcrumb-back">
|
||||
<a href="<?php echo base_url() ?>student/attendance"><li class="breadcrumb-item"> Back</li> </a>
|
||||
</ol>
|
||||
</div>
|
||||
<div class="po-calendar" style="width: 30%" class="mt-3 mb-3">
|
||||
<input type="text" class="form-control" placeholder="Select a date" id="nepali-datepicker">
|
||||
<i class="fas fa-calendar-alt cal-icon"></i>
|
||||
</div>
|
||||
<p class="mt-2">Note : To view different months notification, please select the required month and any day</p>
|
||||
<hr>
|
||||
<div class="attendance-view-cover mt-4">
|
||||
<div class="attendance-view-sub">
|
||||
<div class="att-row">
|
||||
<div class="att-subject">
|
||||
<img src="<?php echo base_url(); ?>assets_admin/images/icons/<?php echo $icon ?>">
|
||||
<h5><?php echo $subject_name ?></h5>
|
||||
</div>
|
||||
<div class="att-bar">
|
||||
<div class="progress maths-att" style="width : <?php echo $total_present_percentage ?>%"></div>
|
||||
</div>
|
||||
<div class="att-number">
|
||||
<?php echo $total_present_count ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="attendance-table">
|
||||
<table id="student-attendance" style="width:70%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Date</th>
|
||||
<th>Time</th>
|
||||
<th>Present (P)/ Absent (A)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$totalCount = count($result);
|
||||
$presentCount = 0;
|
||||
foreach($result as $key => $value) {
|
||||
$presentCount += $value['status'] == 'present' ? 1 : 0;
|
||||
$class_name = $value['status'] == 'present' ? 'att-present' : 'att-absent';
|
||||
$attendance_key = $value['status'] == 'present' ? 'P' : 'A';
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $value['date'] ?></td>
|
||||
<td><?php echo date('g:i A', strtotime($value['time'])); ?></td>
|
||||
<td><span class="<?php echo $class_name ?>"><?php echo $attendance_key ?></span></td>
|
||||
</tr>
|
||||
<?php }
|
||||
?>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td><strong>Total Days (Current Month)</strong></td>
|
||||
<td><strong><?php echo $presentCount ?>/<?php echo $totalCount ?></strong></td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
$('#nepali-datepicker').nepaliDatePicker({
|
||||
language : 'english',
|
||||
ndpYear: true,
|
||||
ndpMonth: true,
|
||||
ndpYearCount: 10,
|
||||
|
||||
onChange: function(data) {
|
||||
|
||||
console.log(typeof data.object.month)
|
||||
let monthNum = data.object.month;
|
||||
let yearNum = data.object.year;
|
||||
|
||||
let cId = "<?php echo $classroom_id ?>";
|
||||
let subId = "<?php echo $subject_id ?>";
|
||||
console.log(cId,subId,monthNum,yearNum)
|
||||
$.ajax({
|
||||
type : 'POST',
|
||||
url : "<?php echo base_url(); ?>student/ajax_get_attendance_by_month",
|
||||
data : {
|
||||
cId : cId,
|
||||
subId : subId,
|
||||
monthNum : monthNum,
|
||||
yearNum : yearNum
|
||||
},
|
||||
success : function(data) {
|
||||
console.log(data);
|
||||
let table = $('#student-attendance');
|
||||
|
||||
if(data == 'failed') {
|
||||
table.empty();
|
||||
table.append('<p class="mt-3 text-danger"> There is no attendance data for this month </p>');
|
||||
} else {
|
||||
table.empty();
|
||||
table.html(data);
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
</script>
|
Reference in New Issue
Block a user