Basic | Details | ARP Table | ADSL | Graphs: "); $graph_types = array("bits" => "Bits", "upkts" => "Unicast Packets", "nupkts" => "Non-Unicast Packets", "errors" => "Errors", "etherlike" => "Etherlike"); foreach ($graph_types as $type => $descr) { echo("$type_sep $descr (Mini) "); $type_sep = " | "; } print_optionbar_end(); if ($_GET['optc'] == thumbs) { $timeperiods = array('-1day','-1week','-1month','-1year'); $from = '-1day'; echo("
"); $sql = "select * from ports WHERE device_id = '".$device['device_id']."' ORDER BY ifIndex"; $query = mysql_query($sql); unset ($seperator); while ($interface = mysql_fetch_assoc($query)) { echo("
".makeshortif($interface['ifDescr'])."
".$device['hostname']." - ".$interface['ifDescr']."
\ ".$interface['ifAlias']." \ \ ', CENTER, LEFT, FGCOLOR, '#e5e5e5', BGCOLOR, '#e5e5e5', WIDTH, 400, HEIGHT, 150);\" onmouseout=\"return nd();\" >". "
".truncate(short_port_descr($interface['ifAlias']), 32, '')."
"); } echo(""); } else { if ($_GET['opta'] == "arp") { include("arp.inc.php"); } elseif ($_GET['opta'] == "adsl") { echo("
"); echo(""); $i = "0"; $interface_query = mysql_query("select * from `ports` AS P, `ports_adsl` AS A WHERE P.device_id = '".$device['device_id']."' AND A.interface_id = P.interface_id AND P.deleted = '0' ORDER BY `ifIndex` ASC"); while ($interface = mysql_fetch_assoc($interface_query)) { include("includes/print-interface-adsl.inc.php"); $i++; } echo("
PortTrafficSync SpeedAttainable SpeedAttenuationSNR MarginOutput Powers
"); echo("
"); } else { if ($_GET['opta'] == "details") { $port_details = 1; } echo("
"); $i = "1"; $interface_query = mysql_query("select * from ports WHERE device_id = '".$device['device_id']."' AND deleted = '0' ORDER BY `ifIndex` ASC"); while ($interface = mysql_fetch_assoc($interface_query)) { include("includes/print-interface.inc.php"); $i++; } echo("
"); echo("
"); } } ?>