From 43c1c13ee6d4ebd44ead2481d5c270ef466038e5 Mon Sep 17 00:00:00 2001 From: 7u83 <7u83> Date: Fri, 6 Mar 2020 12:32:24 +0000 Subject: [PATCH] Improved the generated PDF --- ka.php | 2 +- kaform.js | 4 +++- submit.php | 61 ++++++++++++++++++++++++++++++++++++++++++++++++------ 3 files changed, 59 insertions(+), 8 deletions(-) diff --git a/ka.php b/ka.php index 9375f6c..eef1eea 100644 --- a/ka.php +++ b/ka.php @@ -205,7 +205,7 @@ Grund für abweichende Kontoinhabende Person">
- Nickname: $_POST[nickname]
+
Name: $_POST[realname]
Telefon: $_POST[phone]
E-Mail: $_POST[email]
@@ -168,8 +166,16 @@ function mkFrontPDF(){
Auszahlungsweg: $aw
$aw_details
WMDE Ansprechpartner: $_POST[wmdecontact]
// Telefon: $_POST[phone] @@ -262,7 +268,50 @@ function calcSum(){ // var_dump($val); $sum += floatval(str_replace(",",".",$val)); } - return $sum; + return str_replace(".",",",sprintf("%0.2f",$sum)); +// return sprintf("%.2f",$sum); +} + + +function mkTable(){ + $html = "$pos | "; + + $html .= "".$_POST['date'][$key]." | "; + $html .= "".$_POST['description'][$key]." | "; + $am = floatval(str_replace(",",".",$val)); + $am = str_replace(".",",",sprintf("%.2f",$am)); + $html .= "".$am." ".$_POST['currency'][$key]. " | "; + + + $html .="