225 lines
16 KiB
PHP
225 lines
16 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">
|
||
|
<a href="<?= base_url(); ?>admin/get_application"><button type="button" class="btn btn-success btn-sm btn-dark">Back</button></a>
|
||
|
</div>
|
||
|
<!-- admin template section -->
|
||
|
<div class="admin_tempblock">
|
||
|
<div class="admin_tempsec">
|
||
|
<div class="admin_sec">
|
||
|
<?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 } ?>
|
||
|
<div class="subsec_sec">
|
||
|
<div class="subject_r">
|
||
|
<div class="subject_lsec">
|
||
|
<div class="subject_lhead" >View Application</div>
|
||
|
<div class="applicatn-wrap">
|
||
|
<?php $i=1; foreach($applicant as $app){
|
||
|
if (file_exists('assets_student/application'.$app['photo'])) {
|
||
|
?>
|
||
|
<img src="<?= base_url(); ?>assets_student/application/<?= $app['photo']; ?>" class="img-fluid applicant-img">
|
||
|
<?php } else{?>
|
||
|
<img src="<?= base_url(); ?>common_assets/No-Image.jpg?>" class="img-fluid applicant-img">
|
||
|
<?php } ?>
|
||
|
<div class="applicant-detl-wrap">
|
||
|
<ul>
|
||
|
<li>
|
||
|
<span class="applicant_lbl">Application ID: </span>
|
||
|
<span class="applicant_detl"><?= $app['applicationid']; ?></span>
|
||
|
</li>
|
||
|
|
||
|
<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/application_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" accept=".jpg, .png, .gif" />
|
||
|
<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" accept=".jpg, .png, .gif"/>
|
||
|
<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" accept=".jpg, .png, .gif"/>
|
||
|
<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" accept=".jpg, .png, .gif" />
|
||
|
<label for="medical" class="upload-btn" id="uploadBtn">Re-Upload</label>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="reupload_replace">
|
||
|
<button type="submit" class="btn btn-success btn-sm btn-dark">Replace</button>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div></form>
|
||
|
<?php } ?>
|
||
|
|
||
|
<div class="application-btns">
|
||
|
<a href="<?php echo base_url(); ?>admin/application_request/<?php echo $app['id']; ?>/1"><button type="button" class="subject_addbtn" >Approve</button></a>
|
||
|
<a href="<?php echo base_url(); ?>admin/application_request/<?php echo $app['id']; ?>/0"><button type="button" class="subject_addbtn subject_addbtn_red" >Reject</button></a>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
</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">×</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">×</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">×</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">×</button>
|
||
|
<div class="document-view-wrap">
|
||
|
<img src="<?= base_url(); ?>assets_student/application/<?= $app['medical_cerificate']; ?>" alt="" />
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<!-- modals -->
|
||
|
<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"]]
|
||
|
} );
|
||
|
//table js end
|
||
|
//multiple select js start
|
||
|
$('select').selectpicker();
|
||
|
//multiple select js end
|
||
|
});
|
||
|
</script>
|
||
|
|
||
|
</body>
|
||
|
</html>
|