?
Current Path : /home1/savoy/public_html/savoyglobal.net/sibs_draft/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/sibs_draft/system/application/views/HR/workshifts.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 loadworkshifts(1,'',''); }); function loadworkshifts(pagenum,selectsearch,search) { $("#workshiftsdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#workshiftsdiv").load("<?= site_url('hr/loadWorkshift/viewworkshifts/timesheet_work_shift') ?>/"+pagenum+"/"+selectsearch+"/"+search+"/"); } function addworkshifts(rwd) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { $("#workshiftsdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#workshiftsdiv").load("<?= site_url('hr/loadWorkshift/addworkshifts/timesheet_work_shift') ?>"); } }); } function editworkshifts(rwd,id) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { $("#workshiftsdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#workshiftsdiv").load("<?= site_url('hr/edit/editworkshifts/timesheet_work_shift/work_shift_id/') ?>"+"/" +id); } }); } function searchworkshifts(search,selectsearch) { if(selectsearch=='date' ) { search=search.replace(/\//gi,'-') } $("#workshiftsdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); pagenum = 1; search = search.replace(/ /g,"~"); search = search.replace(/\//g,"_"); $("#workshiftsdiv").load("<?= site_url('hr/ajaxloadnew/viewworkshifts/timesheet_work_shift/') ?>"+"/"+pagenum+"/"+selectsearch+"/"+search+"/"); } function paginationworkshifts(pageNum) { $("#workshiftsdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#workshiftsdiv").load("<?= site_url('hr/ajaxloadnew/viewworkshifts/timesheet_work_shift/') ?>" +"/" +pageNum); } function paginationworkshiftssearch(pageNum,search,selectsearch) { $("#workshiftsdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $('#workshiftsdiv').load("<?php echo site_url('hr/ajaxloadnew/viewworkshifts/timesheet_work_shift/'); ?>"+"/" +pageNum+"/"+selectsearch+"/"+search+"/"); } function SelectMoveRows(SS1,SS2) { var SelID=''; var SelText=''; // Move rows from SS1 to SS2 from bottom to top for (i=SS1.options.length - 1; i>=0; i--) { if (SS1.options[i].selected == true) { SelID=SS1.options[i].value; SelText=SS1.options[i].text; var newRow = new Option(SelText,SelID); SS2.options[SS2.length]=newRow; SS1.options[i]=null; } } var secondbox=document.getElementById('employees_2'); for (i=secondbox.options.length - 1; i>=0; i--) { secondbox.options[i].selected = true; } SelectSort(SS2); } function SelectSort(SelList) { var ID=''; var Text=''; for (x=0; x < SelList.length - 1; x++) { for (y=x + 1; y < SelList.length; y++) { if (SelList[x].text > SelList[y].text) { // Swap rows ID=SelList[x].value; Text=SelList[x].text; SelList[x].value=SelList[y].value; SelList[x].text=SelList[y].text; SelList[y].value=ID; SelList[y].text=Text; } } } } </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="workshiftsdiv"> </div> <div id="loading" align="center"></div> </div> </div> </div> <?php $this->load->view('footer'); ?> </div> </body> </html>