?
Current Path : /home1/savoy/public_html/savoyglobal.net/hr/application/views/Payroll/ |
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/hr/application/views/Payroll/single_salary_payment.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); ?> <div style="display:none;"> <div id="payslip_details"> </div> </div> <script type="text/javascript"> function display_pay_slip(payroll_generation_details_id) { $("#payslip_details").empty().html('<CENTER><img src="<?=base_url()?>assets/images/loading.gif" class="loading"/></CENTER>'); $("#payslip_details").load("<?=site_url() ?>/payroll/display_pay_slip/"+payroll_generation_details_id); $(".inliexample2").colorbox({width:"100%",height:"100%", scrolling:false, inline:true, href:"#payslip_details"}); } </script> <div class="select-bar"> <label><img src="<?=base_url()?>assets/images/backbutton.png" title="Back" class="clickimage" onclick="viewdata('payroll','viewinpayrollsearch','search_payroll_generation','view_salary_payment','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="25" height="25" /> </label> <span class="heading">Salary Payment details</span> </div> <fieldset> <?php $attributes=array('id'=>'validateform','class'=>'customForm'); echo form_open('',$attributes);?> <ul> <li> <label for="data">Subject</label> <div class="record_entry"><?=$viewinfo->payroll_generation_subject;?></div> </li> <li> <label for="data">Payroll Date</label> <div class="record_entry"> <?=$this->mastermodel->convertdatenormalformat($viewinfo->payroll_generation_date);?></div> </div> </li> <li> <label for="data">Month & Year</label> <div class="record_entry"> <?=$viewinfo->payroll_generation_month;?> <?=$viewinfo->payroll_generation_year;?> </div> </li> <li> <label for="data">Remarks</label> <div class="record_entry"> <?=$viewinfo->payroll_generation_remarks;?> </div> </li> <li> <table class="sort"> <caption>Payroll for <?=$viewinfo->payroll_generation_month.' '.$viewinfo->payroll_generation_year;?></caption> <tr> <th>Sl No</th> <th>Employee Name</th> <th>Trade</th> <th>Site</th> <th>Employee Number</th> <th>New Basic Salary</th> <th>Net Salary</th> <th>Payment Status</th> <th style="width:60px;"><a href="<?=site_url();?>/payroll/generate_all_payslips/<?=$viewinfo->payroll_generation_id;?>/pdf_pay_slip"><img src="<?=base_url()?>assets/images/pdf.png" title="Export all Pay slips" class="clickimage" alt="Generate Payslip" align = "center" width="20" height="20" /></a></th> </tr> <?php $start_date = date('Y-m-01', strtotime($viewinfo->payroll_generation_year.'-'.$viewinfo->payroll_generation_month.'-01')); $end_date = date('Y-m-t', strtotime($viewinfo->payroll_generation_year.'-'.$viewinfo->payroll_generation_month.'-01')); $slno=0; $net_salary_total=0; $employee=$this->payrollmodel->get_payroll_generation_details_payment($viewinfo->payroll_generation_id); if(!empty($employee)) { foreach($employee as $emp) { if($slno%2==0) $alt="alt"; else $alt="alt1"; $slno++; $salary=$this->payrollmodel->get_employee_salary($emp['emp_non_id'],$end_date); ?> <tr class="<?=$alt;?>"> <td> <?=$slno;?> </td> <td><?=$emp['emp_non_full_name'];?></td> <td><?=$this->payrollmodel->get_employee_trade_date($emp['emp_non_id'],$start_date,$end_date,1);?></td> <td><?=$this->payrollmodel->get_employee_site_date($emp['emp_non_id'],$start_date,$end_date);?></td> <td><?=$emp['emp_non_no_old'].', '.$emp['emp_non_no'];?></td> <td style="text-align: right;"><?=number_format($emp['payroll_generation_basic_salary'],2);?></td> <td style="text-align: right;"> <?php $gross_salary=$emp['payroll_generation_basic_salary']+$emp['payroll_generation_ot_amount']+$emp['payroll_generation_previous_balance']+$emp['payroll_generation_special_allowance']+$emp['payroll_generation_site_allowance']-$emp['payroll_generation_absent_amount']; $total_salary=$gross_salary+$emp['payroll_generation_ticket_refundable']+$emp['payroll_generation_refundable_amount']+$emp['payroll_generation_other_allowance']; echo $net_salary=number_format(round($total_salary-$emp['payroll_generation_salary_advance']-$emp['payroll_generation_other_deductions']),2); $net_salary_total+=$net_salary; ?> </td> <td><?=$emp['payroll_generation_payment_status'];?></td> <td> <div class="fronticons"> <a href="<?=site_url();?>/payroll/generate_pay_slip/<?=$emp['payroll_generation_details_id'];?>/payroll_generation_details/payroll_generation_details_id/pdf_pay_slip"><img src="<?=base_url()?>assets/images/pdf.png" title="Export Pay slip" class="clickimage" alt="Generate Payslip" align = "center" width="20" height="20" /></a> </div> <div class="fronticons"> <a class="inliexample2" href="#" onclick="display_pay_slip('<?=$emp['payroll_generation_details_id'];?>')" ><img src="<?=base_url()?>assets/images/bluedown.jpg" title="View Payslip" width="20" height="20" alt="View Pay slip" align = "center" class="clickimage" /></a> </div> </td> </tr> <?php } } ?> </table> </li> </ul> <?php echo form_close();?> </fieldset>