?
Current Path : /home1/savoy/www/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/www/savoyglobal.net/drafthr/system/application/views/Report/claimslosscoverwisepdf.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <?php foreach($viewinfo as $updata) { $i=1; $type=$this->customermodel->getSingleFieldValue('customers','type','id',$updata['customer_id']); if($type=="Individual") { $cus=$this->mastermodel->get_data_srow('customer_personal_ind',$updata['customer_id'],'customer_id'); } else { $cus=$this->mastermodel->get_data_srow('customer_corp_info',$updata['customer_id'],'customer_id'); } $db_data1[] = array('col1' => $i++,'col2' => $cus->insured,'col3' => $updata['quotation_ref'],'col4' => $updata['policyno'],'col32' => $updata['claimsref'],'col7' => $updata['premium'],'col8' => $updata['totalamount'],'col9' => round($updata['premium']/$updata['totalamount'],2)); } $cov=$this->mastermodel->get_data_srow('covers',$cover_id,'id'); $col_names = array('col1' => 'Sl No','col2' => 'Customer Name','col3' => 'Quotation Ref No','col4' => 'Policy No','col32' => 'Claims Ref No','col7' => 'Premium Amount','col8' => 'Settlement Amount','col9' => 'Claims Loss Ratio',); $this->cezpdf->ezTable($db_data1, $col_names, 'Claims Loss of '.$cov->cover, array('showHeadings'=>1,'width'=>550, 'shaded'=>1,'cols'=>0,'showLines'=> 1 )); $footer = $this->cezpdf->openObject(); $company=$this->mastermodel->get_data_srow('mycompany','1','id'); $this->cezpdf->addText(20, 10, 8, $company->company); $this->cezpdf->addText(710, 10, 8, $company->website); $this->cezpdf->line(0,20,900,20); $this->cezpdf->closeObject(); $this->cezpdf->addObject($footer, "all"); $this->cezpdf->ezStream(); ?>