'device', 'device' => $device['device_id'], 'tab' => 'loadbalancer'); ## Cisco ACE $type_text['loadbalancer_rservers'] = "Rservers"; $type_text['loadbalancer_vservers'] = "Serverfarms"; ## Citrix Netscaler $type_text['netscaler_vsvr'] = "VServers"; print_optionbar_start(); $pagetitle[] = "Load Balancer"; echo("Load Balancer » "); unset($sep); foreach ($loadbalancer_tabs as $type) { if (!$vars['type']) { $vars['type'] = $type; } echo($sep); if ($vars['type'] == $type) { echo(''); } echo(generate_link($type_text[$type] ." (".$device_loadbalancer_count[$type].")",$link_array,array('type'=>$type))); if ($vars['type'] == $type) { echo(""); } $sep = " | "; } print_optionbar_end(); if (is_file("pages/device/loadbalancer/".mres($vars['type']).".inc.php")) { include("pages/device/loadbalancer/".mres($vars['type']).".inc.php"); } else { foreach ($loadbalancer_tabs as $type) { if ($type != "overview") { if (is_file("pages/device/loadbalancer/overview/".mres($type).".inc.php")) { $g_i++; if (!is_integer($g_i/2)) { $row_colour = $list_colour_a; } else { $row_colour = $list_colour_b; } echo('
'); echo('
'.$type_text[$type].''); include("pages/device/loadbalancer/overview/".mres($type).".inc.php"); echo('
'); echo('
'); } else { $graph_title = $type_text[$type]; $graph_type = "device_".$type; include("includes/print-device-graph.php"); } } } } ?>