1<?php 2/*PDF page header for aged analysis reports */ 3$PageNumber++; 4if ($PageNumber>1){ 5 $pdf->newPage(); 6} 7 8$FontSize=8; 9$YPos= $Page_Height-$Top_Margin; 10 11$pdf->addText($Left_Margin, $YPos,$FontSize, $_SESSION['CompanyRecord']['coyname']); 12 13$YPos -=$line_height; 14 15$FontSize =10; 16$pdf->addText($Left_Margin, $YPos, $FontSize, _('Customer Balances For Customers between') . ' ' . $_POST['FromCriteria'] . ' ' . _('and') . ' ' . $_POST['ToCriteria'] . ' ' . _('as at') . ' ' . $PeriodEndDate); 17 18$FontSize = 8; 19$pdf->addText($Page_Width-$Right_Margin-120,$YPos,$FontSize, _('Printed') . ': ' . Date($_SESSION['DefaultDateFormat']) . ' ' . _('Page') . ' ' . $PageNumber); 20 21$YPos -=(3*$line_height); 22 23/*Draw a rectangle to put the headings in */ 24$pdf->rectangle($Left_Margin, $YPos+$line_height, $Page_Width-$Right_Margin-$Left_Margin,$line_height+5 ); 25 26/*set up the headings */ 27$Xpos = $Left_Margin+3; 28 29$LeftOvers = $pdf->addTextWrap($Xpos,$YPos,220 - $Left_Margin,$FontSize,_('Customer'),'left'); 30$LeftOvers = $pdf->addTextWrap(220,$YPos,60,$FontSize,_('Balance'),'right'); 31$LeftOvers = $pdf->addTextWrap(280,$YPos,60,$FontSize,_('FX'),'right'); 32$LeftOvers = $pdf->addTextWrap(350,$YPos,60,$FontSize,_('Currency'),'left'); 33 34$pdf->rectangle($Left_Margin, $YPos+$line_height, $Page_Width-$Right_Margin-$Left_Margin,$Page_Height-($line_height*5)-$Bottom_Margin-5 ); 35 36$pdf->line(218, $YPos+$line_height, 218, $Bottom_Margin); 37$pdf->line(282, $YPos+$line_height, 282, $Bottom_Margin); 38$pdf->line(342, $YPos+$line_height, 342, $Bottom_Margin); 39 40$YPos =$YPos - (2*$line_height); 41 42?>