false,
'text' => ''.html_print_image(
'images/events_list.png',
true,
[
'title' => __('Event list'),
'class' => 'invert_filter',
]
).'',
'operation' => true,
];
$buttons['filter'] = [
'active' => false,
'text' => ''.html_print_image(
'images/filter_mc.png',
true,
[
'title' => __('Filter list'),
'class' => 'invert_filter',
]
).'',
];
}
if (check_acl($config['id_user'], 0, 'PM')) {
$buttons['responses'] = [
'active' => false,
'text' => ''.html_print_image(
'images/event_responses.png',
true,
[
'title' => __('Event responses'),
'class' => 'invert_filter',
]
).'',
];
$buttons['fields'] = [
'active' => false,
'text' => ''.html_print_image(
'images/custom_columns.png',
true,
[
'title' => __('Custom fields'),
'class' => 'invert_filter',
]
).'',
];
}
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');
$help_header = '';
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/gm_events.png',
false,
$help_header,
true,
$buttons
);
} else {
ui_meta_print_header(__('Manage events').$subpage, '', $buttons);
}
require_once $config['homedir'].'/include/functions_events.php';
switch ($section) {
case 'edit_filter':
include_once $config['homedir'].'/godmode/events/event_edit_filter.php';
break;
case 'filter':
include_once $config['homedir'].'/godmode/events/event_filter.php';
break;
case 'fields':
include_once $config['homedir'].'/godmode/events/custom_events.php';
break;
case 'responses':
include_once $config['homedir'].'/godmode/events/event_responses.php';
break;
}
enterprise_hook('close_meta_frame');