Пример #1
0
     $MiPDF->SetFont('NewsGotT', '', 12);
     // INFORMACION
     $result = mysqli_query($db_con, "SELECT curso FROM alma WHERE unidad='{$valor}' LIMIT 1");
     $row = mysqli_fetch_array($result, MYSQLI_ASSOC);
     $MiPDF->SetFont('NewsGotT', 'B', 12);
     $MiPDF->Cell(17, 5, 'Unidad: ', 0, 0, 'L', 0);
     $MiPDF->SetFont('NewsGotT', '', 12);
     $MiPDF->Cell(100, 5, $valor . ' (' . $row['curso'] . ')', 0, 1, 'L', 0);
     $MiPDF->Ln(5);
     mysqli_free_result($result);
     // INFORME
     $MiPDF->SetWidths(array(10, 80, 165));
     $MiPDF->SetFont('NewsGotT', 'B', 12);
     $MiPDF->SetTextColor(255, 255, 255);
     $MiPDF->SetFillColor(61, 61, 61);
     $MiPDF->Row(array('Nº', 'Alumno/a', 'Asignaturas'), 0, 6);
     $result = mysqli_query($db_con, "SELECT DISTINCT alma.claveal, FALUMNOS.NC, CONCAT(alma.apellidos, ', ', alma.nombre) AS alumno, matriculas FROM alma, pendientes, FALUMNOS WHERE alma.unidad='{$valor}' and alma.claveal = pendientes.claveal and FALUMNOS.claveal = pendientes.claveal ORDER BY alumno ASC");
     $MiPDF->SetTextColor(0, 0, 0);
     $MiPDF->SetFont('NewsGotT', '', 12);
     while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) {
         $asigpend = '';
         $result_pend = mysqli_query($db_con, "SELECT DISTINCT abrev FROM pendientes JOIN asignaturas ON pendientes.codigo = asignaturas.codigo WHERE pendientes.claveal = '" . $row['claveal'] . "' AND abrev LIKE '%\\_%' ORDER BY abrev ASC");
         while ($row_pend = mysqli_fetch_array($result_pend, MYSQLI_ASSOC)) {
             $asigpend .= $row_pend['abrev'] . ' | ';
         }
         $asigpend = rtrim($asigpend, ' | ');
         $observaciones = $row['matriculas'] > 1 ? ' (Rep.)' : '';
         $MiPDF->Row(array($row['NC'], $row['alumno'] . $observaciones, $asigpend), 1, 6);
     }
     mysqli_free_result($result);
 }
