?
Current Path : /home1/savoy/public_html/oscarerp.com/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/oscarerp.com/application/views/student/manage_fees.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_fee_posted','view_fee_posted','1'); }); function post_fee_accounts(fee_id) { displayformdata1('student','edit_fee',fee_id,'fee','fee_id','post_fee_setting','') } function suggestStudentInfo(div) { $(div).autocomplete("<?= site_url() ?>/master/autosuggeststudent/", { width: 250, selectFirst: false, onCallBack: function(id) { $('#class_id,#course_fee,#session_amount,#no_sessions,#pending_amount,#paid_amount').val(''); suggestStudentClass(id,'#class'); $('#class').removeAttr( "readonly" ); } }); } function suggestStudentClass(student_id,div) { $(div).autocomplete("<?= site_url() ?>/student/autosuggestStudentClass/"+student_id, { width: 250, selectFirst: false, onCallBack: function(id,index) { if(id!=""){ var res=id.split('~'); var class_id=res[1]; var student_class_id=res[0]; $('#student_class_id').val(student_class_id); $('#class_id').val(class_id); } } }); 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); } }); } } function load_student_fee_details() { if($("#class_id").val()==""){ alert("Select Student Class First ") } else if($("#student_id").val()==""){ alert("Select Any Student ") } else{ $('#student,#class').attr('disabled', 'disabled') var student_class_id=$('#student_class_id').val(); var student_id=$('#student_id').val(); $("#load_student_fee_div").empty().html('<CENTER><img src="<?= base_url() ?>assets/images/loading.gif" class="loading"/></CENTER>'); $("#load_student_fee_div").load("<?= site_url() ?>/"+'student'+'/'+'getStudentFeeDetails/'+student_class_id+"/"+student_id); } } function load_student_fee_details_unposted(class_id) { var st=class_id.split('~'); $("#class_id").val(st[1]); $("#student_class_id").val(st[0]); if($("#class_id").val()==""){ alert("Select Student Class First ") } else if($("#student_id").val()==""){ alert("Select Any Student ") } else{ $('#class').attr('disabled', 'disabled') var student_class_id=$('#student_class_id').val(); var student_id=$('#student_id').val(); $("#load_student_fee_div").empty().html('<CENTER><img src="<?= base_url() ?>assets/images/loading.gif" class="loading"/></CENTER>'); $("#load_student_fee_div").load("<?= site_url() ?>/"+'student'+'/'+'getStudentFeeDetailsUnposted/'+student_class_id+"/"+student_id); } } function reset_div() { $('#student,#class,.reset').removeAttr('disabled'); $("#load_student_fee_div").empty(); } function checkAmountPending(obj,check_with_div){ var amount=obj.value; var pending_amount=$('#'+check_with_div).val(); if(amount>0){ if(parseFloat(amount)>parseFloat(pending_amount)){ obj.value=0; } } else { alert('Amount Should be greater than Zero'); obj.value=0; } } function checkPendingAmount(amount){ if($("#class_id").val()==""){ alert("Select Student Class First ") $('#total_amount').val(''); } else { if($("#fee_type").val()==""){ alert("Select Fee Type") $('#total_amount').val(''); } else { alert($("#fee_type").val()) if($("#fee_type").val()==0){ var pending_amount=$('#reg_fee_pending').val(); } else { var pending_amount=$('#pending_amount').val(); } if(amount>0){ if(parseFloat(amount)>parseFloat(pending_amount)){ $('#total_amount').val(''); } } else { alert('Amount Should be greater than Zero'); $('#total_amount').val(''); } } } } function post_fee_settings(ref_id,controller,controller_function,model,page) { var clicked = function(){ $.fallr('hide'); $.ajax({ type: "POST", dataType:"json", url: "<?= site_url('student/post_fee_settings/') ?>/"+ref_id, success: function(msg) { viewdata(''+controller+'',''+controller_function+'',''+model+'',''+page+'','1') } }); } $.fallr('show', { buttons : { button1 : {text: 'Yes', danger: true, onclick: clicked}, button2 : {text: 'Cancel', onclick: function(){$.fallr('hide')}} }, content : '<p>Are you sure to Post this Fee Payment ?</p>', icon : 'error' }); } function reverse_fee_settings(ref_id,controller,controller_function,model,page) { var clicked = function(){ $.fallr('hide'); $.ajax({ type: "POST", dataType:"json", url: "<?= site_url('student/reverse_fee_settings/') ?>/"+ref_id, success: function(msg) { viewdata(''+controller+'',''+controller_function+'',''+model+'',''+page+'','1') } }); } $.fallr('show', { buttons : { button1 : {text: 'Yes', danger: true, onclick: clicked}, button2 : {text: 'Cancel', onclick: function(){$.fallr('hide')}} }, content : '<p>Are you sure to reverse this Fee Payment ?</p>', icon : 'error' }); } </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>