Browse Source

Displays EU and Non EU Bank details in the front PDF

currency
7u83 4 years ago
parent
commit
894e460efa
2 changed files with 27 additions and 4 deletions
  1. +4
    -3
      ka.html
  2. +23
    -1
      submit.php

+ 4
- 3
ka.html View File

@ -98,15 +98,16 @@
<label class="nonEU" for="bankaddress" >Bankanschrift</label> <label class="nonEU" for="bankaddress" >Bankanschrift</label>
<textarea class="nonEU" id="bankaddress" style="resize:both;" cols="32" rows="4" placeholder="Straße und Hausnummer
<textarea class="nonEU" name="bankaddress" id="bankaddress" style="resize:both;" cols="32" rows="4" placeholder="Straße und Hausnummer
Postleitzahl und Ort Postleitzahl und Ort
Land"></textarea> Land"></textarea>
<label class="nonEU" for="address" >Deine Anschrift</label><textarea lang="de" class="nonEU" id="address" style="resize:both;" cols="32" rows="4" placeholder="Straße und Hausnummer
<label class="nonEU" for="address" >Deine Anschrift</label>
<textarea name="address" lang="de" class="nonEU" id="address" style="resize:both;" cols="32" rows="4" placeholder="Straße und Hausnummer
Postleitzahl und Ort Postleitzahl und Ort
Land"></textarea> Land"></textarea>
<label class="EU nonEU" for="comments" lang="de">Weitere Anmerkungen</label> <label class="EU nonEU" for="comments" lang="de">Weitere Anmerkungen</label>
<textarea class="EU nonEU" id="comments"
<textarea class="EU nonEU" id="comments" name="comments"
style="resize:both;" cols="32" rows="4" placeholder="z.B. intermdiäre Bank, style="resize:both;" cols="32" rows="4" placeholder="z.B. intermdiäre Bank,
Grund für abweichende Kontoinhaberin"></textarea> Grund für abweichende Kontoinhaberin"></textarea>

+ 23
- 1
submit.php View File

@ -36,6 +36,9 @@ class kaformPDF extends TCPDF {
}; };
function mkFrontPDF(){ function mkFrontPDF(){
$comments = str_replace("\n","<BR>",$_POST[comments]);
$bankaddress = str_replace("\n","<BR>",$_POST[bankaddress]);
$address = str_replace("\n","<BR>",$_POST[address]);
$account_owner = $_POST[owner]; $account_owner = $_POST[owner];
if (!$account_owner) $account_owner = $_POST[realname]; if (!$account_owner) $account_owner = $_POST[realname];
@ -45,11 +48,24 @@ function mkFrontPDF(){
$aw = "EU-Bank&uuml;berweisung"; $aw = "EU-Bank&uuml;berweisung";
$aw_details = " $aw_details = "
Kontoinhaber: $account_owner<br> Kontoinhaber: $account_owner<br>
IBAN: $_POST[IBAN]<br>
BIC: $_POST[BIC]<br>
Bank: $_POST[Bankname]<br><br>
Anmerkungen:<br> $comments<br>
"; ";
break; break;
case "NonEU":
case "Non-EU":
$aw = "Non-EU-Bank&uuml;berweisung"; $aw = "Non-EU-Bank&uuml;berweisung";
$aw_details = "
Kontoinhaber: $account_owner<br>
IBAN: $_POST[IBAN]<br>
BIC: $_POST[BIC]<br>
Bank: $_POST[Bankname]<br><br>
Bankanschrift:<br>$bankaddress<br><br>
Anschrift des Empf&auml;ngers:<br>$address<br><br>
Anmerkungen:<br> $comments<br>
";
break; break;
} }
@ -244,7 +260,13 @@ $pdfs = array();
// Applicatoin starts here // Applicatoin starts here
echo "Making Fromt PDF<BR>";
$p = mkFrontPDF(); $p = mkFrontPDF();
echo "Did Making Fromt PDF<BR>";
array_push($pdfs,$p); array_push($pdfs,$p);
foreach ($_POST['desc'] as $key => $val) { foreach ($_POST['desc'] as $key => $val) {

Loading…
Cancel
Save