} 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;
} $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; ?>