?
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_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_payment','view_fee','1'); }); function check_pending_amount(reg_amount,course_amount,fee_id) { if(reg_amount<0 || course_amount<0) { alert('Edit Fee Deatails Before Post') } else 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,index) { $('#batch,#batch_id,#course_fee,#session_amount,#no_sessions,#pending_amount,#paid_amount').val(''); suggestStudentBatch(id,'#batch'); $('#batch').removeAttr( "readonly" ); } }); } function suggestStudentBatch(student_id,div){ $(div).autocomplete("<?= site_url() ?>/student/autosuggestStudentBatch/"+student_id, { width: 250, selectFirst: false, onCallBack: function(id,index) { if(id!=""){ var res=id.split('~'); var batch_id=res[1]; var student_batch_id=res[0]; $('#student_batch_id').val(student_batch_id); $('#batch_id').val(batch_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($("#batch_id").val()==""){ alert("Select Student Batch First ") } else if($("#student_id").val()==""){ alert("Select Any Student ") } else{ $('#student,#batch').attr('disabled', 'disabled') var student_batch_id=$('#student_batch_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_batch_id+"/"+student_id); } } function reset_div(){ $('#student,#batch,.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($("#batch_id").val()==""){ alert("Select Student Batch First ") $('#total_amount').val(''); } else { if($("#fee_type").val()==""){ alert("Select Fee Type") $('#total_amount').val(''); } else { 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>