|
|
@ -194,12 +194,6 @@ function mkFrontPDF(){ |
|
|
|
|
|
|
|
EOD; |
|
|
|
|
|
|
|
#var_dump($thtml);
|
|
|
|
#die;
|
|
|
|
|
|
|
|
// <p>WMDE Ansprechpartner: $_POST[wmdecontact]</p>
|
|
|
|
// 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<BR>";
|
|
|
|
|
|
|
|
|
|
|
|
#echo "Did Making Fromt PDF<BR>";
|
|
|
|
|
|
|
|
|
|
|
|
array_push($pdfs,$p); |
|
|
|
//var_dump($pdfs);
|
|
|
|
|
|
|
|
foreach ($_POST['desc'] as $key => $val) { |
|
|
|
// echo "DREESK KEY VAL $key --> $val<br>";
|
|
|
@ -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->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.<BR>"; |
|
|
|
echo '<a href="ka.php"> |
|
|
|
Weiteren Antrag auf Kostenerstattung stellen</a><BR>'; |
|
|
|
$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->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.<BR>"; |
|
|
|
echo '<a href="ka.php"> |
|
|
|
Weiteren Antrag auf Kostenerstattung stellen</a><BR>'; |
|
|
|
|
|
|
|
|
|
|
|
die; |
|
|
|