From 3388f88042671d7d4678f888658c34da9d677ad2 Mon Sep 17 00:00:00 2001 From: 7u83 <7u83> Date: Fri, 21 Feb 2020 15:41:02 +0000 Subject: [PATCH] Wrtie some bank account details into the PDF for iEU bank transfers --- submit.php | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/submit.php b/submit.php index f6f3940..a3e0607 100644 --- a/submit.php +++ b/submit.php @@ -36,6 +36,26 @@ class kaformPDF extends TCPDF { }; function mkFrontPDF(){ + + $account_owner = $_POST[owner]; + if (!$account_owner) $account_owner = $_POST[realname]; + + switch ($_POST[bank]){ + case "EU": + $aw = "EU-Banküberweisung"; + $aw_details = " + Kontoinhaber: $account_owner
+ + "; + break; + case "NonEU": + $aw = "Non-EU-Banküberweisung"; + break; + + } + + + // create new PDF document $pdf = new kaformPDF( @@ -119,6 +139,12 @@ function mkFrontPDF(){ Telefon: $_POST[phone]


+
+

+ Auszahlungsweg: $aw
+ $aw_details +

+ EOD; // Print text using writeHTMLCell()