Image("$CFG->dirroot/imagenes/header-right.png",10,8,60); $this->SetFont('Arial','B',15); $this->Cell(20,5,'',0,0,'L'); $this->Cell($this->w-80,5,' ',0,0,'L'); $this->SetFont('Arial','',10); $this->Cell(10,5,'Pag.:',0,0,'L'); $this->Cell(10,5,$this->PageNo(),0,0,'L'); $this->Ln(); $this->SetFont('Arial','B',15); $this->Cell($this->w-60,5,'',0,0,'L'); $this->SetFont('Arial','',10); $this->Cell(15,5,'Fecha:',0,0,'L'); $this->Cell(10,5,date('d/m/Y'),0,0,'L'); $this->Ln(); $this->Cell($this->w-60,5,'',0,0,'L'); $this->Cell(15,5,'Hora:',0,0,'L'); $this->Cell(10,5,date('H:i:s'),0,0,'L'); $this->Ln(10); $this->SetFont('Arial','B',12); } if (is_array($titulo)) { foreach ($titulo as $fila) { if (!is_null($fila)) { $this->Cell(0,5,$fila,0,0,'C'); $this->Ln(5); } } } $this->Ln(5); if (isset($header)) { $this->SetFillColor(200,200,200); $this->SetTextColor(0); $this->SetFont('Arial','B',8); foreach ($header as $i=>$fila) { $y=$this->y; $w=0; $h=0; for ($j=0;$jMultiCell($width[$i][$j],$height[$i][$j],$header[$i][$j],1,'C',1); $w+=$width[$i][$j]; if ($j!=count($fila)-1) { $this->y=$y; $this->x += $w; } } } } $this->SetFont('Arial','',10); } //Pie de página function Footer() { global $CFG; //Posición: a 1,5 cm del final $this->SetY(-25); $this->SetFont('Arial','',6); //Número de página //$this->Cell(0,10,'-- '.$this->PageNo().' --',0,0,'C'); $this->Cell(50, 10, '© 2013 Plataforma de la Amazonia Peruana', 0, 0, 'L'); //$this->Cell(0, 10, 'Basado en el estándar Plinian Core', 0, 0, 'R'); $ejey = $this->getY(); $this->Image("$CFG->dirroot/imagenes/logos-1_0.jpg",15,$ejey+6,90); $this->Image("$CFG->dirroot/imagenes/logos-2_1.jpg",105,$ejey+4,90); } } ?>