'; if(isset($stats['policies'])) { $summary .= count($stats['policies'])." x ".html_print_image('images/policies.png',true).' '.__('Policies')."
"; } if(isset($stats['groups'])) { // TODO: GET STATUS OF THE GROUPS AND ADD IT TO SUMMARY $summary .= count($stats['groups'])." x ".html_print_image('images/group.png',true).' '.__('Groups')."
"; } if(isset($stats['agents'])) { $summary .= count($stats['agents'])." x ".html_print_image('images/bricks.png',true).' '.__('Agents')."
"; // TODO: GET STATUS OF THE AGENTS AND ADD IT TO SUMMARY //~ $status_agents = array(); //~ foreach($stats['agents'] as $id_agent) { //~ $st = agents_get_status($id_agent); //~ if(!isset($status_agents[$st])) { //~ $status_agents[$st] = 0; //~ } //~ $status_agents[$st] ++; //~ } } if(isset($stats['modules'])) { // TODO: GET STATUS OF THE MODULES AND ADD IT TO SUMMARY $summary .= count($stats['modules'])." x ".html_print_image('images/brick.png',true).' '.__('Modules')."
"; } echo '

'.__('Map summary').'

'.$summary.''; break; } ?>