-
Notifications
You must be signed in to change notification settings - Fork 0
/
FichaAlumnoPDF.php
105 lines (71 loc) · 2.37 KB
/
FichaAlumnoPDF.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<?php
require('fpdf.php');
session_start();
//
include_once 'clases/database.php';
include_once 'initial.php';
include_once 'clases/alumnos.php';
//
$alumno = new Alumnos($db);
$alumno->idalumno = $_POST["idalumno"];
$alumno->ConsultarAlumno();
class PDF extends FPDF
{
function Header()
{
//Cabecera del PDF
$this->Image('imagenes/bannerpdf.png', 10, 10, 180);
$this->SetFont('Arial', 'B', '12');
$this->ln(24);
$this->Cell(0, 10, 'Subsecretaria de Prevencion y Promocion de la salud', 0, 0, 'L');
$this->ln(5);
$this->Cell(0, 10, 'Secretariado Tecnico del', 0, 0, 'L');
$this->ln(5);
$this->Cell(0, 10, 'Consejo Nacional para la Prevencion de Accidentes', 0, 0, 'L');
$this->SetFont('Arial', 'B', '11');
$this->ln(8);
$this->ln(8);
$this->ln(8);
$this->ln(8);
$this->Ln();
}
function Footer()
{
$this->SetY(-15);
//Arial italic 8
$this->SetFont('Arial', '', 8);
$this->Cell(0, 0, 'Guadalajara 43 3er Piso Col. Roma Norte Del. Cuahutemoc Mexico. DF 06700', 0, 0, 'R');
$this->SetFont('Arial', 'B', 8);
$this->Cell(0, 5, 'T(55) 5553 9691 (55) 5553 96 31 acervantes@salud.gob.mx ', 0, 0, 'R');
$this->SetFont('Arial', '', 8);
$this->Cell(0, 10, 'T(55) 5553 2000 33 00 ext. 53012 www.arturo.garciacruz@yahoo.com.mx ', 0, 0, 'R');
}
}
$pdf = new PDF('P', 'mm', 'A4');
$pdf->SetFont('Arial', '', 10);
$pdf->AddPage();
$pdf->SetFont('Arial', 'B', 14);
$pdf->Cell(0, 10, 'FICHA DE IDENTIFICACION DEL ALUMNO', 0, 0, 'C');
$pdf->ln(15);
$pdf->Cell(0, 10, 'DATOS GENERALES', 0, 0, 'C');
$pdf->ln(15);
$pdf->SetFont('Arial', 'B', 11);
$pdf->ln(10);
$pdf->SetFont('Arial', 'B', '11');
$pdf->Cell(0, 0, " NOMBRE COMPLETO: $alumno->nombre $alumno->apaterno $alumno->amaterno", 0, 'L');
$pdf->ln(13);
$pdf->Cell(0, 0, " LUGAR DE TRABAJO: $alumno->lugartrabajo", 5, 'L');
$pdf->ln(13);
$pdf->Cell(0, 0, " FECHA DE NACIMIENTO: $alumno->fechanacimiento", 5, 'L');
$pdf->ln(13);
$pdf->Cell(0, 0, " EDAD: $alumno->edad", 5, 'L');
$pdf->ln(13);
$pdf->Cell(0, 0, " ESTADO CIVIL: $alumno->estadocivil ESCOLARIDAD: $alumno->escolaridad", 5, 'L');
$pdf->ln(13);
$pdf->Cell(0, 0, " DOMICILIO: $alumno->domicilio", 5, 'L');
$pdf->ln(13);
$pdf->Cell(0, 0, " TELEFONO: $alumno->telefono E-MAIL: $alumno->correo ", 5, 'L');
$pdf->ln(13);
$pdf->Cell(0, 0, " FECHA ELABORACION DEL DOCUMENTO: $alumno->fechaelaboracion ", 5, 'L');
$pdf->Output();
?>