From 4d9a43d3be1b50d252be94328f61075f433670f3 Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Wed, 6 Jun 2007 09:41:08 +0000 Subject: [PATCH] New file. git-svn-id: http://www.observium.org/svn/observer/trunk@100 61d68cd4-352d-0410-923a-c4978735b2b8 --- includes/print-functions.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 includes/print-functions.php diff --git a/includes/print-functions.php b/includes/print-functions.php new file mode 100644 index 000000000..e293f8d9e --- /dev/null +++ b/includes/print-functions.php @@ -0,0 +1,21 @@ + 25) { $style = "color: LimeGreen;"; } + if(($temp_lim - $temp_cur) <= 25) { $style = "color: Green;"; } + if(($temp_lim - $temp_cur) < 20) { $style = "color: Blue;"; } + if(($temp_lim - $temp_cur) < 15) { $style = "color: MediumPurple;"; } + if(($temp_lim - $temp_cur) < 10) { $style = "font-weight: bold; color: Tomato;"; } + if(($temp_lim - $temp_cur) < 5) { $style = "font-weight: bold; color: OrangeRed;"; } + if(($temp_lim - $temp_cur) <= 0) { $style = "font-weight: bold; color: Crimson;"; } + + + return("$temp_current"); + +} + +?>