<?php
/*
----------------------------------------------------------------------
SYGAL - Systme de gestion d'association libre
Copyright (C) 2003 by the INDEPNET Development Team.
http://indepnet.net/
----------------------------------------------------------------------
LICENSE
This file is part of SYGAL.
SYGAL is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
SYGAL is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with SYGAL; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
----------------------------------------------------------------------
Original Author of file: Bazile Lebeau et Dolans Jean-Mathieu
Purpose of file:
----------------------------------------------------------------------
*Inspir du script carte.php
* Auteurs Rodolphe Quiedeville <hide@address.com>
* Jean-Louis Bergamo <hide@address.com>
* de Dolibarr : http://www.dolibarr.com
*/
?>
<?php
// Dfinition du niveau de scurit de la page
$id_page=100;
// Page faisant appel aux sessions
// ********* Prrequis
define('FPDF_FONTPATH','font/');
require_once('cl_pdfcard.php');
//$pdf = new PDF_Label(array('name'=>'perso1', 'marginLeft'=>1, 'marginTop'=>1, 'NX'=>2, 'NY'=>7, 'SpaceX'=>0, 'SpaceY'=>0, 'width'=>99.1, 'height'=>'38.1', 'metric'=>'mm', 'font-size'=>14), 1, 2);
$pdf = new PDF_card('CARD', 1, 1);
$pdf->Open();
$pdf->AddPage();
// imprime le texte specifique sur la carte
$pdf->Add_PDF_card(printf("\n\n %s\n\n %s\n %s\n %s",
'Prepaid Internet Card', "Username: $username", "Password: $pass", "Validity: $res"));
$pdf->Output();
?>