?
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/brostfwiserep.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <?php if ($search == "") $search = 'search'; if($fromdate == '') $fromdate = 'fromdate'; if($todate=='') $todate = 'todate'; $cov=$this->mastermodel->get_data_srow('staffpersonaldetails',$search,'id'); $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="loadquotation()" alt="Back" align = "center" width="25" height="25" /></label> </td><td align="center"> Broking Slip Report </td><td align="right"> <label><?=anchor('report/genrepbrostfwise/broking_slip/brostfwisepdf/'.$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/genrepbrostfwise/broking_slip/brostfwisexls/'.$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>Employee Name: </td><td><?=$cov->name?></td></tr> <tr><td width="100">Employee No: </td><td><?=$cov->employeeid?></td></tr> <tr><td>Branch: </td><td><?=$branchname?></td></tr> <?if ($todate != 'todate'){ ?> <tr><td>Period:</td><td> <?=$fromdate?> to <?=$todate?> </td></tr><? } ?> </table> <table class="sort"><thead><tr> <th>Sl No</th> <th>Date</th> <th>Customer Name</th> <th>Quotation Ref No</th> <th>Cover</th> <th>Status</th> </tr> <?php $i=1; $suminsured=0; foreach($viewinfo as $updata) { $amt = $this->mastermodel->get_data('broking_slip_sum_insured',$updata['brid'],'broking_slip_id'); $suminsured=0; foreach($amt as $myamt) { $suminsured+=$myamt['amount']; } $cov=$this->mastermodel->get_data_srow('covers',$updata['cover_id'],'id'); $stf=$this->mastermodel->get_data_srow('staffpersonaldetails',$updata['staffid'],'id'); $type=$this->customermodel->getSingleFieldValue('customers','type','id',$updata['customerid']); if($type=="Individual") { $cus=$this->mastermodel->get_data_srow('customer_personal_ind',$updata['customerid'],'customer_id'); } else { $cus=$this->mastermodel->get_data_srow('customer_corp_info',$updata['customerid'],'customer_id'); } ?> <tr> <td><?=$i++;?></td> <td><?php echo $this->mastermodel->convdatformat($updata['quotation_date']);?></td> <td><?=$cus->insured;?></td> <td><?=$updata['quotation_ref'];?></td> <td><?=$cov->cover;?></td> <td><?=$updata['status'];?></td> </tr> <?php } ?> </table>