false, 'text' => '' . html_print_image("images/lightning_go.png", true, array ("title" => __('Create filter'))) . ''); if (check_acl ($config["id_user"], 0, "PM")) { $buttons['responses'] = array('active' => false, 'text' => '' . html_print_image("images/cog.png", true, array ("title" => __('Event responses'))) . ''); $buttons['fields'] = array('active' => false, 'text' => '' . html_print_image("images/pencil.png", true, array ("title" => __('Custom fields'))) . ''); } $buttons['separator'] = ''; $buttons['view'] = array('active' => false, 'text' => '' . html_print_image("images/god6.png", true, array("title" => __('View events'))) . ''); switch ($section) { case 'filter': $buttons['filter']['active'] = true; $subpage = ' - ' . __('Filters'); break; case 'fields': $buttons['fields']['active'] = true; $subpage = ' - ' . __('Custom fields'); break; case 'responses': $buttons['responses']['active'] = true; $subpage = ' - ' . __('Responses'); break; case 'view': $buttons['view']['active'] = true; break; default: $buttons['filter']['active'] = true; $subpage = ' - ' . __('Filters'); break; } if (! defined ('METACONSOLE')) { ui_print_page_header (__("Manage events") . $subpage, "images/lightning_go.png", false, "", true, $buttons); } else { ui_meta_print_header(__("Manage events") . $subpage, "", $buttons); } include_once($config["homedir"] . '/include/functions_events.php'); switch($section) { case 'edit_filter': require_once($config["homedir"] . '/godmode/events/event_edit_filter.php'); break; case 'filter': require_once($config["homedir"] . '/godmode/events/event_filter.php'); break; case 'fields': require_once($config["homedir"] . '/godmode/events/custom_events.php'); break; case 'responses': require_once($config["homedir"] . '/godmode/events/event_responses.php'); break; } ?>