?
Current Path : /home1/savoy/public_html/savoyglobal.net/sec/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/application/views/student/manage_deactivate.php |
<!DOCTYPE html> <!--[if IE 8]> <html lang="en" class="ie8"> <![endif]--> <!--[if IE 9]> <html lang="en" class="ie9"> <![endif]--> <!--[if !IE]><!--> <html lang="en"> <!--<![endif]--> <!-- BEGIN HEAD --> <head> <?php $this->load->view('header'); $this->load->view('commonfunctions'); ?> </head> <body class="page-header-fixed"> <?php $this->load->view('top'); ?> <!-- BEGIN CONTAINER --> <div class="page-container row-fluid" > <!-- BEGIN PAGE --> <div class="page-sidebar nav-collapse collapse"> <!-- BEGIN SIDEBAR MENU --> <?php $this->load->view('menu'); ?> <!-- END SIDEBAR MENU --> </div> <!-- END SIDEBAR --> <!-- BEGIN PAGE --> <div class="page-content"> <!-- BEGIN PAGE CONTAINER--> <div class="container-fluid"> <!-- BEGIN PAGE HEADER--> <div class="row-fluid"> <div class="span12"> <!-- BEGIN PAGE TITLE & BREADCRUMB--> <h3 class="page-title"> <?= $_SESSION['menu_name']; ?> </h3> <ul class="breadcrumb"> <li> <i class="icon-home"></i> <?= $_SESSION['module_title']; ?> <i class="icon-angle-right"></i> </li> <li><a href="#"><?= $_SESSION['menu_name']; ?></a></li> <li class="pull-right no-text-shadow"> </li> </ul> <!-- END PAGE TITLE & BREADCRUMB--> </div> </div> <!-- END PAGE HEADER--> <div id="view_msg"></div> <!-- BEGIN PAGE CONTENT--> <div id="inner_content"> </div> <!-- END PAGE CONTENT--> <div class="clearfix"></div> </div> </div> <!-- END PAGE CONTAINER--> </div> <!-- END PAGE --> <!-- END CONTAINER --> <?php $this->load->view('footer'); $this->load->view('commonjsfiles'); ?> <script src="<?= base_url() ?>assets/scripts/jquery.autocomplete.js"></script> <script src="<?= base_url() ?>assets/scripts/autonumeric.js"></script> <script type="text/javascript"> $(document).ready(function() { viewdata('student','viewinstudentsearch','search_deactivate','view_deactivate','1'); App.init(); }); function suggestBatch(div) { $(div).autocomplete("<?= site_url() ?>/master/autosuggestbatch/", { width: 250, selectFirst: false, onCallBack: function(id,index) { $('#student,#student_id').val(''); suggestBatchStudent('#student',id) } }); } function suggestBatchStudent(divid,batch_id) { $(divid).autocomplete("<?= site_url() ?>/student/autosuggestbatchstudent/"+batch_id, { width: 250, selectFirst: false, onCallBack: function(id,index) { var info=id.split('~'); var student_batch_id=info[0]; var student_id=info[1]; $('#student_id').val(student_id); $('#student_batch_id').val(student_batch_id); get_studentsdetails(student_id,batch_id) check_student_cancell(student_id,batch_id,student_batch_id) } }); } function get_studentsdetails(student_id,batch) { var start_date=$("#start_date").val(); var end_date=$("#end_date").val(); if(student_id!='') { $('#detail1').show(); $.ajax({ type: "POST", dataType:"json", url: "<?= site_url() ?>/student/get_student_no/"+student_id, success: function(msg){ $("#reg_no").html(msg.reg_no); $("#gender").html(msg.gender); $("#nationality").html(msg.nationality); } }); $("#inventory_box").empty().html('<CENTER><img src="<?= base_url() ?>assets/img/loading.gif" class="loading"/></CENTER>'); $("#inventory_box").load("<?= site_url() ?>/student/get_student_stock_details/"+student_id); } else $("#inventory_box").hide(); if(student_id!="" && start_date!="" ) { $.ajax({ type: "POST", dataType:"json", url: "<?= site_url() ?>/student/get_deactivted_student/"+student_id+'/'+start_date+'/'+batch, success: function(msg) { if(msg.deactivate >0) { alert(msg.student+" is Already Deacivated for this Date") ; $("#start_date").val(' '); } } }); } if(student_id!="" && end_date!="") { $.ajax({ type: "POST", dataType:"json", url: "<?= site_url() ?>/student/get_deactivted_student/"+student_id+'/'+end_date+'/'+batch, success: function(msg){ if(msg.deactivate >0) { alert(msg.student+" is Already Deacivated for this Date") ; $("#end_date").val(' '); } } }); } } function check_student_cancell(student_id,batch_id,student_batch_id) { if(student_id!='') { $.ajax({ type: "POST", dataType:"json", url: "<?= site_url() ?>/student/check_student_cancell/"+student_id +"/"+batch_id+"/"+student_batch_id, success: function(msg){ if(msg>0) { alert('already cancelled'); $("#student").val(''); $("#student_id").val(''); $('#detail1').hide(); } } }); } } </script> <!-- END FOOTER --> </body> <!-- END BODY --> </html>