more fixes for new sensor setup. more to come no doubt. also started making graphs which can 'widen'

git-svn-id: http://www.observium.org/svn/observer/trunk@1534 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2010-07-29 21:45:25 +00:00
parent 7b2fc2dbe1
commit 21dbee7c20
8 changed files with 76 additions and 63 deletions

View File

@ -12,13 +12,13 @@ while($temp = mysql_fetch_array($query)) {
if(!is_integer($row/2)) { $row_colour = $list_colour_a; } else { $row_colour = $list_colour_b; }
echo("<tr class=list-large style=\"background-color: $row_colour; padding: 5px;\">
<td width=350>" . $temp['sensor_descr'] . "</td>
<td width=350>" . $temp['sensor_type'] . "</td>
<td>" . print_temperature($temp['sensor_current'], $temp['sensor_limit']) . " &deg;C</td>
<td>" . $temp['sensor_limit'] . " &deg;C</td>
<td>" . $temp['sensor_notes'] . "</td>
<td width=450>" . $temp['sensor_descr'] . "</td>
<td >" . $temp['sensor_type'] . "</td>
<td width=50>" . print_temperature($temp['sensor_current'], $temp['sensor_limit']) . " &deg;C</td>
<td width=50>" . $temp['sensor_limit'] . " &deg;C</td>
<td width=350>" . $temp['sensor_notes'] . "</td>
</tr>\n");
echo("<tr bgcolor=$row_colour><td colspan='4'>");
echo("<tr bgcolor=$row_colour><td colspan='5'>");
$graph_type = "sensor_temperature";

View File

@ -12,12 +12,13 @@ while($volt = mysql_fetch_array($query)) {
if(!is_integer($row/2)) { $row_colour = $list_colour_a; } else { $row_colour = $list_colour_b; }
echo("<tr class=list-large style=\"background-color: $row_colour; padding: 5px;\">
<td width=350>" . $volt['sensor_descr'] . "</td>
<td>" . $volt['sensor_current'] . "V</td>
<td>" . $volt['sensor_limit_low'] . 'V - ' . $volt['sensor_limit'] . "V</td>
<td>" . $volt['sensor_notes'] . "</td>
<td width=450>" . $volt['sensor_descr'] . "</td>
<td>" . $volt['sensor_type'] . "</td>
<td width=50>" . $volt['sensor_current'] . "V</td>
<td width=75>" . $volt['sensor_limit_low'] . 'V - ' . $volt['sensor_limit'] . "V</td>
<td width=200>" . $volt['sensor_notes'] . "</td>
</tr>\n");
echo("<tr bgcolor=$row_colour><td colspan='4'>");
echo("<tr bgcolor=$row_colour><td colspan='5'>");
$graph_type = "sensor_voltage";