Wegetabelle nach oben verschoben
Wenn man sie anklickt, will man sie auch sehen und nicht bis ganz nach unten scrollen Signed-off-by: Christian Dresel <fff@chrisi01.de>
This commit is contained in:
parent
ff80344b4d
commit
3e0bcf1cbe
43
index.php
43
index.php
|
@ -117,6 +117,28 @@
|
||||||
echo "<table>";
|
echo "<table>";
|
||||||
foreach($output['data'] as $temp) { echo "<tr><td>$temp</td></tr>"; }
|
foreach($output['data'] as $temp) { echo "<tr><td>$temp</td></tr>"; }
|
||||||
echo "</table>";
|
echo "</table>";
|
||||||
|
|
||||||
|
if($_GET['ip'] != '') {
|
||||||
|
echo '<H2>Wege zu '.$_GET["ip"].'</H2>';
|
||||||
|
echo '<table>
|
||||||
|
<tr>
|
||||||
|
<th>target</th>
|
||||||
|
<th>installed</th>
|
||||||
|
<th>via</th>
|
||||||
|
<th>device</th>
|
||||||
|
<th>metric</th>
|
||||||
|
<th>Destination ID</th>
|
||||||
|
</tr>';
|
||||||
|
foreach($output['routes'] as $route) {
|
||||||
|
if ($route['target'] == $_GET['ip']) {
|
||||||
|
echo "<tr>";
|
||||||
|
foreach($route as $temp) { echo "<td>$temp</td>"; }
|
||||||
|
echo "</tr>";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
echo "</table>";
|
||||||
|
}
|
||||||
|
|
||||||
echo "<H2>Interfaces</H2>";
|
echo "<H2>Interfaces</H2>";
|
||||||
echo '<table>
|
echo '<table>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -223,27 +245,6 @@
|
||||||
|
|
||||||
echo "</table>";
|
echo "</table>";
|
||||||
}
|
}
|
||||||
if($_GET['ip'] != '') {
|
|
||||||
echo '<H2>Wege zu '.$_GET["ip"].'</H2>';
|
|
||||||
echo '<table>
|
|
||||||
<tr>
|
|
||||||
<th>target</th>
|
|
||||||
<th>installed</th>
|
|
||||||
<th>via</th>
|
|
||||||
<th>device</th>
|
|
||||||
<th>metric</th>
|
|
||||||
<th>Destination ID</th>
|
|
||||||
</tr>';
|
|
||||||
foreach($output['routes'] as $route) {
|
|
||||||
if ($route['target'] == $_GET['ip'])
|
|
||||||
{
|
|
||||||
echo "<tr>";
|
|
||||||
foreach($route as $temp) { echo "<td>$temp</td>"; }
|
|
||||||
echo "</tr>";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
echo "</table>";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<br>
|
<br>
|
||||||
|
|
Loading…
Reference in New Issue