2010-11-05 Sergio Martin <sergio.martin@artica.es>
* include/fgraph.php: Fixed event graphs by user for bug 3102830 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3532 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
50030435e5
commit
4f14f41206
pandora_console
|
@ -1,3 +1,8 @@
|
||||||
|
2010-11-05 Sergio Martin <sergio.martin@artica.es>
|
||||||
|
|
||||||
|
* include/fgraph.php: Fixed event graphs by user for
|
||||||
|
bug 3102830
|
||||||
|
|
||||||
2010-11-04 Ramon Novoa <rnovoa@artica.es>
|
2010-11-04 Ramon Novoa <rnovoa@artica.es>
|
||||||
|
|
||||||
* include/functions_ui.php: Check that the alert has a 'standby' column
|
* include/functions_ui.php: Check that the alert has a 'standby' column
|
||||||
|
|
|
@ -893,19 +893,20 @@ function grafico_eventos_usuario ($width, $height) {
|
||||||
|
|
||||||
$data = array ();
|
$data = array ();
|
||||||
$max_items = 5;
|
$max_items = 5;
|
||||||
$sql = sprintf ('SELECT COUNT(id_evento),id_usuario
|
$sql = sprintf ('SELECT COUNT(id_evento) events,id_usuario
|
||||||
FROM tevento GROUP BY id_usuario
|
FROM tevento GROUP BY id_usuario
|
||||||
ORDER BY 1 DESC LIMIT %d', $max_items);
|
ORDER BY 1 DESC LIMIT %d', $max_items);
|
||||||
$events = get_db_all_rows_sql ($sql);
|
$events = get_db_all_rows_sql ($sql);
|
||||||
|
|
||||||
foreach ($events as $event) {
|
foreach ($events as $event) {
|
||||||
$data[$event[1]] = $event[0];
|
$data['id_usuario'] = $event['events'];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! $graphic_type) {
|
if (! $graphic_type) {
|
||||||
return fs_3d_pie_chart ($data, $width, $height);
|
return fs_3d_pie_chart ($data, $width, $height);
|
||||||
}
|
}
|
||||||
|
|
||||||
generic_pie_graph ($width, $height, $data);
|
//generic_pie_graph ($width, $height, $data);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue