303 lines
18 KiB
PHP
303 lines
18 KiB
PHP
|
<div class="wraper responsive-width">
|
||
|
<main class="long-tbl-main students_list_table" id="main">
|
||
|
<div class="from-group">
|
||
|
<a href="<?= base_url(); ?>admin/student"><button type="button" class="btn btn-success btn-sm btn-dark">Back</button></a>
|
||
|
</div>
|
||
|
|
||
|
<div class="from-group adding-class form-group_lng form_group_twobtn">
|
||
|
<!-- <a href=""><button type="button" class="btn btn-success btn-sm btn-dark">Back</button></a> -->
|
||
|
<!--a href=" "><button type="button" class="btn btn-success btn-sm">Assign students</button></a-->
|
||
|
</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">Disabled Students List</div>
|
||
|
|
||
|
<!-- tab added -->
|
||
|
<form method="post" action="<?php echo base_url(); ?>admin/enable-student">
|
||
|
|
||
|
<div class="filter_lbl">
|
||
|
<i class="fas fa-filter"></i>
|
||
|
Filter
|
||
|
</div>
|
||
|
|
||
|
<div class="row">
|
||
|
<div class="col-md-3">
|
||
|
<div class="form-group">
|
||
|
<div class="date-fil-row">
|
||
|
|
||
|
<label>Start date</label>
|
||
|
<input type="text" id="start_date" name="filter-Sdate"
|
||
|
class=" form-control nepal-date" placeholder='dd-mm-yyyy' value="<?php echo (!empty($sdate)) ? $sdate : ''; ?>" <?php echo set_select('filter-Sdate', (!empty($sdate)) ? $sdate : '',( !empty($sdate) ? TRUE : FALSE )); ?>>
|
||
|
</div>
|
||
|
<div class="text-danger cierr"><?php echo form_error('filter-Sdate'); ?></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-md-3">
|
||
|
<div class="form-group">
|
||
|
<div class="date-fil-row">
|
||
|
<label>End date</label>
|
||
|
<input type="text" id="end_date" name="filter-Edate"
|
||
|
class="form-control nepal-date" placeholder='dd-mm-yyyy' value="<?php echo (!empty($edate)) ? $edate : ''; ?>" <?php echo set_select('filter-Edate', (!empty($edate)) ? $edate : '',( !empty($edate) ? TRUE : FALSE )); ?>>
|
||
|
</div>
|
||
|
<div class="text-danger cierr"><?php echo form_error('filter-Edate'); ?></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-md-3">
|
||
|
<div class="form-group">
|
||
|
<label class="mb-0" style="font-size: 13px;">Course</label>
|
||
|
<select id="course" class="form-control" placeholder="Select Course"
|
||
|
name="filter-course">
|
||
|
<option value=" "> Select Course</option>
|
||
|
<?php if (isset($course) || !empty($course)) {
|
||
|
foreach ($course as $row) { ?>
|
||
|
|
||
|
<option value="<?php echo $row['id'] ?>" <?php echo set_select('filter-course', $row['id'],( !empty($courseId) ? TRUE : FALSE )); ?>>
|
||
|
<?php echo $row['course_name']; ?></option>
|
||
|
|
||
|
<?php }
|
||
|
} ?>
|
||
|
</select>
|
||
|
<div class="text-danger cierr"><?php echo form_error('filter-course'); ?></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-md-3">
|
||
|
<div class="form-group" style="margin-top: 1.5rem;">
|
||
|
<input type="submit" name="filterSubmit" id="filter_reset"
|
||
|
class="btn btn-success" value="Filter">
|
||
|
<a href="<?php echo base_url() ?>admin/enable-student"><button type="button"
|
||
|
name="reset_filter" id="reset_filter" value="reset_filter"
|
||
|
class="subject_addbtn subject_addbtn_nobg"><i
|
||
|
class="fas fa-redo"></i>Reset</button></a>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
</form>
|
||
|
<?php
|
||
|
if (!empty($this->session->flashdata('success_msg'))) { ?>
|
||
|
<div class="alert alert-success">
|
||
|
<a href="#" class="close" data-dismiss="alert">×</a>
|
||
|
<strong>Success!</strong> <?php echo $this->session->flashdata('success_msg'); ?>
|
||
|
</div>
|
||
|
<?php
|
||
|
}
|
||
|
if (!empty($this->session->flashdata('error_msg'))) {
|
||
|
?>
|
||
|
<div class="alert alert-danger">
|
||
|
<a href="#" class="close" data-dismiss="alert">×</a>
|
||
|
<strong>Failed!</strong> <?php echo $this->session->flashdata('error_msg'); ?>
|
||
|
</div>
|
||
|
<?php } ?>
|
||
|
<form method="post" id="downloadAll"
|
||
|
action="<?php echo base_url(); ?>Admin/downloadAll">
|
||
|
<div class="applicnts-list-wrap ">
|
||
|
<div class="">
|
||
|
<table id="tbl1" class="display table-responsive">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th>SI No.</th>
|
||
|
<th>Student Id</th>
|
||
|
<th>Photo</th>
|
||
|
<th>Name of Student</th>
|
||
|
<th>Email</th>
|
||
|
<th>Contact No.</th>
|
||
|
<th>Course</th>
|
||
|
<th>Application Date</th>
|
||
|
<th>Description</th>
|
||
|
<th>Action</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
<?php $i = 1;
|
||
|
foreach ($students as $s) {
|
||
|
|
||
|
?>
|
||
|
<tr>
|
||
|
<td><?php echo $i; ?>
|
||
|
|
||
|
</td>
|
||
|
<td><?= $s['studentId'] ?></td>
|
||
|
<td>
|
||
|
<?php
|
||
|
if(empty($s['photo'])){
|
||
|
$profile_path =base_url()."common_assets/user.png";
|
||
|
}
|
||
|
else if(file_exists('assets_student/application/'.$s['photo']))
|
||
|
{
|
||
|
$profile_path =base_url()."assets_student/application/".$s['photo'];
|
||
|
}
|
||
|
else {
|
||
|
if($s['gender']=='Male')
|
||
|
$profile_path= base_url()."common_assets/female_image.jpg";
|
||
|
else
|
||
|
$profile_path= base_url()."common_assets/male_image.jpg";
|
||
|
}
|
||
|
// $profile_path = (isset($s['photo']) && !empty($s['photo'])) ? base_url() . 'assets_student/application/' . $s['photo'] : base_url() . 'common_assets/No-Image.jpg'; ?>
|
||
|
<img src="<?= $profile_path; ?>"
|
||
|
class="student_img_list" />
|
||
|
</td>
|
||
|
<td>
|
||
|
<div class="applicant_nme"><?= $s['name'] ?></div>
|
||
|
</td>
|
||
|
<td>
|
||
|
<div class="email-width" title="<?= $s['email'] ?>">
|
||
|
<?= $s['email'] ?></div>
|
||
|
</td>
|
||
|
<td><?= $s['mobile'] ?></td>
|
||
|
<td>
|
||
|
<div class="course-width">
|
||
|
<?php
|
||
|
$course_id = (isset($s['course']) && !empty($s['course'])) ? $s['course'] : 0;
|
||
|
echo $this->db->get_where('course', array('id' => $course_id))->row()->course_name;
|
||
|
?>
|
||
|
</div>
|
||
|
</td>
|
||
|
<td>
|
||
|
<div class="applicn-date">
|
||
|
<?= $s['registered_on'] ?>
|
||
|
</div>
|
||
|
</td>
|
||
|
<td>
|
||
|
<?php echo $s['suspend_reason']; ?>
|
||
|
</td>
|
||
|
<td>
|
||
|
<div class="sub_tabbtnsec stud_tabbtnsec">
|
||
|
<div class="sub_viewbtn" title="View">
|
||
|
<a
|
||
|
href="<?php echo base_url(); ?>admin/view_student/<?php echo $s['id']; ?>">
|
||
|
<i class="fa fa-eye" aria-hidden="true"></i>
|
||
|
</a>
|
||
|
|
||
|
|
||
|
</div>
|
||
|
<a data-toggle="modal" onclick ="coursedel(<?php echo $s['id'] ?>)" href="#deleteModal">
|
||
|
<div class="sub_delbtn" >
|
||
|
<i class="fa fa-undo" aria-hidden="true"></i>
|
||
|
</div>
|
||
|
</a>
|
||
|
</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<?php $i++;
|
||
|
} ?>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</div>
|
||
|
</div>
|
||
|
</form>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<!-- admin template section end -->
|
||
|
</main>
|
||
|
<!--End right-top side-->
|
||
|
</div>
|
||
|
|
||
|
<!-- suspend student -->
|
||
|
<div class="viewDoc delete-modal-wrap">
|
||
|
<div class="modal fade" id="deleteModal" role="dialog">
|
||
|
<div class="modal-dialog">
|
||
|
<div class="modal-content">
|
||
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
||
|
<div class="delete-modal">
|
||
|
<form method="POST" id="suspend_student" action="<?php echo base_url('admin/suspend-student') ?>">
|
||
|
<i class="fa fa-undo" style="font-size:40px;color: green;"></i>
|
||
|
<input type = "hidden" id = "crid" name="student_id" />
|
||
|
<input type = "hidden" name="status" value="0" />
|
||
|
<h4>Are you sure?</h4>
|
||
|
<p>Are you sure you want to enable student ?</p>
|
||
|
<div class="delete-modal-btn">
|
||
|
<button type="submit" class="text-white subject_addbtn bg-success">Enable Student</button>
|
||
|
|
||
|
<button type="button" class="subject_addbtn subject_addbtn_cancel" data-dismiss="modal">Cancel</button>
|
||
|
</div>
|
||
|
</form>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<script>
|
||
|
$(document).ready(function() {
|
||
|
$('.user-drpdown').click(function() {
|
||
|
$('.drpdown-items').toggle();
|
||
|
});
|
||
|
|
||
|
//table js
|
||
|
$('#tbl1').DataTable({
|
||
|
"lengthMenu": [
|
||
|
[5, 10, 25, 50, -1],
|
||
|
[5, 10, 25, 50, "All"]
|
||
|
],
|
||
|
dom: 'lBfrtip',
|
||
|
buttons: [{
|
||
|
extend: 'pdfHtml5',
|
||
|
title: 'Student List',
|
||
|
orientation: 'landscape',
|
||
|
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
|
||
|
});
|
||
|
|
||
|
|
||
|
$('#filter_reset').click(function() {
|
||
|
|
||
|
});
|
||
|
|
||
|
|
||
|
|
||
|
</script>
|
||
|
|
||
|
<script >
|
||
|
function coursedel(icn){
|
||
|
// alert(icn);
|
||
|
$('#crid').val(icn);
|
||
|
}
|
||
|
|
||
|
$("'#")
|
||
|
</script>
|
||
|
<script type="text/javascript">
|
||
|
window.onload = function() {
|
||
|
var mainInput = document.getElementById("end_date");
|
||
|
mainInput.nepaliDatePicker({
|
||
|
dateFormat: "DD-MM-YYYY",
|
||
|
language : 'english'
|
||
|
});
|
||
|
|
||
|
var mainInput1 = document.getElementById("start_date");
|
||
|
mainInput1.nepaliDatePicker({
|
||
|
dateFormat: "DD-MM-YYYY",
|
||
|
language : 'english'
|
||
|
});
|
||
|
};
|
||
|
</script>
|
||
|
</body>
|
||
|
|
||
|
</html>
|