");
echo("");
while($current = mysql_fetch_array($currents)) {
if(is_integer($i/2)) { $row_colour = $list_colour_a; } else { $row_colour = $list_colour_b; }
$graph_colour = str_replace("#", "", $row_colour);
$current_day = "graph.php?id=" . $current['sensor_id'] . "&type=".$graph_type."&from=$day&to=$now&width=300&height=100";
$current_week = "graph.php?id=" . $current['sensor_id'] . "&type=".$graph_type."&from=$week&to=$now&width=300&height=100";
$current_month = "graph.php?id=" . $current['sensor_id'] . "&type=".$graph_type."&from=$month&to=$now&width=300&height=100";
$current_year = "graph.php?id=" . $current['sensor_id'] . "&type=".$graph_type."&from=$year&to=$now&width=300&height=100";
$current_minigraph = " ";
$current_link = "";
$current_link_c = $current_link . " $current['sensor_limit'] ? "style='color: red'" : '') . '>' . $current['sensor_current'] . "A";
$current_link_b = $current_link . $current_minigraph . "";
$current_link_a = $current_link . $current['sensor_descr'] . "";
$current['sensor_descr'] = truncate($current['sensor_descr'], 25, '');
echo("| $current_link_a | $current_link_b | $current_link_c | ");
if($i == $rows) { echo(" | ");
echo(" |
");
echo("