Пример #1
0
        $this->Cell(70);
        $this->Cell(80, 4, 'Tlf: ' . $GLOBALS['CENTRO_TELEFONO'] . '   Fax: ' . $GLOBALS['CENTRO_FAX'], 0, 1);
        $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];
Пример #2
0
        $this->Cell(80, 4, 'Telf: ' . $GLOBALS['CENTRO_TELEFONO'] . '   Fax: ' . $GLOBALS['CENTRO_FAX'], 0, 1);
        $this->Cell(75);
        $this->Cell(80, 4, 'Correo-e: ' . $GLOBALS['CENTRO_CORREO'], 0, 1);
        $this->SetTextColor(255, 255, 255);
    }
}
# creamos el nuevo objeto partiendo de la clase ampliada
$A4 = "A4";
$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(25, 15, 15);
$MiPDF->SetDisplayMode('fullpage');
$titulo = "Ficha del información del Aula de Convivencia";
# insertamos la primera pagina del documento
$MiPDF->Addpage();
$MiPDF->Ln(8);
$MiPDF->SetFont('NewsGotT', 'B', 16);
$MiPDF->Multicell(0, 5, mb_strtoupper($titulo, 'iso-8859-1'), 0, 'L', 0);
$MiPDF->Ln(8);
// INFORMACION DE LA CARTA
//$MiPDF->SetY(35);
$imagenurl = "../../../xml/fotos/" . $claveal . ".jpg";
if (!file_exists($imagenurl)) {
    $imagenurl = "../../../xml/fotos/blank.jpg";
}
$MiPDF->Image($imagenurl, 165, 40, 25, 30, 'JPG');