?
Current Path : /home1/savoy/public_html/savoyglobal.net/ccnerp/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/ccnerp/application/views/student/manage_student_class.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'); ?> <script type="text/javascript"> $(document).ready(function() { viewdata('student','viewinstudentsearch','search_student_class','view_student_class','1'); }); function suggestStudentsNotCancelled(div,class_name_id){ $(div).autocomplete("<?= site_url() ?>/student/autoSuggestStudentsNotCancelled/"+class_name_id, { width: 250, selectFirst: false, onCallBack:function(id,index){ $('#stud_fee_details').html(''); } }); } function validate_form(formid) { var divid="inner_content"; if(callvalidate(formid)) { $('.customForm,.validate').ajaxForm({ beforeSubmit:function(){ $('button[type="submit"]').attr('disabled', 'disabled'); return true; }, success:function(data) { // alert(data); $("#"+divid).html(data); $('html, body, #'+divid).animate({scrollTop:0}, 'slow'); $('#table-example').dataTable(); } }); return true; } else { return false; } } function view_single_student_fee(student_class_id) { $("#empdiv").empty().html('<CENTER><img src="<?= base_url() ?>assets/images/loading.gif" class="loading"/></CENTER>'); $("#empdiv").load("<?= site_url('student/edit_student_fee/') ?>/" + student_class_id+"/student_class_id/single_student_fee"); $(".clickimage1").colorbox({width: "75%", height: "70%", inline: true, href: "#empdiv"}); } function delete_student_class(student_class_id,row_id) { var table = 'fee'; var field = 'student_class_id'; var clicked = function(){ $.fallr('hide'); $.ajax({ type: "POST", dataType:"json", url: "<?= site_url('master/checkexistencearray/') ?>/" +table+'/'+field+'/'+student_class_id, success: function(msg){ if(msg!=0) { alert("Student cannot be removed as fees has already been paid"); } else { $.ajax({ type: "POST", dataType:"json", url: "<?= site_url('master/deletedata/student_class') ?>/"+student_class_id+"/student_class_id", success: function(msg) { alert("Student removed from class"); $('#'+row_id) .hide(); } }); } } }); }; $.fallr('show', { buttons : { button1 : {text: 'Yes', danger: true, onclick: clicked}, button2 : {text: 'Cancel', onclick: function(){$.fallr('hide')}} }, content : '<p>Are you sure you want to delete ?</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>