?
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/commissionpayment.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 loadcommissionpayment(); }); function loadcommissionpayment() { $("#commissionpaymentdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#commissionpaymentdiv").load("<?= site_url('hr/ajaxloadnew/viewcommissionpayment/commissionpayment') ?>"); } function addcommissionpayment(rwd) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { $("#commissionpaymentdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#commissionpaymentdiv").load("<?= site_url('hr/ajaxload/addcommissionpayment/commissionpayment') ?>"); } }); } function editcommissionpayment(rwd,id) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { $("#commissionpaymentdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#commissionpaymentdiv").load("<?= site_url('hr/edit/editcommissionpayment/commissionpayment/id/') ?>"+"/" +id); } }); } function createdir(name) { $("#createddir").load("<?= site_url('claims/createdir/') ?>" +"/" +name); loadparent(); loadtreedirectory(); } function showstaffdiv() { var mydate = document.getElementById('date').value; if (mydate == '') { alert("Please Select Date First"); $.fn.colorbox.close(); } $("#staffsdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#staffsdiv").load("<?= site_url('sales/ajaxload/searchstaff/staffpersonaldetails/') ?>"); $("#inliexample1").colorbox({width:"75%",height:"70%", inline:true, href:"#staffsdiv"}); } function searchStaff(serctext,seloption,pagenum) { $('#stafflist').load("<?php echo site_url('sales/listSearchstaff/'); ?>/"+pagenum+ "/"+ seloption + "/" + serctext); } function usestaff(staffname,id) { var mydate = document.getElementById('date').value; $("input#staffname").val(staffname); $("input#staffid").val(id); $("#compay").html("<img src='<?=base_url()?>/assets/images/loading.gif'/>"); $("#compay").load("<?= site_url('hr/ajaxloadcompay/viewcompay/') ?>" +"/" +id+"/"+mydate); $.fn.colorbox.close(); } function createsubdir(name,dir) { $("#createdsubdir").load("<?= site_url('claims/createsubdir/') ?>" +"/" +dir+"/" +name); loadtreedirectory(); } function loadparent() { $("#parent_div").load("<?= site_url('claims/ajaxload/loaddirectory/directory') ?>"); } function loadtreedirectory() { $("#treediv").load("<?= site_url('claims/ajaxload/loadtreedirectory/directory') ?>"); } function singlecommissionpayment(rwd,id) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { $("#commissionpaymentdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#commissionpaymentdiv").load("<?= site_url('hr/single/singlecommissionpayment/commissionpayment/id/') ?>"+"/" +id); } }); } function searchcommissionpayment(search,selectsearch) { if(selectsearch=='date' ) { search=search.replace(/\//gi,'-') } $("#commissionpaymentdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); pagenum = 1; search = search.replace(/ /g,"~"); search = search.replace(/\//g,"_"); $("#commissionpaymentdiv").load("<?= site_url('hr/ajaxloadnew/viewcommissionpayment/commissionpayment/') ?>"+"/"+pagenum+"/"+selectsearch+"/"+search+"/"); } function paginationcommissionpaymentsearch(pageNum,search,selectsearch) { $("#commissionpaymentdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $('#commissionpaymentdiv').load("<?php echo site_url('hr/ajaxloadnew/viewcommissionpayment/commissionpayment/'); ?>"+"/" +pageNum+"/"+selectsearch+"/"+search+"/"); } function doallthetwo() { if(validateform('staffname','date')) { 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="commissionpaymentdiv"> </div> <div style='display:none'> <div id='staffsdiv' style='padding:10px; background:#fff;'> </div> </div> <div id="loading" align="center"></div> </div> </div> </div> <?php $this->load->view('footer'); ?> </div> </body> </html>