<?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 |          Daniel Muñoz                     |d.munoz@contraloriamonagas.gob.ve   |         0412-8358676           |
 * |   |                                           |                                    |                                |
 * |___|___________________________________________|____________________________________|________________________________|
 *
 * VERSION
 *
 * |          PROGRAMADOR                  |          FECHA          |       VERSION      |
 * |               #1                      |        27-08-2015       |         1.0        |
 * |                                       |                         |                    |
 * |_______________________________________|_________________________|____________________|
 *
 *****************************************************************************************************************************************/
require_once ROOT . 'librerias' . DS . 'modLG' . DS . 'tcpdf' . DS . 'tcpdf.php';
//require_once LIBRERIA_FPDF;

class pdf extends TCPDF
{
    function setObjGeneral($valor)
    {
        $this->atObjGeneral = $valor;
    }

    function getObjGeneral()
    {
        return $this->atObjGeneral;
    }

    function Header()
    {
        $this->SetTitle('planOperativo.pdf');
        $this->Image(ROOT.'publico'.DS.'imagenes'.DS.'logos'.DS.APP_LOGO, 20, 5, 15, 15);
        $this->SetFont('', 'B', 8);
        $this->SetXY(35, 10); $this->Cell(170, 5,'República Bolivariana de Venezuela', 0, 1, 'L');
        $this->SetXY(35, 15); $this->Cell(170, 5,APP_ORGANISMO, 0, 1, 'L');
        $this->SetXY(295, 15); $this->Cell(170, 5,'Plan Operativo', 0, 1, 'L');
        $this->Image(ROOT.'publico'.DS.'imagenes'.DS.'logos'.DS.APP_LOGO2, 320, 5, 15, 15);

        $this->Rect(20, 20, 315, 0);
        $this->SetXY(20, 20); $this->Cell(170, 5,DEPENDENCIA, 0, 1, 'L');

        $this->SetDrawColor(0, 0, 0);
        $this->SetFillColor(200, 200, 200);

        $this->SetXY(20, 25);
        $this->Cell(315, 5,'PERIODO PLAN ESTRATÉGICO '.PERIODO, 1, 1, 'L',1);
        //$this->MultiCell(w,h,txt,bordes,align,fill);

    }

    //Page footer
    function Footer()
    {

    }
}
