Пример #1
0
                                 }
                             }
                         }
                     }
                 }
             }
             if (isset($_GET['add_notification'])) {
                 EfrontNotification::addEventNotification($events_type, $subject, $message, $condition, $_POST['event_recipients'], $html_message, $after_time, $send_immediately);
             } else {
                 // if we changed from simple notification event -> on/after event notification
                 if (!isset($_GET['event'])) {
                     eF_deleteTableData("notifications", "id = '" . $_GET['edit_notification'] . "'");
                     //$notification = array ("event_type"        => $events_type, "send_conditions" => serialize($condition),"send_recipients" => $_POST['event_recipients'], "message"          => $message,"subject"       => $subject);
                     EfrontNotification::addEventNotification($events_type, $subject, $message, $condition, $_POST['event_recipients'], $html_message, $after_time, $send_immediately);
                 } else {
                     EfrontNotification::editEventNotification($_GET['edit_notification'], $events_type, $subject, $message, $condition, $_POST['event_recipients'], $html_message, $after_time, $send_immediately);
                 }
             }
             $message = _NOTIFICATIONSETUPSUCCESSFULLY;
             $message_type = 'success';
         }
         eF_redirect(basename($_SERVER['PHP_SELF']) . "?ctg=digests&message=" . urlencode($message) . "&message_type=" . $message_type);
     }
 }
 $renderer = new HTML_QuickForm_Renderer_ArraySmarty($smarty);
 //Create a smarty renderer
 $renderer->setRequiredTemplate('{$html}{if $required}
         &nbsp;<span class = "formRequired">*</span>
     {/if}');
 if (isset($currentUser->coreAccess['notifications']) && $currentUser->coreAccess['notifications'] != 'change') {
     $form->freeze();