navigation  interaction  search

 other resources

Changeset 364

Show
Ignore:
Timestamp:
11/12/07 14:33:14
Author:
brieb
Message:

Added page numbering to sales order PDF reports.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/phpbms/modules/bms/report/invoices_pdf_class.php

    r356 r364  
    205205                 
    206206                        $pdf = &$this->pdf; 
     207                         
    207208                                 
    208209                        $pdf->AddPage();         
     
    218219                        $pdf->SetXY(-1*($titleWidth+$pdf->rightmargin), $pdf->topmargin); 
    219220                        $pdf->Cell($titleWidth, $titleHeight,$this->title, $pdf->borderDebug,1,"R"); 
    220                                                  
     221                         
     222                        $startY = $pdf->GetY() + 0.75; 
     223 
     224                        //page number? 
     225                        $pdf->setStyle("normal"); 
     226                        $pageNoWidth = 1; 
     227                        $pdf->SetFontSize(8); 
     228                        $pdf->SetXY(-1*($pageNoWidth + $pdf->rightmargin), $pdf->topmargin + $titleHeight + 0.25); 
     229                        $pdf->Cell($pageNoWidth, 0.17, "page: ".$this->page, $pdf->borderDebug,1,"R"); 
     230 
     231                         
    221232                        //SOLD TO 
    222                         $startY = $pdf->GetY() + 0.75; 
    223                          
    224233                        $boxHeight = 1.75; 
    225234                        $boxWidth = ($pdf->paperwidth - $pdf->leftmargin - $pdf->rightmargin)/2 -0.0625; 
Copyright © 2006-2007 Kreotek, LLC. All Rights reserved.