mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
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:
parent
c89614539d
commit
e50146d424
@ -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>
|
2010-08-12 Ramon Novoa <rnovoa@artica.es>
|
||||||
|
|
||||||
* include/functions_alerts.php,
|
* include/functions_alerts.php,
|
||||||
|
@ -1207,12 +1207,18 @@ define ('STATUS_SERVER_DOWN', 'server_down.png');
|
|||||||
*
|
*
|
||||||
* @return string HTML code if return parameter is true.
|
* @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 ();
|
list ($imagepath) = get_status_images_path ();
|
||||||
|
|
||||||
$imagepath .= "/".$type;
|
$imagepath .= "/".$type;
|
||||||
|
|
||||||
return print_image ($imagepath, $return, array ("title" => $title));
|
if($options === false) {
|
||||||
|
$options = array();
|
||||||
|
}
|
||||||
|
|
||||||
|
$options['title'] = $title;
|
||||||
|
|
||||||
|
return print_image ($imagepath, $return, $options);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user