From a545b2488753b242f9e0947038a8660948065d1b Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Thu, 12 Aug 2010 15:26:11 +0000 Subject: [PATCH] 2010-08-12 Sergio Martin * include/functions_ui.php: Improved the function print_status_image to allow an additional parameter for send it image options like style, width... git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3134 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 6 ++++++ pandora_console/include/functions_ui.php | 10 ++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index a5c9cd3e0f..4edae7037f 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2010-08-12 Sergio Martin + + * include/functions_ui.php: Improved the function print_status_image + to allow an additional parameter for send it image options like + style, width... + 2010-08-12 Ramon Novoa * include/functions_alerts.php, diff --git a/pandora_console/include/functions_ui.php b/pandora_console/include/functions_ui.php index 5ea8c87cce..44f3a6627f 100644 --- a/pandora_console/include/functions_ui.php +++ b/pandora_console/include/functions_ui.php @@ -1207,12 +1207,18 @@ define ('STATUS_SERVER_DOWN', 'server_down.png'); * * @return string HTML code if return parameter is true. */ -function print_status_image ($type, $title = "", $return = false) { +function print_status_image ($type, $title = "", $return = false, $options = false) { list ($imagepath) = get_status_images_path (); $imagepath .= "/".$type; - return print_image ($imagepath, $return, array ("title" => $title)); + if($options === false) { + $options = array(); + } + + $options['title'] = $title; + + return print_image ($imagepath, $return, $options); } /**