2010-08-12 Sergio Martin <sergio.martin@artica.es>

* 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
This commit is contained in:
zarzuelo 2010-08-12 15:26:11 +00:00
parent 8610dc0b81
commit a545b24887
2 changed files with 14 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2010-08-12 Sergio Martin <sergio.martin@artica.es>
* 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 <rnovoa@artica.es>
* include/functions_alerts.php,

View File

@ -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);
}
/**