Example #1
0
 private function ImprimeCartaCentroPrácticas()
 {
     $this->load->library('fpdf/pdf');
     $pdf = new PDF();
     $pdf->AddPage();
     $pdf->Image(base_url('public/images/logo.jpg'), 80, 15, 60, 18);
     $Dep = $this->parametros_model->TraeDependencias();
     #ENCABEZADO
     $pdf->SetFont('Arial', 'b', 10);
     $pdf->Text(178, 35, 'GD-026-F');
     $pdf->SetFillColor(230, 230, 230);
     $pdf->SetXY(25, 38);
     $pdf->Cell(170, 5, 'MEMORANDO', 0, 0, 'C', true);
     $pdf->Text(25, 48, strtoupper($this->input->post('CONSECUTIVO')));
     $pdf->SetFont('Arial', '', 10);
     $pdf->Text(25, 58, 'Medellín, ' . MesNombre(date('m')) . ' ' . round(date('d')) . ' de ' . date('Y'));
     #PARA
     $pdf->SetFont('Arial', 'b', 10);
     $pdf->Text(25, 75, 'PARA:');
     $pdf->Text(50, 75, ($Dep->CP_TITULO == 0 ? 'Doctora' : 'Doctor') . ' ' . $Dep->CP);
     $pdf->SetFont('Arial', '', 10);
     $pdf->Text(50, 80, ($Dep->CP_TITULO == 0 ? 'Directora' : 'Director') . ' Centro de Prácticas');
     #DE
     $pdf->SetFont('Arial', 'b', 10);
     $pdf->Text(25, 90, 'DE:');
     $pdf->Text(50, 90, ($Dep->DECANATURA_TITULO == 0 ? 'Ingeniera' : 'Ingeniero') . ' ' . $Dep->DECANATURA);
     $pdf->SetFont('Arial', '', 10);
     $pdf->Text(50, 95, ($Dep->DECANATURA_TITULO == 0 ? 'Decana' : 'Decano') . ' Facultad de Ingeniería');
     #ASUNTO
     $pdf->SetFont('Arial', 'b', 10);
     $pdf->Text(25, 103, 'ASUNTO:');
     $pdf->SetFont('Arial', '', 10);
     $pdf->SetXY(50, 100);
     $pdf->MultiCell(130, 4, $this->input->post('ASUNTO'));
     $pdf->Text(25, 130, 'Cordial Saludo,');
     $pdf->SetXY(25, 140);
     $pdf->MultiCell(165, 4, $this->input->post('CARTA'));
     $pdf->Text(25, 20 + $pdf->GetY(), 'Atentamente,');
     $pdf->SetFont('Arial', 'b', 10);
     $pdf->Text(25, $pdf->GetY() + 40, Ucspecial($Dep->DECANATURA));
     $pdf->SetFont('Arial', '', 10);
     $pdf->Text(25, $pdf->GetY() + 45, ($Dep->DECANATURA_TITULO == 0 ? 'Decana' : 'Decano') . ' Facultad de Ingeniería');
     $pdf->Output();
     $pdf->Cell($pdf->PageNo());
 }
Example #2
0
 private function imprimirregistronotas()
 {
     $Notas = $this->seguimientos_model->TraeCalificaciones();
     $this->load->library('fpdf/pdf');
     $pdf = new PDF();
     $pdf->AddPage();
     $pdf->Image(base_url('public/images/logo.jpg'), 10, 15, 60, 15);
     $pdf->SetFont('Arial', 'B', 10);
     #ENCABEZADO
     //$pdf->SetXY(10,35);
     $pdf->Text(180, 35, 'D0-68-F');
     $pdf->Text(85, 40, 'FORMATO REGISTRO DE NOTAS');
     $pdf->Text(80, 50, 'FUNDACIÓN UNIVERSITARIA MARÍA CANO');
     $pdf->Text(83, 55, 'PROGRAMA: ' . Ucspecial(strtoupper($this->input->post('PROGRAMA'))));
     $pdf->Text(10, 66, 'MOMENTO EVALUATIVO: PRIMER Y SEGUNDO MOMENTO');
     $pdf->Text(150, 66, 'FECHA: ' . FechaFormal(date('Y-m-d'), false));
     $pdf->Text(10, 73, 'ASESOR: ' . Ucspecial($this->session->userdata('NOMBRE_USUARIO')));
     $pdf->SetFont('Arial', 'B', 9);
     #Headers
     $pdf->SetXY(5, 82);
     $pdf->Cell(50, 8, 'NOMBRES Y APELLIDOS', 1, 0, 'C');
     $pdf->SetXY(55, 82);
     $pdf->Cell(30, 8, 'CÓDIGO', 1, 0, 'C');
     $pdf->SetXY(85, 82);
     $pdf->Cell(30, 8, 'NIVEL PRÁCTICA', 1, 0, 'C');
     $pdf->SetXY(115, 82);
     $pdf->Cell(45, 8, 'AGENCIA PRÁCTICA', 1, 0, 'C');
     $pdf->SetXY(160, 82);
     $pdf->Cell(15, 8, 'NOTA 1', 1, 0, 'C');
     $pdf->SetXY(175, 82);
     $pdf->Cell(15, 8, 'NOTA 2', 1, 0, 'C');
     $pdf->SetXY(190, 82);
     $pdf->Cell(15, 8, 'DEF', 1, 0, 'C');
     $pdf->SetWidths([50, 30, 30, 45, 15, 15, 15]);
     $pdf->SetAligns(['C', 'C', 'C', 'C', 'C', 'C', 'C']);
     $pdf->SetFont('Arial', '', 9);
     $pdf->SetXY(5, 90);
     foreach ($Notas as $nota) {
         $pdf->SetX(5);
         $pdf->Row([utf8_encode($nota['NOMBRE_PRACTICANTE']), $nota['CODIGO'], utf8_encode($nota['MODALIDAD']), utf8_encode($nota['NOMBRE_AGENCIA']), $nota['NOTA1'], $nota['NOTA2'], number_format(($nota['NOTA1'] + $nota['NOTA2']) / 2, 1)]);
     }
     $pdf->SetFont('Arial', 'B', 9);
     #Footer
     $pdf->Text(12, $pdf->GetY() + 20, 'FIRMA DOCENTE:');
     $pdf->Line(132, $pdf->GetY() + 20, 42, $pdf->GetY() + 20);
     $pdf->Text(135, $pdf->GetY() + 20, 'CENTRO DE PRÁCTICAS');
     $pdf->SetFont('Arial', 'B', 10);
     $pdf->Output();
     $pdf->Cell($pdf->PageNo());
 }