PageRenderTime 49ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

/librerias/modGC/cabeceraReporte.php

https://bitbucket.org/ferjmendozap/siace
PHP | 97 lines | 64 code | 14 blank | 19 comment | 0 complexity | c84afc9238fdc457a1e409a10921ba53 MD5 | raw file
Possible License(s): MIT, BSD-3-Clause, GPL-3.0, LGPL-2.0, LGPL-2.1, LGPL-3.0, Apache-2.0, MPL-2.0-no-copyleft-exception
  1. <?php
  2. /****************************************************************************************
  3. * DEV: CONTRALORÍA DEL ESTADO.
  4. * MODULO: Gestion de Contrato
  5. * PROGRAMADORES.________________________________________________________________________
  6. * | # | NOMBRE. | CORREO. | TELÉFONO.
  7. * | 1 | José A Pereda | dt.ait.programador2@cgesucre.gob.ve | 04248040078
  8. * | * |_____________________________________________________________________________________
  9. *****************************************************************************************/
  10. require_once LIBRERIA_FPDF;
  11. class pdfReporteGestion extends FPDF
  12. {
  13. //Page header
  14. function Header()
  15. {
  16. $this->Ln(3);
  17. $this->SetFont('Arial', 'B', 9);
  18. $this->Cell(0, 5,utf8_decode( 'REPÚBLICA BOLIVARIANA DE VENEZUELA'), 0, 0, 'C');
  19. $this->Ln(5);
  20. $this->Cell(0, 5,utf8_decode( 'CONTRALORÍA DEL ESTADO SUCRE'), 0, 0, 'C');
  21. $this->Image('publico/imagenes/modGC/logo.png', 10, 10, 22);
  22. $this->Image('publico/imagenes/modGC/logo.png', 180, 10, 22);
  23. $this->Ln(20);
  24. }
  25. }
  26. class pdfReporteProyectoContrato extends FPDF
  27. {
  28. //Page header
  29. function Header()
  30. {
  31. $this->Cell(110,69) ; $this->Image('publico/imagenes/modGC/logo.png', 10, 10, 22);
  32. $this->SetFont('Arial', 'B', 8);
  33. $this->SetXY(33, 10); $this->Cell(200, 5,utf8_decode( 'CONTRALORÍA DEL ESTADO SUCRE'), 0, 0, 'L');
  34. $this->Cell(10,5,'Fecha:',0,0,'');$this->Cell(10,5,date('d/m/Y h:i:a'),0,1,'');
  35. $this->SetXY(33, 15); $this->Cell(200, 5, utf8_decode('DIRECCIÓN TÉCNICA'), 0, 0, 'L');
  36. $this->Cell(10,5,utf8_decode('Página:'),0,1,'');
  37. $this->SetXY(33, 20); $this->Cell(200, 5, '', 0, 0, 'L');
  38. $this->Cell(7,5,utf8_decode('Año: '),0,0,'L');$this->Cell(5,5,date('Y'),0,1,'L');
  39. $this->Ln(2);
  40. $this->SetFont('Arial', 'B', 10);
  41. $this->Cell(250, 5, utf8_decode('REPORTE DE PROYECTOS CONTRATOS'),0,1,'C');
  42. $this->Ln(20);
  43. }
  44. //Page footer
  45. function Footer()
  46. {
  47. //Position at 1.5 cm from bottom
  48. $this->SetXY(227,12.5);
  49. //Arial italic 8
  50. $this->SetFont('Arial','B',8);
  51. //Page number
  52. $this->Cell(0,10,' '.$this->PageNo().'/{nb}',0,0,'C');
  53. }
  54. }
  55. class pdfReporteContrato extends FPDF
  56. {
  57. //Page header
  58. function Header()
  59. {
  60. $this->Cell(110,69) ; $this->Image('publico/imagenes/modGC/logo.png', 10, 10, 22);
  61. $this->SetFont('Arial', 'B', 8);
  62. $this->SetXY(33, 10); $this->Cell(200, 5,utf8_decode( 'CONTRALORÍA DEL ESTADO SUCRE'), 0, 0, 'L');
  63. $this->Cell(10,5,'Fecha:',0,0,'');$this->Cell(10,5,date('d/m/Y h:i:a'),0,1,'');
  64. $this->SetXY(33, 15); $this->Cell(200, 5, utf8_decode('DIRECCIÓN TÉCNICA'), 0, 0, 'L');
  65. $this->Cell(10,5,utf8_decode('Página:'),0,1,'');
  66. $this->SetXY(33, 20); $this->Cell(200, 5, '', 0, 0, 'L');
  67. $this->Cell(7,5,utf8_decode('Año: '),0,0,'L');$this->Cell(5,5,date('Y'),0,1,'L');
  68. $this->Ln(2);
  69. $this->SetFont('Arial', 'B', 10);
  70. $this->Cell(250, 5, utf8_decode('REPORTE DE CONTRATOS'),0,1,'C');
  71. $this->Ln(24);
  72. }
  73. //Page footer
  74. function Footer()
  75. {
  76. //Position at 1.5 cm from bottom
  77. $this->SetXY(227,12.5);
  78. //Arial italic 8
  79. $this->SetFont('Arial','B',8);
  80. //Page number
  81. $this->Cell(0,10,' '.$this->PageNo().'/{nb}',0,0,'C');
  82. }
  83. }