?
Current Path : /home1/savoy/public_html/savoyglobal.net/sibs_draft/system/application/views/Sales/ |
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/sibs_draft/system/application/views/Sales/branchtarget.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <?php $this->load->view('header'); ?> <link type="text/css" media="screen" rel="stylesheet" href="<?=base_url()?>/assets/css/colorbox.css" /> <script type="text/javascript" src="<?=base_url()?>/assets/js/jquery.colorbox.js"></script> <script type="text/javascript"> $(document).ready(function(){ //Display Loading Image loadbranchtarget(1,'',''); }); function loadbranchtarget(pagenum,searchoption,searchtext) { $("#branchtargetdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#branchtargetdiv").load("<?= site_url('sales/ajaxloadnew/viewbranchtarget/branchtarget') ?>/"+pagenum+'/'+searchoption+'/'+searchtext); } function addbranchtarget(rwd) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { $("#branchtargetdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#branchtargetdiv").load("<?= site_url('sales/ajaxload/addbranchtarget/branchtarget') ?>"); } }); } function editbranchtarget(rwd,id) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { $("#branchtargetdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#branchtargetdiv").load("<?= site_url('sales/edit/editbranchtarget/branchtarget/id/') ?>"+"/" +id); } }); } function singlebranchtarget(rwd,id) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { $("#branchtargetdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#branchtargetdiv").load("<?= site_url('sales/single/singlebranchtarget/branchtarget/id/') ?>"+"/" +id); } }); } function searchbranchtarget(search,selectsearch) { $("#branchtargetdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); pagenum = 1; search = search.replace(/ /g,"~"); search = search.replace(/\//g,"_"); $("#branchtargetdiv").load("<?= site_url('sales/ajaxloadnew/viewbranchtarget/branchtarget/') ?>"+"/"+pagenum+"/"+selectsearch+"/"+search+"/"); } function paginationbranchtarget(pageNum) { $('#branchtargetdiv').empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#branchtargetdiv").load("<?= site_url('sales/ajaxloadnew/viewbranchtarget/branchtarget/') ?>" +"/" +pageNum); } function paginationbranchtargetsearch(pageNum,search,selectsearch) { $('#branchtargetdiv').empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $('#branchtargetdiv').load("<?php echo site_url('sales/ajaxloadnew/viewbranchtarget/branchtarget/'); ?>"+"/" +pageNum+"/"+search+"/"+selectsearch+"/"); } function doallthetwo() { if(validateform('startdate','enddate')) { converttodate('startdate','enddate'); } else { return false; } } </script> <body > <div id="main"> <?php $this->load->view('menu'); ?> <div id="middle"> <?php $this->load->view('leftbar'); ?> <div id="center-column"> <?php $this->load->view('topbar'); ?> <div class="table"> <div id="successdiv" align="center"></div> <p> </p> <div id="branchtargetdiv"> </div> <div style='display:none'> <div id='staffdiv' style='padding:10px; background:#fff;'> </div> </div> <div id="loading" align="center"></div> </div> </div> </div> <?php $this->load->view('footer'); ?> </div> </body> </html>