[ Index ] |
|
Code source de vtiger CRM 5.0.2 |
1 <?php 2 /********************************************************************************* 3 ** The contents of this file are subject to the vtiger CRM Public License Version 1.0 4 * ("License"); You may not use this file except in compliance with the License 5 * The Original Code is: vtiger CRM Open Source 6 * The Initial Developer of the Original Code is vtiger. 7 * Portions created by vtiger are Copyright (C) vtiger. 8 * All Rights Reserved. 9 * 10 ********************************************************************************/ 11 12 13 14 // draw a broken line 15 $width=3; 16 $area=216; 17 $pad=2; 18 19 for ($i=10;$i<200;$i++) { 20 $linePos=array($i,$area,$width); 21 $pdf->drawLine($linePos); 22 $i = (($i+$width)+$pad)-1; 23 } 24 25 26 // company addy 27 $companyBlockPositions=array( "10","220","60" ); 28 $companyText=$org_address."\n".$org_city.", ".$org_state." ".$org_code." ".$org_country; 29 $pdf->addTextBlock( $org_name, $companyText ,$companyBlockPositions ); 30 31 32 // billing Address 33 $billPositions = array("85","235","60"); 34 $billText=$bill_street."\n".$bill_city.", ".$bill_state." ".$bill_code."\n".$bill_country; 35 $pdf->addTextBlock("Billing Address:",$billText, $billPositions); 36 37 // totals 38 $totalBlock=array("145","235","10", "110"); 39 $totalText="SubTotal: ".$price_subtotal."\n". 40 "Tax: ".$price_tax."\n". 41 "Adjustment: ".$price_adjustment."\n". 42 "Total: ".$price_total; 43 $pdf->addDescBlock($totalText, "Total Due", $totalBlock); 44 45 $blurbBlock=array("10","265","150", "60"); 46 $blockText="Detach on above line and send a check, money order or cashiers check in the provided envelope"; 47 $pdf->addDescBlock($blockText, "Instructions", $blurbBlock); 48 49 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 10:22:19 2007 | par Balluche grâce à PHPXref 0.7 |