?
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/payslip.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <?php $this->load->view('header'); $this->load->view('HR/hrfunctions'); ?> <script type="text/javascript"> $(document).ready(function(){ //Display Loading Image generatesalarypayment(1); // loadsalarypayment(); }); function generatesalarypayment(rwd) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { $("#salarypaymentdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#salarypaymentdiv").load("<?= site_url('hr/ajaxload/generatepayslip/emp_salary_slip') ?>",function(){ $('#button1').attr('disabled', 'disabled'); document.getElementById("processbutton").style.display="none"; }); } }); } function loadpostedsalary() { var mydate = document.getElementById('date').value; if (mydate == '') { alert("Please Select Date First"); $("input#posted").attr('checked', false); return false; } else { $("#salpay").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#salpay").load("<?= site_url('hr/loadsalary/loadpostedsalary/0') ?>/"+mydate); document.getElementById("processbutton").style.display="none"; } } function loadunpostedsalary() { var mydate = document.getElementById('date').value; if (mydate == '') { alert("Please Select Date First"); $("input#unposted").attr('checked', false); return false; } else { $("#salpay").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#salpay").load("<?= site_url('hr/loadsalary/loadunpostedsalary/1') ?>/"+mydate); document.getElementById("processbutton").style.display="block"; } } function viewunpostedpayslip(salid) { $("#staffsaldetdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#staffsaldetdiv").load("<?= site_url('hr/loadunpostedsalary/viewunpostedsalpay/') ?>" +"/" +salid); $(".slslip").colorbox({width:"75%",height:"90%", inline:true, href:"#staffsaldetdiv"}); } function viewpostedpayslip(salid) { $("#staffsaldetdiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#staffsaldetdiv").load("<?= site_url('hr/loadunpostedsalary/viewpostedsalpay/') ?>" +"/" +salid); $(".slslip").colorbox({width:"75%",height:"90%", inline:true, href:"#staffsaldetdiv"}); } function postsinglesalarypayment() { $('#singlesalaryform').ajaxForm({ beforeSubmit: showPreloaderform('loading'), success: function(data) { alert('Salary Processed Successfully'); $.fn.colorbox.close(); hidePreloaderform('loading'); loadunpostedsalary(); } }); } function checkunpostedsal() { var length=document.getElementById('empcount').value; if($('#checksalempdet').is(':checked')) { var checkval=true; $('#button1').attr('disabled', ''); } else { var checkval=false; $('#button1').attr('disabled', 'disabled'); } for(var i=1; i <length; i++) { $("input#salempdet_"+i).attr('checked', checkval); } } function checksingleunpostedsal() { $('#button1').attr('disabled', ''); } function multiplepostsalarypayment() { $('#multiplesalaryform').ajaxForm({ beforeSubmit: showPreloaderform('loading'), success: function(data) { //alert(data) alert('Salary Processed Successfully'); hidePreloaderform('loading'); loadunpostedsalary(); generatesalarypayment(1); } }); } </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="salarypaymentdiv"> </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>