Пример #1
0
        $this->Cell(70);
        $this->Cell(80, 4, 'Correo: ' . $GLOBALS['CENTRO_CORREO'], 0, 1);
        $this->Ln(8);
    }
}
# creamos el nuevo objeto partiendo de la clase
$MiPDF = new GranPDF('P', 'mm', 'A4');
$MiPDF->AddFont('NewsGotT', '', 'NewsGotT.php');
$MiPDF->AddFont('NewsGotT', 'B', 'NewsGotTb.php');
$MiPDF->AddFont('ErasDemiBT', '', 'ErasDemiBT.php');
$MiPDF->AddFont('ErasDemiBT', 'B', 'ErasDemiBT.php');
$MiPDF->AddFont('ErasMDBT', '', 'ErasMDBT.php');
$MiPDF->AddFont('ErasMDBT', 'I', 'ErasMDBT.php');
$MiPDF->SetMargins(20, 20, 20);
# ajustamos al 100% la visualizacion
$MiPDF->SetDisplayMode('fullpage');
// Consulta  en curso.
foreach ($nombre as $val) {
    $trozos = explode(" --> ", $val);
    $claveal0 .= "claveal = '" . $trozos[1] . "' or ";
}
$claveal1 = substr($claveal0, 0, strlen($claveal0) - 4);
mysqli_query($db_con, $SQLDELF);
mysqli_query($db_con, $SQLDELJ);
// Creación de la tabla temporal donde guardar los registros. La variable para el bucle es 10224;
// $fechasp0=explode("-",$fecha12);
$fechasp1 = cambia_fecha($fecha12);
$fechasp3 = cambia_fecha($fecha22);
//  $fechasp11=$fechasp0[0]."-".$fechasp0[1]."-".$fechasp0[2];
//  $fechasp2=explode("-",$fecha22);
//  $fechasp3=$fechasp2[2]."-".$fechasp2[1]."-".$fechasp2[0];