CARD : add button to epxort to PDF
This commit is contained in:
parent
b6b8c88041
commit
d9cf4cf71c
5 changed files with 123 additions and 1 deletions
16
include/export/export_card_pdf.php
Normal file
16
include/export/export_card_pdf.php
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
/***
|
||||
* @file
|
||||
* @brief output a PDF with card info
|
||||
*
|
||||
*/
|
||||
try {
|
||||
$http=new \HttpInput();
|
||||
$card_id=$http->get("card_id");
|
||||
} catch (\Exception $e) {
|
||||
echo $e->getMessage();
|
||||
die();
|
||||
}
|
||||
|
||||
$card_pdf=new \Card_PDF($card_id);
|
||||
$card_pdf->export();
|
||||
Loading…
Add table
Add a link
Reference in a new issue