?
Current Path : /home1/savoy/public_html/savoyglobal.net/koaladraft/application/views/master/ |
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/koaladraft/application/views/master/manage_class_name.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('master','viewinmastersearch','search_class_name','view_class_name','1'); }); function view_class_name() { $("#inner_content").empty().html('<CENTER><img src="<?= base_url() ?>assets/images/loading.gif" class="loading"/></CENTER>'); $("#inner_content").load("<?= site_url('/master/viewinmastersearch/search_class_name/view_class_name/1') ?>"); } function view_class_room() { $("#inner_content").empty().html('<CENTER><img src="<?= base_url() ?>assets/images/loading.gif" class="loading"/></CENTER>'); $("#inner_content").load("<?= site_url('/master/viewinmastersearch/search_class_room/view_class_room/1') ?>"); } function get_class_name() { var class_room=($("#class_room_id").val()).split("~"); var session=($("#class_session").val()).split("~"); if(session[0] !='') { $.ajax({ type: "POST", dataType:"json", url: "<?= site_url() ?>/master/get_session_details/"+session[0], success: function(msg) { $("#start_time_hour").html(msg.start_time_hour); $("#start_time_minute").html(msg.start_time_minute); $("#end_time_hour").html(msg.end_time_hour); $("#end_time_minute").html(msg.end_time_minute); } }); } var term=($("#class_term").val()).split("~"); var academic=$("#class_name_academic_year_id").val(); var academic_year_year = ''; if(academic != '') { $.ajax({ type: "POST", url : "<?= site_url('master/get_academic_year') ?>"+"/"+academic, success:function(code) { academic_year_year = code; var class_name_id=$("#class_name_id").val(); if($("#class_room_id").val()!="" && $("#class_session").val()!="" && $("#class_term").val()!="" && academic_year_year!=""){ $("#class_name_code").val(class_room[1]+'/'+term[1] +'/'+session[1]+'/'+academic_year_year); $.ajax({ type: "POST", dataType: "json", url : "<?= site_url('master/check_class_code') ?>"+"/"+class_name_id+"/"+class_room[0]+"/"+session[0]+'/'+term[0]+"/"+academic, success:function(code){ if(code>0){ alert("Class room exist."); $("#class_name_code").val(''); $("#class_room_id").val(''); $("#class_session").val(''); $("#class_term").val(''); } } }); } } }); } } </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>