Ejemplo n.º 1
0
                 EfrontNotification::addNotification($timestamp, $subject, $message, $condition, $html_message, $form->exportValue('send_interval'));
             }
         }
         $message = _NOTIFICATIONSETUPSUCCESSFULLY;
         $message_type = 'success';
     }
 } else {
     // If we changed notification category from event -> simple, then delete in event_notifications and add in notifications
     if ($_GET['event'] == 1) {
         eF_deleteTableData("event_notifications", "id = '" . $_GET['edit_notification'] . "'");
         if ($message_frequency == "0") {
             EfrontNotification::addNotification($timestamp, $subject, $message, $condition, $html_message);
             // Notification periodically starting from a specific date
         } else {
             if ($message_frequency == "1") {
                 EfrontNotification::addNotification($timestamp, $subject, $message, $condition, $html_message, $form->exportValue('send_interval'));
             }
         }
     } else {
         // Notification on a specific time, once
         if ($message_frequency == "0") {
             EfrontNotification::editNotification($_GET['edit_notification'], $timestamp, $subject, $message, $condition, $html_message);
             // Notification periodically starting from a specific date
         } else {
             if ($message_frequency == "1") {
                 EfrontNotification::editNotification($_GET['edit_notification'], $timestamp, $subject, $message, $condition, $html_message, $form->exportValue('send_interval'));
             }
         }
     }
     $message = _NOTIFICATIONSETUPSUCCESSFULLY;
     $message_type = 'success';