Example #1
0
/**
 * Outputs the form for editing events
 */
function edit_event()
{
    View::linkToBack('manage_events');
    View::loadScripts();
    if (isset($_GET['eventID'])) {
        $eventID = mysql_real_escape_string($_GET['eventID']);
        $event = EventDatabaseManager::getEvent($eventID);
        View::eventFormOutput($event);
    }
}
Example #2
0
/**
 * Outputs the form for editing existing topic
 */
function edit_topics()
{
    View::loadScripts();
    $topics = EventDatabaseManager::getAllTopics(true);
    View::outputAllTopics('edit_topics', $topics);
    View::linkToAddTopic();
    if (isset($_GET['topicID']) && is_numeric($_GET['topicID'])) {
        $topic = EventDatabaseManager::getTopic($_GET['topicID']);
        View::topicFormOutput($topic);
    }
}