?
Current Path : /home1/savoy/public_html/savoyglobal.net/ccnerp/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/ccnerp/application/views/master/manage_batch.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_batch','view_batch','1'); }); function close_batch(id) { var retVal = confirm("Do you want to close batch ?"); if( retVal == true ){ $.ajax({ type: "POST", dataType:"json", url: "<?= site_url() ?>/master/close_batch/"+id, success: function(msg) { if(msg==1) { alert("Batch Closed Successfully!"); viewdata('master','viewinmastersearch','search_batch','view_batch','1'); } else alert("Batch is not able to close!"); } }); return true; } else{ return false; } } function open_batch(id) { var retVal = confirm("Do you want to Reopen batch ?"); if( retVal == true ){ $.ajax({ type: "POST", dataType:"json", url: "<?= site_url() ?>/master/reopen_batch/"+id, success: function(msg) { if(msg==1) { alert("Batch Reopened Successfully!"); viewdata('master','viewinmastersearch','search_batch','view_batch','1'); } else alert("Batch is not able to reopen!"); } }); return true; } else{ return false; } } </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>