- + Antrag auf Kostenerstattung

Du möchtest dir Kosten erstatten lassen, welche im Rahmen deines Projektes entstanden sind?
Bitte fülle dieses Formular aus. Pflichtfelder sind mit einem * gekennzeichnet. -

+

") ?>
- 1. Erfasse deine Stammdaten + ")?>
-
+
2. Erfasse deine Ausgaben +
+ Währung: +
+
+ ` +
diff --git a/kaform.js b/kaform.js index 8b9524d..5f3d482 100644 --- a/kaform.js +++ b/kaform.js @@ -3,10 +3,12 @@ var currentRowId=1; var banktype = "bank-eu"; function renumberTableRows(){ + var cur = document.getElementById("currency").value; var row_no=1; var table = document.getElementById("tabbody"); for (var i = 0, row; row = table.rows[i]; i++) { row.cells[0].innerHTML=row_no++; + row.cells[4].innerHTML=cur; } return i; } @@ -157,6 +159,7 @@ function getUploadField(rid) function getRow(rid,num) { + var cur = document.getElementById("currency").value; return "" + "" - + "" + "
" + `${num}` @@ -170,14 +173,16 @@ function getRow(rid,num) { + "" + `` + "" - + - `` + + "" + + cur + +// + +// `` + "" diff --git a/messages.mo b/messages.mo new file mode 100644 index 0000000..6c5906d Binary files /dev/null and b/messages.mo differ diff --git a/messages.po b/messages.po new file mode 100644 index 0000000..274ca6a --- /dev/null +++ b/messages.po @@ -0,0 +1,33 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2021-06-22 10:09+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ka.php:28 +msgid "" +"\n" +"\t\t

Antrag auf Kostenerstattung

\n" +"\t\t

Du möchtest dir Kosten erstatten lassen, welche im Rahmen deines\n" +"\t\tProjektes entstanden sind?
\n" +"\t\tBitte fülle dieses Formular aus.\n" +"\t\tPflichtfelder sind mit einem * gekennzeichnet.\n" +"\t\t

" +msgstr "" + +#: ka.php:41 +msgid "1. Erfasse deine Stammdaten" +msgstr "" diff --git a/submit.php b/submit.php index 878e75a..7a3b199 100644 --- a/submit.php +++ b/submit.php @@ -194,12 +194,6 @@ function mkFrontPDF(){ EOD; -#var_dump($thtml); -#die; - -//

WMDE Ansprechpartner: $_POST[wmdecontact]

-// Telefon: $_POST[phone] - // Print text using writeHTMLCell() $pdf->writeHTMLCell(0, 0, '', '', $html, 0, 1, 0, true, '', true); @@ -365,6 +359,8 @@ function mkTable(){ $pdfs = array(); + +// // Applicatoin starts here // $p = mkFrontPDF(); @@ -374,17 +370,8 @@ $file = $p; #header('Content-Length: ' . filesize($file)); #readfile($file); -#var_dump($p); -#die(); - -#echo "Making Fromt PDF
"; - - -#echo "Did Making Fromt PDF
"; - array_push($pdfs,$p); -//var_dump($pdfs); foreach ($_POST['desc'] as $key => $val) { // echo "DREESK KEY VAL $key --> $val
"; @@ -415,35 +402,36 @@ if ($_POST['sendmail']=='yes'){ $subj = "Kostenerstattungsantrag ueber".calcSum()." EUR"; - $mail = new PHPMailer\PHPMailer\PHPMailer(); - $mail->SMTPOptions = array( - 'ssl' => array( - 'verify_peer' => false, - 'verify_peer_name' => false, - 'allow_self_signed' => true - ) - ); + $mail = new PHPMailer\PHPMailer\PHPMailer(); + $mail->SMTPOptions = array( + 'ssl' => array( + 'verify_peer' => false, + 'verify_peer_name' => false, + 'allow_self_signed' => true + ) + ); - $mail->IsSMTP(); - $mail->setFrom($mailFrom); - $mail->Subject = $subj; - $mail->Body = "Kostenerstattungsantrag ..."; - $mail->AddAddress($mailDest); - $mail->AddAttachment( $file , 'antrag.pdf' ); + $mail->IsSMTP(); + $mail->setFrom($mailFrom); + $mail->Subject = $subj; + $mail->Body = "Kostenerstattungsantrag ..."; + $mail->AddAddress($mailDest); + $mail->AddAttachment( $file , 'antrag.pdf' ); - $mail->Host = $mailHost; // Specify main and backup server - $mail->Port = $mailPort; // Set the SMTP port - $mail->SMTPAuth = $mailSMTPAuth; - $mail->Username = $mailUsername; - $mail->Password = $mailPassword; - $mail->SMTPSecure = $mailSMTPSecure; // Enable encryption, 'ssl' also accepted - $rc = $mail->send(); - if (!$rc) { - echo 'Mailer Error: ' . $mail->ErrorInfo; - } - echo "Dein Antrag wurde versendet.
"; - echo ' - Weiteren Antrag auf Kostenerstattung stellen
'; + $mail->Host = $mailHost; // Specify main and backup server + $mail->Port = $mailPort; // Set the SMTP port + $mail->SMTPAuth = $mailSMTPAuth; + $mail->Username = $mailUsername; + $mail->Password = $mailPassword; + $mail->SMTPSecure = $mailSMTPSecure; // Enable encryption, 'ssl' also accepted + $rc = $mail->send(); + if (!$rc) { + echo 'Mailer Error: ' . $mail->ErrorInfo; + die; + } + echo "Dein Antrag wurde versendet.
"; + echo ' + Weiteren Antrag auf Kostenerstattung stellen
'; die;