mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 16:04:35 +02:00
Minor fixes, some cleanups, and standardising on echo("x") instead of echo "x"
git-svn-id: http://www.observium.org/svn/observer/trunk@1728 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
+18
-18
@@ -48,39 +48,39 @@ if($services['down']) { $services['bgcolour'] = "#ffcccc"; } else { $services['b
|
||||
|
||||
|
||||
<table cellpadding="2" cellspacing="0" border="0">
|
||||
<tr style="background-color: <?php echo $devices[bgcolour]; ?>">
|
||||
<tr style="background-color: <?php echo($devices[bgcolour]); ?>">
|
||||
<td width="5"></td>
|
||||
<td>Devices : </td>
|
||||
<td><?php echo $devices['count'] ?></td>
|
||||
<td><?php echo($devices['count']) ?></td>
|
||||
<td> ( </td>
|
||||
<td style="text-align: right"><span class="green"> <?php echo $devices['up'] ?> up</span></td>
|
||||
<td style="text-align: right"><span class="red"> <?php echo $devices['down'] ?> down</span></td>
|
||||
<td style="text-align: right"><span class="black"> <?php echo $devices['ignored'] ?> ignored</span> </td>
|
||||
<td style="text-align: right"><span class="grey"> <?php echo $devices['disabled'] ?> disabled</span></td>
|
||||
<td style="text-align: right"><span class="green"> <?php echo($devices['up']) ?> up</span></td>
|
||||
<td style="text-align: right"><span class="red"> <?php echo($devices['down']) ?> down</span></td>
|
||||
<td style="text-align: right"><span class="black"> <?php echo($devices['ignored']) ?> ignored</span> </td>
|
||||
<td style="text-align: right"><span class="grey"> <?php echo($devices['disabled']) ?> disabled</span></td>
|
||||
<td> ) </td>
|
||||
<td width="5"></td>
|
||||
</tr>
|
||||
<tr style="background-color: <?php echo $ports['bgcolour'] ?>">
|
||||
<tr style="background-color: <?php echo($ports['bgcolour']) ?>">
|
||||
<td width="5"></td><td>Ports : </td>
|
||||
<td><?php echo $ports['count'] ?></td>
|
||||
<td><?php echo($ports['count']) ?></td>
|
||||
<td> ( </td>
|
||||
<td style="text-align: right"><span class="green"> <?php echo $ports['up'] ?> up </span></td>
|
||||
<td style="text-align: right"><span class="red"> <?php echo $ports['down'] ?> down </span></td>
|
||||
<td style="text-align: right"><span class="black"> <?php echo $ports['ignored'] ?> ignored </span></td>
|
||||
<td style="text-align: right"><span class="grey"> <?php echo $ports['shutdown'] ?> shutdown</span></td>
|
||||
<td style="text-align: right"><span class="green"> <?php echo($ports['up']) ?> up </span></td>
|
||||
<td style="text-align: right"><span class="red"> <?php echo($ports['down']) ?> down </span></td>
|
||||
<td style="text-align: right"><span class="black"> <?php echo($ports['ignored']) ?> ignored </span></td>
|
||||
<td style="text-align: right"><span class="grey"> <?php echo($ports['shutdown']) ?> shutdown</span></td>
|
||||
<td> ) </td>
|
||||
<td width="5"></td>
|
||||
</tr>
|
||||
<?php if ($config['show_services']) { ?>
|
||||
<tr style="background-color: <?php echo $services['bgcolour'] ?>">
|
||||
<tr style="background-color: <?php echo($services['bgcolour']) ?>">
|
||||
<td width="5"></td>
|
||||
<td>Services : </td>
|
||||
<td><?php echo $services['count'] ?></td>
|
||||
<td><?php echo($services['count']) ?></td>
|
||||
<td> ( </td>
|
||||
<td style="text-align: right"><span class="green"><?php echo $services['up'] ?> up</span></td>
|
||||
<td style="text-align: right"><span class="red"> <?php echo $services['down'] ?> down</span></td>
|
||||
<td style="text-align: right"><span class="black"> <?php echo $services['ignored'] ?> ignored</span> </td>
|
||||
<td style="text-align: right"><span class="grey"> <?php echo $services['disabled'] ?> disabled</span></td>
|
||||
<td style="text-align: right"><span class="green"><?php echo($services['up']) ?> up</span></td>
|
||||
<td style="text-align: right"><span class="red"> <?php echo($services['down']) ?> down</span></td>
|
||||
<td style="text-align: right"><span class="black"> <?php echo($services['ignored']) ?> ignored</span> </td>
|
||||
<td style="text-align: right"><span class="grey"> <?php echo($services['disabled']) ?> disabled</span></td>
|
||||
<td> ) </td>
|
||||
<td width="5"></td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user