?
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_student_class.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_student_class','view_student_class','1'); App.init(); }); 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/img/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(){ $.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(); } }); } } }); }; if(confirmDelete()) { clicked(); } function confirmDelete() { if (confirm("Are you sure you want to delete")) return 1; else return 0; } } </script> <!-- END FOOTER --> </body> <!-- END BODY --> </html>