Beispiel #1
0
     foreach ($action_meeting as $action) {
         if ($action->type == '0') {
             Fpdf::SetFont('Arial', '', 10);
             Fpdf::SetTextColor(0);
             $cleanAction = strip_tags($action->description);
             $cleanAction = str_replace(" ", " ", $cleanAction);
             Fpdf::MultiCell(0, 25, $cleanAction, 'LTR', 'L');
         } else {
             Fpdf::SetFont('Arial', '', 10);
             Fpdf::SetTextColor(0);
             $cleanAction2 = strip_tags($action->description);
             $cleanAction2 = str_replace(" ", " ", $cleanAction2);
             Fpdf::MultiCell(0, 25, $cleanAction2, 'LTR', 'L');
             $contacts_name = DB::table('contacts')->where('contactsID', '=', $action->type)->first(array('cName'));
             Fpdf::SetFont('Arial', 'I', 8);
             Fpdf::SetTextColor(153);
             Fpdf::MultiCell(0, 25, "Assigned To: " . $contacts_name->cName, 'LRB', 'L');
         }
     }
 }
 Fpdf::Output('../public/pdf/minitmeet' . $minute->mID . '.pdf', 'F');
 if ($view != "view") {
     $id = Input::get('id');
     $minute = DB::table('minutes')->where('mID', '=', $id)->join('users', 'id', '=', 'user_id_minutes')->first(array('mID', 'mTitle', 'mAgenda', 'username', 'email', 'first_name', 'last_name', 'selected_date', 'bgcolor', 'fontcolor', 'logo'));
     if (!isset($_GET['agenda'])) {
         $subject = 'Your Meeting Notes';
         $type = "minutes";
     } else {
         $subject = 'Your Meeting Agenda';
         $type = "agenda";
     }
Beispiel #2
0
<?php

require "fpdf/fpdf.php";
class PDF extends FPDF
{
}
// declaracion de la hoja
$fpdf = new Fpdf();
$fpdf->AddPage();
// datos de titulo
$fpdf->SetTextColor(0x0, 0x0, 0x0);
$fpdf->SetFont('Arial', 'b', 16);
// aca va la imagen
$fpdf->Image('images/cabeza-re.jpg', 18, 3, 165, 35, 'JPG', '', 0, 1, 'C');
$fpdf->Cell(170, 18, date('d/m/Y'), 0, 1, 'R');
$fpdf->Cell(170, 2, date('H:m:s'), 0, 1, 'R');
$fpdf->Cell(185, 20, 'Lista Total de Cursos', 0, 1, 'C');
// conexion base de datos
$enlace = mysqli_connect("localhost", "root", "", "caferedbd");
$frec = mysqli_query($enlace, "SELECT * FROM curso");
//formato de la tabla
$fpdf->Ln(5);
$fpdf->SetFont('Arial', 'B', 10);
$fpdf->SetFillColor(67, 187, 70);
// fondo color verde
// titulos
$fpdf->Cell(15, 5, 'Codigo', 0, 0, 'C', True);
$fpdf->Cell(25, 5, 'Nombre', 0, 0, 'C', True);
$fpdf->Cell(20, 5, 'Fecha ', 0, 0, 'C', True);
$fpdf->Cell(10, 5, 'Num.', 0, 0, 'C', True);
$fpdf->Cell(10, 5, 'Max.', 0, 0, 'C', True);
 public function getPerfReportsPdf()
 {
     $deptL = Session::get('deptpdf');
     $sem = Session::get('sempdf');
     $year = Session::get('yearpdf');
     if ($deptL == 'All') {
         $deptL = '*';
     }
     //------------------------------
     if ($sem == 'All') {
         $sem = '*';
     }
     $users = 'Performance';
     $matchThese = array();
     //If user chooses from dropdown
     if ($deptL != "*") {
         //If true insert this to variable
         $matchThese = array_add($matchThese, 'dept_id', $deptL);
         /***********Add Array*****************/
         //If user chooses from dropdown
         if ($sem != "*") {
             //If true insert this to variable
             $matchThese = array_add($matchThese, 'semester', $sem);
             if ($year != "All") {
                 $matchThese = array_add($matchThese, 'year', $year);
                 $query = $users::where($matchThese)->orderBy('overall', 'desc')->get();
             } else {
                 $query = $users::where($matchThese)->orderBy('overall', 'desc')->get();
             }
         } else {
             //===========Else of Semester
             if ($year != "All") {
                 $matchThese = array_add($matchThese, 'year', $year);
                 $query = $users::where($matchThese)->orderBy('overall', 'desc')->get();
             } else {
                 //===========Else of Year
                 $query = $users::where($matchThese)->orderBy('overall', 'desc')->get();
             }
             $query = $users::where($matchThese)->orderBy('overall', 'desc')->get();
         }
         /***********End Add Array*****************/
     } else {
         //===========Else of Department
         /*************Add Array***************/
         if ($sem != "*") {
             //If true insert this to variable
             $matchThese = array_add($matchThese, 'semester', $sem);
             if ($year != "All") {
                 $matchThese = array_add($matchThese, 'year', $year);
                 $query = $users::where($matchThese)->orderBy('overall', 'desc')->get();
             } else {
                 $query = $users::where($matchThese)->orderBy('overall', 'desc')->get();
             }
         } else {
             //===========Else of Semester
             if ($year != "All") {
                 $matchThese = array_add($matchThese, 'year', $year);
                 $query = $users::where($matchThese)->orderBy('overall', 'desc')->get();
             } else {
                 //===========Else of Year
                 $query = $users::all();
             }
         }
         /************End Add Array****************/
     }
     Fpdf::AddPage();
     Fpdf::PageNo();
     Fpdf::AliasNbPages();
     Fpdf::Image('img/dap.jpg', 10, 5, 150);
     Fpdf::Ln(5);
     Fpdf::SetFont('Arial', 'B', 8);
     Fpdf::Cell(300, 20, 'Date Generated: ' . date("Y/m/d"), 0, 2, 'C', 0);
     Fpdf::Cell(30, 10, 'Performance Results', 0, 2, 'C', 0);
     if ($deptL == '*') {
         Fpdf::Cell(22, 10, 'Department: All', 0, 2, 'C', 0);
     } else {
         $filterDepartment = Department::where('id', $deptL)->first();
         Fpdf::Cell(30, 10, 'Department: ' . $filterDepartment->name, 0, 2, 'C', 0);
     }
     //------------------------------
     if ($sem == '*') {
         Fpdf::Cell(22, 10, 'Semester: All', 0, 2, 'C', 0);
     } else {
         Fpdf::Cell(30, 10, 'Semester: ' . $sem, 0, 2, 'C', 0);
     }
     if ($year == 'All') {
         Fpdf::Cell(30, 10, 'Year: All', 0, 2, 'C', 0);
     } else {
         Fpdf::Cell(30, 10, 'Year: ' . $year, 0, 2, 'C', 0);
     }
     Fpdf::SetFont('Arial', 'B', 5.5);
     Fpdf::Cell(5, 5, 'Id', 1, 0, 'C', 0);
     Fpdf::Cell(24.5, 5, 'Employee Name', 1, 0, 'C', 0);
     Fpdf::Cell(24.5, 5, 'Department', 1, 0, 'C', 0);
     Fpdf::SetFillColor(51, 51, 225);
     Fpdf::SetTextColor(0, 0, 0);
     Fpdf::Cell(25, 5, 'Utilities', 1, 0, 'C', true);
     Fpdf::Cell(25, 5, 'Quality of Work', 1, 0, 'C', true);
     Fpdf::Cell(30, 5, 'Potential for future performance', 1, 0, 'C', true);
     Fpdf::SetFillColor(96, 96, 96);
     Fpdf::Cell(25, 5, 'Overall Rating', 1, 0, 'C', true);
     Fpdf::Cell(15, 5, 'Semester', 1, 0, 'C', 0);
     Fpdf::Cell(16, 5, 'Year', 1, 0, 'C', 0);
     Fpdf::Ln();
     foreach ($query as $perf) {
         Fpdf::Cell(5, 5, $perf->user->id, 1, 0, 'C', 0);
         Fpdf::Cell(24.5, 5, $perf->user->formatName(':ln, :fn :mi'), 1, 0, 'C', 0);
         $department = Department::where('id', $perf->dept_id)->first();
         Fpdf::Cell(24.5, 5, $department->name, 1, 0, 'C', 0);
         Fpdf::SetFillColor(204, 229, 225);
         Fpdf::Cell(5, 5, $perf->utilities, 1, 0, 'C', true);
         Fpdf::Cell(20, 5, $perf->equivalent('utilities')->description, 1, 0, 'C', true);
         Fpdf::Cell(5, 5, $perf->workQuality, 1, 0, 'C', true);
         Fpdf::Cell(20, 5, $perf->equivalent('workQuality')->description, 1, 0, 'C', true);
         Fpdf::Cell(5, 5, $perf->potential, 1, 0, 'C', true);
         Fpdf::Cell(25, 5, $perf->equivalent('potential')->description, 1, 0, 'C', true);
         $u = $perf->utilities;
         $qow = $perf->workQuality;
         $pffp = $perf->potential;
         $overall = number_format(($u + $qow + $pffp) / 3, 2);
         $rating = ParRatingsRef::where('upper_limit', '>=', $overall)->where('lower_limit', '<=', $overall)->first();
         $overpercent = number_format($overall / 6 * 100, 2);
         Fpdf::SetFillColor(192, 192, 192);
         Fpdf::Cell(20, 5, $overall, 1, 0, 'C', true);
         Fpdf::Cell(5, 5, $rating->adjectival, 1, 0, 'C', true);
         Fpdf::Cell(15, 5, $perf->semester, 1, 0, 'C', 0);
         Fpdf::Cell(16, 5, $perf->year, 1, 0, 'C', 0);
         Fpdf::Ln();
     }
     Fpdf::SetY(-30.5);
     Fpdf::SetFont('Arial', 'I', 6);
     Fpdf::SetTextColor(0, 0, 0);
     Fpdf::Cell(0, 10, 'Page ' . Fpdf::PageNo() . "/{nb}", 0, 0, 'C');
     Fpdf::Output();
     exit;
     Session::forget('deptpdf');
     Session::forget('sempdf');
     Session::forget('yearpdf');
 }
Beispiel #4
0
 public function monthly($res, $id)
 {
     $dt = DateTime::createFromFormat('!m', $id);
     $fpdf = new Fpdf();
     $fpdf->AddPage('L');
     $fpdf->SetFont('Arial', 'B', 16);
     $fpdf->Cell(130);
     $fpdf->Cell(20, 10, Information::where('keyname', '=', 'name')->first()->value, 0, 1, 'C');
     $fpdf->Cell(130);
     $fpdf->SetFont('Arial', '', 14);
     $fpdf->Cell(20, 10, Information::where('keyname', '=', 'address')->first()->value, 0, 1, 'C');
     $header = array('ID', 'Date', 'Pax', 'Status', 'Amount', 'Payment Method', 'Duration');
     $fpdf->SetFont('Arial', 'B', 16);
     $fpdf->Cell(130);
     $fpdf->Cell(20, 10, 'Monthly Report for the Month of: ' . $dt->format('F'), 0, 1, 'C');
     // Colors, line width and bold font
     $fpdf->SetFillColor(255, 0, 0);
     $fpdf->SetTextColor(255);
     $fpdf->SetDrawColor(128, 0, 0);
     $fpdf->SetLineWidth(0.3);
     $fpdf->SetFont('', '');
     // Header
     $fpdf->Ln();
     $fpdf->Cell(10);
     $w = array(35, 25, 25, 45, 23, 50, 55);
     for ($i = 0; $i < count($header); $i++) {
         $fpdf->Cell($w[$i], 7, $header[$i], 1, 0, 'C', true);
     }
     $fpdf->Ln();
     // Color and font restoration
     $fpdf->SetFillColor(224, 235, 255);
     $fpdf->SetTextColor(0);
     $fpdf->SetFont('Arial', '', 12);
     // Data
     $fill = false;
     $total = 0;
     foreach ($res as $row) {
         $fpdf->Cell(10);
         $fpdf->Cell($w[0], 6, $row->id, 'LR', 0, 'L', $fill);
         $fpdf->Cell($w[1], 6, $row->date_request, 'LR', 0, 'L', $fill);
         $fpdf->Cell($w[2], 6, $row->pax, 'LR', 0, 'R', $fill);
         $fpdf->Cell($w[3], 6, $row->status, 'LR', 0, 'R', $fill);
         $fpdf->Cell($w[4], 6, $row->net_total, 'LR', 0, 'R', $fill);
         if ($row->payment_mode != '') {
             $fpdf->Cell($w[5], 6, $row->payment_mode . " (" . $row->payment_method . ")", 'LR', 0, 'L', $fill);
         } else {
             $fpdf->Cell($w[5], 6, 'Payment Method not set', 'LR', 0, 'L', $fill);
         }
         $fpdf->Cell($w[6], 6, $row->reservation_start . ' to ' . $row->reservation_end, 'LR', 0, 'L', $fill);
         $fpdf->Ln();
         $fill = !$fill;
         $total = +$row->net_total;
     }
     // Closing line
     $fpdf->Cell(10);
     $fpdf->Cell(array_sum($w), 0, '', 'T');
     $fpdf->Ln();
     $fpdf->Cell(190);
     $fpdf->SetFont('Arial', 'B', 13);
     $fpdf->Cell(40, 7, 'Total:', '', 0, 'R');
     $fpdf->SetFont('Arial', '', 13);
     $fpdf->Cell(40, 7, "{$total}", 0);
     $fpdf->Output();
     exit;
 }
 public function getLeavesListPdf($id)
 {
     $audit = AuditTrail::create(['user_id' => Auth::id(), 'role' => 'Employee Management Admin', 'action' => 'printed Leave balances of All employees.']);
     if ($id == "*") {
         $users = User::all();
     } else {
         $users = User::where('department_id', $id)->get();
     }
     Fpdf::AddPage();
     Fpdf::Image('img/dap.jpg', 40, 0, 150);
     Fpdf::Ln(35);
     Fpdf::SetFont('Arial', 'B', 11);
     Fpdf::SetTextColor(0, 0, 0);
     Fpdf::Cell(300, 20, 'Date Generated: ' . date("F j, Y"), 0, 2, 'C', 0);
     Fpdf::Cell(18, 7, 'Leave List', 0, 2, 'C', 0);
     Fpdf::SetFont('Arial', 'B', 7);
     Fpdf::SetTextColor(0, 0, 0);
     Fpdf::Cell(18, 7, 'ID', 1);
     Fpdf::Cell(24, 7, 'Name', 1);
     Fpdf::Cell(30, 7, 'Department', 1);
     Fpdf::Cell(9, 7, 'VL', 1);
     Fpdf::Cell(9, 7, 'SL', 1);
     Fpdf::Cell(9, 7, 'PL', 1);
     Fpdf::Cell(9, 7, 'ML', 1);
     Fpdf::Cell(9, 7, 'BL', 1);
     Fpdf::Ln();
     Fpdf::SetFont('Arial', '', 7);
     foreach ($users as $user) {
         Fpdf::Cell(18, 7, $user->id, 1);
         Fpdf::Cell(24, 7, $user->firstname, 1);
         Fpdf::Cell(30, 7, $user->department->name, 1);
         $leaves = LeaveBalance::where('user_id', $user->id)->get();
         foreach ($leaves as $leave) {
             Fpdf::Cell(9, 7, $leave->balance, 1);
         }
         Fpdf::Ln();
     }
     Fpdf::SetY(-35);
     Fpdf::AliasNbPages('{nb}');
     Fpdf::SetFont('Arial', 'I', 10);
     Fpdf::SetTextColor(0, 0, 0);
     Fpdf::Cell(0, 10, 'Page ' . Fpdf::PageNo() . '/{nb}', 0, 0, 'C');
     Fpdf::Output();
     exit;
 }
Beispiel #6
0
$fpdf->SetFont('Arial', 'B', 16);
$fpdf->SetAutoPageBreak(false);
$fpdf->image(public_path() . '/img/logo.png', 11, 11, 25, 11);
$fpdf->Cell(140, 8, 'Frizelo Frigorificos Ltda', 'LTR', 0, 'C');
$fpdf->SetFont('Arial', '', 9);
$fpdf->MultiCell(50, 8, utf8_decode('Numeração: ') . $aso->id, 'TR', 1);
$fpdf->SetFont('Arial', '', 6);
$fpdf->Cell(140, 5, 'ROD. BR-262 - KM 375, ZONA SUBURBANA, TERENOS-MS FONE: (67) - 3246-8100', 'BLR', 0, 'C', 0);
$fpdf->SetFont('Arial', '', 9);
$fpdf->MultiCell(50, 5, 'Data: ' . $aso->data, 'BR', 1);
$fpdf->SetFont('Arial', 'B', 12);
$fpdf->MultiCell(190, 9, utf8_decode('Medicina e Consultoria em Segurança do Trabalho'), 'BLR', 'L');
$fpdf->SetFont('Arial', '', 9);
$fpdf->MultiCell(190, 9, utf8_decode('Em cumprimento ao disposto no item 7.4.1 da NR 7 e Portaria N 24 de 24/14/84'), 'LRT', 'C');
$fpdf->SetFont('Arial', 'B', 12);
$fpdf->SetTextColor(150);
$fpdf->MultiCell(190, 9, utf8_decode('A.S.O. - Atestado de Saúde Ocupacional'), 'LRB', 'C');
$fpdf->SetTextColor(0);
$fpdf->SetFont('Arial', '', 9);
$fpdf->Cell(33, 7, utf8_decode('Matrícula: ' . $aso->colaborador_matricula), 'LTR', 0, 'L');
$fpdf->Cell(97, 7, utf8_decode('Nome: ' . $aso->colaborador_nome), 'LTR', 0, 'L');
$fpdf->Cell(60, 7, utf8_decode('RG: ' . $aso->colaborador_rg . ' ' . $aso->colaborador_orgao_emissor), 'LTR', 0, 'L');
$fpdf->Ln();
$fpdf->Cell(30, 7, 'Sexo: ' . $aso->colaborador_sexo_descricao, 'LTR', 0, 'L');
$fpdf->Cell(60, 7, 'Data de Nascimento: ' . $aso->colaborador_data_nascimento, 'LTR', 0, 'L');
$fpdf->Cell(30, 7, 'Idade: ' . $aso->colaborador_idade, 'LTR', 0, 'L');
$fpdf->Cell(70, 7, utf8_decode('Setor: ' . $aso->setor), 'LTR', 0, 'L');
$fpdf->Ln();
$fpdf->Cell(95, 7, utf8_decode('Função: ' . $aso->funcao_descricao), 'LTR', 0, 'L');
$fpdf->Cell(95, 7, utf8_decode('Data de Admissão: ' . $aso->data_admissao), 'LTR', 0, 'L');
$fpdf->Ln();
 public function getViewResultsPdf($id)
 {
     $result = Performance::find($id);
     $perf = Performance::find($id);
     $user = Performance::find($id);
     $rating = Performance::find($id);
     $u = $perf->utilities;
     $qow = $perf->workQuality;
     $pffp = $perf->potential;
     $overall = number_format(($u + $qow + $pffp) / 3, 2);
     $rating = ParRatingsRef::where('upper_limit', '>=', $overall)->where('lower_limit', '<=', $overall)->first();
     $overpercent = number_format($overall / 6 * 100, 2);
     $department = Department::where('id', $perf->dept_id)->first();
     Fpdf::AddPage();
     Fpdf::PageNo();
     Fpdf::AliasNbPages('{nb}');
     Fpdf::Image('img/dap.jpg', 40, 0, 150);
     Fpdf::Ln(30);
     Fpdf::SetFont('Arial', 'B', 11);
     Fpdf::SetTextColor(0, 0, 0);
     Fpdf::Cell(300, 20, 'Date Generated: ' . date("F j, Y"), 0, 2, 'C', 0);
     Fpdf::SetFont('Arial', 'B', 15);
     Fpdf::Cell(0, 0, 'Performance Evaluation', 0, 1, 'L', 0);
     Fpdf::Ln(8);
     Fpdf::SetFont('Arial', 'B', 11);
     Fpdf::Cell(0, 0, 'Name: ' . $perf->user->formatName(':ln, :fn :mn'), 0, 1, 'L', 0);
     Fpdf::Ln(8);
     Fpdf::Cell(0, 0, 'Department: ' . $department->name, 0, 1, 'L', 0);
     Fpdf::Ln(8);
     Fpdf::Cell(0, 0, 'Semester: ' . $perf->semester, 0, 1, 'L', 0);
     Fpdf::Ln(10);
     Fpdf::SetFont('Arial', '', 20);
     Fpdf::SetDrawColor(224, 224, 224);
     Fpdf::SetFillColor(51, 51, 225);
     Fpdf::SetTextColor(255, 255, 255);
     Fpdf::Cell(110, 10, 'Utilities', 1, 1, 'C', true);
     Fpdf::SetFont('Arial', 'B', 7);
     Fpdf::SetFillColor(204, 229, 225);
     Fpdf::SetTextColor(96, 96, 96);
     Fpdf::Cell(50, 10, 'Intra-group Involvements', 1, 0, 'C', true);
     Fpdf::Cell(20, 10, $result->util1, 1, 0, 'C', 0);
     Fpdf::Cell(20, 10, $perf->equivalent('util1')->adjectival, 1, 0, 'C', 0);
     Fpdf::Cell(20, 10, $perf->equivalent('util1')->description, 1, 1, 'C', 0);
     Fpdf::Cell(50, 10, 'Inter-group Involvements', 1, 0, 'C', true);
     Fpdf::Cell(20, 10, $result->util2, 1, 0, 'C', 0);
     Fpdf::Cell(20, 10, $perf->equivalent('util2')->adjectival, 1, 0, 'C', 0);
     Fpdf::Cell(20, 10, $perf->equivalent('util2')->description, 1, 1, 'C', 0);
     Fpdf::Cell(50, 10, 'Committee Work', 1, 0, 'C', true);
     Fpdf::Cell(20, 10, $result->util3, 1, 0, 'C', 0);
     Fpdf::Cell(20, 10, $perf->equivalent('util3')->adjectival, 1, 0, 'C', 0);
     Fpdf::Cell(20, 10, $perf->equivalent('util3')->description, 1, 1, 'C', 0);
     Fpdf::SetTextColor(204, 0, 0);
     Fpdf::Cell(50, 10, 'Average Rating', 1, 0, 'C', true);
     Fpdf::Cell(20, 10, $result->util_overall, 1, 0, 'C', 0);
     Fpdf::Cell(20, 10, $perf->equivalent('utilities')->adjectival, 1, 0, 'C', 0);
     Fpdf::Cell(20, 10, $perf->equivalent('utilities')->description, 1, 1, 'C', 0);
     //Quality of work table
     Fpdf::Ln(10);
     Fpdf::SetFont('Arial', '', 20);
     Fpdf::SetDrawColor(224, 224, 224);
     Fpdf::SetFillColor(51, 51, 225);
     Fpdf::SetTextColor(255, 255, 255);
     Fpdf::Cell(110, 10, 'Quality of Work', 1, 2, 'C', true);
     Fpdf::SetFont('Arial', 'B', 7);
     Fpdf::SetFillColor(204, 229, 225);
     Fpdf::SetTextColor(96, 96, 96);
     Fpdf::Cell(50, 10, 'Relevance to Project/unit objectives', 1, 0, 'C', true);
     Fpdf::Cell(20, 10, $result->qow1, 1, 0, 'C', 0);
     Fpdf::Cell(20, 10, $perf->equivalent('qow1')->adjectival, 1, 0, 'C', 0);
     Fpdf::Cell(20, 10, $perf->equivalent('qow1')->description, 1, 1, 'C', 0);
     Fpdf::Cell(50, 10, 'Timeliness', 1, 0, 'C', true);
     Fpdf::Cell(20, 10, $result->qow2, 1, 0, 'C', 0);
     Fpdf::Cell(20, 10, $perf->equivalent('qow2')->adjectival, 1, 0, 'C', 0);
     Fpdf::Cell(20, 10, $perf->equivalent('qow2')->description, 1, 1, 'C', 0);
     Fpdf::Cell(50, 10, 'Thoroughness', 1, 0, 'C', true);
     Fpdf::Cell(20, 10, $result->qow3, 1, 0, 'C', 0);
     Fpdf::Cell(20, 10, $perf->equivalent('qow3')->adjectival, 1, 0, 'C', 0);
     Fpdf::Cell(20, 10, $perf->equivalent('qow3')->description, 1, 1, 'C', 0);
     Fpdf::Cell(50, 10, 'High-Rate', 1, 0, 'C', true);
     Fpdf::Cell(20, 10, $result->qow4, 1, 0, 'C', 0);
     Fpdf::Cell(20, 10, $perf->equivalent('qow4')->adjectival, 1, 0, 'C', 0);
     Fpdf::Cell(20, 10, $perf->equivalent('qow4')->description, 1, 1, 'C', 0);
     Fpdf::Cell(50, 10, 'Accuracy', 1, 0, 'C', true);
     Fpdf::Cell(20, 10, $result->qow5, 1, 0, 'C', 0);
     Fpdf::Cell(20, 10, $perf->equivalent('qow5')->adjectival, 1, 0, 'C', 0);
     Fpdf::Cell(20, 10, $perf->equivalent('qow5')->description, 1, 1, 'C', 0);
     Fpdf::Cell(50, 10, 'Foresight', 1, 0, 'C', true);
     Fpdf::Cell(20, 10, $result->qow6, 1, 0, 'C', 0);
     Fpdf::Cell(20, 10, $perf->equivalent('qow6')->adjectival, 1, 0, 'C', 0);
     Fpdf::Cell(20, 10, $perf->equivalent('qow6')->description, 1, 1, 'C', 0);
     Fpdf::Cell(50, 10, 'Neatness and Presentability', 1, 0, 'C', true);
     Fpdf::Cell(20, 10, $result->qow7, 1, 0, 'C', 0);
     Fpdf::Cell(20, 10, $perf->equivalent('qow7')->adjectival, 1, 0, 'C', 0);
     Fpdf::Cell(20, 10, $perf->equivalent('qow7')->description, 1, 1, 'C', 0);
     Fpdf::Cell(50, 10, 'Cost-effectiveness', 1, 0, 'C', true);
     Fpdf::Cell(20, 10, $result->qow8, 1, 0, 'C', 0);
     Fpdf::Cell(20, 10, $perf->equivalent('qow8')->adjectival, 1, 0, 'C', 0);
     Fpdf::Cell(20, 10, $perf->equivalent('qow8')->description, 1, 1, 'C', 0);
     Fpdf::SetTextColor(204, 0, 0);
     Fpdf::Cell(50, 10, 'Average Rating', 1, 0, 'C', true);
     Fpdf::Cell(20, 10, $result->qow_overall, 1, 0, 'C', 0);
     Fpdf::Cell(20, 10, $perf->equivalent('qow_overall')->adjectival, 1, 0, 'C', 0);
     Fpdf::Cell(20, 10, $perf->equivalent('qow_overall')->description, 1, 1, 'C', 0);
     //Potential for Future Performance table
     Fpdf::Ln(10);
     Fpdf::SetFont('Arial', '', 20);
     Fpdf::SetDrawColor(224, 224, 224);
     Fpdf::SetFillColor(51, 51, 225);
     Fpdf::SetTextColor(255, 255, 255);
     Fpdf::Cell(110, 10, 'Potential for Future Performance', 1, 2, 'C', true);
     Fpdf::SetFont('Arial', 'B', 7);
     Fpdf::SetFillColor(204, 229, 225);
     Fpdf::SetTextColor(96, 96, 96);
     Fpdf::Cell(50, 10, 'Appropriate Expertise', 1, 0, 'C', true);
     Fpdf::Cell(20, 10, $result->pffp1, 1, 0, 'C', 0);
     Fpdf::Cell(20, 10, $perf->equivalent('pffp1')->adjectival, 1, 0, 'C', 0);
     Fpdf::Cell(20, 10, $perf->equivalent('pffp1')->description, 1, 1, 'C', 0);
     Fpdf::Cell(50, 10, 'Professional Interest', 1, 0, 'C', true);
     Fpdf::Cell(20, 10, $result->pffp2, 1, 0, 'C', 0);
     Fpdf::Cell(20, 10, $perf->equivalent('pffp2')->adjectival, 1, 0, 'C', 0);
     Fpdf::Cell(20, 10, $perf->equivalent('pffp2')->description, 1, 1, 'C', 0);
     Fpdf::Cell(50, 10, 'Ability to Learn', 1, 0, 'C', true);
     Fpdf::Cell(20, 10, $result->pffp3, 1, 0, 'C', 0);
     Fpdf::Cell(20, 10, $perf->equivalent('pffp3')->adjectival, 1, 0, 'C', 0);
     Fpdf::Cell(20, 10, $perf->equivalent('pffp3')->description, 1, 1, 'C', 0);
     Fpdf::Cell(50, 10, 'Professional Integrity ', 1, 0, 'C', true);
     Fpdf::Cell(20, 10, $result->pffp4, 1, 0, 'C', 0);
     Fpdf::Cell(20, 10, $perf->equivalent('pffp4')->adjectival, 1, 0, 'C', 0);
     Fpdf::Cell(20, 10, $perf->equivalent('pffp4')->description, 1, 1, 'C', 0);
     Fpdf::Cell(50, 10, 'Work standards ', 1, 0, 'C', true);
     Fpdf::Cell(20, 10, $result->pffp5, 1, 0, 'C', 0);
     Fpdf::Cell(20, 10, $perf->equivalent('pffp5')->adjectival, 1, 0, 'C', 0);
     Fpdf::Cell(20, 10, $perf->equivalent('pffp5')->description, 1, 1, 'C', 0);
     Fpdf::Cell(50, 10, 'Innovativeness ', 1, 0, 'C', true);
     Fpdf::Cell(20, 10, $result->pffp6, 1, 0, 'C', 0);
     Fpdf::Cell(20, 10, $perf->equivalent('pffp6')->adjectival, 1, 0, 'C', 0);
     Fpdf::Cell(20, 10, $perf->equivalent('pffp6')->description, 1, 1, 'C', 0);
     Fpdf::Cell(50, 10, 'Maturity ', 1, 0, 'C', true);
     Fpdf::Cell(20, 10, $result->pffp7, 1, 0, 'C', 0);
     Fpdf::Cell(20, 10, $perf->equivalent('pffp7')->adjectival, 1, 0, 'C', 0);
     Fpdf::Cell(20, 10, $perf->equivalent('pffp7')->description, 1, 1, 'C', 0);
     Fpdf::Cell(50, 10, 'Collaboration ', 1, 0, 'C', true);
     Fpdf::Cell(20, 10, $result->pffp8, 1, 0, 'C', 0);
     Fpdf::Cell(20, 10, $perf->equivalent('pffp8')->adjectival, 1, 0, 'C', 0);
     Fpdf::Cell(20, 10, $perf->equivalent('pffp8')->description, 1, 1, 'C', 0);
     Fpdf::Cell(50, 10, 'Initiative', 1, 0, 'C', true);
     Fpdf::Cell(20, 10, $result->pffp9, 1, 0, 'C', 0);
     Fpdf::Cell(20, 10, $perf->equivalent('pffp9')->adjectival, 1, 0, 'C', 0);
     Fpdf::Cell(20, 10, $perf->equivalent('pffp9')->description, 1, 1, 'C', 0);
     Fpdf::Cell(50, 10, 'Responsiveness', 1, 0, 'C', true);
     Fpdf::Cell(20, 10, $result->pffp10, 1, 0, 'C', 0);
     Fpdf::Cell(20, 10, $perf->equivalent('pffp10')->adjectival, 1, 0, 'C', 0);
     Fpdf::Cell(20, 10, $perf->equivalent('pffp10')->description, 1, 1, 'C', 0);
     Fpdf::Cell(50, 10, 'Adaptability and Consistent track record ', 1, 0, 'C', true);
     Fpdf::Cell(20, 10, $result->pffp11, 1, 0, 'C', 0);
     Fpdf::Cell(20, 10, $perf->equivalent('pffp11')->adjectival, 1, 0, 'C', 0);
     Fpdf::Cell(20, 10, $perf->equivalent('pffp11')->description, 1, 1, 'C', 0);
     Fpdf::SetTextColor(204, 0, 0);
     Fpdf::Cell(50, 10, 'Average Rating', 1, 0, 'C', true);
     Fpdf::Cell(20, 10, $result->pffp_overall, 1, 0, 'C', 0);
     Fpdf::Cell(20, 10, $perf->equivalent('pffp_overall')->adjectival, 1, 0, 'C', 0);
     Fpdf::Cell(20, 10, $perf->equivalent('pffp_overall')->description, 1, 1, 'C', 0);
     //Overall Rating table
     Fpdf::Ln(10);
     Fpdf::SetFont('Arial', '', 20);
     Fpdf::SetDrawColor(224, 224, 224);
     Fpdf::SetFillColor(51, 51, 225);
     Fpdf::SetTextColor(255, 255, 255);
     Fpdf::Cell(140, 10, 'Overall Rating', 1, 2, 'C', true);
     Fpdf::SetFont('Arial', 'B', 7);
     Fpdf::SetFillColor(204, 229, 225);
     Fpdf::SetTextColor(96, 96, 96);
     Fpdf::Cell(30, 10, 'Superior Remarks', 1, 0, 'C', true);
     Fpdf::Cell(110, 10, $perf->comments, 1, 1, 'C', 0);
     Fpdf::Cell(30, 10, 'Overall rating', 1, 0, 'C', true);
     Fpdf::Cell(30, 10, $result->overall, 1, 0, 'C', 0);
     Fpdf::Cell(30, 10, $rating->adjectival, 1, 0, 'C', 0);
     Fpdf::Cell(50, 10, $rating->description, 1, 0, 'C', 0);
     Fpdf::SetY(-35);
     Fpdf::AliasNbPages('{nb}');
     Fpdf::SetFont('Arial', 'I', 10);
     Fpdf::SetTextColor(0, 0, 0);
     Fpdf::Cell(0, 10, 'Page ' . Fpdf::PageNo() . '/{nb}', 0, 0, 'C');
     Fpdf::Output();
     exit;
 }