コード例 #1
0
    {
        // Position at 1.5 cm from bottom
        $this->SetY(-15);
        // Arial italic 8
        $this->SetFont('Arial', 'I', 8);
        // Page number
        // $this->Cell(100,10,date("Y-m-d H:i:s"),0,0,'L');
        $util = new cUtilerias();
        $this->Cell(10, 10, utf8_decode("FECHA DE IMPRESIÓN: ") . $util->getDateMexico(), 0, 0, 'L');
        $this->Cell(0, 10, utf8_decode('Página ') . $this->PageNo() . '/{nb}', 0, 0, 'C');
    }
}
if ($_GET['tipo_tabla'] == 'original') {
    $tabla = $contra->showTablaAmortizacion($_GET['contrato']);
} else {
    $tabla = $contra->showNewTablaAmortizacion($_GET['contrato']);
}
while ($l = $tabla->NextRow()) {
    $fecha_generacion = $l['fecha_generacion'];
    $monto = $l['monto'];
    break;
}
$pdf = new ImprimeTabla();
$pdf->AliasNbPages();
$pdf->AddPage();
$pdf->SetY(15);
$pdf->Cell(60);
$pdf->Cell(50, 5, utf8_decode("FECHA DE PRÉSTAMO: ") . $fecha_generacion, 0, 0, 'C');
$pdf->Ln();
$pdf->Cell(60);
$pdf->Cell(50, 5, utf8_decode("IMPORTE DEL PRÉSTAMO: \$") . $monto, 0, 0, 'C');