Kalender Updates
* Update 1 day Reminder + autoscript
This commit is contained in:
@@ -94,7 +94,7 @@ class CalendarController extends mfBaseController
|
||||
if ($r->customer_info_type == 1) {
|
||||
$body = $r->customer_info_text;
|
||||
$email = new Emailnotification();
|
||||
$email->setSubject('Inbetriebnahme');
|
||||
$email->setSubject('Technikertermin Xinon');
|
||||
$email->setBody($body);
|
||||
$email->setFrom('termin@xinon.at', 'Terminbestätigung');
|
||||
$email->setTo($r->customer_info_type_text);
|
||||
|
||||
@@ -399,6 +399,28 @@ WHERE `TimerecordingCategory`.`hourday`!='1' AND `TimerecordingCategory`.`hourda
|
||||
return $return;
|
||||
}
|
||||
|
||||
public static function getCalendarEventsReminder()
|
||||
{
|
||||
$dbcal = self::dbKalender();
|
||||
$timecalcend = time() + 86400;
|
||||
$timecalcstart = $timecalcend - 3600;
|
||||
|
||||
$sql = "SELECT `id`,`name`,`customer_info_send`,`start_time`,`end_time`,`event_type` FROM `cal_events` WHERE `customer_info_reminder`= 1 AND `customer_info_send` IS NOT NULL AND `event_type` > 1 AND `start_time` BETWEEN $timecalcstart AND $timecalcend";
|
||||
$res = $dbcal->query($sql);
|
||||
while ($data = $dbcal->fetch_array($res))
|
||||
{
|
||||
$rows[] = array(
|
||||
'id' => $data['id'],
|
||||
'name' => $data['name'],
|
||||
'customer_info_send' => $data['customer_info_send'],
|
||||
'start_time' => $data['start_time'],
|
||||
'end_time' => $data['end_time'],
|
||||
'event_type' => $data['event_type']
|
||||
);
|
||||
}
|
||||
return ($rows);
|
||||
}
|
||||
|
||||
public static function getCalendarEvent($id)
|
||||
{
|
||||
$calendar = self::search(array("user_id" => $me));
|
||||
|
||||
Reference in New Issue
Block a user