Tidy top 10 displays

This commit is contained in:
Paul Gear
2013-11-26 15:32:53 +10:00
parent 8d63a2d368
commit ab23cbe144
4 changed files with 35 additions and 25 deletions

View File

@@ -113,9 +113,9 @@ function get_percentage_colours($percentage)
}
function generate_minigraph_image($device, $start, $end, $type, $legend = 'no', $width = 275, $height = 100, $sep = '&')
function generate_minigraph_image($device, $start, $end, $type, $legend = 'no', $width = 275, $height = 100, $sep = '&', $class = "minigraph-image")
{
return '<img class=minigraph-image src="graph.php?'.
return '<img class="'.$class.'" src="graph.php?'.
implode(array('device='.$device['device_id'], "from=$start", "to=$end", "width=$width", "height=$height", "type=$type", "legend=$legend"), $sep).'">';
}