[ 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 // Fun with watermarks :) 14 $waterMarkPositions=array("60","110"); 15 $waterMarkRotate=array("0","0","0"); 16 $pdf->watermark( "Thank You", $waterMarkPositions, $waterMarkRotate ); 17 $waterMarkPositions=array("30","130"); 18 $pdf->watermark( "For Your Business", $waterMarkPositions, $waterMarkRotate ); 19 20 // blowing bubbles 21 $Bubble=array("10","80","170","4"); 22 $pdf->addBubble("", "Because we love you :)", $Bubble); 23 24 $Bubble=array("168","131","12"); 25 $pdf->addBubbleBlock("Neat Look", "For A", $Bubble); 26 $Bubble=array("10","131","12"); 27 $pdf->addBubbleBlock("The Corners", "Line Up", $Bubble); 28 29 30 /* ************* Begin Totals ************************** */ 31 $totalBlock=array("59","135"); 32 $names=array("Subtotal","Tax","Adjustment","Total"); 33 $totals=array($price_subtotal,$price_tax,$price_adjustment,$price_total); 34 $pdf->addTotalsRec($names,$totals,$totalBlock); 35 /* ************* End Totals *************************** */ 36 37 // lets add an image :) 38 $imageBlock=array("15","95","8","8"); 39 $pdf->addImage( "sale.jpeg", $imageBlock); 40 $imageBlock=array("185","95","8","8"); 41 $pdf->addImage( "sale.jpeg", $imageBlock); 42 43 // descriptions that change sizes! 44 $descc=count(explode("\n",$description)); 45 $condc=count(explode("\n",$conditions)); 46 if( (strlen($description) > 256) || (strlen($conditions) > 256) || $condc >6 || $descc > 6 ) 47 $num=255; 48 else 49 $num=150; 50 51 /* **************** Begin Description ****************** */ 52 $descBlock=array("10","160","53", $num); 53 $pdf->addDescBlock($description, "Description", $descBlock); 54 55 56 $termBlock=array("107","160","53", $num); 57 $pdf->addDescBlock($conditions, "Terms & Conditions", $termBlock); 58 59 /* ************** End Terms *********************** */ 60 61 62 ?>
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 |