mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-01 00:24:21 +02:00
sid3windr updates!
git-svn-id: http://www.observium.org/svn/observer/trunk@588 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -35,15 +35,22 @@ 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'>";
|
||||
|
||||
$temp_day = "graph.php?id=" . $temp['temp_id'] . "&type=temperature&from=$day&to=$now&width=300&height=100";
|
||||
$temp_week = "graph.php?id=" . $temp['temp_id'] . "&type=temperature&from=$week&to=$now&width=300&height=100";
|
||||
$temp_month = "graph.php?id=" . $temp['temp_id'] . "&type=temperature&from=$month&to=$now&width=300&height=100";
|
||||
$temp_year = "graph.php?id=" . $temp['temp_id'] . "&type=temperature&from=$year&to=$now&width=300&height=100";
|
||||
|
||||
$temp_minigraph = "<img src='graph.php?id=" . $temp['temp_id'] . "&type=temperature&from=$day&to=$now&width=100&height=20'";
|
||||
$temp_minigraph .= " onmouseover=\"return overlib('<div class=list-large>".$temp['hostname']." - ".$temp['temp_descr'];
|
||||
$temp_minigraph .= "</div><div style=\'width: 750px\'><img src=\'$temp_day\'><img src=\'$temp_week\'><img src=\'$temp_month\'><img src=\'$temp_year\'></div>', RIGHT".$config['overlib_defaults'].");\" onmouseout=\"return nd();\" >";
|
||||
|
||||
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 style='color: $temp_colour; text-align: center; font-weight: bold;'>" . $temp['temp_current'] . " °C</td>
|
||||
<td style='text-align: center'>" . $temp['temp_limit'] . " °C</td>
|
||||
<td>" . $temp['temp_notes'] . "</td>
|
||||
</tr>\n");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user