"".html_print_image(
'images/zoom_mc.png',
true,
['title' => __('Global search')]
).'',
'active' => $searchTab == 'main',
];
} else {
$main_tab = '';
}
if ($searchAgents) {
$agents_tab = [
'text' => "".html_print_image(
'images/op_monitoring.png',
true,
['title' => __('Agents')]
).'',
'active' => $searchTab == 'agents',
];
} else {
$agents_tab = '';
}
if ($searchUsers) {
$users_tab = [
'text' => "".html_print_image(
'images/op_workspace.png',
true,
['title' => __('Users')]
).'',
'active' => $searchTab == 'users',
];
} else {
$users_tab = '';
}
if ($searchAlerts) {
$alerts_tab = [
'text' => "".html_print_image(
'images/op_alerts.png',
true,
['title' => __('Alerts')]
).'',
'active' => $searchTab == 'alerts',
];
} else {
$alerts_tab = '';
}
if ($searchGraphs) {
$graphs_tab = [
'text' => "".html_print_image(
'images/chart.png',
true,
['title' => __('Graphs')]
).'',
'active' => $searchTab == 'graphs',
];
} else {
$graphs_tab = '';
}
if ($searchReports) {
$reports_tab = [
'text' => "".html_print_image(
'images/op_reporting.png',
true,
['title' => __('Reports')]
).'',
'active' => $searchTab == 'reports',
];
} else {
$reports_tab = '';
}
if ($searchMaps) {
$maps_tab = [
'text' => "".html_print_image(
'images/visual_console.png',
true,
['title' => __('Visual consoles')]
).'',
'active' => $searchTab == 'maps',
];
} else {
$maps_tab = '';
}
if ($searchModules) {
$modules_tab = [
'text' => "".html_print_image(
'images/brick.png',
true,
['title' => __('Modules')]
).'',
'active' => $searchTab == 'modules',
];
} else {
$modules_tab = '';
}
if ($searchPolicies) {
$policies_tab = [
'text' => "".html_print_image(
'images/policies_mc.png',
true,
['title' => __('Policies')]
).'',
'active' => $searchTab == 'policies',
];
} else {
$policies_tab = '';
}
$onheader = [
'main' => $main_tab,
'agents' => $agents_tab,
'modules' => $modules_tab,
'alerts' => $alerts_tab,
'users' => $users_tab,
'graphs' => $graphs_tab,
'reports' => $reports_tab,
'maps' => $maps_tab,
'policies' => $policies_tab,
];
ui_print_standard_header(
__('Search').': "'.$config['search_keywords'].'"',
'images/zoom_mc.png',
false,
'',
false,
$onheader,
[
[
'link' => '',
'label' => __('Search'),
],
]
);
$only_count = false;
switch ($searchTab) {
case 'main':
$only_count = true;
include_once 'search_agents.getdata.php';
include_once 'search_agents.php';
include_once 'search_users.getdata.php';
// ------------------- DISABLED FOR SOME INSTALLATIONS----------
// ~ require_once('search_alerts.getdata.php');
// -------------------------------------------------------------
include_once 'search_graphs.getdata.php';
include_once 'search_reports.getdata.php';
include_once 'search_maps.getdata.php';
include_once 'search_modules.getdata.php';
include_once 'search_helps.getdata.php';
include_once 'search_policies.getdata.php';
include_once 'search_main.php';
break;
case 'agents':
include_once 'search_agents.getdata.php';
include_once 'search_agents.php';
break;
case 'users':
include_once 'search_users.getdata.php';
include_once 'search_users.php';
break;
case 'alerts':
include_once 'search_alerts.getdata.php';
include_once 'search_alerts.php';
break;
case 'graphs':
include_once 'search_graphs.getdata.php';
include_once 'search_graphs.php';
break;
case 'reports':
include_once 'search_reports.getdata.php';
include_once 'search_reports.php';
break;
case 'maps':
include_once 'search_maps.getdata.php';
include_once 'search_maps.php';
break;
case 'modules':
include_once 'search_modules.getdata.php';
include_once 'search_modules.php';
break;
case 'policies':
include_once 'search_policies.getdata.php';
include_once 'search_policies.php';
break;
}