<?php

require '../fpdf/fpdf.php';
include_once "../controller/cUtilerias.php";
include_once "../controller/cEmpleados.php";
include_once "../controller/cAsistencias.php";
$asistencia = new cAsistencias();
$emp = new cEmpleados();
$util = new cUtilerias();
$emple = $emp->devuelveEmpleado($_GET['id']);
$lista = $asistencia->listaAsistenciasEmpleado($util->cambiaFFecha($_GET['inicio'], "Y-m-d"), $util->cambiaFFecha($_GET['fin'], "Y-m-d"), $_GET['id']);
class PDF extends FPDF
{
    //header
    function Header()
    {
        $this->Image('../img/logo.png', 37, 6, 130);
        $this->Ln(20);
    }
    //footer
    function Footer()
    {
        $this->SetY(-15);
        $this->SetFont('Arial', 'I', 8);
        $this->Cell(0, 10, 'Page ' . $this->PageNo() . '/{nb}', 0, 0, 'C');
    }
}
$pdf = new PDF();
$pdf->AliasNbPages();
$pdf->AddPage();
$pdf->SetFont('Arial', 'B', 14);