Relatórios com PDF function Table($header) { //Color and font restoration $this->SetFillColor(224,235,255); $this->SetTextColor(0); $this->SetDrawColor(128,0,0); $this->SetLineWidth(.3); $this->SetFont( ); $w=array(20,70,40); for($i=0;$i Cell($w[$i],7,$header[$i],1,0, C ,1); $this->Ln(); } function TableIn($row,$fill) { // Inserir elementos do relatório $this->SetDrawColor(128,0,0); //Color and font restoration $this->SetLineWidth(.3); $this->SetFillColor(224,235,255); $this->SetTextColor(0); $this->SetFont( ); $w=array(20,70,40); $this->Cell($w[0],6,$row[0], LR ,0, L ,$fill); //Data $this->Cell($w[1],6,$row[1], LR ,0, L ,$fill); //Data $this->Cell($w[2],6,$row[2], LR ,0, R ,$fill); //Data $this->Ln(); } }