Guest User

Untitled

a guest
Feb 25th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. <?php
  2.  
  3.  
  4. $ordenTrabajo=$_POST['oT_Escondido'];
  5.  
  6. ob_end_clean(); // the buffer and never prints or returns anything.
  7. ob_start(); // it starts buffering
  8. class PDF extends FPDF
  9. {
  10. // Cabecera de página
  11.  
  12.  
  13.  
  14. function Header()
  15. {
  16. global $ordenTrabajo;
  17. // Logo
  18. //$this->Image('../dist/img/logo.jpg',10,8,33);
  19. // Arial bold 15
  20. $this->SetFont('Arial','B',15);
  21. // Movernos a la derecha
  22. $this->Cell(80);
  23. // Título
  24. $this->Cell(120,10,'Control de Empaques IKOR PUNTARENAS SA',0,1,'C');
  25.  
  26. $this->SetFont('Arial','B',12);
  27. // Salto de línea
  28. $this->Ln(10);
  29. $this->Cell(40,10,'Orden de Trabajo: ',0,0);
  30. $this->Cell(40, 10, "GORE-5265", 0, 0);
  31. $this->Cell(13,10,'OC#: ',0,0);
  32. $this->Cell(40, 10, "OC-123456789", 0, 0);
  33. $this->Cell(30,10,'Peso: ',0,0);
  34. $this->Cell(40, 10, "19,45 KG", 0,0 );
  35. $this->Cell(50,10,'Cantidad de Cajas: ',0,0);
  36. $this->Cell(30, 10, "1000", 0, 1);
  37.  
  38. $this->Cell(40,10,'Lote: ',0,0);
  39. $this->Cell(40, 10,$ordenTrabajo, 0, 0); //Empty
  40. $this->Cell(13,10,'Numero de Parte: ',0,0);
  41. $this->Cell(40, 10, "PARTE-999999", 0, 0);
  42. $this->Cell(30,10,'Filtros por caja: ',0,0);
  43. $this->Cell(40, 10, "11", 0,0 );
  44. $this->Cell(50,10,'Cantidad de Filtros: ',0,0);
  45. $this->Cell(30, 10, "9999", 0, 1);
  46.  
  47. }
Add Comment
Please, Sign In to add comment