fix temp?

git-svn-id: http://www.observium.org/svn/observer/trunk@573 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2009-12-30 21:07:10 +00:00
parent 3eb057c4a2
commit 9700ad49d0

View File

@ -27,11 +27,9 @@ while($temp = mysql_fetch_array($query)) {
$speed = humanspeed($temp['ifSpeed']);
$type = humanmedia($temp['ifType']);
$temp_url = "graph.php?id=" . $temp['temp_id'] . "&type=temp&from=$week&to=$now&width=400&height=150";
$temp_popup = "<a onmouseover=\"return overlib('<img src=\'$temp_url\'>', LEFT);\" onmouseout=\"return nd();\">
" . $temp['temp_descr'] . "</a> ";
$weekly_temp = "graph.php?id=" . $temp['temp_id'] . "&type=temp&from=$week&to=$now&width=211&height=100";
$temp_popup = "<a onmouseover=\"return overlib('<img src=\'$weekly_url\'>', LEFT);\" onmouseout=\"return nd();\">
<img src='$weekly_temp' border=0></a> ";
$temp_perc = $temp['temp_current'] / $temp['temp_limit'] * 100;
$temp_colour = percent_colour($temp_perc);