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 adding new topic to system
 */
function add_topic()
{
    View::loadScripts();
    View::linkToBack('edit_topics');
    View::topicFormOutput();
}