} DbFreeResult($res); $r = DevRoutes($devip[$rtr], $devver[$rtr], $devcom[$rtr], $vrf); $row = 0; foreach (array_keys($r) as $rd) { if ($row % 2) { $bg = "txta"; $bi = "imga"; } else { $bg = "txtb"; $bi = "imgb"; } $row++; $spd = DecFix($isp[$r[$rd]['ifx']]); $rp = RteProtoNumToText($r[$rd]['pro']); $rpimg = RteProto($rp); $unh = rawurlencode($netif[$r[$rd]['nho']]); list($pfix, $msk, $bmsk) = Masker($r[$rd]['msk']); list($ifimg, $iftit) = Iftype($ity[$r[$rd]['ifx']]); list($ntimg, $ntit) = Nettype($rd); TblRow($bg); echo "<th class=\"{$bi}\" width=\"20\"><img src=\"img/{$ntimg}\" title={$ntit}></th>\n"; echo "<td><a href=\"Topology-Networks.php?in[]=ifip&op[]==&st[]={$rd}%2F{$pfix}&draw=png\">{$rd}/{$pfix}</a></td>\n"; echo "<td>" . $r[$rd]['nho'] . " <a href=?rtr={$unh}&vrf={$uvn}>" . $netif[$r[$rd]['nho']] . "</a></td><td><img src=\"img/{$ifimg}\" title={$iftit}> "; echo "<b>" . $ina[$r[$rd]['ifx']] . "</b> <i>" . $ial[$r[$rd]['ifx']] . "</i> " . $icm[$r[$rd]['ifx']] . "</td>\n"; echo "<td align=right>{$spd}</td><td align=center>" . $r[$rd]['me1'] . "</td>\n"; echo "<td><img src=\"img/16/{$rpimg}.png\"> {$rp}</td><td align=right>" . $r[$rd]['age'] . "</td>\n"; echo "</tr>\n"; } ?> </table>
} @DbFreeResult($res); $r = DevRoutes($devip[$rtr], $devcom[$rtr]); $row = 0; foreach (array_keys($r) as $rd) { if ($row % 2) { $bg = $bga; $bi = $bia; } else { $bg = $bgb; $bi = $bib; } $row++; $if = $ina[$r[$rd]['ifx']] . " " . $ial[$r[$rd]['ifx']] . " " . $icm[$r[$rd]['ifx']]; $spd = ZFix($isp[$r[$rd]['ifx']]); $rpimg = RteProto($r[$rd]['pro']); $unh = rawurlencode($netif[$r[$rd]['nho']]); list($pfix, $msk, $bmsk) = Masker($r[$rd]['msk']); list($ifimg, $iftit) = Iftype($ity[$r[$rd]['ifx']]); list($ntimg, $ntit) = Nettype($rd); echo "<tr bgcolor=#{$bg}>"; echo "<td bgcolor={$bi} width=20 align=center><img src=img/16/{$ntimg} title={$ntit}></td>\n"; echo "<td><a href=Topology-Map.php?ina=network&flt={$rd}%2F{$pfix}&draw=1>{$rd}/{$pfix}</a></td>\n"; echo "<td>" . $r[$rd]['nho'] . " <a href=?rtr={$unh}>" . $netif[$r[$rd]['nho']] . "</a></td><td><img src=img/{$ifimg} title={$iftit} hspace=4> {$if}</td>\n"; echo "<td align=right>{$spd}</td><td align=center>" . $r[$rd]['me1'] . "</td>\n"; echo "<td><img src=img/16/{$rpimg}.png> " . $r[$rd]['pro'] . "</td><td align=right>" . $r[$rd]['age'] . "</td>\n"; echo "</tr>\n"; } echo "</table><table bgcolor=#666666 {$tabtag} >\n"; echo "<tr bgcolor=#{$bg2}><td>{$row} entries in route table</td></tr></table>\n"; }
} @DbFreeResult($res); $r = DevRoutes($devip[$rtr], $devcom[$rtr]); $row = 0; foreach (array_keys($r) as $dst) { if ($row % 2) { $bg = $bga; $bi = $bia; } else { $bg = $bgb; $bi = $bib; } $row++; $if = $ina[$r[$dst]['ifx']] . " (" . $ial[$r[$dst]['ifx']] . " " . $icm[$r[$dst]['ifx']] . ")"; $spd = ZFix($isp[$r[$dst]['ifx']]); $rpimg = RteProto($r[$dst]['pro']); list($pfix, $msk, $bmsk) = Masker($r[$dst]['msk']); list($ifimg, $iftit) = Iftype($ity[$r[$dst]['ifx']]); list($ntimg, $ntit) = Nettype($dst); echo "<tr bgcolor=#{$bg}>"; echo "<td bgcolor={$bi} width=20 align=center><img src=img/16/{$ntimg} title={$ntit}></td>\n"; echo "<td>{$dst}/{$pfix}</td><td>" . $r[$dst]['nho'] . "</td><td><img src=img/{$ifimg} title={$iftit} hspace=4> {$if}</td>\n"; echo "<td align=right>{$spd}</td><td align=center>" . $r[$dst]['me1'] . "</td>\n"; echo "<td><img src=img/16/{$rpimg}.png>" . $r[$dst]['pro'] . "</td><td align=right>" . $r[$dst]['age'] . "</td>\n"; echo "</tr>\n"; } echo "</table><table bgcolor=#666666 {$tabtag} >\n"; echo "<tr bgcolor=#{$bg2}><td>{$row} results using {$query}</td></tr></table>\n"; } include_once "inc/footer.php"; //===================================================================