Пример #2
0
$MiPDF->Cell(80, 5, $row['apellidos'] . ', ' . $row['nombre'], 0, 0, 'L', 0);
$MiPDF->SetFont('NewsGotT', 'B', 12);
$MiPDF->Cell(35, 5, 'Fecha de visita: ', 0, 0, 'L', 0);
$MiPDF->SetFont('NewsGotT', '', 12);
$MiPDF->Cell(55, 5, strftime('%e de %B de %Y', strtotime($row['f_entrev'])), 0, 1, 'L', 0);
$MiPDF->Ln(2);
$MiPDF->SetFont('NewsGotT', 'B', 12);
$MiPDF->Cell(20, 5, 'Unidad: ', 0, 0, 'L', 0);
$MiPDF->SetFont('NewsGotT', '', 12);
$MiPDF->Cell(85, 5, $row['unidad'], 0, 0, 'L', 0);
$MiPDF->SetFont('NewsGotT', 'B', 12);
$MiPDF->Cell(20, 5, 'Tutor/a: ', 0, 0, 'L', 0);
$MiPDF->SetFont('NewsGotT', '', 12);
$MiPDF->Cell(40, 5, mb_convert_case($row['tutor'], MB_CASE_TITLE, "iso-8859-1"), 0, 1, 'L', 0);
$MiPDF->Ln(5);
mysqli_free_result($result);
// INFORME
$MiPDF->SetWidths(array(70, 65, 120));
$MiPDF->SetFont('NewsGotT', 'B', 12);
$MiPDF->SetTextColor(255, 255, 255);
$MiPDF->SetFillColor(61, 61, 61);
$MiPDF->Row(array('Asignatura / Materia', 'Profesor/a', 'Observaciones'), 0, 6);
$result = mysqli_query($db_con, "SELECT asignatura, informe, profesor FROM infotut_profesor WHERE id_alumno='{$id}'");
$MiPDF->SetTextColor(0, 0, 0);
$MiPDF->SetFont('NewsGotT', '', 12);
while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) {
    $MiPDF->Row(array($row['asignatura'], $row['profesor'], $row['informe']), 1, 6);
}
mysqli_free_result($result);
// SALIDA
$MiPDF->Output();
Пример #3
0
$MiPDF->Cell(55, 5, strftime('%e de %B de %Y', strtotime($row['fecha'])), 0, 0, 'L', 0);
$MiPDF->SetFont('NewsGotT', 'B', 12);
$MiPDF->Cell(15, 5, 'Días: ', 0, 0, 'L', 0);
$MiPDF->SetFont('NewsGotT', '', 12);
$MiPDF->Cell(15, 5, $row['duracion'], 0, 1, 'L', 0);
$MiPDF->Ln(2);
$MiPDF->SetFont('NewsGotT', 'B', 12);
$MiPDF->Cell(20, 5, 'Unidad: ', 0, 0, 'L', 0);
$MiPDF->SetFont('NewsGotT', '', 12);
$MiPDF->Cell(85, 5, $row['unidad'], 0, 0, 'L', 0);
$MiPDF->SetFont('NewsGotT', 'B', 12);
$MiPDF->Cell(20, 5, 'Tutor/a: ', 0, 0, 'L', 0);
$MiPDF->SetFont('NewsGotT', '', 12);
$MiPDF->Cell(40, 5, mb_convert_case($row['tutor'], MB_CASE_TITLE, "iso-8859-1"), 0, 1, 'L', 0);
$MiPDF->Ln(5);
mysqli_free_result($result);
// TAREAS
$MiPDF->SetWidths(array(70, 65, 120));
$MiPDF->SetFont('NewsGotT', 'B', 12);
$MiPDF->SetTextColor(255, 255, 255);
$MiPDF->SetFillColor(61, 61, 61);
$MiPDF->Row(array('Asignatura / Materia', 'Profesor/a', 'Tarea'), 0, 6);
$result = mysqli_query($db_con, "SELECT asignatura, tarea, confirmado, profesor FROM tareas_profesor WHERE id_alumno='{$id}'");
$MiPDF->SetTextColor(0, 0, 0);
$MiPDF->SetFont('NewsGotT', '', 12);
while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) {
    $MiPDF->Row(array($row['asignatura'], $row['profesor'], $row['tarea']), 1, 6);
}
mysqli_free_result($result);
// SALIDA
$MiPDF->Output();
Пример #4
0
        $MiPDF->SetFont('NewsGotT', '', 12);
        // INFORMACION
        $result = mysqli_query($db_con, "SELECT DISTINCT nombre, curso FROM asignaturas WHERE codigo='{$valor}' ORDER BY nombre ASC");
        $row = mysqli_fetch_array($result, MYSQLI_ASSOC);
        $MiPDF->SetFont('NewsGotT', 'B', 12);
        $MiPDF->Cell(25, 5, 'Asignatura: ', 0, 0, 'L', 0);
        $MiPDF->SetFont('NewsGotT', '', 12);
        $MiPDF->Cell(100, 5, $row['nombre'] . ' (' . $row['curso'] . ')', 0, 1, 'L', 0);
        $MiPDF->Ln(5);
        mysqli_free_result($result);
        // INFORME
        $MiPDF->SetWidths(array(20, 10, 90, 30, 105));
        $MiPDF->SetFont('NewsGotT', 'B', 12);
        $MiPDF->SetTextColor(255, 255, 255);
        $MiPDF->SetFillColor(61, 61, 61);
        $MiPDF->Row(array('Unidad', 'Nº', 'Alumno/a', 'Asignatura', 'Observaciones'), 0, 6);
        $result = mysqli_query($db_con, "SELECT DISTINCT alma.unidad, FALUMNOS.NC, CONCAT(alma.apellidos, ', ', alma.nombre) AS alumno, alma.matriculas, asignaturas.abrev FROM pendientes, asignaturas, alma, FALUMNOS WHERE asignaturas.codigo = pendientes.codigo AND FALUMNOS.claveal=alma.claveal AND alma.claveal = pendientes.claveal AND alma.unidad NOT LIKE '%p-%' AND asignaturas.codigo = '{$valor}' and alma.unidad not like '1%' AND abrev LIKE  '%\\_%' ORDER BY alma.curso, alma.unidad, nc");
        $MiPDF->SetTextColor(0, 0, 0);
        $MiPDF->SetFont('NewsGotT', '', 12);
        while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) {
            $observaciones = $row['matriculas'] > 1 ? 'Repetidor/a' : '';
            $MiPDF->Row(array($row['unidad'], $row['NC'], $row['alumno'], $row['abrev'], $observaciones), 1, 6);
        }
        mysqli_free_result($result);
    }
    // SALIDA
    $MiPDF->Output();
    exit;
} else {
    include "../../menu.php";
    foreach ($_POST["select"] as $val) {