?
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/paymentstfwisepdf.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <?php $i=1; $suminsured=0; if(!$company) $loggo='default_header.jpg'; else { foreach($company as $company) { $loggo=$company['filename']; } } foreach($viewinfo as $updata) { $cov=$this->mastermodel->get_data_srow('covers',$updata['cover_id'],'id'); $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' =>$this->mastermodel->convdatformat($updata['quotation_date']),'col4' => $updata['quotation_ref'],'col6' => $cus->insured,'col16' => $cov->cover,'col7' => $updata['status'],'col17' => $updata['paydate'],'col8' => $updata['amount']); } $this->cezpdf->cezpdf('a4', 'landscape'); $this->cezpdf->ezSetMargins(0,0,10,150); $image=base_url() .'/logo/'.$loggo; $this->cezpdf->ezImage($image,'0','150','','left',''); $this->cezpdf->ezSetMargins(0,0,30,30); $stf=$this->mastermodel->get_data_srow('staffpersonaldetails',$search,'id'); $col_names = array('col1' => 'Sl No','col2' => 'Date','col4' => 'Quotation Ref No','col6' => 'Insured','col16' => 'Cover','col7' => 'Status','col17' => 'Payment Date','col8' => 'Amount'); $this->cezpdf->ezTable($db_data1, $col_names, 'Payment Report- '.$stf->name, array('showHeadings'=>1,'width'=>800, '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(); ?>