?
Current Path : /home1/savoy/www/savoyglobal.net/piadraft/system/application/views/Report/ |
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/www/savoyglobal.net/piadraft/system/application/views/Report/hrsalaryrepbranch.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <?php if ($search == "") $search = 'search'; if($fromdate == '') $fromdate = 'fromdate'; if($todate=='') $todate = 'todate'; $branchname = $this->mastermodel->get_data_srow('ourbranch',$search,'id'); ?> <div class="select-bar"> <table width="100%"><tr><td><label> <img src="<?=base_url()?>/assets/images/backbutton.png" title="Back" class="clickimage" onclick="loadhr()" alt="Back" align = "center" width="25" height="25" /></label> </td><td align="center"> Branch Salary Report </td><td align="right"> <label><?=anchor('report/genrephrsalarybranch/hrsalarybranchpdf/'.$fromdate.'/'.$todate.'/'.$search.'/', '<img src="'.base_url().'/assets/images/pdf.png" title="PDF" align = "center" width="20" height="20">',array('class'=>'delete','onclick'=>"return confirm('Are you sure want to download')"))?></label> <label><?=anchor('report/genrephrsalarybranch/hrsalarybranchxls/'.$fromdate.'/'.$todate.'/'.$search.'/', '<img src="'.base_url().'/assets/images/xls.png" title="Excel" align = "center" width="20" height="20">',array('class'=>'delete','onclick'=>"return confirm('Are you sure want to download')"))?></label> </td></tr></table></div> <table width="100%" class="sort"> <?php $stid='unknown'; if(count($viewinfo) > 0) { $staffidsort=array(); foreach($viewinfo as $key => $row) { $staffidsort[$key]=$row['employee_id']; } array_multisort($staffidsort, SORT_DESC, $viewinfo); foreach($viewinfo as $row) { if($row['employee_id']!=$stid) { $i=1; ?> </table> <table class="reportheader"> <tr><td style="width:20%">Employee:</td><td><?=$row['name']?></td></tr> <tr><td style="width:20%">Branch:</td><td><?=$branchname->branchname?></td></tr> <tr><td style="width:20%">Period:</td><td> <?if ($todate != 'todate'){ ?> <?=$fromdate?> to <?=$todate?> <? } ?></td></tr> </table> <table width="100%" class="sort"><thead><tr> <th>Sl No.</th> <th>Employee Name</th> <th>Salary Month</th> <th style="width:10%">Pay Date</th> <th>Basic Salary</th> <th>Allowance</th> <th>Deduction</th> <th>Net Payment</th> <th>Commission</th> <th>Paid Amount</th> </tr></thead> <?php $stid=$row['employee_id']; } $paydate = $this->mastermodel->convdatformat($row['pay_date']); $saldate=date("M d, Y",strtotime($row['salary_date'])); echo '<tr ><td>'.$i++.'</td><td>';?><?php echo $row['name'];?><?php echo '</td> <td>'.$saldate.'</td><td>'.$paydate.'</td> <td style="text-align:right">'.number_format($row['basic_salary'],2).'</td><td style="text-align:right">'.number_format($row['allowance'],2).'</td> <td style="text-align:right">'.number_format($row['deduction'],2).'</td><td style="text-align:right">'.number_format($row['netpayment'],2).'</td> <td style="text-align:right">'.number_format($row['commission'],2).'</td><td style="text-align:right">'.number_format($row['paidamount'],2).'</td> </tr>'; } } ?> </table>