?
Current Path : /home1/savoy/www/savoyglobal.net/horeitia/application/views/Reports/ |
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/horeitia/application/views/Reports/pdf_report_visa.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $html='<html><head><body>'; $html.='<table width="100%"> <tr><td colspan="2"></td><td align="right"><img src="'.base_url().'assets/images/logo.gif" style="float:right"/></td> <tr><td colspan="3" style="font-size:16px;" align="center"><b><u>Visa Report</u></b></td></tr> <tr><td colspan="3">Printout Date : '.date('d-m-Y').', '.date('h:i:s a').'</td></tr> </table><br><br>'; $html.='<hr>'; $html.='<table cellspacing="-1" style="width:100%;text-align:left"> <thead> <tr bgcolor="#7FCEFF"><th style="text-align:left" bgcolor="#7FCEFF">Sl No</th> <th style="text-align:left" bgcolor="#7FCEFF">Old Employee No</th> <th style="text-align:left" bgcolor="#7FCEFF">Employee No</th> <th style="text-align:left" bgcolor="#7FCEFF">Employee Name</th> <th style="text-align:left" bgcolor="#7FCEFF">Employee No</th> <th style="text-align:left" bgcolor="#7FCEFF">Passport No</th> <th style="text-align:left" bgcolor="#7FCEFF">DOJ</th> <th style="text-align:left" bgcolor="#7FCEFF">Camp</th> <th style="text-align:left" bgcolor="#7FCEFF">Visa Type</th> <th style="text-align:left" bgcolor="#7FCEFF">Issue Date</th> <th style="text-align:left" bgcolor="#7FCEFF">Expiry Date</th> <th style="text-align:left" bgcolor="#7FCEFF">Medical</th> <th style="text-align:left" bgcolor="#7FCEFF">Finger</th> <th style="text-align:left" bgcolor="#7FCEFF">Health Card</th> <th style="text-align:left" bgcolor="#7FCEFF">ID Card</th> <th style="text-align:left" bgcolor="#7FCEFF">Blood Group</th> </tr></thead><tbody>'; $i=1; foreach($report as $rep) { $atdate=date("d-m-Y"); $empname=$rep['emp_non_full_name']; $empno=$rep['employee_no']; $employee_detail=$this->administrationmodel->get_emp_info_newempno($rep['employee_id']); $employee_no=$this->mastermodel->correctempno($employee_detail->emp_non_no); $visa_type_name=$rep['visa_type_name']; $medical=$rep['medical']; $blood_group=$rep['blood_group']; $id_card_no=$rep['id_card_no']; $health_card_no=$rep['health_card_no']; $fingerprint=$rep['fingerprint']; $emp_non_date_joining= $this->mastermodel->convdatformat($rep['emp_non_date_joining']); $visa_issue_date= $this->mastermodel->convdatformat($rep['visa_issue_date']); $visa_expiry_date= $this->mastermodel->convdatformat($rep['visa_expiry_date']); $camp=$this->reportmodel->findemployeecamp($rep['employee_id'],$atdate); if(!empty ($camp)) { $campname=$camp->camp_name; $campid=$camp->camp_id; } else { $campname=""; $campid=""; } if(!empty($postdata['camp_name'])) { if($postdata['camp_name']==$campid) { $html.='<tr style="color:#555555"><td>'.$i.'</td> <td>'.$rep['emp_non_no_old'].'</td> <td>'.$employee_no.'</td> <td>'.$empname.'</td> <td>'.$empno.'</td> <td>'.$rep['emp_non_passport_no'].'</td> <td>'.$emp_non_date_joining.'</td> <td>'.$campname.'</td> <td>'.$visa_type_name.'</td> <td>'.$visa_issue_date.'</td> <td>'.$visa_expiry_date.'</td> <td>'.$medical.'</td> <td>'.$fingerprint.'</td> <td>'.$health_card_no.'</td> <td>'.$id_card_no.'</td> <td>'.$blood_group.'</td> </tr>'; $i++; } } else { $html.='<tr style="color:#555555"> <td>'.$i.'</td> <td>'.$rep['emp_non_no_old'].'</td> <td>'.$employee_no.'</td> <td>'.$empname.'</td> <td>'.$empno.'</td> <td>'.$rep['emp_non_passport_no'].'</td> <td>'.$emp_non_date_joining.'</td> <td>'.$campname.'</td> <td>'.$visa_type_name.'</td> <td>'.$visa_issue_date.'</td> <td>'.$visa_expiry_date.'</td> <td>'.$medical.'</td> <td>'.$fingerprint.'</td> <td>'.$health_card_no.'</td> <td>'.$id_card_no.'</td> <td>'.$blood_group.'</td> </tr>'; $i++; } } $html.='</tbody></table>'; $html.='<hr>'; $html.='</body></html>'; //echo $html; pdf_create($html, 'Visa Report','true'); ?>