- Guten Tag!
- im Anhang finden Sie Ihren QR Code für den Einlass in die Gemeinde Fellbach.
-
-
-
- Diese Mail wurde automatisch generiert!
- Antworten Sie daher nicht auf diese Mail
-
- Vielen Dank
-
- ";
- $pdfLocation = "./pdfs/QR-Code_Fellbach_$row_qr[nachname]_$row_qr[vorname].pdf"; // file location
- $pdfName = "QR-Code_Fellbach_$row_qr[nachname]_$row_qr[vorname].pdf"; // pdf file name recipient will get
- $filetype = "application/pdf"; // type
-
- // create headers and mime boundry
- $eol = PHP_EOL;
- $semi_rand = md5(time());
- $mime_boundary = "==Multipart_Boundary_x{$semi_rand}x";
- $headers = "From: $from$eol" .
- "MIME-Version: 1.0$eol" .
- "Content-Type: multipart/mixed;$eol" .
- " boundary=\"$mime_boundary\"";
-
- // add html message body
- $message = "--$mime_boundary$eol" .
- "Content-Type: text/html; charset=\"utf-8\"$eol" .
- "Content-Transfer-Encoding: 7bit$eol$eol" .
- $body . $eol;
-
- // fetch pdf
- $file = fopen($pdfLocation, 'rb');
- $data = fread($file, filesize($pdfLocation));
- fclose($file);
- $pdf = chunk_split(base64_encode($data));
-
- // attach pdf to email
- $message .= "--$mime_boundary$eol" .
- "Content-Type: $filetype;$eol" .
- " name=\"$pdfName\"$eol" .
- "Content-Disposition: attachment;$eol" .
- " filename=\"$pdfName\"$eol" .
- "Content-Transfer-Encoding: base64$eol$eol" .
- $pdf . $eol .
- "--$mime_boundary--";
-
- // Send the email
- if(mail($to, $subject, $message, $headers)) {
- $smarty->assign('message', 'Die Mails wurden versendet!');
- }else {
- $smarty->assign('message', 'Die Mails wurde nicht alle versendet!');
- $name_kein_mailversand .= "$row_qr[vorname] $row_qr[nachname]
";
- }
- }else{
- # Keine Mailadresse hinterlegt
- $name_keine_mailadresse .= "$row_qr[vorname] $row_qr[nachname]
";
- }
- unlink($pdfLocation);
- }
-
- $smarty->assign('kein_mailversand', "$name_kein_mailversand");
- $smarty->assign('keine_Mailadresse', "$name_keine_mailadresse");
- } # Ende Häkchen Mailversand
-
-
-
-#echo "
";
-#echo $buffer;
-#echo "";
-#exit;
-}
-
-$smarty->assign('action', "$action");
-$smarty->display("$template/admin/$templatename");
-
-?>
diff --git a/admin/liste_tn.php b/admin/liste_tn.php
deleted file mode 100644
index 654cb3d..0000000
--- a/admin/liste_tn.php
+++ /dev/null
@@ -1,1549 +0,0 @@
-query("SET lc_time_names = 'de_DE';");
-
- $query1 = "SELECT a.tid, date_format(datum, '%a, %d.%m.%Y - %H:%i Uhr')datum_form
- FROM jumi_termine a
- WHERE a.datum > ADDDATE(now(), -7)
- GROUP BY a.tid, datum_form
- ORDER BY datum ASC";
-
- $result1 = $db->query($query1) or die("Cannot execute query1");
-
-
- while ($row1 = $result1->fetch_array()) {
- $termin = $row1['tid'];
- $result2 = $db->query("SELECT COUNT(*) Anz
- FROM jumi_buchung
- WHERE tid=$termin");
- $row2 = $result2->fetch_array();
-
- $result3 = $db->query("SELECT COUNT(distinct lfd_haushalt) Anz
- FROM jumi_buchung
- WHERE tid=$termin");
- $row3 = $result3->fetch_array();
-
- $row1['anz_ges'] = $row2['Anz'];
- $row1['anz_fam'] = $row3['Anz'];
- $table_data1[] = $row1;
- }
- $smarty->assign('table_data1', $table_data1);
-}
-
-if ($action == 'ausgabe') {
- $termin = $_POST["termin"];
- $german = $db->query("SET lc_time_names = 'de_DE';");
- $query_termin = $db->query("SELECT date_format(datum, '%a, %d.%m.%Y - %H:%i Uhr')datum_form, hinweis,date_format(datum, '%Y-%m-%d')datum_output
- FROM jumi_termine
- WHERE tid = $termin");
- $row_get_termin = $query_termin->fetch_array();
-
-
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'A1' AND platz = 'A' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $A1A .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'A1' AND platz = 'B' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $A1B .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'A1' AND platz = 'C' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $A1C .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'A1' AND platz = 'D' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $A1D .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'A1' AND platz = 'E' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $A1E .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'A1' AND platz = 'F' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $A1F .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
-
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K1' AND platz = 'A' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K1A .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K1' AND platz = 'B' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K1B .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K1' AND platz = 'C' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K1C .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K1' AND platz = 'D' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K1D .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K1' AND platz = 'E' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K1E .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K1' AND platz = 'F' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K1F .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K2' AND platz = 'A' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K2A .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K2' AND platz = 'B' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K2B .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K2' AND platz = 'C' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K2C .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K2' AND platz = 'D' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K2D .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K2' AND platz = 'E' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K2E .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K2' AND platz = 'F' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K2F .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K3' AND platz = 'A' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K3A .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K3' AND platz = 'B' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K3B .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K3' AND platz = 'C' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K3C .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K3' AND platz = 'D' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K3D .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K3' AND platz = 'E' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K3E .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K3' AND platz = 'F' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K3F .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K4' AND platz = 'A' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K4A .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K4' AND platz = 'B' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K4B .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K4' AND platz = 'C' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K4C .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K4' AND platz = 'D' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K4D .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K4' AND platz = 'E' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K4E .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K4' AND platz = 'F' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K4F .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K5' AND platz = 'A' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K5A .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K5' AND platz = 'B' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K5B .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K5' AND platz = 'C' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K5C .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K5' AND platz = 'D' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K5D .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K5' AND platz = 'E' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K5E .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K5' AND platz = 'F' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K5F .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K6' AND platz = 'A' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K6A .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K6' AND platz = 'B' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K6B .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K6' AND platz = 'C' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K6C .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K6' AND platz = 'D' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K6D .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K6' AND platz = 'E' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K6E .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K6' AND platz = 'F' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K6F .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K7' AND platz = 'A' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K7A .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K7' AND platz = 'B' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K7B .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K7' AND platz = 'C' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K7C .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K7' AND platz = 'D' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K7D .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K7' AND platz = 'E' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K7E .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K7' AND platz = 'F' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K7F .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K8' AND platz = 'A' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K8A .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K8' AND platz = 'B' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K8B .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K8' AND platz = 'C' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K8C .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K8' AND platz = 'D' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K8D .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K8' AND platz = 'E' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K8E .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K8' AND platz = 'F' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K8F .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K9' AND platz = 'A' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K9A .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K9' AND platz = 'B' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K9B .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K9' AND platz = 'C' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K9C .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K9' AND platz = 'D' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K9D .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K9' AND platz = 'E' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K9E .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K9' AND platz = 'F' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K9F .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K10' AND platz = 'A' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K10A .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K10' AND platz = 'B' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K10B .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K10' AND platz = 'C' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K10C .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K10' AND platz = 'D' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K10D .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K10' AND platz = 'E' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K10E .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'K10' AND platz = 'F' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $K10F .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'D1' AND platz = 'E' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $D1E .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'M1' AND platz = 'A' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $M1A .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'M1' AND platz = 'B' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $M1B .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'M1' AND platz = 'C' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $M1C .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'F1' AND platz = 'A' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $F1A .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'F2' AND platz = 'B' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $F2B .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'F3' AND platz = 'C' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $F3C .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E1' AND platz = 'A' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $E1A .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E1' AND platz = 'B' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $E1B .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E1' AND platz = 'C' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $E1C .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E1' AND platz = 'D' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $E1D .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E1' AND platz = 'E' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $E1E .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E1' AND platz = 'F' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $E1F .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E2' AND platz = 'A' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $E2A .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E2' AND platz = 'B' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $E2B .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E2' AND platz = 'C' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $E2C .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E2' AND platz = 'D' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $E2D .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E2' AND platz = 'E' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $E2E .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E2' AND platz = 'F' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $E2F .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E3' AND platz = 'A' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $E3A .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E3' AND platz = 'B' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $E3B .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E3' AND platz = 'C' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $E3C .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E3' AND platz = 'D' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $E3D .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E3' AND platz = 'E' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $E3E .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E3' AND platz = 'F' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $E3F .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E4' AND platz = 'A' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $E4A .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E4' AND platz = 'B' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $E4B .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E4' AND platz = 'C' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $E4C .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E4' AND platz = 'D' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $E4D .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E4' AND platz = 'E' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $E4E .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E4' AND platz = 'F' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $E4F .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E5' AND platz = 'A' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $E5A .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E5' AND platz = 'B' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $E5B .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E5' AND platz = 'C' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $E5C .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E5' AND platz = 'D' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $E5D .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E5' AND platz = 'E' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $E5E .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'E5' AND platz = 'F' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $E5F .= "$row_tn_koord[nachname], $row_tn_koord[vorname]
";
- }
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'Sonntagschule' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $sonntagschule .= "$row_tn_koord[nachname], $row_tn_koord[vorname]; ";
- }
- $sonntagschule = substr($sonntagschule,0, -2);
-
- $query1x = "SELECT bid, vorname, nachname FROM jumi_buchung WHERE reihe = 'Vorsonntagschule' AND tid = $termin ORDER BY nachname, vorname ASC";
- $result1x = $db->query($query1x) or die('Cannot execute query1');
- while ($row_tn_koord = $result1x->fetch_array()) {
- $vorsonntagschule .= "$row_tn_koord[nachname], $row_tn_koord[vorname]; ";
- }
- $vorsonntagschule = substr($vorsonntagschule,0, -2);
-
-
-
-
-$buffer = '';
-$buffer .= "";
-
-$buffer.="$row_get_termin[datum_form]
-
-
-
-
- Nr.
- |
-
- Name
- |
-
- Sitzplatz
- |
-
- Anwesend
- |
-
-";
- $query1 = "SELECT vorname, nachname, reihe, platz, lfd_haushalt
- FROM jumi_buchung
- WHERE tid = $termin
- AND reihe != ''
- ORDER BY nachname, lfd_haushalt, vorname
- ";
-
- $result1 = $db->query($query1) or die("Cannot execute query1a");
-
- $smarty->assign('termine_aktdat', date("d.m.Y H:i", time() ) ) ;
- $lfdnr = 1;
- while ($row1 = $result1->fetch_array()) {
- if($row1['platz'] == ''){
- $platz = "$row1[reihe]";
- }else{
- $platz = "$row1[reihe] / $row1[platz]";
- }
-
- if($row1['lfd_haushalt'] != $haushalt_last){
- if($tdclass == "td1"){
- $tdclass = "td2";
- }else{
- $tdclass = "td1";
- }
- }
-
- $buffer.="
-
-
- $lfdnr
- |
-
- $row1[nachname], $row1[vorname]
- |
-
- $platz
- |
-
- |
-
";
- $lfdnr++;
- $haushalt_last = $row1['lfd_haushalt'];
- }
-
-$buffer.="
-
-";
-
-require_once("../mpdf/vendor/autoload.php");
-$mpdf = new \Mpdf\Mpdf([
- 'mode' => 'utf-8',
- 'format' => 'A4',
- 'orientation' => 'P',
- 'margin_top' => 10,
- 'margin_bottom' => 20,
- 'margin_left' => 10,
- 'margin_right' => 16,
- 'default_font' => 'arial',
-
-]);
-
-
-
- $buffer.="
-
-
-
-
-
-
- |
- |
- A |
- B |
- C |
- |
- D |
- E |
- F |
- |
- |
-
-
-
-
- A1
|
- |
-
-
- Klavier
- $A1A
- |
-
-
- $A1B
- |
-
-
- $A1C
- |
- |
-
-
- $A1D
- |
-
-
- $A1E
- |
-
-
- $A1F
- |
- |
- |
-
-
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
-
-
- K1 |
- |
-
-
- $K1A
- |
-
-
- $K1B
- |
-
-
- $K1C
- |
- |
-
-
- $K1D
- |
-
-
- $K1E
- |
-
-
- $K1F
- |
- |
- K1 |
-
-
- K2 |
- |
-
-
- $K2A
- |
-
- $K2B
- |
-
-
- $K2C
- |
- |
-
-
- $K2D
- |
-
- $K2E
- |
-
-
- $K2F
- | |
- K2 |
-
-
- K3 |
- |
-
-
- $K3A
- |
-
-
- $K3B
- |
-
-
- $K3C
- |
- |
-
-
- $K3D
- |
-
-
- $K3E
- |
-
-
- $K3F
- |
- |
- K3 |
-
-
- K4 |
- |
-
-
- $K4A
- |
-
-
- $K4B
- |
-
-
- $K4C
- |
- |
-
-
- $K4D
- |
-
- $K4E
- |
-
-
- $K4F
- | |
- K4 |
-
-
- K5 |
- |
-
-
- $K5A
- |
-
-
- $K5B
- |
-
-
- $K5C
- | |
-
-
- $K5D
- |
-
-
- $K5E
- |
-
- $K5F
- |
- |
- K5 |
-
-
- K6 |
- |
-
-
- $K6A
- |
-
-
- $K6B
- |
-
- $K6C
- |
- |
-
-
- $K6D
- |
-
- $K6E
- |
-
-
- $K6F
- |
- |
- K6 |
-
-
- K7 |
- |
-
-
- $K7A
- |
-
-
- $K7B
- |
-
-
- $K7C
- |
- |
-
-
- $K7D
- |
-
-
- $K7E
- |
-
-
- $K7F
- |
- |
- K7 |
-
-
- K8 |
- |
-
-
- $K8A
- |
-
-
- $K8B
- |
-
- $K8C
- |
- |
-
-
- $K8D
- |
-
- $K8E
- |
-
-
- $K8F
- |
- |
- K8 |
-
-
- K9 |
- |
-
-
- $K9A
- |
-
-
- $K9B
- |
-
-
- $K9C
- |
- |
-
-
- $K9D
- |
-
-
- $K9E
- |
-
-
- $K9F
- |
- |
- K9 |
-
-
- |
- |
- |
- |
- |
- |
-
-
- $K10D
- |
-
-
- $K10E
- |
-
-
- $K10F
- |
- |
- K10 |
-
-
- K10 |
- |
-
-
- $K10A
- |
-
-
- $K10B
- |
-
-
- $K10C
- |
- |
- |
- |
- |
- |
- |
-
-
- D1 |
- |
- |
- |
- |
- |
- |
-
-
- $D1E
- |
- |
- |
- D1 |
-
-
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
-
-
- M1 |
- |
-
-
- $M1A
- |
-
-
- $M1B
- |
-
-
- $M1C
- |
- |
- |
- |
- |
- |
- |
-
-
- F1 |
- |
-
-
- $F1A
- |
-
-
- $F1B
- |
-
-
- $F1C
- |
- |
- |
- |
- |
- |
- |
-
-
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
-
-
- E1 |
- |
-
-
- $E1A
- |
-
-
- $E1B
- |
-
-
- $E1C
- |
- |
-
-
- $E1D
- |
-
-
- $E1E
- |
-
-
- $E1F
- |
- |
- E1 |
-
-
- E2 |
- |
-
-
- $E2A
- |
-
-
- $E2B
- |
-
-
- $E2C
- |
- |
-
-
- $E2D
- |
-
-
- $E2E
- |
-
-
- $E2F
- |
- |
- E2 |
-
-
- E3 |
- |
-
-
- $E3A
- |
-
-
- $E3B
- |
-
-
- $E3C
- |
- |
-
-
- $E3D
- |
-
-
- $E3E
- |
-
-
- $E3F
- |
- |
- E3 |
-
-
- E4 |
- |
-
-
- $E4A
- |
-
-
- $E4B
- |
-
-
- $E4C
- |
- |
-
-
- $E4D
- |
-
-
- $E4E
- |
-
-
- $E4F
- |
- |
- E4 |
-
-
- E5 |
- |
-
-
- $E5A
- |
-
-
- $E5B
- |
-
-
- $E5C
- |
- |
- |
- |
- |
- |
- |
-
-
- |
- |
- |
- |
- |
- |
-
-
- $E5D
- |
-
-
- $E5E
- |
-
-
- $E5F
- |
- |
- E5 |
-
-
- |
- |
- A |
- B |
- C |
- |
- D |
- E |
- F |
- |
- |
-
-
-
-
-
-
-
- Sonntagschule
- $sonntagschule
- |
-
- Vorsonntagschule
- $vorsonntagschule
- |
-
-
- Legende:
-
-
-
- A1 = Altarraum
- K1-10 = Kirchenschiffreihen
- D1 = Diakon
- |
-
- M1 = Mutter/Kind
- F1 = Foyer
- E1-5 Empore
- |
-
-";
-$mpdf->setFooter("Gottesdienstteilnehmer|{PAGENO} /{nb}|$row_get_termin[datum_form]");
-
-#echo "";
-#echo $buffer;
-#echo "";
-#exit;
-$mpdf->WriteHTML($buffer);
-
-#echo "Mailsend: ".$_POST['mailsend'];
-#exit;
-// Output a PDF file directly to the browser
- if($_POST['mailsend'] != '1'){
- $smarty->assign('mailwindow', '0');
- $mpdf->Output($row_get_termin['datum_output'].'_Gottesdienstteilnehmer.pdf', D);
- }else{
- $smarty->assign('mailwindow', '1');
- $mpdf->Output('./pdfs/'.$row_get_termin['datum_output'].'_Gottesdienstteilnehmer.pdf', F);
- $to = get_parameter(5); // addresses to email pdf to
- $from = "NAK Beutelsbach "; // address message is sent from
- $subject = "Liste der Gottesdienstteilnehmer am ".$row_get_termin['datum_form']; // email subject
- $body = "
-
- Liste der Gottesdienstteilnehmer
-
-
-
- Guten Tag!
- im Anhang finden Sie die Teilnehmerliste des Gottesdienstes am: $row_get_termin[datum_form]
-
-
-
- Diese Mail wurde automatisch generiert!
- Antworten Sie daher nicht auf diese Mail
-
- Vielen Dank
-
- ";
- $pdfLocation = "./pdfs/".$row_get_termin['datum_output']."_Gottesdienstteilnehmer.pdf"; // file location
- $pdfName = $row_get_termin['datum_output']."_Gottesdienstteilnehmer.pdf"; // pdf file name recipient will get
- $filetype = "application/pdf"; // type
-
- // create headers and mime boundry
- $eol = PHP_EOL;
- $semi_rand = md5(time());
- $mime_boundary = "==Multipart_Boundary_x{$semi_rand}x";
- $headers = "From: $from$eol" .
- "MIME-Version: 1.0$eol" .
- "Content-Type: multipart/mixed;$eol" .
- " boundary=\"$mime_boundary\"";
-
- // add html message body
- $message = "--$mime_boundary$eol" .
- "Content-Type: text/html; charset=\"iso-8859-1\"$eol" .
- "Content-Transfer-Encoding: 7bit$eol$eol" .
- $body . $eol;
-
- // fetch pdf
- $file = fopen($pdfLocation, 'rb');
- $data = fread($file, filesize($pdfLocation));
- fclose($file);
- $pdf = chunk_split(base64_encode($data));
-
- // attach pdf to email
- $message .= "--$mime_boundary$eol" .
- "Content-Type: $filetype;$eol" .
- " name=\"$pdfName\"$eol" .
- "Content-Disposition: attachment;$eol" .
- " filename=\"$pdfName\"$eol" .
- "Content-Transfer-Encoding: base64$eol$eol" .
- $pdf . $eol .
- "--$mime_boundary--";
-
- // Send the email
- if(mail($to, $subject, $message, $headers)) {
- $smarty->assign('message', 'Die Mail wurde versendet!');
- }
- else {
- $smarty->assign('message', 'Die Mail wurde nicht versendet!');
- }
- unlink($pdfLocation);
- }
-}
-
-$smarty->assign('action', "$action");
-$smarty->display("$template/admin/$templatename");
-
-?>
\ No newline at end of file
diff --git a/admin/logout.php b/admin/logout.php
deleted file mode 100644
index c148555..0000000
--- a/admin/logout.php
+++ /dev/null
@@ -1,12 +0,0 @@
-display("$template/admin/$templatename");
-?>
\ No newline at end of file
diff --git a/admin/menu_administration.php b/admin/menu_administration.php
deleted file mode 100644
index 68d5e91..0000000
--- a/admin/menu_administration.php
+++ /dev/null
@@ -1,16 +0,0 @@
-assign('action', "$action");
-$smarty->display("$template/admin/$templatename");
-?>
\ No newline at end of file
diff --git a/admin/menu_qr.php b/admin/menu_qr.php
deleted file mode 100644
index 68d5e91..0000000
--- a/admin/menu_qr.php
+++ /dev/null
@@ -1,16 +0,0 @@
-assign('action', "$action");
-$smarty->display("$template/admin/$templatename");
-?>
\ No newline at end of file
diff --git a/admin/menu_survey.php b/admin/menu_survey.php
deleted file mode 100644
index 69926f5..0000000
--- a/admin/menu_survey.php
+++ /dev/null
@@ -1,16 +0,0 @@
-assign('action', "$action");
-$smarty->display("$template/admin/$templatename");
-?>
\ No newline at end of file
diff --git a/admin/menu_verwaltung.php b/admin/menu_verwaltung.php
deleted file mode 100644
index 68d5e91..0000000
--- a/admin/menu_verwaltung.php
+++ /dev/null
@@ -1,16 +0,0 @@
-assign('action', "$action");
-$smarty->display("$template/admin/$templatename");
-?>
\ No newline at end of file
diff --git a/admin/menu_youtube.php b/admin/menu_youtube.php
deleted file mode 100644
index 68d5e91..0000000
--- a/admin/menu_youtube.php
+++ /dev/null
@@ -1,16 +0,0 @@
-assign('action', "$action");
-$smarty->display("$template/admin/$templatename");
-?>
\ No newline at end of file
diff --git a/admin/old/Import_CSV_Hogrefe.xlsx b/admin/old/Import_CSV_Hogrefe.xlsx
deleted file mode 100644
index 3d5a1fe..0000000
Binary files a/admin/old/Import_CSV_Hogrefe.xlsx and /dev/null differ
diff --git a/admin/old/bewerber_daten.php b/admin/old/bewerber_daten.php
deleted file mode 100644
index 58c5e24..0000000
--- a/admin/old/bewerber_daten.php
+++ /dev/null
@@ -1,1221 +0,0 @@
-query("SET lc_time_names = 'de_DE';");
-
-# Dropdown befüllen übernimmt ajax:fetch.php
-# $query1 = "SELECT ka_id, vorname, nachname
-# FROM bpm_kandidat
-# ORDER BY nachname, vorname";
-#
-# $result1 = $db->query($query1) or die("Cannot execute query1a");
-#
-#
-# while ($row1 = $result1->fetch_array()) {
-# $table_data1[] = $row1;
-# }
-# $smarty->assign('table_data1', $table_data1);
-
- if (isset($_GET['error'])) {
-
- $errorno = $_GET['error'];
- $smarty->assign('bewerber_error', 1);
- if ($errorno == 1) {
- $smarty->assign('bewerber_error_text', "Es muss ein Bewerber ausgewählt werden.");
- }
-
- }
-}
-
-if ($action == 'ausgabe') {
- if (isset($_POST['user'])) {
- $username = mb_strtoupper($_POST["user"]); //remove case sensitivity on the username
- } elseif(isset($_GET['user'])) {
- $username = mb_strtoupper($_GET["user"]);
- } else {
- $username = $_SESSION["username"];
- }
-
- $_SESSION["username"] = $username;
-
-
- if ($username == "") {
- echo "";
- exit;
- }
-
- # Fehler beim Upload anzeigen
- if (isset($_GET['error'])) {
-
- $errorno = $_GET['error'];
- $smarty->assign('index_error', 1);
-
- if ($errorno == 1) {
- $smarty->assign('index_error_text', "Es dürfen nur PDF Dateien hochgeladen werden.");
- }
- if ($errorno == 2) {
- # Tabelle bpm_parameter
- $size_mb = trim(get_parameter(12));
- $smarty->assign('index_error_text', "Die Datei ist zu groß. Die Dateigröße darf max. $size_mb MB betragen.");
- }
- if ($errorno == 3) {
- $smarty->assign('index_error_text', "Die Datei mit diesem Namen wurde bereits hochgeladen.");
- }
- if ($errorno == 4) {
- # Tabelle bpm_parameter
- $anz_dok = trim(get_parameter(13));
- $smarty->assign('index_error_text', "Es dürfen maximal $anz_dok Dateien hochgeladen werden.");
- }
- }
-
- $result = $db->query("SELECT a.ka_id, anrede, vorname, nachname, str, plz, ort, date_format(tm_datum, '%d.%m.%Y - %H:%i Uhr') tm_datum_form, date_format(gebdat, '%d.%m.%Y') gebdat_form, a.id, c.tan, hochschule, date_format(login_dat, '%d.%m.%Y - %H:%i Uhr') login_dat_form, login_dat, a.mail, a.tel
- FROM bpm_kandidat a, bpm_term_kand b, bpm_tanpool c, bpm_termine d
- WHERE a.ka_id = b.ka_id
- AND b.tp_id = c.tp_id
- AND b.tm_id = d.tm_id
- AND a.ka_id = '$username'
- ORDER BY tk_id DESC
- LIMIT 1");
- $row = $result->fetch_array();
-
- #Aktuelle Tan ermitteln
-
- $result_tan = $db->query("SELECT tan
- FROM bpm_tanpool a, bpm_term_kand b
- WHERE a.tp_id = b.tp_id
- AND b.ka_id = '$username'
- order by b.tk_id DESC
- LIMIT 1");
- $row_tan = $result_tan->fetch_array();
- $tan = $row_tan['tan'];
- $_SESSION["tan"] = $tan;
-
- if ($row['anrede'] == 'M') {
- $anrede = 'Herr';
- } else {
- $anrede = 'Frau';
- }
- if($row['login_dat'] == '0000-00-00 00:00:00'){
- $tm_datum_form = "-";
- }else{
- $tm_datum_form = $row['login_dat_form'];
- }
-
- $smarty->assign('status_anrede', $anrede);
- $smarty->assign('status_vorname', $row['vorname']);
- $smarty->assign('status_nachname', $row['nachname']);
- $smarty->assign('status_gebdat', $row['gebdat_form']);
- $smarty->assign('status_str', $row['str']);
- $smarty->assign('status_plz', $row['plz']);
- $smarty->assign('status_ort', $row['ort']);
- $smarty->assign('status_mail', $row['mail']);
- $smarty->assign('status_tel', $row['tel']);
- $smarty->assign('status_tm_datum_form', $row['tm_datum_form']);
- $smarty->assign('status_login_dat_form', $tm_datum_form);
- $smarty->assign('status_hochschule', $row['hochschule']);
- $smarty->assign('status_login_id', $row['id']);
- $smarty->assign('status_login_tan', $tan);
-
- $result_ct = $db->query("SELECT count(*) Anz
- FROM bpm_ergebnisse
- WHERE ka_id =$row[ka_id]
- AND tan='$tan'");
- $row_ct = $result_ct->fetch_array();
-
- if ($row_ct['Anz'] == 0) {
- $smarty->assign('status_erg_vorhanden', 0);
- $smarty->assign('status_erg_bestanden', '3');
- } else {
- $smarty->assign('status_erg_vorhanden', 1);
- $result_erg = $db->query("SELECT satzerg, gemeinsamkeiten, rechenaufgaben, zahlenreihen, rechenzeichen, matrizen, merkf, summe, bestanden, date_format(einsicht_dat, '%d.%m.%Y, %H:%i Uhr') einsicht_dat_form, einsicht_dat
- FROM bpm_ergebnisse
- WHERE ka_id =$row[ka_id]
- AND tan='$tan'");
- $row_erg = $result_erg->fetch_array();
- if ($row_erg['einsicht_dat'] == '0000-00-00 00:00:00') {
- $einsicht_dat = "bisher keine Einsicht";
- } else {
- $einsicht_dat = $row_erg['einsicht_dat_form'];
- }
- $smarty->assign('status_erg_satzerg', $row_erg['satzerg']);
- $smarty->assign('status_erg_gemeinsamkeiten', $row_erg['gemeinsamkeiten']);
- $smarty->assign('status_erg_rechenaufgaben', $row_erg['rechenaufgaben']);
- $smarty->assign('status_erg_zahlenreihen', $row_erg['zahlenreihen']);
- $smarty->assign('status_erg_rechenzeichen', $row_erg['rechenzeichen']);
- $smarty->assign('status_erg_matrizen', $row_erg['matrizen']);
- $smarty->assign('status_erg_merkf', $row_erg['merkf']);
- $smarty->assign('status_erg_summe', $row_erg['summe']);
- $smarty->assign('status_erg_einsicht_dat', $einsicht_dat);
-
- if ($row_erg['bestanden'] == 0) {
- $smarty->assign('status_erg_bestanden', 0);
- $smarty->assign('status_erg_bestanden_text', "nicht bestanden");
- }
- if ($row_erg['bestanden'] == 1) {
- $smarty->assign('status_erg_bestanden', 1);
- $smarty->assign('status_erg_bestanden_text', "bestanden");
- }
-
- }
-
- # Ältere Testergebnisse vorhanden?
- $query4 = "SELECT tan
- FROM bpm_ergebnisse
- WHERE ka_id =$row[ka_id]
- AND tan!='$tan'";
- $result4 = $db->query($query4) or die("Cannot execute query4");
-
- while ($row4 = $result4->fetch_array()) {
-
- $result_erg = $db->query("SELECT satzerg, gemeinsamkeiten, rechenaufgaben, zahlenreihen, rechenzeichen, matrizen, merkf, summe, bestanden, date_format(einsicht_dat, '%d.%m.%Y, %H:%i Uhr') einsicht_dat_form, einsicht_dat
- FROM bpm_ergebnisse
- WHERE ka_id =$row[ka_id]
- AND tan='$row4[tan]'");
- $row_erg = $result_erg->fetch_array();
-
- $result_testdat = $db->query("SELECT date_format(tm_datum, '%d.%m.%Y - %H:%i') datum_form
- , CASE tm_standort
- WHEN 'L' THEN 'Ludwigsburg'
- WHEN 'K' THEN 'Kehl'
- ELSE '' END as tm_standort
- FROM bpm_term_kand a, bpm_tanpool b, bpm_termine c
- WHERE a.tp_id = b.tp_id
- AND a.tm_id =c.tm_id
- AND tan = '$row4[tan]'");
- $row_testdat = $result_testdat->fetch_array();
-
- if ($row_erg['einsicht_dat'] == '0000-00-00 00:00:00') {
- $einsicht_dat = "bisher keine Einsicht";
- } else {
- $einsicht_dat = $row_erg['einsicht_dat_form'];
- }
-
- if ($row_erg['bestanden'] == 0) {
- $status_erg_bestanden = "0";
- $status_erg_bestanden_text = "nicht bestanden";
- }
- if ($row_erg['bestanden'] == 1) {
- $status_erg_bestanden = "1";
- $status_erg_bestanden_text = "bestanden";
- }
- $row4['status_erg_testdat'] = $row_testdat['datum_form'];
- $row4['status_erg_standort'] = $row_testdat['tm_standort'];
- $row4['status_erg_satzerg'] = $row_erg['satzerg'];
- $row4['status_erg_gemeinsamkeiten'] = $row_erg['gemeinsamkeiten'];
- $row4['status_erg_rechenaufgaben'] = $row_erg['rechenaufgaben'];
- $row4['status_erg_zahlenreihen'] = $row_erg['zahlenreihen'];
- $row4['status_erg_rechenzeichen'] = $row_erg['rechenzeichen'];
- $row4['status_erg_matrizen'] = $row_erg['matrizen'];
- $row4['status_erg_merkf'] = $row_erg['merkf'];
- $row4['status_erg_summe'] = $row_erg['summe'];
- $row4['status_erg_bestanden'] = $status_erg_bestanden;
- $row4['status_erg_bestanden_text'] = $status_erg_bestanden_text;
- $row4['status_erg_einsicht_dat'] = $einsicht_dat;
- $table_data4[] = $row4;
- }
- $smarty->assign('table_data4', $table_data4);
-
-
-
- $query1 = "SELECT up_id, ka_id, file, beschreibung, date_format(upload_dat, '%d.%m.%Y, %H:%i Uhr') upload_dat
- FROM bpm_upload
- WHERE ka_id = $row[ka_id]
- AND upload_dat != '0000-00-00 00:00:00'";
- $result1 = $db->query($query1) or die("Cannot execute query1b");
-
- $username = $_SESSION["username"];
- $result_id = $db->query("SELECT id
- FROM bpm_kandidat
- WHERE ka_id = '$username'");
- $row_id = $result_id->fetch_array();
- $id = $row_id['id'];
-
- while ($row1 = $result1->fetch_array()) {
- if (file_exists($row1['file'])) {
- $exists = 1;
- } else {
- $exists = 0;
- }
- $basename = basename($row1['file']);
- $basename_link = basename($row1['file']);
- $rep = $id."_";
- $row1['exists'] = $exists;
- $row1['basename'] = str_replace($rep, '', $basename);
- $row1['basename_link'] = urldecode($row1['file']);
- $table_data1[] = $row1;
- }
- $smarty->assign('table_data1', $table_data1);
-
- # Gespeicherte Werte Noten
- $result_note = $db->query("SELECT erfdat_hzb, erfdat_schnitt, hzb, hzb_punkte, zeugnisschnitt, zeugnisschnitt_punkte
- FROM bpm_note
- WHERE ka_id ='$username'
- ORDER BY no_id desc
- LIMIT 1");
- $row_note = $result_note->fetch_array();
- $row_cnt = $result_note->num_rows;
-
- if($row_note['erfdat_hzb'] != '0000-00-00 00:00:00' AND $row_cnt > 0){
- # HZB erfasst
- $smarty->assign('notenart', "HZB");
- if($row_note['hzb_punkte'] != '0.00'){
- $smarty->assign('skala_value', "Punkte");
- $smarty->assign('note', "$row_note[hzb_punkte]");
- # Bei hzb gibts keine Punkte
- #$smarty->assign('note_schnitt', "$row_note[hzb]");
- }else{
- $smarty->assign('skala_value', "Noten");
- $smarty->assign('note', "$row_note[hzb]");
- }
- }elseif($row_note['erfdat_schnitt'] != '0000-00-00 00:00:00' AND $row_cnt > 0){
- # Durchscnittsnote erfasst
- $smarty->assign('notenart', "Durchschnitt");
- if($row_note['zeugnisschnitt_punkte'] != '0.00'){
- $smarty->assign('skala_value', "Punkte");
- $smarty->assign('note', "$row_note[zeugnisschnitt_punkte]");
- $smarty->assign('note_schnitt', "$row_note[zeugnisschnitt]");
- }else{
- $smarty->assign('skala_value', "Noten");
- $smarty->assign('note', "$row_note[zeugnisschnitt]");
- }
- }else{
- # Keine Auswahl
- $smarty->assign('notenart', "Keine");
- $smarty->assign('skala_value', "Noten");
- $smarty->assign('note', "");
- }
-
- # Gespeicherte Werte Praxisstellen
- $query2 = "SELECT a.ka_id, a.wu_id, b.bez, b.str, b.plz, b.ort, b.mail, a.status, date_format(sendedat, '%d.%m.%Y, %H:%i Uhr') sendedat, b.dst_id
- FROM bpm_dst_wunsch a, bpm_dienststellen b
- WHERE a.dst_id = b.dst_id
- AND a.ka_id = $row[ka_id]";
-
- $result2 = $db->query($query2) or die("Cannot execute query2");
-
- while ($row2 = $result2->fetch_array()) {
- if ($row2['status'] == 'V') {
- $status = "Versendet
$row2[sendedat]";
- }
- if ($row2['status'] == 'F') {
- $status = "Fehler";
- }
- if ($row2['status'] == 'O') {
- $status = "Vorgemerkt";
- }
- $row2['status'] = $status;
- $table_data2[] = $row2;
- }
- $smarty->assign('table_data2', $table_data2);
-
- # Gespeicherte Werte: Sonstige Mails
- $query3 = "SELECT sm_id, sender, sendermail, empfaenger, mail_betreff, mail_text, status, date_format(sendedat, '%d.%m.%y, %H:%i Uhr') sendedat_form
- FROM bpm_sonstige_mail
- WHERE ka_id = $row[ka_id]
- ORDER BY sendedat desc";
-
- $result3 = $db->query($query3) or die("Cannot execute query2");
-
- while ($row3 = $result3->fetch_array()) {
- if ($row3['status'] == 'V') {
- $status = "Versendet
$row3[sendedat]";
- }
- if ($row3['status'] == 'F') {
- $status = "Fehler";
- }
- $row3['status'] = $status;
- $table_data3[] = $row3;
- }
- $smarty->assign('table_data3', $table_data3);
-
-}
-
-if ($action == 'mail') {
- $wu_id = $_GET['wu_id'];
- $result_erg = $db->query("SELECT mail_text
- FROM bpm_dst_wunsch
- WHERE wu_id =$wu_id");
- $row_erg = $result_erg->fetch_array();
- $smarty->assign('mail_text', $row_erg['mail_text']);
-
-}
-
-if ($action == 'mail_sonst') {
- $sm_id = $_GET['sm_id'];
- $result_erg = $db->query("SELECT mail_text, mail_betreff
- FROM bpm_sonstige_mail
- WHERE sm_id =$sm_id");
- $row_erg = $result_erg->fetch_array();
- $smarty->assign('mail_text', $row_erg['mail_text']);
- $smarty->assign('mail_betreff', $row_erg['mail_betreff']);
-
-}
-
-
-if ($action == 'mailsenden') {
- $wu_id = $_GET['wu_id'];
-
- $result_erg = $db->query("SELECT mail_text, mail_betreff, b.mail, b.bez
- FROM bpm_dst_wunsch a, bpm_dienststellen b
- WHERE a.dst_id = b.dst_id
- AND wu_id =$wu_id");
- $row_erg = $result_erg->fetch_array();
- $smarty->assign('mail_text', $row_erg['mail_text']);
- $smarty->assign('mail_betreff', $row_erg['mail_betreff']);
- $smarty->assign('mail_mail', $row_erg['mail']);
- $smarty->assign('mail_bez', $row_erg['bez']);
- $smarty->assign('mail_wuid', $wu_id);
-}
-
-if ($action == 'mailsenden_sonst') {
- $sm_id = $_GET['sm_id'];
-
- $result_erg = $db->query("SELECT sender, sendermail, empfaenger, mail_betreff, mail_text
- FROM bpm_sonstige_mail
- WHERE sm_id =$sm_id");
- $row_erg = $result_erg->fetch_array();
- $smarty->assign('mail_sender', $row_erg['sender']);
- $smarty->assign('mail_sendermail', $row_erg['sendermail']);
- $smarty->assign('mail_text', $row_erg['mail_text']);
- $smarty->assign('mail_betreff', $row_erg['mail_betreff']);
- $smarty->assign('mail_mail', $row_erg['empfaenger']);
- $smarty->assign('mail_smid', $sm_id);
-}
-
-if ($action == 'mailsenden2') {
- $wu_id = $_POST['wuid'];
-
- $result_erg = $db->query("SELECT a.ka_id, mail_text, mail_betreff, b.mail, b.bez
- FROM bpm_dst_wunsch a, bpm_dienststellen b
- WHERE a.dst_id = b.dst_id
- AND wu_id =$wu_id");
- $row_erg = $result_erg->fetch_array();
-
- $result_kand = $db->query("SELECT hochschule
- FROM bpm_kandidat
- WHERE ka_id =$row_erg[ka_id]");
- $row_kand = $result_kand->fetch_array();
-
- $hochschule = "$row_kand[hochschule]";
- if ($hochschule == 'Ludwigsburg') {
- $anschrift = 'Reuteallee 36
71634 Ludwigsburg';
- $sender = "Hochschule Ludwigsburg";
- $sendermail = get_parameter(8);
- } elseif ($hochschule == 'Kehl') {
- $anschrift = 'Kinzigallee 1
77694 Kehl';
- $sender = "Hochschule Kehl";
- $sendermail = get_parameter(7);
- }
- $empfaenger = $row_erg['mail'];
- $betreff = $_POST['betreff'];
- $text = $_POST['text'];
-
- #echo "
- #From: $sender - $sendermail
- #$empfaenger
- #$betreff
- #$text
- #$hochschule
";
- #exit;
-
- #Beim CKEDITOR die
Tags mit Zeilenabstand 0 in der Mail
- $style ="
-
-
- ";
- $text = $style.$text;
-
- ## Mailversand:
- $headers = "From: $sender <$sendermail>\r\n";
- $headers .= "MIME-Version: 1.0\r\n";
- $headers .= "Content-type: text/html; charset=utf-8\r\n";
- $return = @mail($empfaenger, $betreff, $text, $headers);
- $heute = mktime(date("H"), date("i"), date("s"), date("m"), date("d"), date("Y")); // heutiges Datum & Zeit: http://de2.php.net/manual/de/function.date.php
- $datum_db = date("Y-m-d H:i:s", $heute); // Formatierung, wie es vor dem Dateinamen erscheinen soll
- $text_db = addslashes($text);
- $betreff_db = addslashes($betreff);
- if ($return) {
- $sql1 = $db->query("UPDATE bpm_dst_wunsch
- SET mail_text = '$text_db'
- , mail_betreff = '$betreff_db'
- , status = 'V'
- , sendedat = '$datum_db'
- WHERE wu_id = $wu_id
- ");
- $smarty->assign('mail_senderg', "Die Mail wurde verschickt!");
- } else {
- $sql1 = $db->query("UPDATE bpm_dst_wunsch
- SET mail_text = '$text_db'
- , mail_betreff = '$betreff_db'
- , status = 'F'
- WHERE wu_id = $wu_id
- ");
- $smarty->assign('mail_senderg', "Die Mail konnte nicht verschickt werden!
Prüfen Sie die Mailadresse der Praxisstelle.");
- }
-}
-
-
-if ($action == 'mailsenden2_sonst') {
- $sm_id = $_POST['smid'];
- $sender = $_POST['mail_sender'];
- $sendermail = $_POST['mail_sendermail'];
- $empfaenger = $_POST['mail_mail'];
- $betreff = $_POST['betreff'];
- $text = $_POST['text'];
-
- #Beim CKEDITOR die Tags mit Zeilenabstand 0 in der Mail
- $style ="
-
-
- ";
- $text = $style.$text;
-
- #echo "
- #From: $sender - $sendermail
- #$empfaenger
- #$betreff
- #$text
";
- #exit;
-
- ## Mailversand:
- $headers = "From: $sender <$sendermail>\r\n";
- $headers .= "MIME-Version: 1.0\r\n";
- $headers .= "Content-type: text/html; charset=utf-8\r\n";
- $return = @mail($empfaenger, $betreff, $text, $headers);
- $heute = mktime(date("H"), date("i"), date("s"), date("m"), date("d"), date("Y")); // heutiges Datum & Zeit: http://de2.php.net/manual/de/function.date.php
- $datum_db = date("Y-m-d H:i:s", $heute); // Formatierung, wie es vor dem Dateinamen erscheinen soll
- $text_db = addslashes($text);
- $betreff_db = addslashes($betreff);
- if ($return) {
- $sql1 = $db->query("UPDATE bpm_sonstige_mail
- SET mail_text = '$text_db'
- , mail_betreff = '$betreff_db'
- , empfaenger = '$empfaenger'
- , status = 'V'
- , sendedat = '$datum_db'
- WHERE sm_id = $sm_id
- ");
- $smarty->assign('mail_senderg', "Die Mail wurde verschickt!");
- } else {
- $sql1 = $db->query("UPDATE bpm_sonstige_mail
- SET mail_text = '$text_db'
- , mail_betreff = '$betreff_db'
- , empfaenger = '$empfaenger'
- , status = 'F'
- WHERE sm_id = $sm_id
- ");
- $smarty->assign('mail_senderg', "Die Mail konnte nicht verschickt werden!
Prüfen Sie die Mailadresse das Kandidaten.");
- }
-}
-
-
-
-
-if ($action == 'chhs') {
-
- $hochschule = $_POST['hs'];
- $username = $_SESSION["username"];
-
- $sql1 = $db->query("UPDATE bpm_kandidat
- SET hochschule = '$hochschule'
- WHERE ka_id = $username
- ");
- echo "";
-}
-
-if ($action == 'upload') {
- $username = $_SESSION["username"];
- $result_id = $db->query("SELECT id
- FROM bpm_kandidat
- WHERE ka_id = '$username'");
- $row_id = $result_id->fetch_array();
- $id = $row_id['id'];
-
- // http://www.tutorials.de/tutorials65420.html
- #echo '', print_r($_POST, true), '
';
-
- $tempname = $_FILES['file']['tmp_name'];
- $name = $_FILES['file']['name'];
-
- $type = $_FILES['file']['type'];
- $size = $_FILES['file']['size'];
- $einheit = "Byte"; // Für die Efolgsmeldung.
-
- $limitedext = array(
- ".pdf"
- ); //Erlaubte Dateieindung beim Upload
- $extlimit = "yes"; //Do you want to limit the extensions of files uploaded
- $ext = strrchr($name, '.');
-
-
- if (($extlimit == "yes") && (!in_array($ext, $limitedext))) {
- echo "";
- exit;
- }
- # Tabelle bpm_parameter
- $size_mb = trim(get_parameter(12));
- $size_bt = $size_mb * 1024 * 1024;
-
- if ($size > $size_bt) {
- echo "";
- exit;
- }
-
- $name = str_replace(array(
- "ä",
- "ö",
- "ü",
- "ß",
- "Ä",
- "Ü",
- "Ü",
- " "
- ), array(
- "ae",
- "oe",
- "ue",
- "ss",
- "Ae",
- "Oe",
- "Ue",
- "_"
- ), $name);
- $ka_id = $_SESSION["ka_id"];
- $neu = $id . "_" . $name;
-
- $result_exists = $db->query("SELECT count(*) Anz
- FROM bpm_upload
- WHERE file = '$verz$neu'
- AND ka_id = '$ka_id'");
- $row_exists = $result_exists->fetch_array();
-
- $result_anz = $db->query("SELECT count(*) Anz
- FROM bpm_upload
- WHERE ka_id = '$ka_id'");
- $row_anz = $result_anz->fetch_array();
-
- if ($row_exists['Anz'] > 0) {
- echo "";
- exit;
- }
-
- # Tabelle bpm_parameter
- $anz_dok = trim(get_parameter(13));
-
- if ($row_anz['Anz'] >= $anz_dok) {
- echo "";
- exit;
- }
-
- # Datei hochladen
- $heute = mktime(date("H"), date("i"), date("s"), date("m"), date("d"), date("Y")); // heutiges Datum & Zeit: http://de2.php.net/manual/de/function.date.php
- $datum_db = date("Y-m-d H:i:s", $heute); // Formatierung, wie es vor dem Dateinamen erscheinen soll
- move_uploaded_file("$tempname", "$verz$neu"); // Unterverzeichnisse wie folgt: copy("$tempname", "pdf/$neu");
- $sql1 = $db->query("insert into bpm_upload (ka_id, file, upload_dat) VALUES('$username', '$verz$neu', '$datum_db')");
- echo "";
-
-}
-if ($action == 'descr') {
- // http://www.tutorials.de/tutorials65420.html
- #echo '', print_r($_POST, true), '
';
- $username = $_SESSION["username"];
- $query1 = "SELECT up_id
- FROM bpm_upload
- WHERE ka_id = $username
- AND upload_dat != '0000-00-00 00:00:00'";
-
- $result1 = $db->query($query1) or die("Cannot execute query1c");
- while ($row1 = $result1->fetch_array()) {
- $id = "desc_".$row1['up_id'];
- $beschreibung = $_POST[$id];
-
- $sql1 = $db->query("UPDATE bpm_upload
- SET beschreibung = '$beschreibung'
- WHERE up_id = $row1[up_id]
- ");
-
- }
- echo "";
-
-}
-if ($action == 'deldok') {
- $up_id = $_GET['up_id'];
-
- $username = $_SESSION["username"];
- $result_id = $db->query("SELECT id
- FROM bpm_kandidat
- WHERE ka_id = '$username'");
- $row_id = $result_id->fetch_array();
- $id = $row_id['id'];
-
- $result_file = $db->query("SELECT file
- FROM bpm_upload
- WHERE up_id = '$up_id'");
- $row_file = $result_file->fetch_array();
-
- $basename = basename($row_file['file']);
- $rep = $id."_";
- $dokument = str_replace($rep, '', $basename);
-
- $smarty->assign('deldok_dokument', $dokument);
- $smarty->assign('deldok_up_id', $up_id);
-}
-if ($action == 'deldok2') {
- $up_id = $_GET['up_id'];
- $username = $_SESSION["username"];
-
- function deleteFiles($datei)
- {
- if (@unlink($datei)) {
- $error = TRUE;
- } else {
- $error = FALSE;
- }
- return $error;
- }
-
- $result_del = $db->query("SELECT file
- FROM bpm_upload
- WHERE ka_id = $username
- AND up_id= $up_id
- LIMIT 1;
- ");
- $row_del = $result_del->fetch_array();
-
- $del = deleteFiles($row_del['file']); // Dateien werden im Uploadverzeichnis gelöscht, falls noch welche darin wären
-# if rausgenommen, wenn kein Dokument vorhanden ist, nur DB Eintrag, dann kann dieser nicht gelöscht werden
-# if ($del) {
- $sql1 = $db->query("DELETE FROM bpm_upload
- WHERE ka_id = $username
- AND up_id= $up_id");
-# }
-
-echo "";
-}
-if ($action == 'stelle') {
- $username = $_SESSION["username"];
- $query1 = "SELECT a.dst_id, bez, plz, ort
- FROM bpm_dienststellen a
- WHERE a.dst_id NOT IN (SELECT dst_id
- FROM bpm_dst_wunsch
- WHERE ka_id = '$username'
- )
- AND (gueltig_von <= date_format(now(), '%Y-%m-%d') OR gueltig_von = '0000-00-00')
- AND (gueltig_bis >= date_format(now(), '%Y-%m-%d') OR gueltig_bis = '0000-00-00')
- ORDER BY bez ASC";
-
- $result1 = $db->query($query1) or die("Cannot execute query1d");
-
- while ($row1 = $result1->fetch_array()) {
- $table_data1[] = $row1;
- }
- $smarty->assign('table_data1', $table_data1);
-
-
- # Gespeicherte Werte
- $query2 = "SELECT a.wu_id, b.bez, b.str, b.plz, b.ort, b.mail
- FROM bpm_dst_wunsch a, bpm_dienststellen b
- WHERE a.dst_id = b.dst_id
- AND a.ka_id = $username";
-
- $result2 = $db->query($query2) or die("Cannot execute query2b");
-
- while ($row2 = $result2->fetch_array()) {
- $table_data2[] = $row2;
- }
- $smarty->assign('table_data2', $table_data2);
-
- # Tabelle bpm_parameter
- $anz_stellen = trim(get_parameter(14));
- $smarty->assign('index_stelle_anz', $anz_stellen);
-
- # Fehler bei Praxisstellenwahl anzeigen
- if (isset($_GET['error'])) {
-
- $errorno = $_GET['error'];
- $smarty->assign('index_error', 1);
-
- if ($errorno == 1) {
- $smarty->assign('index_error_text', "Es dürfen maximal $anz_stellen Stellen gewählt werden.");
- }
- if ($errorno == 2) {
- $smarty->assign('index_error_text', "Sie müssen zuerst eine Stelle aud der Dropdownliste markieren.");
- }
- if ($errorno == 3) {
- $smarty->assign('index_error_text', "Es muss zunächst eine zuständige Hochschule definiert werden.");
- }
- }
-}
-
-if ($action == 'save_praxis') {
- $username = $_SESSION["username"];
- $dst_id = $_POST["stelle"];
-
-/*
- // http://www.tutorials.de/tutorials65420.html
- $result_anz = $db->query("SELECT count(*) Anz
- FROM bpm_dst_wunsch
- WHERE ka_id = '$ka_id'");
- $row_anz = $result_anz->fetch_array();
-
- # Tabelle bpm_parameter
- $anz_stellen = trim(get_parameter(14));
-
- if ($row_anz['Anz'] >= $anz_stellen) {
- echo "";
- exit;
- }
-*/
- if ($dst_id == '') {
- echo "";
- exit;
- }
-
-
- $result_hs = $db->query("SELECT anrede, hochschule, id
- FROM bpm_kandidat
- WHERE ka_id = $username
- LIMIT 1;
- ");
- $row_hs = $result_hs->fetch_array();
- $hochschule = $row_hs['hochschule'];
-
- if($hochschule == 'Ludwigsburg'){
- $anschrift = 'Reuteallee 36
71634 Ludwigsburg';
- $sender = "Hochschule Ludwigsburg";
- $sendermail = get_parameter(8);
- }elseif($hochschule == 'Kehl'){
- $anschrift = 'Kinzigallee 1
77694 Kehl';
- $sender = "Hochschule Kehl";
- $sendermail = get_parameter(7);
- }else{
- echo "";
- exit;
- }
-
- $link_arzt = 'https://www.gesundheitsamt-bw.de/';
- $link = 'https://www.hs-ludwigsburg.de/kurs/bpm/praxisstelle/index.php';
- $link_register = 'https://www.hs-ludwigsburg.de/kurs/bpm/praxisstelle/register.php';
-
- $result_dst = $db->query("SELECT mail, init_tan
- FROM bpm_dienststellen
- WHERE dst_id = $dst_id
- LIMIT 1;
- ");
- $row_dst = $result_dst->fetch_array();
-
- if ($row_dst['init_tan'] == ''){
- $tan = tangen();
- $sql0 = $db->query("UPDATE bpm_dienststellen
- SET init_tan = '$tan'
- WHERE dst_id = '$dst_id'
- ");
- }else{
- $tan = "";
- }
-
- $empfaenger = "$row_dst[mail]";
- $betreff = "Bewerbung zur praktischen Ausbildung BPM";
-
- #########################################################
- ## dieselbe Mail ist auch in /upload/index.php
- #########################################################
- if($row_hs['anrede'] != 'W'){
- # männliche Version
- $text = "Guten Tag,
-
- ein Bewerber hat Sie als Wunschausbildungsstelle für das Einführungspraktikum im Studiengang Public Management ausgewählt.
";
-
-
- if($tan == ""){
- $text .="
- Sie erhalten einen Link für die Einsicht der Bewerbungsunterlagen:
-
-
- $link";
- }
-
- if($tan != ""){
- $text .="
-
-
- Bitte registrieren Sie Ihre Praxisstelle zunächst mit folgenden Logindaten:
- Registrierung: $link_register
- Benutzername: $empfaenger
- Einmalpasswort: $tan
- ";
- }
-
- $text .= "
-
-
- Die Ausbildungsstellen führen das Auswahlverfahren nach § 7 Absätze 3 und 4 APrOVw gD durch. Sollten Sie sich für den Bewerber und selbiger für Ihre Ausbildungsstelle entscheiden, teilt die Ausbildungsstelle der zuständigen Hochschule schnellstmöglich, jedoch bis spätestens 22. Juli des Jahres des Ausbildungsbeginns schriftlich Ihre Entscheidung mit.
-
- Der Bewerber ist von Ihnen darauf hinzuweisen, sich um folgende personalrechtlichen Unterlagen zu bemühen und an Sie zu übersenden:
-
- - Ärztliches Zeugnis zum Nachweis der gesundheitlichen Eignung (es ist ein Attest von einer Ärztin oder eines Arztes, die vom Landesgesundheitsamt dafür bestimmt wurden notwendig. Eine Liste aller Ärzte finden Sie
- unter: $link_arzt -> Service -> Gesundheitliche Eignung bei Verbeamtung -> Hinweise für Beamtenbewerber. Die dafür anfallenden Kosten hat die Bewerberin oder der Bewerber selbst zu tragen. Dieses Zeugnis darf zu Ausbildungsbeginn nicht älter als 6 Monate sein),
-
- - Erklärung über den Ausschluss eines aktuellen oder früheren Behandlungsverhältnisses (dies finden Sie unter $link_arzt -> Service -> Gesundheitliche Eignung bei Verbeamtung -> Hinweise für Beamtenbewerber -> „Erklärung Ausschluss Behandlungsverhältnis“),
-
- - Führungszeugnis zur Vorlage bei einer Behörde nach § 30 Abs. 5 BZRG (dieses Zeugnis darf keine Einträge enthalten und zu Ausbildungsbeginn nicht älter als 3 Monate sein).
-
-
- Diese Unterlagen sind von Ihnen als Einstellungsvoraussetzungen zum 1. September des Einstellungsjahres zu prüfen. Nach Ausbildungsbeginn müssen diese Unterlagen an die Hochschule übersendet werden, diese sind die Grundlage für die spätere Ernennung in ein Beamtenverhältnis.
-
- Bitte teilen Sie dem Bewerber mit, dass er nur dann einen Ausbildungsplatz bei Ihnen erhalten kann, wenn er eine endgültige Zulassung für einen Studienplatz durch die Hochschule erhält. Endgültige Zulassungen zum Studium können erst nach Abschluss der Bewerbungsphase und nach der Rückmeldefrist der Ausbildungsstellen (22. Juli des Jahres des Ausbildungsbeginns) erfolgen. Erst dann kann die finale Bewerberrangliste gebildet werden, die die Grundlage der Studienplatzvergabe darstellt. Das Nachrückverfahren kann in Einzelfällen wie bisher auch bis unmittelbar vor Praktikumsbeginn andauern.
-
-
- Freundliche Grüße
-
- Ihre Hochschule $hochschule
-
- $anschrift
-
-
- Diese Mail wurde automatisch generiert!
- Antworten Sie daher nicht auf diese Mail.
-
- Vielen Dank!
-