Added standard header

This commit is contained in:
José González 2021-04-29 15:35:33 +02:00
parent 9ab027b286
commit c54ad46f33
3 changed files with 56 additions and 9 deletions

View File

@ -81,8 +81,8 @@ $statistics['text'] = '<a href="index.php?sec=estado&sec2=operation/snmpconsole/
).'</a>';
// Header
ui_print_page_header(
__('SNMP Console'),
ui_print_standard_header(
__('SNMP Statistics'),
'images/op_snmp.png',
false,
'',
@ -91,6 +91,16 @@ ui_print_page_header(
$fullscreen,
$list,
$statistics,
],
[
[
'link' => '',
'label' => __('Monitoring'),
],
[
'link' => '',
'label' => __('SNMP'),
],
]
);

View File

@ -698,8 +698,8 @@ $trapcount = (int) db_get_value_sql($sql_count);
// No traps.
if (empty($traps)) {
// Header.
ui_print_page_header(
// Header
ui_print_standard_header(
__('SNMP Console'),
'images/op_snmp.png',
false,
@ -708,6 +708,16 @@ if (empty($traps)) {
[
$list,
$statistics,
],
[
[
'link' => '',
'label' => __('Monitoring'),
],
[
'link' => '',
'label' => __('SNMP'),
],
]
);
@ -796,8 +806,8 @@ if (empty($traps)) {
ui_require_javascript_file('wz_jsgraphics');
ui_require_javascript_file('pandora_visual_console');
} else {
// Header.
ui_print_page_header(
// Header
ui_print_standard_header(
__('SNMP Console'),
'images/op_snmp.png',
false,
@ -807,6 +817,16 @@ if (empty($traps)) {
$fullscreen,
$list,
$statistics,
],
[
[
'link' => '',
'label' => __('Monitoring'),
],
[
'link' => '',
'label' => __('SNMP'),
],
]
);
}

View File

@ -147,12 +147,29 @@ switch ($tab) {
break;
}
if (!is_metaconsole()) {
if (is_metaconsole() === false) {
if (!$strict_acl) {
$header_title = $header_title.' - '.$header_sub_title;
$header_title = $header_title.' &raquo; '.$header_sub_title;
}
ui_print_page_header($header_title, 'images/extensions.png', false, 'tree_view', false, $tabs);
ui_print_standard_header(
$header_title,
'images/extensions.png',
false,
'tree_view',
false,
$tabs,
[
[
'link' => '',
'label' => __('Monitoring'),
],
[
'link' => '',
'label' => __('View'),
],
]
);
}
// ---------------------Tabs -------------------------------------------