0 || $port['ifOutErrors_delta'] > 0) {
$error_img = generate_port_link($port, get_icon('error'), 'port_errors');
} else {
$error_img = "";
}
echo("
");
echo("
" . generate_port_link($port, $port['ifIndex'] . ". " . escape_html($port['port_label'])) . "
" . escape_html($port['ifAlias']) . "");
if ($port['ifAlias']) {
echo(" ");
}
unset ($break);
if ($port_details) {
foreach (dbFetchRows("SELECT * FROM `ipv4_addresses` WHERE `port_id` = ?", [$port['port_id']]) as $ip) {
echo($break . ' ' . generate_popup_link('ip', $ip['ipv4_address'] . '/' . $ip['ipv4_prefixlen'], NULL, 'small'));
$break = ",";
}
foreach (dbFetchRows("SELECT * FROM `ipv6_addresses` WHERE `port_id` = ?", [$port['port_id']]) as $ip6) {
}
{
echo($break . ' ' . generate_popup_link('ip', $ip6['ipv6_address'] . '/' . $ip6['ipv6_prefixlen'], NULL, 'small'));
$break = ",";
}
}
echo("");
$width = "120";
$height = "40";
$from = get_time('day');
echo(" | ");
echo(format_bps($port['ifInOctets_rate'] * 8) . " " . format_bps($port['ifOutOctets_rate'] * 8));
echo(" ");
$port['graph_type'] = "port_bits";
echo(generate_port_link($port, " ", $port['graph_type']));
echo(" | ");
echo("" . format_bps($port['adslAturChanCurrTxRate']) . "/" . format_bps($port['adslAtucChanCurrTxRate']));
echo(" ");
$port['graph_type'] = "port_adsl_speed";
echo(generate_port_link($port, " ", $port['graph_type']));
echo(" | ");
echo("" . format_bps($port['adslAturCurrAttainableRate']) . "/" . format_bps($port['adslAtucCurrAttainableRate']));
echo(" ");
$port['graph_type'] = "port_adsl_attainable";
echo(generate_port_link($port, " ", $port['graph_type']));
echo(" | ");
echo("" . $port['adslAturCurrAtn'] . "dB/" . $port['adslAtucCurrAtn'] . "dB");
echo(" ");
$port['graph_type'] = "port_adsl_attenuation";
echo(generate_port_link($port, " ", $port['graph_type']));
echo(" | ");
echo("" . $port['adslAturCurrSnrMgn'] . "dB/" . $port['adslAtucCurrSnrMgn'] . "dB");
echo(" ");
$port['graph_type'] = "port_adsl_snr";
echo(generate_port_link($port, " ", $port['graph_type']));
echo(" | ");
echo("" . $port['adslAturCurrOutputPwr'] . "dBm/" . $port['adslAtucCurrOutputPwr'] . "dBm");
echo(" ");
$port['graph_type'] = "port_adsl_power";
echo(generate_port_link($port, " ", $port['graph_type']));
# if ($port['ifDuplex'] != 'unknown') { echo("Duplex " . $port['ifDuplex'] . ""); } else { echo("-"); }
# echo(" | ");
# echo($port_adsl['adslLineCoding']."/".$port_adsl['adslLineType']);
# echo(" ");
# echo("Sync:".formatRates($port_adsl['adslAtucChanCurrTxRate']) . "/". formatRates($port_adsl['adslAturChanCurrTxRate']));
# echo(" ");
# echo("Max:".formatRates($port_adsl['adslAtucCurrAttainableRate']) . "/". formatRates($port_adsl['adslAturCurrAttainableRate']));
# echo(" | ");
# echo("Atten:".$port_adsl['adslAtucCurrAtn'] . "dB/". $port_adsl['adslAturCurrAtn'] . "dB");
# echo(" ");
# echo("SNR:".$port_adsl['adslAtucCurrSnrMgn'] . "dB/". $port_adsl['adslAturCurrSnrMgn']. "dB");
echo(" | ");
// EOF