From 4f9ed4473b44e344019750d19e2776625adcc6a0 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Fri, 17 May 2013 12:26:16 +0000 Subject: [PATCH] 2013-05-17 Miguel de Dios * include/functions_ui.php: added first version of function "ui_print_empty_data" for to show when the page has not data as list of agents or alerts or somethings. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8149 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 6 ++++++ pandora_console/include/functions_ui.php | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index dfe497081e..39b2852a88 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2013-05-17 Miguel de Dios + + * include/functions_ui.php: added first version of function + "ui_print_empty_data" for to show when the page has not data as + list of agents or alerts or somethings. + 2013-05-17 Miguel de Dios * godmode/events/events.php, operation/events/events_list.php, diff --git a/pandora_console/include/functions_ui.php b/pandora_console/include/functions_ui.php index a10ec61073..a2ba97d496 100644 --- a/pandora_console/include/functions_ui.php +++ b/pandora_console/include/functions_ui.php @@ -326,6 +326,10 @@ function ui_print_info_message ($message, $attributes = '', $return = false, $ta return ui_print_message ($message, 'info', $attributes, $return, $tag); } +function ui_print_empty_data($message, $attributes = '', $return = false, $tag = 'h3') { + return ui_print_message ($message, 'info', $attributes, $return, $tag); +} + /** * Evaluates a result using empty() and then prints an error or success message *