?
Current Path : /home1/savoy/public_html/savoyglobal.net/drafthr/system/application/views/HR/ |
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/drafthr/system/application/views/HR/holidays.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <?php $this->load->view('header'); ?> <script type="text/javascript"> $(document).ready(function(){ //Display Loading Image loadholidays(1,'',''); }); function loadholidays(pagenum,searchoption,searchtext) { $("#holidaysdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#holidaysdiv").load("<?= site_url('hr/ajaxloadnew/viewholidays/holidays') ?>/"+pagenum+'/'+searchoption+'/'+searchtext); } function addholidays(rwd) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { $("#holidaysdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#holidaysdiv").load("<?= site_url('hr/ajaxload/addholidays/holidays') ?>"); } }); } function editholidays(rwd,id) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { $("#holidaysdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#holidaysdiv").load("<?= site_url('hr/edit/editholidays/holidays/id/') ?>"+"/" +id); } }); } function searchholidays(search,selectsearch) { if(selectsearch=='date' ) { search=search.replace(/\//gi,'-') } $("#holidaysdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); pagenum = 1; search = search.replace(/ /g,"~"); search = search.replace(/\//g,"_"); $("#holidaysdiv").load("<?= site_url('hr/ajaxloadnew/viewholidays/holidays/') ?>"+"/"+pagenum+"/"+selectsearch+"/"+search+"/"); } function paginationholidays(pageNum) { $("#holidaysdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#holidaysdiv").load("<?= site_url('hr/ajaxloadnew/viewholidays/holidays/') ?>" +"/" +pageNum); } function paginationholidayssearch(pageNum,search,selectsearch) { $("#holidaysdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $('#holidaysdiv').load("<?php echo site_url('hr/ajaxloadnew/viewholidays/holidays/'); ?>"+"/" +pageNum+"/"+selectsearch+"/"+search+"/"); } function doallthetwo() { if(validateform('occasion')) { converttodate('date'); } 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="holidaysdiv"> </div> <div id="loading" align="center"></div> </div> </div> </div> <?php $this->load->view('footer'); ?> </div> </body> </html>