"); echo(" Drive Usage Free "); $row = 1; while ($drive = mysql_fetch_assoc($query)) { if (is_integer($row/2)) { $row_colour = $list_colour_a; } else { $row_colour = $list_colour_b; } $total = $drive['storage_size']; $used = $drive['storage_used']; $free = $drive['storage_free']; $perc = round($drive['storage_perc'], 0); $used = formatStorage($used); $total = formatStorage($total); $free = formatStorage($free); $fs_url = "device/".$device['device_id']."/health/storage/"; $fs_popup = "onmouseover=\"return overlib('
".$device['hostname']." - ".$drive['storage_descr']; $fs_popup .= "
"; $fs_popup .= "', RIGHT, FGCOLOR, '#e5e5e5');\" onmouseout=\"return nd();\""; if ($perc > '90') { $left_background='c4323f'; $right_background='C96A73'; } elseif ($perc > '75') { $left_background='bf5d5b'; $right_background='d39392'; } elseif ($perc > '50') { $left_background='bf875b'; $right_background='d3ae92'; } elseif ($perc > '25') { $left_background='5b93bf'; $right_background='92b7d3'; } else { $left_background='9abf5b'; $right_background='bbd392'; } echo("" . $drive['storage_descr'] . " ".print_percentage_bar (400, 20, $perc, "$used / $total", "ffffff", $left_background, $perc . "%", "ffffff", $right_background)." " . $free . ""); $graph_array['id'] = $drive['storage_id']; $graph_array['type'] = $graph_type; echo(""); include("includes/print-quadgraphs.inc.php"); echo(""); $row++; } echo(""); ?>