1<?php 2if ($PageNumber>1){ 3 $pdf->newPage(); 4} 5 6$YPos = $Page_Height - $Top_Margin - 50; 7 8$pdf->addJpegFromFile($_SESSION['LogoFile'],$Left_Margin,$YPos,0,50); 9 10$FontSize=15; 11 12$XPos = $Left_Margin; 13$YPos -= 40; 14$pdf->addText($XPos, $YPos,$FontSize, _('Variances Between Orders and Deliveries Listing')); 15$FontSize=12; 16 17if ($_POST['CategoryID']!='All') { 18 $pdf->addText($XPos, $YPos-20,$FontSize, _('For Inventory Category') . ' ' . $_POST['CategoryID'] . ' '. _('From') . ' ' . $_POST['FromDate'] . ' ' . _('to') . ' ' . $_POST['ToDate']); 19} else { 20 $pdf->addText($XPos, $YPos-20,$FontSize, _('From') . ' ' . $_POST['FromDate'] . ' ' . _('to') . ' ' . $_POST['ToDate']); 21} 22if ($_POST['Location']!='All'){ 23 $pdf->addText($XPos+300, $YPos-20, $FontSize, _('Deliveries ex') . ' '. $_POST['Location'] . ' ' . _('only')); 24} 25 26$XPos = $Page_Width-$Right_Margin-50; 27$YPos -=30; 28$pdf->addText($XPos, $YPos,$FontSize, _('Page') . ': ' . $PageNumber); 29 30/*Now print out the company name and address */ 31$XPos = $Left_Margin; 32$YPos -= $line_height; 33 34 35$YPos -= $line_height; 36/*Set up headings */ 37$FontSize=8; 38 39$LeftOvers = $pdf->addTextWrap($Left_Margin,$YPos,40,$FontSize,_('Invoice'), 'left'); 40$LeftOvers = $pdf->addTextWrap($Left_Margin+40,$YPos,40,$FontSize,_('Order'), 'left'); 41$LeftOvers = $pdf->addTextWrap($Left_Margin+80,$YPos,200,$FontSize,_('Item and Description'), 'left'); 42$LeftOvers = $pdf->addTextWrap($Left_Margin+280,$YPos,50,$FontSize,_('Quantity'), 'centre'); 43$LeftOvers = $pdf->addTextWrap($Left_Margin+335,$YPos,45,$FontSize,_('Customer'), 'left'); 44$LeftOvers = $pdf->addTextWrap($Left_Margin+385,$YPos,45,$FontSize,_('Branch'), 'left'); 45$LeftOvers = $pdf->addTextWrap($Left_Margin+420,$YPos,50,$FontSize,_('Inv Date'), 'centre'); 46 47$YPos-=$line_height; 48 49/*draw a line */ 50$pdf->line($XPos, $YPos,$Page_Width-$Right_Margin, $YPos); 51 52$YPos -= ($line_height); 53?> 54