?
Current Path : /home1/savoy/public_html/savoyglobal.net/koaladraft/application/views/ |
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/koaladraft/application/views/pdf_create.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $branch=$this->mastermodel->get_data_srow('branch',$_SESSION['employee_branch_id'],'branch_id'); $company=$this->mastermodel->get_data_srow('company','1','company_id'); $html_pdf ='<html> <head> <style> @page { margin-top: 160px; margin-bottom: 40px; font-family: arabic, Arabic, Serif; } #header { position: fixed; left: 0px; top: -150px; right: 0px; height: 140px; } #footer { position: fixed; bottom: -40px; left: 0px; right: 0px; height: 40px; font-size:12px; text-align:center; border-top: 2px solid #43729F; } </style> </head> <body> <div id="header"> <table width="100%"> <tr> <td style="text-align:left;width:40%"><img src="'.base_url().'assets/images/'.$company->logo.'"></td> <td style="text-align:right;width:60%">'.$company->company_display_name.'<br/>'.$company->address.' , '.$company->city.'<br/>Tel: '.$company->contact_no.'<br/>Fax: '.$company->fax.'<br/>Email: '.$company->email.'<br/>Website: '.$company->website.'</td> </tr> </table> <table width="100%"> <tr> <td style="background-color:#030038;height:5px;"></td> </tr> </table> </div>'; $html_pdf .='<div id="footer">'.$branch->branch_report_footer.'</div>'; $html_pdf .= utf8_decode($html); $html_pdf .='</body> </html>'; // echo $html_pdf; pdf_create($html_pdf, $pdf_name); ?>