diff --git a/CounterTable/module.php b/CounterTable/module.php index c359579..219ad99 100644 --- a/CounterTable/module.php +++ b/CounterTable/module.php @@ -44,8 +44,13 @@ class CounterTable extends IPSModule { $cost = 0.0; $cost = $cnt->Monthly * $price; + $style =''; + if ($cnt->Monthly > $cnt->Limit){ + $style = 'style="background-color:yellow;"'; + } + $dataoutput .= ' - + '.$cnt->Name.' diff --git a/library.json b/library.json index de066fb..333c51f 100644 --- a/library.json +++ b/library.json @@ -8,6 +8,6 @@ "date": 1491343200 }, "version": "1.0", - "build": 8, + "build": 9, "date": 0 } \ No newline at end of file