Added standard header

This commit is contained in:
José González 2021-04-30 12:35:02 +02:00
parent 71c88313d5
commit 3f33a0ec29
3 changed files with 108 additions and 34 deletions

View File

@ -1,16 +1,32 @@
<?php <?php
// Pandora FMS - http://pandorafms.com /**
// ================================================== * Reporting graphs.
// Copyright (c) 2005-2021 Artica Soluciones Tecnologicas *
// Please see http://pandorafms.org for full contribution list * @category Reporting
// This program is free software; you can redistribute it and/or * @package Pandora FMS
// modify it under the terms of the GNU General Public License * @subpackage Community
// as published by the Free Software Foundation for version 2. * @version 1.0.0
// This program is distributed in the hope that it will be useful, * @license See below
// but WITHOUT ANY WARRANTY; without even the implied warranty of *
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * ______ ___ _______ _______ ________
// GNU General Public License for more details. * | __ \.-----.--.--.--| |.-----.----.-----. | ___| | | __|
// Load global variables * | __/| _ | | _ || _ | _| _ | | ___| |__ |
* |___| |___._|__|__|_____||_____|__| |___._| |___| |__|_|__|_______|
*
* ============================================================================
* Copyright (c) 2005-2021 Artica Soluciones Tecnologicas
* Please see http://pandorafms.org for full contribution list
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation for version 2.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* ============================================================================
*/
// Begin.
global $config; global $config;
require_once 'include/functions_custom_graphs.php'; require_once 'include/functions_custom_graphs.php';
@ -99,8 +115,25 @@ $view_graph = (bool) get_parameter('view_graph');
$id = (int) get_parameter('id'); $id = (int) get_parameter('id');
$multiple_delete = (bool) get_parameter('multiple_delete', 0); $multiple_delete = (bool) get_parameter('multiple_delete', 0);
// Header // Header.
ui_print_page_header(__('Reporting').' &raquo; '.__('Custom graphs'), 'images/chart.png', false, '', false, $buttons); ui_print_standard_header(
__('List of custom graphs'),
'images/chart.png',
false,
'',
false,
$buttons,
[
[
'link' => '',
'label' => __('Reporting'),
],
[
'link' => '',
'label' => __('Custom graphs'),
],
]
);
// Delete module SQL code // Delete module SQL code
if ($delete_graph) { if ($delete_graph) {

View File

@ -1,9 +1,8 @@
<?php <?php
/** /**
* Extension to manage a list of gateways and the node address where they should * Empty Network editor.
* point to.
* *
* @category Extensions * @category View
* @package Pandora FMS * @package Pandora FMS
* @subpackage Community * @subpackage Community
* @version 1.0.0 * @version 1.0.0
@ -27,6 +26,7 @@
* ============================================================================ * ============================================================================
*/ */
// Begin.
global $config; global $config;
// Check user credentials. // Check user credentials.
@ -203,12 +203,24 @@ if ($edit_networkmap) {
} }
} }
ui_print_page_header( // Header.
__('Networkmap'), ui_print_standard_header(
__('Network maps editor'),
'images/bricks.png', 'images/bricks.png',
false, false,
'network_map_enterprise_edit', 'network_map_enterprise_edit',
false false,
[],
[
[
'link' => '',
'label' => __('Topology maps'),
],
[
'link' => '',
'label' => __('Networkmap'),
],
]
); );
$id_snmp_l2_recon = db_get_value( $id_snmp_l2_recon = db_get_value(

View File

@ -1,15 +1,32 @@
<?php <?php
// ______ __ _______ _______ _______ /**
// | __ \.---.-.-----.--| |.-----.----.---.-. | ___| | | __| * Network map.
// | __/| _ | | _ || _ | _| _ | | ___| |__ | *
// |___| |___._|__|__|_____||_____|__| |___._| |___| |__|_|__|_______| * @category View
// * @package Pandora FMS
// ============================================================================ * @subpackage Community
// Copyright (c) 2007-2021 Artica Soluciones Tecnologicas, http://www.artica.es * @version 1.0.0
// This code is NOT free software. This code is NOT licenced under GPL2 licence * @license See below
// You cannnot redistribute it without written permission of copyright holder. *
// ============================================================================ * ______ ___ _______ _______ ________
// Load global variables * | __ \.-----.--.--.--| |.-----.----.-----. | ___| | | __|
* | __/| _ | | _ || _ | _| _ | | ___| |__ |
* |___| |___._|__|__|_____||_____|__| |___._| |___| |__|_|__|_______|
*
* ============================================================================
* Copyright (c) 2005-2021 Artica Soluciones Tecnologicas
* Please see http://pandorafms.org for full contribution list
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation for version 2.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* ============================================================================
*/
// Begin.
global $config; global $config;
// Check user credentials. // Check user credentials.
@ -645,12 +662,24 @@ switch ($tab) {
<?php <?php
} }
ui_print_page_header( // Header.
__('Networkmap'), ui_print_standard_header(
__('List of network maps'),
'images/op_network.png', 'images/op_network.png',
false, false,
'', '',
false false,
[],
[
[
'link' => '',
'label' => __('Topology maps'),
],
[
'link' => '',
'label' => __('Networkmap'),
],
]
); );
echo $result_txt; echo $result_txt;