?
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/single_student_class.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); $stud = array(0); $index = 0; ?> <script type="text/javascript"> function getSessionAmount(session,divid){ var res = session.split("~"); $('#'+divid).val(res[1]); } function checkallstd(status,tag) { $('#'+tag+ ' input').each(function(index,obj){ if(obj.type === 'checkbox') { obj.checked = !status; } }); } </script> <div class="row-fluid"> <div class="tab-pane " id="tab_2"> <div class="portlet box blue"> <div class="portlet-title"> <div class="caption"><i class="icon-reorder"></i>Student Class Allocation</div> <div class="tools"> <a href="#" onclick="viewdata('student','viewinstudentsearch','search_student_class','view_student_class','<?= $_SESSION['pagenum']; ?>')" class="remove"></a> </div> </div> <div class="portlet-body form"> <div class="form-horizontal form-view form-bordered"> <?php $attributes = array('id' => 'validateform', 'class' => 'form-horizontal validate'); echo form_open('student/addinstudent/update_student_class/view_student_class/1', $attributes); ?> <h3 class="form-section">Class Room Details</h3> <div class="portlet box blue" > <div class="portlet-title"> <div class="caption"><i class="icon-check"></i>Class Room Details</div> </div> <div class="portlet-body" style="overflow: visible;"> <table class="table table-striped table-hover table-bordered" > <tr> <th>Class Code</th> <th>Class Room Name</th> <th>Term</th> <th>Session</th> </tr> <tr> <td><?= $viewinfo->class_name_code; ?></td> <td><?= $viewinfo->class_room_name; ?></td> <td> <select onchange="load_allocated_students()" class="chosen span12 required" name="term_id" id="term_id"> <option value="">Select</option> <?php $term = $this->mastermodel->search_term(); foreach ($term['results']->result_array() as $list) { ?> <option value="<?= $list['term_id'] ?>"><?= $list['term_name'] ?></option> <?php } ?> </select> </td> <td> <select onchange="load_allocated_students()" class="chosen span12 required" name="session_id" id="session_id"> <option value="">Select</option> <?php $term = $this->mastermodel->search_session(); foreach ($term['results']->result_array() as $list) { ?> <option value="<?= $list['session_id'] ?>"><?= $list['session_name'] ?></option> <?php } ?> </select> </td> </tr> </table> <input type="hidden" name="class_name_id" id="class_name_id" value="<?= $viewinfo->class_name_id; ?>"/> </div> </div> <div class="portlet box blue" > <div class="portlet-title"> <div class="caption"><i class="icon-check"></i>Student In <?= $viewinfo->class_name_code; ?></div> </div> <div class="portlet-body" id="allocated_student"> <input type="hidden" name="class_name_id" id="class_name_id" value="<?= $viewinfo->class_name_id; ?>"/> </div> </div> <input type="hidden" value="<?= implode(',', $stud) ?>" name="list_stud_id" id="list_stud_id" /> <input id="index" name="index" value="<?= $index ?>" type="hidden"/> <div id="sl"></div> <?php echo form_close(); ?> </div> </div> </div> </div> </div> <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(); } }); }); UIModals.init(); TableManaged.init(); }); function load_allocated_students() { var term_id = $('#term_id').val(); var session_id = $('#session_id').val(); if(term_id) { if(session_id) { $.ajax({ type: "POST", url: "<?= site_url('student/get_allocated_students/') ?>/"+term_id+"/"+session_id+"/"+<?=$id?>, success: function(data) { $('#allocated_student').html(data); } }); } else { alert("Please Select a Session"); $('#allocated_student').html(""); } } else { alert("Please Select a Term"); $('#allocated_student').html(""); } } </script>