[ Index ]
 

Code source de vtiger CRM 5.0.2

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

title

Body

[fermer]

/modules/PurchaseOrder/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  define('USD',"$");
  14  define('EURO', chr(128) );
  15  
  16  // ************** Begin company information *****************
  17  $imageBlock=array("10","3","0","0");
  18  $pdf->addImage( $logo_name, $imageBlock);
  19  
  20  // x,y,width
  21  $companyBlockPositions=array( "10","23","60" );
  22  $companyText=$org_address."\n".$org_city.", ".$org_state." ".$org_code." ".$org_country;
  23  $pdf->addTextBlock( $org_name, $companyText ,$companyBlockPositions );
  24  
  25  // ************** End company information *******************
  26  
  27  
  28  
  29  // ************* Begin Top-Right Header ***************
  30  // title
  31  $titleBlock=array("147","7");
  32  $pdf->title( "Purchase Order","", $titleBlock );
  33  
  34  $soBubble=array("168","17","12");
  35  $pdf->addBubbleBlock($reqno, "Req. No.", $soBubble);
  36  
  37  $poBubble=array("114","17","12");
  38  $pdf->addBubbleBlock($trno, "Tracking No.", $poBubble);
  39  
  40  // page number
  41  $pageBubble=array("147","17",0);
  42  $pdf->addBubbleBlock($page_num, "Page", $pageBubble);
  43  // ************** End Top-Right Header *****************
  44  
  45  
  46  
  47  // ************** Begin Addresses **************
  48  // shipping Address
  49  $shipLocation = array("10","43","60");
  50  $shipText=$ship_street."\n".$ship_city.", ".$ship_state." ".$ship_code."\n".$ship_country;
  51  $pdf->addTextBlock( "Shipping Address:", $shipText, $shipLocation );
  52  
  53  // billing Address
  54  $billPositions = array("147","43","60");
  55  $billText=$bill_street."\n".$bill_city.", ".$bill_state." ".$bill_code."\n".$bill_country;
  56  $pdf->addTextBlock("Billing Address:",$billText, $billPositions);
  57  // ********** End Addresses ******************
  58  
  59  
  60  
  61  /*  ******** Begin Invoice Data ************************ */ 
  62  // terms block
  63  $termBlock=array("10","65");
  64  $pdf->addRecBlock($vendor_name, "Vendor Name", $termBlock);
  65  
  66  // due date block
  67  $dueBlock=array("80","65");
  68  $pdf->addRecBlock($valid_till, "Due Date",$dueBlock);
  69  
  70  // vtiger_invoice number block
  71  $invBlock=array("145","65");
  72  $pdf->addRecBlock($id, "Order Number",$invBlock);
  73  
  74  /* ************ End Invoice Data ************************ */
  75  
  76  
  77  
  78  ?>


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