sparkline temp

git-svn-id: http://www.observium.org/svn/observer/trunk@577 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2009-12-30 21:20:40 +00:00
parent 125756a037
commit 34fcb34adf
+3
View File
@@ -13,6 +13,7 @@ echo("<table cellspacing=0 cellpadding=2 width=100%>");
echo("<tr class=tablehead>
<th width=280>Device</th>
<th width=280>Sensor</th>
<th></th>
<th width=100>Current</th>
<th width=100>Alert</th>
<th>Notes</th>
@@ -34,11 +35,13 @@ while($temp = mysql_fetch_array($query)) {
$temp_perc = $temp['temp_current'] / $temp['temp_limit'] * 100;
$temp_colour = percent_colour($temp_perc);
$temp_minigraph = "<img src='graph.php?id=" . $temp['temp_id'] . "&type=temperature&from=$day&to=$now&width=100&height=20'>"
echo("<tr bgcolor=$row_colour>
<td class=list-bold>" . generatedevicelink($temp) . "</td>
<td>$temp_popup</td>
<td>$temp_minigraph</td>
<td style='color: $temp_colour; font-weight: bold;'>" . $temp['temp_current'] . "</td>
<td>" . $temp['temp_limit'] . "</td>
<td>" . $temp['temp_notes'] . "</td>