2012-03-13 Juan Manuel Ramon <juanmanuel.ramon@artica.es>

* include/functions_graph.php: Removed legend in 
	graphic_module_events function due to attachment overload.
	* include/functions_agents.php: Non-init count was bad because 
	normal modules are counted too.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5753 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
juanmanuelr 2012-03-13 11:29:13 +00:00
parent 6a566fd1da
commit 2d43f001f8
3 changed files with 8 additions and 29 deletions

View File

@ -1,3 +1,10 @@
2012-03-13 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/functions_graph.php: Removed legend in
graphic_module_events function due to attachment overload.
* include/functions_agents.php: Non-init count was bad because
normal modules are counted too.
2012-03-12 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_visual_map.php: refixed again, removed the old method

View File

@ -400,7 +400,7 @@ function agents_get_agents ($filter = false, $fields = false, $access = 'AR', $o
// Not init
case 5:
$status_sql = "id_agente NOT IN ($warning_modules) &&
id_agente NOT IN ($critical_modules) && id_agente NOT IN ($unknown_modules)";
id_agente NOT IN ($critical_modules) && id_agente NOT IN ($unknown_modules) && id_agente NOT IN ($normal_modules)";
break;
}

View File

@ -2892,35 +2892,7 @@ function graphic_module_events ($id_module, $width, $height, $period = 0, $homeu
}
else {
echo slicesbar_graph($data, $period, $width, 15, $colors, $config['fontpath'], $config['round_corner'], $homeurl);
// Draw legend
echo "<br>";
if(!$config['flash_charts']) {
// Draw legend
echo "<br>";
//echo "<div id='legend' style='overflow:hidden;'";
$count = 0;
foreach ($legend as $name => $value) {
$file_name = string2image(ui_print_truncate_text($value, 15, false, true, false, '...'), 115, 13, 2, 270, '#FFFFFF', '#696969', 4, 0);
if (($step >= 1) && ($count++ % $step == 0)) {
if ($zoom == 1)
echo "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
elseif ($zoom == 2)
echo "&nbsp;&nbsp;";
elseif ($zoom == 3)
echo "&nbsp;&nbsp;";
elseif ($zoom == 4)
echo "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
echo html_print_image($file_name, true, array('title' => $value));
}
}
}
}
//echo "</div>";
}
?>