?
Current Path : /home1/savoy/www/savoyglobal.net/cocorico/application/views/student/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : /home1/savoy/www/savoyglobal.net/cocorico/application/views/student/allocated_student_table.php |
<table class="table table-striped table-hover table-bordered" id="tbl1"> <thead> <tr> <th width="10%">Sl No</th> <th width="25%">Student Name</th> <th width="20%">Student Reg No.</th> <th width="10%">Age</th> <th width="10%">Gender</th> <th width="15%">Nationality</th> <th width="10%">No of Days</th> </tr> </thead> <tbody id="list_student_added"> <?php $stud = array(0); $html1 = ''; $html = ''; $index = 1; // $active = count($class_students) - (count($cancelled_student) + count($deactivate_student)); // $slno1 = $active + 1; // $slno2 = $active + count($cancelled_student) + 1; if (count($class_students)) { $temp = ""; foreach ($class_students as $value) { $stud[] = $value['term_id'] . '_' . $value['student_id']; ?> <tr> <td><?= $index ?></td> <td> <a class="search_details" data-student_class_id="<?=$value['student_class_id']?>" id="image_icon" href="#" > <?= $value['first_name'] ." ". $value['last_name'] ?> </a> </td> <td><?= $value['reg_no']; ?></td> <td> <?php /* 'yyyy-mm-dd format' */ $age_details = $this->mastermodel->getAgeDetails($value['dob']); echo $age_details['in_words']; ?> </td> <td><?= $value['gender']; ?></td> <td><?= $this->mastermodel->get_single_field_value('nationality', 'nationality_name', 'nationality_id', $value['nationality_id']) ?></td> <td><?= $value['no_of_days'] ?></td> </tr> <?php $index++; } } else { ?> <td colspan="7" style='background-color:#71B4D3;color:white;' > No student is in this Class </td> <?php } ?> </tbody> </table> <script> jQuery(document).ready(function() { $('.search_details').on("click",function(e){ e.preventDefault(); var $modal = $('<div id="payment_vouchar_div" class="modal hide fade" tabindex="-1" style="width: 70%;"></div>'); var student_class_id = $(this).data('student_class_id'); $.ajax({ url : "<?= site_url('student/edit_student_fee') ?>/" + student_class_id +"/student_class_id/single_student_fee", success: function(data){ $modal.empty().html(data); $modal.modal(); } }); }); }); </script>