$this->Cell(79, 6, '', 1, 1, 'C'); } $con++; $this->Cell(6, 6, $con, 1, 0, 'C'); $this->Cell(92, 6, utf8_decode('Ayudante: ' . $nom_auxayudante), 1, 0, 'L'); $this->Cell(19, 6, '', 1, 0, 'C'); $this->Cell(79, 6, '', 1, 1, 'C'); $con++; $this->Cell(6, 6, $con, 1, 0, 'C'); $this->Cell(92, 6, utf8_decode('Docente Aux.: ' . $nom_auxdocente), 1, 0, 'L'); $this->Cell(19, 6, utf8_decode(''), 1, 0, 'C'); $this->Cell(79, 6, '', 1, 1, 'C'); /*$this->Cell(6,6,'',1,1,'C');*/ } } $pdf = new MiPdf($id_viajesito); //$datos,$gestion,$periodo $pdf->AddPage(); $pdf->SetFont('Arial', 'B', 9); ///ESTA ES LA TABLA //$pdf->BasicTable($tabla); $pdf->text(180, 49, 'Cod-Viaje ' . $id_viajesito); $pdf->cell(0, 7, 'SOLICITUD DE VIAJE DE PRACTICA DE CAMPO ' . $gestion_, 'T', 1, 'C'); $pdf->SetFont('Arial', '', 7); $pdf->cell(98, 7, utf8_decode('FACULTAD : ' . $facultad), 1, 0, 'L'); //$pdf->cell(98,7,'FACULTAD : '."BFB",1,0,'L'); $pdf->cell(98, 7, utf8_decode('CARRERA : ' . $carrera), 1, 1, 'L'); $pdf->cell(170, 7, utf8_decode('ASIGNATURA : ' . $materia), 'LTB', 0, 'L'); $pdf->cell(26, 7, utf8_decode('SIGLA : ' . $sigla), 'TRB', 1, 'L'); $pdf->cell(196, 7, utf8_decode('LUGAR DE LA PRACTICA : ' . $lugar_prac), 1, 1, 'L'); $pdf->cell(98, 7, utf8_decode('DISTANCIA : ' . $distancia . ' Km.'), 1, 0, 'L');
} else { $asistencia = "Retardo"; } } $this->Cell($width[0], 6, $data[$i]["Miembro"]["Clase"]["nombre"], 'LR', 0, 'C', $fill); $this->Cell($width[1], 6, $data[$i]["Miembro"]["nombres"], 'LR', 0, 'L', $fill); $this->Cell($width[2], 6, $data[$i]["Miembro"]["apPaterno"], 'LR', 0, 'L', $fill); $this->Cell($width[3], 6, '', 'LR', 0, 'C', $fill); $this->Cell($width[4], 6, '', 'LR', 0, 'R', $fill); $this->Cell($width[5], 6, '', 'LR', 0, 'C', $fill); $this->Cell($width[6], 6, '', 'LR', 0, 'C', $fill); $this->Cell($width[7], 6, '', 'LR', 0, 'C', $fill); $this->Cell($width[8], 6, '', 'LR', 0, 'C', $fill); $this->Cell($width[9], 6, '', 'LR', 0, 'C', $fill); $this->Cell($width[10], 6, '', 'LR', 0, 'C', $fill); $this->Ln(); $fill = !$fill; $i++; } $this->Cell(array_sum($width), 0, '', 'T'); } } $pdf = new MiPdf('L', PDF_UNIT, 'Legal', true, 'UTF-8', false); $pdf->SetAutoPageBreak(TRUE, 0); $contador = count($model); $pdf->SetFont('helvetica', '', 12); $header = array('Clase', 'Nombres', 'Apellido paterno', 'Asistencia', 'Cuota', 'Estatus cuota', 'Biblia', 'Año Biblico', 'Participacion', 'Uniforme', 'Conducta'); $pdf->ColoredTable($header, $model); $pdf->Ln(40); $pdf->Output('ListaAsistencia.pdf', 'D'); exit;
} public function Footer() { $this->SetY(-30); $this->SetX(23); $x = $this->GetX(); //+20 $y = $this->GetY(); //-15 $this->Image("fpdf/img/Pie_C.N.png", $x, $y, 0, 28); //$this->SetFont('arial','B',20); //$this->cell(100,10,"ffff",0,0,'C'); //$this->Ln(20); } } $pdf = new MiPdf(); $pdf->AddPage(); $pdf->SetFont('Arial', 'B', 10); $pdf->cell(0, 7, 'GESTION ' . $gestion_, 0, 1, 'C'); $pdf->SetFont('Arial', 'B', 8); $pdf->cell(170, 7, "DATOS DEL VIAJE :", 0, 0, 'L'); $pdf->SetFont('Arial', '', 7); $pdf->Cell(40, 10, 'Impresion ' . date('d/m/Y'), 0, 1, 'L'); $pdf->cell(98, 7, utf8_decode("FACULTAD : " . $facultad), 1, 0, 'L'); $pdf->cell(98, 7, utf8_decode("CARRERA : " . $carrera), 1, 1, 'L'); $pdf->cell(98, 7, utf8_decode("MATERIA : " . $materia), 1, 0, 'L'); $pdf->cell(98, 7, "SIGLA : " . $sigla, 1, 1, 'L'); $pdf->cell(98, 7, utf8_decode("LUGAR DE PRACTICA : " . $lugar_prac), 1, 0, 'L'); $pdf->cell(98, 7, "DISTANCIA : " . $distancia, 1, 1, 'L'); $pdf->cell(98, 7, "FECHA DE VIAJE : " . $fecha_ini, 1, 0, 'L'); $pdf->cell(98, 7, "FECHA DE FIN DE VIAJE : " . $fecha_fin, 1, 1, 'L');
} $this->Cell($width[0], 6, $data[$i]["nombres"], 'LR', 0, 'L', $fill); $this->Cell($width[1], 6, $data[$i]["apPaterno"], 'LR', 0, 'L', $fill); $this->Cell($width[2], 6, $data[$i]["apMaterno"], 'LR', 0, 'L', $fill); $this->Cell($width[3], 6, $fechaNacimiento, 'LR', 0, 'L', $fill); $this->Cell($width[4], 6, $edad, 'LR', 0, 'C', $fill); $this->Cell($width[5], 6, $estatus_bautizado, 'LR', 0, 'C', $fill); $this->Cell($width[6], 6, $data[$i]["numCelular"], 'LR', 0, 'C', $fill); $this->Cell($width[6], 6, $data[$i]["numTelefono"], 'LR', 0, 'C', $fill); $this->Cell($width[7], 6, $data[$i]["Clase"]["nombre"], 'LR', 0, 'C', $fill); $this->Ln(); $fill = !$fill; $i++; } $this->Cell(array_sum($width), 0, '', 'T'); } } $pdf = new MiPdf('L', PDF_UNIT, 'Legal', true, 'UTF-8', false); $dataProvider = $_SESSION['datos_filtrados']->getData(); $contador = count($dataProvider); $pdf->SetFont('helvetica', '', 12); $header = array('Nombres', 'Apellido paterno', 'Apellido materno', 'Fecha Nacimiento', 'Edad', 'Bautizado', 'Celular', 'Teléfono', 'Clase'); $pdf->ColoredTable($header, $dataProvider); $pdf->AddPage(); //$pdf->AddPage(); $pdf->Output('ListaMiembros.pdf', 'D'); exit; ?>
$estatus_bautizado = 'No'; } $this->Cell($width[0], 6, $data[$i]["nombres"], 'LR', 0, 'L', $fill); $this->Cell($width[1], 6, $data[$i]["apPaterno"], 'LR', 0, 'L', $fill); $this->Cell($width[2], 6, $data[$i]["apMaterno"], 'LR', 0, 'L', $fill); $this->Cell($width[3], 6, $fechaNacimiento, 'LR', 0, 'L', $fill); $this->Cell($width[4], 6, $edad, 'LR', 0, 'C', $fill); $this->Cell($width[5], 6, $estatus_bautizado, 'LR', 0, 'C', $fill); $this->Cell($width[6], 6, $data[$i]["numCelular"], 'LR', 0, 'C', $fill); $this->Cell($width[6], 6, $data[$i]["numTelefono"], 'LR', 0, 'C', $fill); $this->Cell($width[7], 6, $data[$i]["Clase"]["nombre"], 'LR', 0, 'C', $fill); $this->Ln(); $fill = !$fill; $i++; } $this->Cell(array_sum($width), 0, '', 'T'); } } $pdf = new MiPdf('L', PDF_UNIT, 'Legal', true, 'UTF-8', false); $pdf->AddPage(); $dataProvider = $_SESSION['datos_filtrados']->getData(); $contador = count($dataProvider); $header = array('Nombres', 'Apellido paterno', 'Apellido materno', 'Fecha Nacimiento', 'Edad', 'Bautizado', 'Celular', 'Teléfono', 'Clase'); $pdf->ColoredTable($header, $dataProvider); $pdf->lastPage(); $pdf->Output('ListaMiembros.pdf', 'D'); exit; ?>