-
Notifications
You must be signed in to change notification settings - Fork 1
/
listado.imprimir.php
86 lines (71 loc) · 2.06 KB
/
listado.imprimir.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?php
if (!isset($_SESSION)) {
session_start();
}
require_once "fpdf.php";
class PDF extends FPDF {
function Header()
{
$this->SetFont('Times','B',14);
$this->Cell(0,5,'ARCHIVO REGIONAL', 0, 0, 'C');
$this->Ln();
$this->SetFont('Arial','B',14);
$this->Cell(0,5,utf8_decode('PUNO'), 0, 0, 'C');
$this->Ln();
$this->SetFont('Arial','B',11);
$this->Cell(0,5,utf8_decode('SIA (SISTEMA DE INDEXACIÓN DEL ARCHIVO)'), 0, 0, 'C');
$this->Ln();
$this->Ln(2);
$this->SetFont('arial','B',12);
$this->Cell(0,5,utf8_decode("Listado de Proyectos en Indexación"), 0, 0, 'C');
$this->Ln();
$this->Ln(4);
$this->cabecera();
}
function cabecera()
{
$this->SetFont('arial','B',7);
$this->Cell(7,5,utf8_decode('N°'), 1, 0, 'C');
$this->Cell(13,5,'CODIGO', 1, 0, 'C');
$this->Cell(60,5,'NOMBRE NOTARIO', 1, 0, 'C');
$this->Cell(60,5,'FECHA DE INICIO', 1, 0, 'C');
//$this->Cell(30,5,'CLAVE', 1, 0, 'C');
$this->Ln();
$this->Ln(1);
}
function Footer()
{
$vFecha = getdate(time());
$this->SetFont('arial','',8);
$this->Line(20, 277, 190, 277);
$this->SetY(-20);
$vFecha = date("d-m-Y H:i:s");
$this->Cell(120, 4,"Fecha: ".$vFecha, 0,0,'L');
$this->Cell(50, 4,'WebApp',0,0,'R');
}
function Body($usuarios)
{
//global $sEstupdf;
$this->SetFont('arial','',8);
$vCont = 1;
foreach ($usuarios as $clave => $usuario) {
$this->Cell(7,5, $vCont, 'B', 0, 'C');
$this->Cell(13,5, $usuario['codProyecto'], 'B', 0, 'C');
$this->Cell(60,5, ucwords(strtolower($usuario['notario'])), 'B', 0, 'L');
//$this->Cell(60,5, ucwords(strtolower($usuario['paterno'].' '.$usuario['materno'].' '.$usuario['nombres'])), 'B', 0, 'L');
$this->Cell(60,5, ucwords(strtolower($usuario['fechaInicio'])), 'B', 0, 'L');
//$this->Cell(30,5,$usuario['clave'], 'B', 0, 'C');
$this->Ln();
$vCont++;
}
}
}
$pdf=new PDF('P', 'mm', 'A4');
$pdf->SetMargins(20, 20);
$pdf->AliasNbPages();
$pdf->AddFont('arialn','','arialn.php');
$pdf->AddFont('arialn','B','arialnb.php');
$pdf->AddPage();
$pdf->Body($_SESSION['oPDF']);
$pdf->Output();
?>