mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-30 16:14:21 +02:00
Various UI changes
This commit is contained in:
@@ -1,13 +1,5 @@
|
||||
<?php
|
||||
|
||||
echo '<table cellspacing="0" cellpadding="5" width="100%">';
|
||||
|
||||
// echo("<tr class=tablehead>
|
||||
// <th width=250>Drive</th>
|
||||
// <th width=420>Usage</th>
|
||||
// <th width=50>Free</th>
|
||||
// <th></th>
|
||||
// </tr>");
|
||||
$row = 1;
|
||||
|
||||
foreach (dbFetchRows('SELECT * FROM `ucd_diskio` WHERE device_id = ? ORDER BY diskio_descr', array($device['device_id'])) as $drive) {
|
||||
@@ -27,9 +19,7 @@ foreach (dbFetchRows('SELECT * FROM `ucd_diskio` WHERE device_id = ? ORDER BY di
|
||||
$graph_array_zoom['from'] = $config['time']['twoday'];
|
||||
$graph_array_zoom['to'] = $config['time']['now'];
|
||||
|
||||
echo "<tr bgcolor='$row_colour'><th>";
|
||||
echo overlib_link($fs_url, $drive['diskio_descr'], generate_graph_tag($graph_array_zoom), null);
|
||||
echo '</th></tr>';
|
||||
$overlib_link = overlib_link($fs_url, $drive['diskio_descr'], generate_graph_tag($graph_array_zoom), null);
|
||||
|
||||
$types = array(
|
||||
'diskio_bits',
|
||||
@@ -37,18 +27,24 @@ foreach (dbFetchRows('SELECT * FROM `ucd_diskio` WHERE device_id = ? ORDER BY di
|
||||
);
|
||||
|
||||
foreach ($types as $graph_type) {
|
||||
echo '<tr bgcolor="'.$row_colour.'"><td colspan=5>';
|
||||
|
||||
$graph_array = array();
|
||||
$graph_array['id'] = $drive['diskio_id'];
|
||||
$graph_array['type'] = $graph_type;
|
||||
|
||||
include 'includes/print-graphrow.inc.php';
|
||||
|
||||
echo '</td></tr>';
|
||||
if($graph_array['type']=="diskio_ops") {
|
||||
$graph_type_title="Ops/sec";
|
||||
}
|
||||
if($graph_array['type']=="diskio_bits") {
|
||||
$graph_type_title="bps";
|
||||
}
|
||||
echo "<div class='panel panel-default'>
|
||||
<div class='panel-heading'>
|
||||
<h3 class='panel-title'>$overlib_link - $graph_type_title</h3>
|
||||
</div>";
|
||||
echo "<div class='panel-body'>";
|
||||
include 'includes/print-graphrow.inc.php';
|
||||
echo '</div></div>';
|
||||
}
|
||||
|
||||
$row++;
|
||||
}
|
||||
|
||||
echo '</table>';
|
||||
}
|
||||
Reference in New Issue
Block a user