forked from tohe/wmdeit_kaform
Wrtie some bank account details into the PDF for iEU bank transfers
This commit is contained in:
parent
ed0aa41d15
commit
3388f88042
26
submit.php
26
submit.php
|
@ -37,6 +37,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<br>
|
||||
|
||||
";
|
||||
break;
|
||||
case "NonEU":
|
||||
$aw = "Non-EU-Banküberweisung";
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// create new PDF document
|
||||
$pdf = new kaformPDF(
|
||||
PDF_PAGE_ORIENTATION, PDF_UNIT, $pageLayout /*PDF_PAGE_FORMAT*/,
|
||||
|
@ -119,6 +139,12 @@ function mkFrontPDF(){
|
|||
Telefon: $_POST[phone]
|
||||
</p>
|
||||
<hr>
|
||||
<br>
|
||||
<p>
|
||||
Auszahlungsweg: $aw<br>
|
||||
$aw_details
|
||||
</p>
|
||||
|
||||
EOD;
|
||||
|
||||
// Print text using writeHTMLCell()
|
||||
|
|
Loading…
Reference in New Issue