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>'; ).'</a>';
// Header // Header
ui_print_page_header( ui_print_standard_header(
__('SNMP Console'), __('SNMP Statistics'),
'images/op_snmp.png', 'images/op_snmp.png',
false, false,
'', '',
@ -91,6 +91,16 @@ ui_print_page_header(
$fullscreen, $fullscreen,
$list, $list,
$statistics, $statistics,
],
[
[
'link' => '',
'label' => __('Monitoring'),
],
[
'link' => '',
'label' => __('SNMP'),
],
] ]
); );

View File

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

View File

@ -147,12 +147,29 @@ switch ($tab) {
break; break;
} }
if (!is_metaconsole()) { if (is_metaconsole() === false) {
if (!$strict_acl) { 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 ------------------------------------------- // ---------------------Tabs -------------------------------------------