Exemple #1
0
        $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');
$pdf->cell(98, 7, utf8_decode('DURACION DEL VIAJE :  ' . $dur . '  Dias.'), 1, 1, 'L');
$pdf->cell(196, 7, 'DIAS A PERNOCTAR EN :          Ciudad: ' . $ciudad . ' dias,          Provincia: ' . $provincia . ' dias,          Frontera: ' . $frontera . ' dias', 1, 1, 'L');
$pdf->cell(196, 7, 'NUMERO DE PARTICIPANTES :              Docentes   :   1,               Estudiantes   :   ' . $cantidad_final_pas, 1, 1, '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;