mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
Fix coding style part 2
This commit is contained in:
@@ -1,13 +1,11 @@
|
||||
<?php
|
||||
|
||||
|
||||
function printEntPhysical($ent, $level, $class)
|
||||
{
|
||||
function printEntPhysical($ent, $level, $class) {
|
||||
global $device;
|
||||
|
||||
$ents = dbFetchRows('SELECT * FROM `entPhysical` WHERE device_id = ? AND entPhysicalContainedIn = ? ORDER BY entPhysicalContainedIn,entPhysicalIndex', array($device['device_id'], $ent));
|
||||
foreach ($ents as $ent)
|
||||
{
|
||||
foreach ($ents as $ent) {
|
||||
echo "
|
||||
<li class='$class'>";
|
||||
|
||||
@@ -33,7 +31,8 @@ function printEntPhysical($ent, $level, $class)
|
||||
if (count($sensor)) {
|
||||
$link = " href='device/device=".$device['device_id'].'/tab=health/metric='.$sensor['sensor_class']."/' onmouseover=\"return overlib('<img src=\'graph.php?id=".$sensor['sensor_id'].'&type=sensor_'.$sensor['sensor_class'].'&from=-2d&to=now&width=400&height=150&a='.$ent['entPhysical_id']."\'><img src=\'graph.php?id=".$sensor['sensor_id'].'&type=sensor_'.$sensor['sensor_class'].'&from=-2w&to=now&width=400&height=150&a='.$ent['entPhysical_id']."\'>', LEFT,FGCOLOR,'#e5e5e5', BGCOLOR, '#c0c0c0', BORDER, 5, CELLPAD, 4, CAPCOLOR, '#050505');\" onmouseout=\"return nd();\"";
|
||||
}
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
unset($link);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user