?
Current Path : /home1/savoy/www/savoyglobal.net/eldertree/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/www/savoyglobal.net/eldertree/application/views/student/manage_fees.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 type="text/javascript"> $(document).ready(function() { viewdata('student','viewinstudentsearch','search_fee_posted','view_fee_posted','1'); App.init(); }); 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 displayformdata1(controller,controllerfunction,id,table,field,page,returnpage) { $("#uploaddiv").empty().html('<CENTER><img src="<?= base_url() ?>assets/img/loading.gif" class="loading"/></CENTER>'); $("#uploaddiv").load("<?= site_url() ?>/"+controller+'/'+controllerfunction+'/'+id+'/'+table+'/'+field+'/'+page); $(".inliexample2").colorbox({width:"90%",height:"90%", inline:true, href:"#uploaddiv"}); } 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/img/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/img/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' }); } function get_payment_mode(val, divid,transaction_type) { $("#" + divid).empty().html('<CENTER><img src="<?= base_url() ?>assets/img/loading.gif" class="loading"/></CENTER>'); $("#" + divid).load("<?= site_url() ?>/" + 'student' + '/' + 'show_payment_type' + '/' + val+"/"+transaction_type,function(data){ if(val > 1) $('#div_payment_details').show('slow'); else $('#div_payment_details').hide('slow'); }); } </script> <!-- END FOOTER --> </body> <!-- END BODY --> </html>