($tab == 'setup') ? true : false,
'text' => ''.html_print_image('images/gm_setup.png', true, ['title' => __('Options'), 'class' => 'invert_filter']).'',
];
$buttons['history'] = [
'active' => ($tab == 'history') ? true : false,
'text' => ''.html_print_image('images/gm_db.png', true, ['title' => __('Journal'), 'class' => 'invert_filter']).'',
];
$buttons['offline'] = [
'active' => ($tab == 'offline') ? true : false,
'text' => ''.html_print_image('images/box.png', true, ['title' => __('Offline update manager'), 'class' => 'invert_filter']).'',
];
$buttons['online'] = [
'active' => ($tab == 'online') ? true : false,
'text' => ''.html_print_image('images/op_gis.png', true, ['title' => __('Online update manager'), 'class' => 'invert_filter']).'',
];
switch ($tab) {
case 'history':
$title = __('Update manager » Journal');
break;
case 'setup':
$title = __('Update manager » Setup');
break;
case 'offline':
$title = __('Update manager » Offline');
break;
case 'online':
default:
$title = __('Update manager » Online');
break;
}
ui_print_page_header(
$title,
'images/gm_setup.png',
false,
'',
true,
$buttons
);
switch ($tab) {
case 'history':
include $config['homedir'].'/godmode/update_manager/update_manager.history.php';
break;
case 'setup':
include $config['homedir'].'/godmode/update_manager/update_manager.setup.php';
break;
case 'offline':
$mode = \UpdateManager\UI\Manager::MODE_OFFLINE;
include $config['homedir'].'/godmode/um_client/index.php';
break;
case 'online':
default:
$mode = \UpdateManager\UI\Manager::MODE_ONLINE;
include $config['homedir'].'/godmode/um_client/index.php';
break;
}