From c78e2e2f1c3718e8e5b555ce4a4a459ad04ff46e Mon Sep 17 00:00:00 2001 From: enriquecd Date: Tue, 22 Nov 2016 11:37:49 +0100 Subject: [PATCH] Change header help icon function #Noticket --- pandora_console/general/alert_enterprise.php | 10 ++++++++++ pandora_console/general/header.php | 6 +++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/pandora_console/general/alert_enterprise.php b/pandora_console/general/alert_enterprise.php index bf80619169..87925de96a 100644 --- a/pandora_console/general/alert_enterprise.php +++ b/pandora_console/general/alert_enterprise.php @@ -39,6 +39,9 @@ switch ($tipo) { case "infomodal": echo "icono_info.png"; break; + case "helpmodal": + echo "icono_info.png"; + break; case "modulemodal": echo "icono_popup.png"; break; @@ -85,6 +88,13 @@ echo "'> switch ($tipo) { + case "helpmodal": + + echo __("This is the online help for Pandora FMS console. This help is -in best cases- just a brief contextual help, not intented to teach you how to use Pandora FMS. Official documentation of Pandora FMS is about 900 pages, and you probably don't need to read it entirely, but sure, you should download it and take a look.

+ Download the official documentation"); + + break; + case "noaccess": echo __('Access to this page is restricted to authorized users only, please contact system administrator if you need assistance.

diff --git a/pandora_console/general/header.php b/pandora_console/general/header.php index 8431b6d704..502d583f91 100644 --- a/pandora_console/general/header.php +++ b/pandora_console/general/header.php @@ -273,7 +273,11 @@ config_check(); $table->data[0][3] = $maintenance_img; // Main help icon - $table->data[0][4] = ''; + $table->data[0][4] = ''.html_print_image("images/header_help.png", + true, array( + "title" => __('Main help'), + "id" => "helpmodal", + "class" => "modalpopup")).''; // Logout $table->data[0][5] = '';