Card PDF : also from Gestion
This commit is contained in:
parent
910ae8b9f2
commit
6a59d2149e
2 changed files with 10 additions and 2 deletions
|
|
@ -70,7 +70,15 @@ if ( ! $p_readonly)
|
|||
echo HtmlInput::submit('delete_card',
|
||||
_('Effacer cette fiche'),
|
||||
'onclick="$(\'action_fiche\').value=\'delete_card\';return confirm_box(\'catergory_detail_frm\',\''.('Confirmer effacement ?').'\');"');
|
||||
echo '</form>';
|
||||
$button_pdf=HtmlInput::button_anchor(_("PDF"),
|
||||
"export.php?".http_build_query([
|
||||
"act"=>"PDF:card",
|
||||
"card_id"=>$f_id,
|
||||
"gDossier"=>Dossier::id()
|
||||
]));
|
||||
echo $button_pdf;
|
||||
|
||||
echo '</form>';
|
||||
}
|
||||
echo '</div>';
|
||||
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ class Card_PDF extends \PDF
|
|||
}
|
||||
|
||||
|
||||
$filename=$this->card->strAttribut(1)."-".$this->card->strAttribut(32).".pdf";
|
||||
$filename=$this->card->strAttribut(1)."-".$this->card->strAttribut(23).".pdf";
|
||||
$filename=sanitize_filename($filename);
|
||||
$this->Output($filename,"D");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue