BBnepal-Accounts/application/views/admin/view_classstudent.php
Sampanna Rimal 9cd05ef3cb commitall
2024-07-10 18:28:19 +05:45

201 lines
14 KiB
PHP

<style>
.img-fluid {
width:160px;
height:198px;
object-fit: cover;
max-width:160px;
max-height:198px;
}
</style>
<div class="wraper responsive-width">
<main class="long-tbl-main" id="main">
<div class="from-group">
<button type="button" onclick = "goBack()" class="btn btn-success btn-sm btn-dark">Back</button>
</div>
<!-- admin template section -->
<div class="admin_tempblock">
<div class="admin_tempsec">
<div class="admin_sec">
<div class="subsec_sec">
<div class="subject_r">
<div class="subject_lsec">
<div class="subject_lhead" >View Student</div>
<div class="applicatn-wrap">
<?php $i=1; foreach($student as $app){ ?>
<img src="<?= base_url(); ?>assets_student/application/<?= $app['photo']; ?>" class="img-fluid applicant-img">
<div class="applicant-detl-wrap">
<ul>
<li>
<span class="applicant_lbl">Name: </span>
<span class="applicant_detl"><?= $app['name']; ?></span>
</li>
<li>
<span class="applicant_lbl">Course:</span>
<span class="applicant_detl"> <?= $app['course_name']; ?></span>
</li>
<li>
<span class="applicant_lbl">Email:</span>
<span class="applicant_detl"> <?= $app['email']; ?></span>
</li><li>
<span class="applicant_lbl">Contact number: </span>
<span class="applicant_detl"><?= $app['mobile']; ?></span>
</li>
<li>
<span class="applicant_lbl">Date of birth: </span>
<span class="applicant_detl"><?= $app['dob']; ?></span>
</li>
<li>
<span class="applicant_lbl">Gender:</span>
<span class="applicant_detl"> <?= $app['gender']; ?></span>
</li>
<li>
<span class="applicant_lbl">Address:</span>
<span class="applicant_detl"> <?= $app['address1']."<br>". $app['address2']."<br>".$app['state']."<br>". $app['country']."<br>" .$app['zipcode']; ?></span>
</li>
<li>
<span class="applicant_lbl">Applied on:</span>
<span class="applicant_detl"> <?= $app['registered_on']; ?></span>
</li>
</ul>
</div>
<div class="subject_lhead" >View Documents</div>
<div class="applicant-docs-wrap">
<form id="admission-register" action="<?php echo base_url(); ?>admin/documents_reupload" method="post" enctype="multipart/form-data">
<input type="hidden" name="appid" id="appid" class="form-control" value = "<?php echo $app['id']; ?>" />
<div class="applicant-docs-row">
<label>Passport size photo</label>
<!-- id added -->
<div class="view-reupload-btn ">
<div class="upload-btn" data-toggle="modal" data-target="#viewPhoto">View</div>
<div class="reupload">
<input type="file" name="photo" id="photo" class="form-control"/>
<label for="photo" class="upload-btn" id="uploadBtn">Re-Upload</label>
</div>
</div>
</div>
<div class="applicant-docs-row">
<label>School Certificate</label>
<!-- id added -->
<div class="view-reupload-btn ">
<div class="upload-btn" data-toggle="modal" data-target="#viewCertificate">View</div>
<div class="reupload">
<input type="file" name="school" id="school" class="form-control"/>
<label for="school" class="upload-btn" id="uploadBtn">Re-Upload</label>
</div>
</div>
</div>
<div class="applicant-docs-row">
<label>Exam Results</label>
<!-- id added -->
<div class="view-reupload-btn ">
<div class="upload-btn" data-toggle="modal" data-target="#viewResult">View</div>
<div class="reupload">
<input type="file" name="exam" id="exam" class="form-control"/>
<label for="exam" class="upload-btn" id="uploadBtn">Re-Upload</label>
</div>
</div>
</div>
<div class="applicant-docs-row">
<label>Medical Certificate</label>
<!-- id added -->
<div class="view-reupload-btn ">
<div class="upload-btn" data-toggle="modal" data-target="#viewMedical">View</div>
<div class="reupload">
<input type="file" name="medical" id="medical" class="form-control"/>
<label for="medical" class="upload-btn" id="uploadBtn">Re-Upload</label>
</div>
<div class="reupload">
<a href="<?= base_url(); ?>admin/documents_reupload"><button type="submit" class="btn btn-success btn-sm btn-dark">Replace</button></a>
</div>
</div>
</div>
</div></form>
<!--div class="application-btns">
<a href="<?php echo base_url(); ?>admin/process_application/<?php echo $app['id']; ?>/1"><button type="button" class="subject_addbtn" >Approve</button></a>
<a href="<?php echo base_url(); ?>admin/process_application/<?php echo $app['id']; ?>/0"><button type="button" class="subject_addbtn subject_addbtn_red" >Reject</button></a>
</div-->
</div>
<?php } ?>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
<!-- admin template section end -->
</main>
<!--End right-top side-->
</div>
<!-- modals -->
<div class="view-doc">
<div class="modal fade" id="viewPhoto" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<button type="button" class="close" data-dismiss="modal">&times;</button>
<div class="document-view-wrap">
<img src="<?= base_url(); ?>assets_student/application/<?= $app['photo']; ?>" alt="" />
</div>
</div>
</div>
</div>
<div class="modal fade" id="viewCertificate" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<button type="button" class="close" data-dismiss="modal">&times;</button>
<div class="document-view-wrap">
<img src="<?= base_url(); ?>assets_student/application/<?= $app['school_certificate']; ?>" alt="" />
</div>
</div>
</div>
</div>
<div class="modal fade" id="viewResult" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<button type="button" class="close" data-dismiss="modal">&times;</button>
<div class="document-view-wrap">
<img src="<?= base_url(); ?>assets_student/application/<?= $app['exam_result']; ?>" alt="" />
</div>
</div>
</div>
</div>
<div class="modal fade" id="viewMedical" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<button type="button" class="close" data-dismiss="modal">&times;</button>
<div class="document-view-wrap">
<img src="<?= base_url(); ?>assets_student/application/<?= $app['medical_cerificate']; ?>" alt="" />
</div>
</div>
</div>
</div>
</div>
<!-- modals -->
<script>
function goBack() {
window.history.go(-1);
}
$(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"]]
} );
//table js end
//multiple select js start
$('select').selectpicker();
//multiple select js end
});
</script>
</body>
</html>