mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-20 21:49:27 +00:00
This commit is contained in:
@@ -28,7 +28,7 @@ require_once('../include/kontakt.class.php');
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title>Check Studenten</title>
|
||||
<title>Zugangscode Senden</title>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
|
||||
@@ -49,6 +49,7 @@ $qry = "SELECT * FROM public.tbl_benutzer
|
||||
WHERE uid LIKE '__12%'
|
||||
AND foto is null";
|
||||
|
||||
|
||||
if($result = $db->db_query($qry))
|
||||
{
|
||||
while($row = $db->db_fetch_object($result))
|
||||
@@ -60,13 +61,12 @@ if($result = $db->db_query($qry))
|
||||
$kontakt = new kontakt();
|
||||
$kontakt->load_persKontakttyp($row->person_id, 'email');
|
||||
|
||||
$name = $row->anrede.' '.$row->nachname;
|
||||
$zugangscode = $row->zugangscode;
|
||||
|
||||
|
||||
// Falls mehrere vorhanden sind, an alle schicken
|
||||
foreach($kontakt->result as $kon)
|
||||
{
|
||||
if(sendMail($kon->kontakt, $name, $zugangscode))
|
||||
if(sendMail($kon->kontakt, $row->nachname, $zugangscode))
|
||||
$count+=1;
|
||||
else
|
||||
$countError+=1;
|
||||
@@ -84,11 +84,32 @@ function sendMail($email, $name, $zugangscode)
|
||||
// trim zugangscode
|
||||
// an private email schicken
|
||||
|
||||
$msg = 'TEXT';
|
||||
$msg = '<b>Sehr geehrter Herr/Frau '.$name.'</b><br><br>';
|
||||
$msg.= 'Willkommen an der Fachhochschule Technikum Wien. <br><br>';
|
||||
$msg.= 'Für Ihren FH-Ausweis, der gleichzeitig als Zutrittskarte dient, benötigen wir ein Foto von Ihnen.<br>';
|
||||
$msg.= 'Bitte nutzen Sie den folgenden Link und den angegebenen Zugangscode um Ihr Foto hochzuladen.<br><br>';
|
||||
$msg.= '<a href="https://cis.technikum-wien.at/cis/public/prestudententool/index.php">https://cis.technikum-wien.at/cis/public/prestudententool/index.php</a><br>';
|
||||
$msg.= 'Zugangscode: '.trim($zugangscode).'<br><br>';
|
||||
$msg.= 'Die Kriterien, die Ihr Foto erfüllen muss, finden Sie beim Upload oder unter <a href="https://cis.technikum-wien.at/cms/content.php?content_id=6174">https://cis.technikum-wien.at/cms/content.php?content_id=6174</a> <br><br>';
|
||||
$msg.= 'Technische Unterstützung erhalten Sie unter <a href="mailto:support@technikum-wien.at">support@technikum-wien.at</a> <br><br>';
|
||||
$msg.= 'Wir wünschen Ihnen einen erfolgreichen Start ins Studium!<br><br>';
|
||||
$msg.= 'Fachhochschule Technikum Wien <br><br>';
|
||||
|
||||
$msg.= '---------------- <br><br>';
|
||||
$msg.= '<b>Dear Mr/Ms '.$name.'</b><br><br>';
|
||||
$msg.= 'Welcome to the University of Applied Sciences Technikum Wien.<br><br>';
|
||||
$msg.= 'For your UAS identity card, which also serves as a key card, we need a photo of you.<br>';
|
||||
$msg.= 'Please use the following link and the access code indicated in order to upload your photo.<br><br>';
|
||||
$msg.= '<a href="https://cis.technikum-wien.at/cis/public/prestudententool/index.php?lang=English">https://cis.technikum-wien.at/cis/public/prestudententool/index.php</a><br>';
|
||||
$msg.= 'Access code: '.trim($zugangscode).'<br><br>';
|
||||
$msg.= 'You can find the criteria that your photo has to fulfil either when uploading or under <a href ="https://cis.technikum-wien.at/cms/content.php?content_id=6174&sprache=English">https://cis.technikum-wien.at/cms/content.php?content_id=6174</a><br><br>';
|
||||
$msg.= 'Technical support is available under <a href="mailto:support@technikum-wien.at">support@technikum-wien.at</a> <br><br>';
|
||||
$msg.= 'We wish you a successful start to your studies!<br><br>';
|
||||
$msg.= 'University of Applied Sciences Technikum Wien';
|
||||
|
||||
$mail = new mail($email, 'no-reply', 'Fotoupload für Ihren FH-Ausweis', 'Bitte sehen Sie sich die Nachricht in HTML Sicht an, um den Link vollständig darzustellen.');
|
||||
$mail->setHTMLContent($msg);
|
||||
if(!$mail->send())
|
||||
if($mail->send())
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user