[ Index ]
 

Code source de vtiger CRM 5.0.2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/modules/Quotes/pdf_templates/ -> header.php (source)

   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  // ************** Begin company information *****************
  14  $imageBlock=array("10","3","0","0");
  15  $pdf->addImage( $logo_name, $imageBlock);
  16  
  17  // x,y,width
  18  $companyBlockPositions=array( "10","23","60" );
  19  $companyText=$org_address."\n".$org_city.", ".$org_state." ".$org_code." ".$org_country;
  20  $pdf->addTextBlock( $org_name, $companyText ,$companyBlockPositions );
  21  
  22  // ************** End company information *******************
  23  
  24  
  25  
  26  // ************* Begin Top-Right Header ***************
  27  // Quote title
  28  $titleBlock=array("163","7");
  29  $pdf->title( "Quote","", $titleBlock );
  30  
  31  //  Account Number
  32  $acctBubble=array("147","17","12");
  33  $pdf->addBubbleBlock($account_id, "Account Number", $acctBubble);
  34  
  35  // page number
  36  $pageBubble=array("180","17",0);
  37  $pdf->addBubbleBlock($page_num, "Page", $pageBubble);
  38  // ************** End Top-Right Header *****************
  39  
  40  
  41  
  42  // ************** Begin Addresses **************
  43  // shipping Address
  44  $shipLocation = array("10","43","60");
  45  $shipText=$ship_street."\n".$ship_city.", ".$ship_state." ".$ship_code."\n".$ship_country;
  46  $pdf->addTextBlock( "Shipping Address:", $shipText, $shipLocation );
  47  
  48  // billing Address
  49  $billPositions = array("147","43","60");
  50  $billText=$bill_street."\n".$bill_city.", ".$bill_state." ".$bill_code."\n".$bill_country;
  51  $pdf->addTextBlock("Billing Address:",$billText, $billPositions);
  52  // ********** End Addresses ******************
  53  
  54  
  55  
  56  /*  ******** Begin Quote Data ************************ */
  57  // terms block
  58  $termBlock=array("10","65");
  59  $pdf->addRecBlock($account_name, "Customer Name", $termBlock);
  60  
  61  // due date block
  62  $dueBlock=array("80","65");
  63  $pdf->addRecBlock($valid_till, "Valid Till",$dueBlock);
  64  
  65  // vtiger_invoice number block
  66  $invBlock=array("147","65");
  67  $pdf->addRecBlock($quote_id, "Quote Number",$invBlock);
  68  
  69  /* ************ End Quote Data ************************ */
  70  
  71  
  72  
  73  ?>


Généré le : Sun Feb 25 10:22:19 2007 par Balluche grâce à PHPXref 0.7