<?php
/*****************************************************************************************************************************************
 * DEV: CONTRALORIA DE ESTADOS
 * PROYECTO: SISTEMA INTEGRAL ADMINISTRATIVO DE CONTRALORIAS DE ESTADOS
 * MODULO: index
 * PROCESO: index del sistema
 * PROGRAMADORES:
 * | # |          NOMBRES Y APELLIDOS              |               CORREO               |          TELEFONO              |
 * | 1 |          Marcos Gonzalez                  |dt.ait.programador2@cgesucre.gob.ve |        0414-1909537          |
 * |   |                                           |                                    |                                |
 * |___|___________________________________________|____________________________________|________________________________|
 *
 * VERSION
 *
 * |          PROGRAMADOR                  |          FECHA          |       VERSION      |
 * |               #1                      |        12-09-2018       |         1.0        |
 * |                                       |                         |                    |
 * |_______________________________________|_________________________|____________________|
 *
 *****************************************************************************************************************************************/

require_once LIBRERIA_FPDF;


class pdfReporteDefault extends FPDF
{
    function Header()
    {
        $this->SetFont('Arial', 'B', 8);
        $this->SetFillColor(255, 255, 255);
        $this->SetDrawColor(0, 0, 0);
        $this->Image('publico/imagenes/logos/CES.png', 7, 5, 18);
        $this->SetXY(25,6); $this->Cell(100,5,utf8_decode('REPÚBLICA BOLIVARIANA DE VENEZUELA'),0,1,'L');
        $this->SetXY(25,10); $this->Cell(100,5,utf8_decode('CONTRALORÍA DEL ESTADO SUCRE'),0,1,'L');
        $this->SetXY(25,14); $this->Cell(100,5,utf8_decode('DIRECCIÓN DE RECURSOS HUMANOS'),0,1,'L');
        $this->SetXY(167,10); $this->Cell(25,5,utf8_decode('Fecha: ' . date('d-m-Y')),0,1,'L');
        $this->SetXY(167,15); $this->Cell(25,5,utf8_decode('Página: '.$this->PageNo()),0,1,'L');
        $this->SetXY(167,21); $this->Cell(25,5,utf8_decode('N° Declaraciones: '.CANTIDAD),0,1,'L');


        $this->Image(ROOT.'publico'.DS.'imagenes'.DS.'logos'.DS."LOGOSNCF.png", 192, 8, 15, 13);

        $this->SetFont('Arial', 'B', 11);

        $this->SetXY(80, 25); $this->Cell(60, 20, utf8_decode('DECLARACIONES JURADAS DE FE DE VIDAS'), 0, 1, 'C' );


        /*   $this->SetFont('Arial', 'B', 7);
           $this->SetWidths(array(35, 25, 55, 30, 55));
           $this->SetAligns(array('C', 'C', 'C', 'C','C', 'C'));
           $this->Row(array(utf8_decode('Nº de Declaracion'),
               utf8_decode('Fecha de Registro'),
               utf8_decode('Nombre del Declarante'),
               utf8_decode('Tipo de Declarante'),
               utf8_decode('Funcionario Receptor')
               ));*/


    }
    //Page footer
    function Footer()
    {
        //Position at 1.5 c   m from bottom
        $this->SetXY(227,24.5);
        //Helvetica italic 8

        $this->SetFont('Arial', 'B', 8);
        //Page number
        $anio_actual=date("Y");
        $anio_fundadoCES=1966;
        $aniversarios=$anio_actual-$anio_fundadoCES;

        //   $this->SetXY(95, 200); $this->Cell(35, 115, utf8_decode('_________________________________________________________________________________________________________________'), 0, 1, 'C', 0);

        $this->SetFont('Arial', 'B', 7.5);
        //Page number
        $this->SetXY(38, 258); $this->MultiCell(130, 3, utf8_decode('Dirección: Avenida Arismendi, Edificio Palacio Legislativo, Cumaná, estado Sucre, Teléfonos: (0293) 4320708, 4323658. Directo: Tele Fax 4323447. Correo Electrónico: despacho@cgesucre.gob.ve, Zona Postal: 6101,  Rif. G20001224-2. Sitio web: www.cgesucre.gob.ve'),0, 'C');
        $this->SetFont('Arial', 'B', 7.5);
        $this->SetXY(85, 217); $this->Cell(35, 110, utf8_decode('"Todos los Sucrenses Somos Contralores, '.$aniversarios.' Aniversario '.$anio_fundadoCES.'-'.$anio_actual.'"'), 0, 1, 'C', 0);
        $this->Image(ROOT.'publico'.DS.'imagenes'.DS.'logos'.DS."60AnivBN.jpg", 17, 256, 18, 16);
        $this->Image(ROOT.'publico'.DS.'imagenes'.DS.'logos'.DS."SNCF_GRIS.jpg", 177, 254, 17, 18);

        $this->Cell(0,10,' '.$this->PageNo().'/{nb}',0,0,'C');
    }
}
