status_rrd_graph_tabs.inc 2.05 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
<?php
    $tab_array = array();
	if($curcat == "system") { $tabactive = True; } else { $tabactive = False; }
        $tab_array[] = array(gettext("System"), $tabactive, "status_rrd_graph.php?cat=system");
	if($curcat == "traffic") { $tabactive = True; } else { $tabactive = False; }
        $tab_array[] = array(gettext("Traffic"), $tabactive, "status_rrd_graph.php?cat=traffic");
	if($curcat == "packets") { $tabactive = True; } else { $tabactive = False; }
        $tab_array[] = array(gettext("Packets"), $tabactive, "status_rrd_graph.php?cat=packets");
	if($curcat == "quality") { $tabactive = True; } else { $tabactive = False; }
        $tab_array[] = array(gettext("Quality"), $tabactive, "status_rrd_graph.php?cat=quality");
	if($wireless) {
		if($curcat == "wireless") { $tabactive = True; } else { $tabactive = False; }
	        $tab_array[] = array(gettext("Wireless"), $tabactive, "status_rrd_graph.php?cat=wireless");
	}
	if($cellular) {
		if($curcat == "cellular") { $tabactive = True; } else { $tabactive = False; }
	        $tab_array[] = array(gettext("Cellular"), $tabactive, "status_rrd_graph.php?cat=cellular");
	}
	if($vpnusers) {
		if($curcat == "vpnusers") { $tabactive = True; } else { $tabactive = False; }
	        $tab_array[] = array("VPN", $tabactive, "status_rrd_graph.php?cat=vpnusers");
	}
	if($captiveportal) {
		if($curcat == "captiveportal") { $tabactive = True; } else { $tabactive = False; }
	        $tab_array[] = array("Captive Portal", $tabactive, "status_rrd_graph.php?cat=captiveportal");
	}
	if($ntpd) {
		if($curcat == "ntpd") { $tabactive = True; } else { $tabactive = False; }
	        $tab_array[] = array("NTP", $tabactive, "status_rrd_graph.php?cat=ntpd");
	}
	if($curcat == "custom") { $tabactive = True; } else { $tabactive = False; }
        $tab_array[] = array(gettext("Custom"), $tabactive, "status_rrd_graph.php?cat=custom");
	if($curcat == "settings") { $tabactive = True; } else { $tabactive = False; }
        $tab_array[] = array(gettext("Settings"), $tabactive, "status_rrd_graph_settings.php");
        display_top_tabs($tab_array);
36
?>