diff --git a/skin/images/sancho/sancho_footer.jpg b/skin/images/sancho/sancho_footer.jpg new file mode 100644 index 000000000..1e0b536c9 Binary files /dev/null and b/skin/images/sancho/sancho_footer.jpg differ diff --git a/skin/images/sancho/sancho_header.jpg b/skin/images/sancho/sancho_header.jpg new file mode 100644 index 000000000..051a05c54 Binary files /dev/null and b/skin/images/sancho/sancho_header.jpg differ diff --git a/skin/images/sancho/sancho_header_TEMPLATE.jpg b/skin/images/sancho/sancho_header_TEMPLATE.jpg new file mode 100644 index 000000000..c237afb96 Binary files /dev/null and b/skin/images/sancho/sancho_header_TEMPLATE.jpg differ diff --git a/skin/images/sancho/sancho_header_deadline_ampel_overdue.jpg b/skin/images/sancho/sancho_header_deadline_ampel_overdue.jpg new file mode 100644 index 000000000..662afab92 Binary files /dev/null and b/skin/images/sancho/sancho_header_deadline_ampel_overdue.jpg differ diff --git a/skin/images/sancho/sancho_header_ich_habe_neue_nachrichten_fuer_sie.jpg b/skin/images/sancho/sancho_header_ich_habe_neue_nachrichten_fuer_sie.jpg new file mode 100644 index 000000000..dc7f49361 Binary files /dev/null and b/skin/images/sancho/sancho_header_ich_habe_neue_nachrichten_fuer_sie.jpg differ diff --git a/skin/images/sancho/sancho_header_neue_nachrichten_in_ampelsystem.jpg b/skin/images/sancho/sancho_header_neue_nachrichten_in_ampelsystem.jpg new file mode 100644 index 000000000..a47bb7c0e Binary files /dev/null and b/skin/images/sancho/sancho_header_neue_nachrichten_in_ampelsystem.jpg differ diff --git a/skin/images/sancho/sancho_header_sie_haben_neue_nachrichten.jpg b/skin/images/sancho/sancho_header_sie_haben_neue_nachrichten.jpg new file mode 100644 index 000000000..e5e7962b6 Binary files /dev/null and b/skin/images/sancho/sancho_header_sie_haben_neue_nachrichten.jpg differ diff --git a/vilesci/cronjobs/ampel_erinnerungsmail.php b/vilesci/cronjobs/ampel_erinnerungsmail.php index af8a2d61a..eaef4ad17 100644 --- a/vilesci/cronjobs/ampel_erinnerungsmail.php +++ b/vilesci/cronjobs/ampel_erinnerungsmail.php @@ -34,7 +34,7 @@ $p = new phrasen($sprache); //get all notifications $ampel_obj = new ampel(); -$ampel_obj->getAll(); +$ampel_obj->getAll(); $ampel_arr = $ampel_obj->result; //filter only notifications that are not expired, not before vorlaufzeit AND email is true @@ -56,9 +56,9 @@ foreach($ampel_arr as $ampel) $overdue_user_arr = array(); if($result = $db->db_query($qry_all_ampel_user)) - { + { while($row = $db->db_fetch_object($result)) - { + { $user = $row->uid; //break if almost confirmed @@ -66,7 +66,7 @@ foreach($ampel_arr as $ampel) break; //check if notification is new (within last week, as cronjob will run every week) - if ($datum->DateDiff (date('Y-m-d'), $insert_date) >= -7) + if($datum->DateDiff(date('Y-m-d'), $insert_date) >= -7) { $new = true; $new_user_arr[] = $user; @@ -77,28 +77,32 @@ foreach($ampel_arr as $ampel) { $overdue = true; $overdue_user_arr[] = $user; - } - } - } + } + }; + }; if ($new) { - $new_ampel_user_arr[] = array( - 'ampel_id' => $ampel->ampel_id, - 'ampel_bezeichnung' => $kurzbz, - 'user' => $new_user_arr, - 'deadline' => date('d.m.Y', $deadline)); - } + $new_ampel_user_arr[] = + array( + 'ampel_id' => $ampel->ampel_id, + 'ampel_bezeichnung' => $kurzbz, + 'user' => $new_user_arr, + 'deadline' => date('d.m.Y', $deadline) + ); + } if ($overdue) { - $overdue_ampel_user_arr[] = array( - 'ampel_id' => $ampel->ampel_id, - 'ampel_bezeichnung' => $kurzbz, - 'user' => $overdue_user_arr, - 'deadline' => date('d.m.Y', $deadline)); + $overdue_ampel_user_arr[] = + array( + 'ampel_id' => $ampel->ampel_id, + 'ampel_bezeichnung' => $kurzbz, + 'user' => $overdue_user_arr, + 'deadline' => date('d.m.Y', $deadline) + ); } -} +}; //rearrange arrays as needed to send in eMails $new_ampel_user_arr = organizeAmpelnForMail($new_ampel_user_arr); @@ -113,29 +117,31 @@ foreach ($new_ampel_user_arr as $receiver) $firstName = $person->vorname; //link to notifications system site - $link = APP_ROOT . "cis/index.php?sprache=German&content_id=&menu=" . APP_ROOT . "cis/menu.php?content_id=&content=" . APP_ROOT . "cis/private/tools/ampelverwaltung.php"; + $link = APP_ROOT. "cis/index.php?sprache=German&content_id=&menu=". + APP_ROOT. "cis/menu.php?content_id=&content=". + APP_ROOT. "cis/private/tools/ampelverwaltung.php"; //eMail data - $to = $receiver['user'] . '@' . DOMAIN; - $from = 'noreply@'.DOMAIN; + $to = $receiver['user']. '@'. DOMAIN; + $from = 'noreply@'. DOMAIN; $subject = 'Sie haben eine neue Ampel!'; - $title = "Sie haben neue Nachrichten in Ihrem Ampelsystem!"; - $content = "
Hallo " . $firstName . ",
"; + $headerImg = "sancho_header_neue_nachrichten_in_ampelsystem.jpg"; + $content = "Hallo ". $firstName. ",
es gibt neue Ampeln für Sie:
NEU:  " . $receiver[$i]['ampel_bezeichnung'] . "
"; + $content .= "". strtoupper($receiver[$i]['ampel_bezeichnung']). "
"; } - $content .= "Sie können sie jetzt gleich in Ihrem Ampelsystem bestätigen:
"; - $content .= "
Schönen Tag noch,
Sancho
"; + $content .= "Sie können sie jetzt gleich in Ihrem Ampelsystem bestätigen:
"; + $content .= "Zu meinem Ampelsystem"; + $content .= "
Schönen Tag noch,";
+ $content .= "Sancho
Hallo " . $firstName . ",
"; - $content .= "es gibt Ampeln, die von Ihnen noch bestätigt werden müssen:
Hallo " . $firstName . ",
diese Ampeln müssen von Ihnen noch bestätigt werden:
BESTÄTIGUNG FEHLT:  " . $receiver[$i]['ampel_bezeichnung'] . "
"; - $content .= "Die Deadline für die Bestätigung war am " . $receiver[$i]['deadline'] . "
" . strtoupper($receiver[$i]['ampel_bezeichnung']) . "
";
+ $content .= "Die Deadline für die Bestätigung war am " . $receiver[$i]['deadline'] . "
Sie können sie jetzt gleich in Ihrem Ampelsystem bestätigen:
"; - $content .= "
Schönen Tag noch,
Sancho
"; + $content .= "Sie können sie jetzt gleich in Ihrem Ampelsystem bestätigen:
"; + $content .= "Zu meinem Ampelsystem
Schönen Tag noch!
";
+ $content .= "Sancho
-
|