| 4 | david | 1 | <?php
 | 
        
           |  |  | 2 | // +----------------------------------------------------------------------------+
 | 
        
           |  |  | 3 | // |recu_pdf.php												                |
 | 
        
           |  |  | 4 | // +----------------------------------------------------------------------------+
 | 
        
           |  |  | 5 | // | Copyright (c) 2003 Tela Botanica								            |
 | 
        
           |  |  | 6 | // +----------------------------------------------------------------------------+
 | 
        
           |  |  | 7 | // | Ce fichier génère un fichier PDF                                           |
 | 
        
           |  |  | 8 | // | contenant le recu pour une cotisation à Tela Botanica                      |
 | 
        
           |  |  | 9 | // | Il utilise la librairie FPDF                                               |
 | 
        
           |  |  | 10 | // | http://www.fpdf.org/                                                       |
 | 
        
           |  |  | 11 | // |                                                                            |
 | 
        
           |  |  | 12 | // | Recoie $cotisation_id en parametre                                         |
 | 
        
           |  |  | 13 | // +----------------------------------------------------------------------------+
 | 
        
           |  |  | 14 | // | Auteur : Alexandre Granier <alexandre@tela-botanica.org> 	            	|
 | 
        
           |  |  | 15 | // +----------------------------------------------------------------------------+
 | 
        
           |  |  | 16 | //
 | 
        
           |  |  | 17 | // $Id: voir_recu_pdf.php,v 1.1.1.1 2005/01/03 17:27:49 alex Exp $
 | 
        
           |  |  | 18 |   | 
        
           |  |  | 19 |   | 
        
           |  |  | 20 | // Inclusion des fichiers nécessaire à une connection
 | 
        
           |  |  | 21 | include_once ("../../papyrus/configuration/pap_config.inc.php") ;
 | 
        
           |  |  | 22 | include_once 'DB.php' ;
 | 
        
           |  |  | 23 |   | 
        
           |  |  | 24 | $db = DB::connect (PAP_DSN) ;
 | 
        
           |  |  | 25 |   | 
        
           |  |  | 26 | include_once "../../api/fpdf/fpdf.php";
 | 
        
           |  |  | 27 |   | 
        
           |  |  | 28 | $envoie = 1 ;
 | 
        
           |  |  | 29 |   | 
        
           |  |  | 30 | include_once "recu_pdf_corps.php" ;
 | 
        
           |  |  | 31 |   | 
        
           |  |  | 32 |   | 
        
           |  |  | 33 | // buffer est une propriété de la classe FPDF qui contient les données au format PDF.
 | 
        
           |  |  | 34 | // habituellement on ne l'utilise pas, on appelle $pdf->Output() qui envoie les
 | 
        
           |  |  | 35 | // entete HTTP du document généré
 | 
        
           |  |  | 36 |   | 
        
           |  |  | 37 | $pdf->Output() ;
 | 
        
           |  |  | 38 |   | 
        
           |  |  | 39 | ?>
 |