From 894e460efac507ea17a95d48d0aa6f542f29f3e1 Mon Sep 17 00:00:00 2001 From: 7u83 <7u83> Date: Fri, 21 Feb 2020 16:52:26 +0000 Subject: [PATCH] Displays EU and Non EU Bank details in the front PDF --- ka.html | 7 ++++--- submit.php | 24 +++++++++++++++++++++++- 2 files changed, 27 insertions(+), 4 deletions(-) diff --git a/ka.html b/ka.html index 093683f..391cd24 100644 --- a/ka.html +++ b/ka.html @@ -98,15 +98,16 @@ - - - diff --git a/submit.php b/submit.php index a3e0607..ec37727 100644 --- a/submit.php +++ b/submit.php @@ -36,6 +36,9 @@ class kaformPDF extends TCPDF { }; function mkFrontPDF(){ + $comments = str_replace("\n","
",$_POST[comments]); + $bankaddress = str_replace("\n","
",$_POST[bankaddress]); + $address = str_replace("\n","
",$_POST[address]); $account_owner = $_POST[owner]; if (!$account_owner) $account_owner = $_POST[realname]; @@ -45,11 +48,24 @@ function mkFrontPDF(){ $aw = "EU-Banküberweisung"; $aw_details = " Kontoinhaber: $account_owner
+ IBAN: $_POST[IBAN]
+ BIC: $_POST[BIC]
+ Bank: $_POST[Bankname]

+ Anmerkungen:
$comments
"; break; - case "NonEU": + case "Non-EU": $aw = "Non-EU-Banküberweisung"; + $aw_details = " + Kontoinhaber: $account_owner
+ IBAN: $_POST[IBAN]
+ BIC: $_POST[BIC]
+ Bank: $_POST[Bankname]

+ Bankanschrift:
$bankaddress

+ Anschrift des Empfängers:
$address

+ Anmerkungen:
$comments
+ "; break; } @@ -244,7 +260,13 @@ $pdfs = array(); // Applicatoin starts here +echo "Making Fromt PDF
"; + $p = mkFrontPDF(); + +echo "Did Making Fromt PDF
"; + + array_push($pdfs,$p); foreach ($_POST['desc'] as $key => $val) {