[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 01/06: Card PDF : also from Gestion
From: |
dwm |
Subject: |
[Noalyss-commit] [noalyss] 01/06: Card PDF : also from Gestion |
Date: |
Sun, 25 Feb 2024 13:07:19 -0500 (EST) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 6a59d2149e42cc7ca8dec8a7f42a47030df94c95
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Sun Feb 18 13:30:07 2024 +0100
Card PDF : also from Gestion
---
include/category_detail.inc.php | 10 +++++++++-
include/class/card_pdf.class.php | 2 +-
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/include/category_detail.inc.php b/include/category_detail.inc.php
index 122e7d87c..e9e5a10d9 100644
--- a/include/category_detail.inc.php
+++ b/include/category_detail.inc.php
@@ -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>';
diff --git a/include/class/card_pdf.class.php b/include/class/card_pdf.class.php
index 59971489d..0b8939b0b 100644
--- a/include/class/card_pdf.class.php
+++ b/include/class/card_pdf.class.php
@@ -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");
}
- [Noalyss-commit] [noalyss] branch master updated (3321756df -> 49701a972), dwm, 2024/02/25
- [Noalyss-commit] [noalyss] 04/06: FOLLOWUP-FILTER : cosmetic, dwm, 2024/02/25
- [Noalyss-commit] [noalyss] 05/06: PHP8.1 compatibility, dwm, 2024/02/25
- [Noalyss-commit] [noalyss] 06/06: Merge branch 'master' of git.sv.gnu.org:/srv/git/noalyss, dwm, 2024/02/25
- [Noalyss-commit] [noalyss] 03/06: cosmetic, dwm, 2024/02/25
- [Noalyss-commit] [noalyss] 02/06: FollowUp show list of saved search, dwm, 2024/02/25
- [Noalyss-commit] [noalyss] 01/06: Card PDF : also from Gestion,
dwm <=