Commit 261da044 authored by Skia's avatar Skia

Add place number to eticket rendering

parent 9a875c64
......@@ -62,6 +62,7 @@ class eticket_pdf extends FPDF
$this->add_line ('Prénom:', $user_infos['prenom']);
$this->add_line ('Nom:', $user_infos['nom']);
$this->add_line ('Surnom:', $user_infos['nickname']);
$this->add_line('Nombre de place'.(($user_infos['quantite']>1)?'s':'').':', $user_infos['quantite']);
$this->Ln(20);
......
......@@ -81,7 +81,8 @@ $eticket_pdf = new eticket_pdf ($file->get_real_filename ());
$eticket_pdf->renderize (array ('prenom' => $user->prenom,
'nom' => $user->nom,
'nickname' => $user->surnom,
'avatar' => $topdir . str_replace ("unknown.png", "unknown.jpg", $user->get_preview ())),
'avatar' => $topdir . str_replace ("unknown.png", "unknown.jpg", $user->get_preview ()),
'quantite' => $quantite),
$code);
$eticket_pdf->Output ('eticket_'.$id_ticket.'.pdf', 'D');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment