SetStyle("head1","arial","",6,"160,160,160"); $this->SetStyle("head2","arial","",6,"0,119,220"); //$this->SetFont('Arial','B',14); //$this->SetXY(0,10); //$this->Cell(0,5,"CIA, S. A. de C. V.",0,0,'C'); $this->MultiCellTag(100, 3, "FPDF Table (Fpdf Add On)\nAuthor: Bintintan Andrei, Interpid Team"); $fecha_recibida=date("Y-m-d",time()); $ano=SUBSTR($fecha_recibida,0,4); $mes=SUBSTR($fecha_recibida,5,2); if ($mes==01) { $mes1="Enero"; } elseif ($mes==02) { $mes1="Febrero"; } elseif ($mes==03) { $mes1="Marzo"; } elseif ($mes==04) { $mes1="Abril"; } elseif ($mes==05) { $mes1="Mayo"; } elseif ($mes==06) { $mes1="Junio"; } elseif ($mes==07) { $mes1="Julio"; } elseif ($mes==8) { $mes1="Agosto"; } elseif ($mes==9) { $mes1="Septiembre"; } elseif ($mes==10) { $mes1="Octubre"; } elseif ($mes==11) { $mes1="Noviembre"; } elseif ($mes==12) { $mes1="Diciembre"; } $dia=SUBSTR($fecha_recibida,8,2); $this->SetFont('Arial','B',12); $this->SetXY(0,20); $this->Cell(0,5,$dia.' - '. $mes1. ' - '. $ano,0,0,'C'); $this->Ln(10); } public function Footer() { $this->SetY(-10); $this->SetFont('Arial','I',7); $this->SetTextColor(170, 170, 170); $this->MultiCell(0, 4, "Page {$this->PageNo()} / {nb}", 0, 'C'); } } ?>