Card PDF : also from Gestion

This commit is contained in:
sparkyx 2024-02-18 13:30:07 +01:00
parent 910ae8b9f2
commit 6a59d2149e
2 changed files with 10 additions and 2 deletions

View file

@ -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>';

View file

@ -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");
}