?
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_deactivate.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_deactivate','view_deactivate','1'); }); 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/images/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> </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>