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