?
Current Path : /home1/savoy/public_html/savoyglobal.net/sec_old/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/public_html/savoyglobal.net/sec_old/application/views/student/manage_attendance.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); ?> <html class="no-js" lang="en"> <head> <?php $this->load->view('jsfiles'); $this->load->view('header'); $this->load->view('commonfunctions'); $this->load->view('settings/settingsfunctions'); ?> <script type="text/javascript"> $(document).ready(function() { viewdata('student','viewinstudentsearch','search_attendance','view_attendance','1'); }); function suggestBatch(div) { $(div).autocomplete("<?= site_url() ?>/master/autosuggestbatch/", { width: 250, selectFirst: false, onCallBack: function(id,index) { get_student(id) } }); } function get_student(batch_id) { if(batch_id!='') { var date=$('#attendance_date').val(); $.ajax({ type: "POST", dataType:"json", url: "<?= site_url() ?>/student/get_classroom/"+batch_id+"/"+date, success: function(msg) { $('#class_id').val(msg.class_id); $('#class_code').html(msg.class_code); $('#subject_id').html(msg.option); // $("#teacher_name").html(msg.teacher_name); $("#teacher_id").val(msg.teacher_id); $("#course_name").html(msg.course); $("#start_time_hour").html(msg.start_time_hour); $("#start_time_minute").html(msg.start_time_minute); $("#end_time_hour").html(msg.end_time_hour); $("#end_time_minute").html(msg.end_time_minute); } }); } } function load_student_details() { var batch_id=$('#batch_id').val(); var date=$('#attendance_date').val(); $('#attendance_date').attr('readonly', true); if(batch_id!='') { $('#detail1').show(); $("#attendance").empty().html('<CENTER><img src="<?= base_url() ?>assets/images/loading.gif" class="loading"/></CENTER>'); $("#attendance").load("<?= site_url() ?>/student/get_attendance_students/"+batch_id+'/'+date); $("#attendance").show(); } else { $("#attendance").hide(); alert("select batch first") } } </script> </head> <body> <div id="height-wrapper"> <?php $this->load->view('menu'); ?> <div role="main" class="container_12" id="content-wrapper"> <div id="main_content"> <?php $this->load->view('top'); ?> <div id="inner_content"> </div> </div> <div class="push clear"></div> </div> <div class="clear"></div> <div class="push"></div> </div> <?php $this->load->view('footer'); ?> </body> </html>