<?php require_once '../PDF/fpdf.php'; $pdf = new FPDF(); require_once '../../config/DBOperator.php'; $db = new DBDriver(PDOConfig::getInstance()); if (isset($_GET['id'])) { $id = $_GET['id']; $query_header = 'call getBillHeader(?)'; $header = $db->set($query_header, array($id))[0]; $query_detail = 'call getBillDetail(?)'; $detail = $db->set($query_detail, array($id)); $pdf->AddPage(); $pdf->SetFont('Arial', 'B', 14); //====================================================== $pdf->SetFillColor(64, 64, 64); $pdf->SetTextColor(255, 255, 255); $pdf->SetFont('', 'B'); $pdf->Cell(190, 7, utf8_decode('Cotización'), 0, 0, 'C', true); $pdf->Ln(); $pdf->Ln(); $pdf->SetFillColor(224, 235, 255); $pdf->SetTextColor(0); $pdf->SetFont(''); $pdf->Cell(60, 7, 'Orden de compra Numero: '); $pdf->Cell(40, 7, $header['idPedido'], 0, 0, 'C'); $pdf->Ln(); $pdf->Cell(60, 7, 'Fecha: '); $pdf->Cell(40, 7, $header['fechaSolicitud'], 0, 0, 'C'); $pdf->Ln(); $pdf->Ln();