Example #1
0
 $total = 0;
 $MiPDF->Ln(60);
 $MiPDF->SetFont('NewsGotT', 'B', 12);
 $MiPDF->Multicell(0, 4, $titulo2, 0, 'C', 0);
 $MiPDF->SetFont('NewsGotT', '', 12);
 $MiPDF->Ln(4);
 $MiPDF->Multicell(0, 4, $cuerpo21, 0, 'J', 0);
 $MiPDF->Ln(3);
 $MiPDF->Multicell(0, 4, $cuerpo22, 0, 'J', 0);
 $MiPDF->Ln(3);
 $MiPDF->SetFont('NewsGotT', '', 12);
 $MiPDF->Ln(2);
 while ($regasig = mysqli_fetch_row($resulasig)) {
     $MiPDF->SetFont('NewsGotT', '', 12);
     $MiPDF->SetX(170);
     $MiPDF->cell(0, 4, $regasig[3] . ' Euros', 0, 'D', 0);
     $MiPDF->SetX(20);
     $MiPDF->Multicell(150, 4, '- ' . $regasig[0] . ' --> Título: ' . $regasig[1] . ' (' . $regasig[2] . ')', 0, 'I', 0);
     $total = $total + $regasig[3];
 }
 #del while
 mysqli_query($db_con, "update textos_alumnos set devuelto = '1', fecha = now() where claveal = '{$claveal}'");
 $MiPDF->SetFont('NewsGotT', 'B', 12);
 $MiPDF->SetX(158);
 $MiPDF->Multicell(0, 4, ' Total: ' . $total . ' Euros', 0, 'D', 0);
 $MiPDF->SetFont('NewsGotT', '', 12);
 $MiPDF->Ln(5);
 $MiPDF->Multicell(0, 4, 'En ' . $config['centro_localidad'] . ', a ' . $hoy, 0, 'C', 0);
 $MiPDF->Ln(5);
 $MiPDF->Multicell(0, 4, 'Secretario/a:                        Sello del Centro                         Director/a:', 0, 'C', 0);
 $MiPDF->Ln(14);