?
Current Path : /home1/savoy/public_html/savoyglobal.net/drafthr/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/public_html/savoyglobal.net/drafthr/system/application/views/Report/hrleaverepemp.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <?php if ($search == "") $search = 'search'; if($fromdate == '') $fromdate = 'fromdate'; if($todate=='') $todate = 'todate'; $stf=$this->mastermodel->get_data_srow('staffpersonaldetails',$search,'id'); $branchname = $this->mastermodel->get_newbranchname($search); ?> <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"> LEAVE REPORT </td><td align="right"> <label><?=anchor('report/genrephrleave/assignleave/hrleaveemppdf/'.$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/genrephrleave/assignleave/hrleaveempxls/'.$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 class="reportheader"> <tr><td style="width:20%">Employee:</td><td><?=$stf->name?></td></tr> <tr><td style="width:20%">Branch:</td><td><?=$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>From Date</th> <th>To Date</th> <th>No of Days</th> <th>Type of Leave</th> <th>Status</th> </tr></thead> <?php $i=1; if(count($viewinfo) > 0) { foreach($viewinfo as $row) { $fromdate1 = $this->mastermodel->convdatformat($row['fromdate']); $todate1 = $this->mastermodel->convdatformat($row['todate']); $noofdays=(strtotime($row['todate']) - strtotime($row['fromdate'])) / (60 * 60 * 24)+1; echo '<tr ><td>'.$i++.'</td><td>';?><?php echo $stf->name;?><?php echo '</td> <td>'.$fromdate1.'</td><td>'.$todate1.'</td><td>'.$noofdays.'</td><td>'.$row['leavename'].'</td><td>'.$row['leavestatus'].'</td> </tr>'; } } ?> </table>