mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
@@ -1,12 +1,14 @@
|
||||
<?php
|
||||
|
||||
use LibreNMS\Config;
|
||||
|
||||
if ($int_colour) {
|
||||
$row_colour = $int_colour;
|
||||
} else {
|
||||
if (!is_integer($i / 2)) {
|
||||
$row_colour = $config['list_colour']['even'];
|
||||
$row_colour = Config::get('list_colour.even');
|
||||
} else {
|
||||
$row_colour = $config['list_colour']['odd'];
|
||||
$row_colour = Config::get('list_colour.odd');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,7 +16,7 @@ if ($int_colour) {
|
||||
$text = $ap['name'].' '.$ap['type'];
|
||||
$ap['text'] = $text;
|
||||
|
||||
echo "<tr style=\"background-color: $row_colour;\" valign=top onmouseover=\"this.style.backgroundColor='{$config['list_colour']['highlight']}';\" onmouseout=\"this.style.backgroundColor='$row_colour';\" onclick=\"location.href='".generate_ap_url($ap)."/'\" style='cursor: pointer;'>
|
||||
echo "<tr style=\"background-color: $row_colour;\" valign=top onmouseover=\"this.style.backgroundColor='" . Config::get('list_colour.highlight') . "';\" onmouseout=\"this.style.backgroundColor='$row_colour';\" onclick=\"location.href='" . generate_ap_url($ap) . "/'\" style='cursor: pointer;'>
|
||||
<td valign=top width=350>";
|
||||
echo ' <span class=list-large> '.generate_ap_link($ap, " $text </span><br />");
|
||||
echo '<span class=interface-desc>';
|
||||
@@ -26,13 +28,13 @@ echo '</td><td width=100>';
|
||||
|
||||
echo '</td><td width=150>';
|
||||
$ap['graph_type'] = 'accesspoints_numasoclients';
|
||||
echo generate_ap_link($ap, "<img src='graph.php?type=$ap[graph_type]&id=".$ap['accesspoint_id'].'&from='.$config['time']['day'].'&to='.$config['time']['now'].'&width=100&height=20&legend=no&bg='.str_replace('#', '', $row_colour)."'>");
|
||||
echo generate_ap_link($ap, "<img src='graph.php?type=$ap[graph_type]&id=" . $ap['accesspoint_id'] . '&from=' . Config::get('time.day') . '&to=' . Config::get('time.now') . '&width=100&height=20&legend=no&bg=' . str_replace('#', '', $row_colour) . "'>");
|
||||
echo "<br>\n";
|
||||
$ap['graph_type'] = 'accesspoints_radioutil';
|
||||
echo generate_ap_link($ap, "<img src='graph.php?type=$ap[graph_type]&id=".$ap['accesspoint_id'].'&from='.$config['time']['day'].'&to='.$config['time']['now'].'&width=100&height=20&legend=no&bg='.str_replace('#', '', $row_colour)."'>");
|
||||
echo generate_ap_link($ap, "<img src='graph.php?type=$ap[graph_type]&id=" . $ap['accesspoint_id'] . '&from=' . Config::get('time.day') . '&to=' . Config::get('time.now') . '&width=100&height=20&legend=no&bg=' . str_replace('#', '', $row_colour) . "'>");
|
||||
echo "<br>\n";
|
||||
$ap['graph_type'] = 'accesspoints_interference';
|
||||
echo generate_ap_link($ap, "<img src='graph.php?type=$ap[graph_type]&id=".$ap['accesspoint_id'].'&from='.$config['time']['day'].'&to='.$config['time']['now'].'&width=100&height=20&legend=no&bg='.str_replace('#', '', $row_colour)."'>");
|
||||
echo generate_ap_link($ap, "<img src='graph.php?type=$ap[graph_type]&id=" . $ap['accesspoint_id'] . '&from=' . Config::get('time.day') . '&to=' . Config::get('time.now') . '&width=100&height=20&legend=no&bg=' . str_replace('#', '', $row_colour) . "'>");
|
||||
echo "<br>\n";
|
||||
|
||||
echo '</td><td width=120>';
|
||||
|
Reference in New Issue
Block a user