forked from tohe/wmdeit_kaform
Displays EU and Non EU Bank details in the front PDF
This commit is contained in:
parent
3388f88042
commit
894e460efa
7
ka.html
7
ka.html
|
@ -98,15 +98,16 @@
|
|||
|
||||
|
||||
<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
|
||||
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
|
||||
Land"></textarea>
|
||||
<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,
|
||||
Grund für abweichende Kontoinhaberin"></textarea>
|
||||
|
||||
|
|
24
submit.php
24
submit.php
|
@ -36,6 +36,9 @@ class kaformPDF extends TCPDF {
|
|||
};
|
||||
|
||||
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];
|
||||
if (!$account_owner) $account_owner = $_POST[realname];
|
||||
|
@ -45,11 +48,24 @@ function mkFrontPDF(){
|
|||
$aw = "EU-Banküberweisung";
|
||||
$aw_details = "
|
||||
Kontoinhaber: $account_owner<br>
|
||||
IBAN: $_POST[IBAN]<br>
|
||||
BIC: $_POST[BIC]<br>
|
||||
Bank: $_POST[Bankname]<br><br>
|
||||
Anmerkungen:<br> $comments<br>
|
||||
|
||||
";
|
||||
break;
|
||||
case "NonEU":
|
||||
case "Non-EU":
|
||||
$aw = "Non-EU-Bankü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ängers:<br>$address<br><br>
|
||||
Anmerkungen:<br> $comments<br>
|
||||
";
|
||||
break;
|
||||
|
||||
}
|
||||
|
@ -244,7 +260,13 @@ $pdfs = array();
|
|||
|
||||
// Applicatoin starts here
|
||||
|
||||
echo "Making Fromt PDF<BR>";
|
||||
|
||||
$p = mkFrontPDF();
|
||||
|
||||
echo "Did Making Fromt PDF<BR>";
|
||||
|
||||
|
||||
array_push($pdfs,$p);
|
||||
|
||||
foreach ($_POST['desc'] as $key => $val) {
|
||||
|
|
Loading…
Reference in New Issue