2014-03-06 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_visual_map.php, operation/visual_console/render_view.php: cleaned source code style. * include/functions_reporting.php: fixed the legend for the graphs into the topn element report. Incident: #597 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9521 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
35ac022587
commit
32a95a211a
|
@ -1,3 +1,13 @@
|
|||
2014-03-06 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* include/functions_visual_map.php,
|
||||
operation/visual_console/render_view.php: cleaned source code style.
|
||||
|
||||
* include/functions_reporting.php: fixed the legend for the graphs
|
||||
into the topn element report.
|
||||
|
||||
Incident: #597
|
||||
|
||||
2014-03-06 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* operation/agentes/snapshot_view.php: fixed the lost scrollbars.
|
||||
|
|
|
@ -5100,6 +5100,33 @@ function reporting_render_report_html_item ($content, $table, $report, $mini = f
|
|||
' - ' .
|
||||
ui_print_truncate_text($module_name[$i], $truncate_size, false, true, false, "...");
|
||||
|
||||
|
||||
|
||||
//Dirty hack, maybe I am going to apply a job in Apple
|
||||
//https://www.imperialviolet.org/2014/02/22/applebug.html
|
||||
$item_name_key_pie = $item_name;
|
||||
$exist_key = true;
|
||||
while ($exist_key) {
|
||||
if (isset($data_pie_graph[$item_name_key_pie])) {
|
||||
$item_name_key_pie .= ' ';
|
||||
}
|
||||
else {
|
||||
$exist_key = false;
|
||||
}
|
||||
}
|
||||
$item_name_key_hbar = $item_name;
|
||||
$exist_key = true;
|
||||
while ($exist_key) {
|
||||
if (isset($data_hbar[$item_name_key_hbar])) {
|
||||
$item_name_key_hbar = ' ' . $item_name_key_hbar;
|
||||
}
|
||||
else {
|
||||
$exist_key = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
$data_hbar[$item_name]['g'] = $dt;
|
||||
$data_pie_graph[$item_name] = $dt;
|
||||
|
||||
|
@ -5122,9 +5149,38 @@ function reporting_render_report_html_item ($content, $table, $report, $mini = f
|
|||
foreach ($agent_name as $an) {
|
||||
$item_name = '';
|
||||
$item_name =
|
||||
ui_print_truncate_text($agent_name[$i], $truncate_size, false, true, false, "...") .
|
||||
ui_print_truncate_text($agent_name[$i],
|
||||
$truncate_size, false, true, false, "...") .
|
||||
' - ' .
|
||||
ui_print_truncate_text($module_name[$i], $truncate_size, false, true, false, "...");
|
||||
ui_print_truncate_text($module_name[$i],
|
||||
$truncate_size, false, true, false, "...");
|
||||
|
||||
|
||||
|
||||
//Dirty hack, maybe I am going to apply a job in Apple
|
||||
//https://www.imperialviolet.org/2014/02/22/applebug.html
|
||||
$item_name_key_pie = $item_name;
|
||||
$exist_key = true;
|
||||
while ($exist_key) {
|
||||
if (isset($data_pie_graph[$item_name_key_pie])) {
|
||||
$item_name_key_pie .= ' ';
|
||||
}
|
||||
else {
|
||||
$exist_key = false;
|
||||
}
|
||||
}
|
||||
$item_name_key_hbar = $item_name;
|
||||
$exist_key = true;
|
||||
while ($exist_key) {
|
||||
if (isset($data_hbar[$item_name_key_hbar])) {
|
||||
$item_name_key_hbar = ' ' . $item_name_key_hbar;
|
||||
}
|
||||
else {
|
||||
$exist_key = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
$data_pie_graph[$item_name] = $data_top[$i];
|
||||
$data_hbar[$item_name]['g'] = $data_top[$i];
|
||||
|
|
|
@ -1014,11 +1014,12 @@ function visual_map_print_visual_map ($id_layout, $show_links = true, $draw_line
|
|||
$layout_data_parent = db_get_row_filter('tlayout_data',
|
||||
array('id' => $layout_data["parent_item"]));
|
||||
|
||||
$status_parent = visual_map_get_status_element($layout_data_parent);
|
||||
$status_parent =
|
||||
visual_map_get_status_element($layout_data_parent);
|
||||
|
||||
$line['id'] = $layout_data['id'];
|
||||
$line['node_begin'] = 'layout-data-'.$layout_data["parent_item"];
|
||||
$line['node_end'] = 'layout-data-'.$layout_data["id"];
|
||||
$line['node_begin'] = 'layout-data-' . $layout_data["parent_item"];
|
||||
$line['node_end'] = 'layout-data-' . $layout_data["id"];
|
||||
switch ($status_parent) {
|
||||
default:
|
||||
case VISUAL_MAP_STATUS_UNKNOWN:
|
||||
|
@ -1038,8 +1039,6 @@ function visual_map_print_visual_map ($id_layout, $show_links = true, $draw_line
|
|||
array_push ($lines, $line);
|
||||
}
|
||||
|
||||
|
||||
|
||||
// *************************************************************
|
||||
// Get STATUS of current object
|
||||
// *************************************************************
|
||||
|
|
|
@ -183,20 +183,19 @@ if ($config["pure"]) {
|
|||
?>
|
||||
t = new Date();
|
||||
t.setTime (t.getTime() + <?php echo $refr * 1000; ?>);
|
||||
$("#countdown").countdown(
|
||||
{
|
||||
$("#countdown").countdown({
|
||||
until: t,
|
||||
format: 'MS',
|
||||
description: '<?php echo __('Until refresh'); ?>',
|
||||
onExpiry: function () {
|
||||
href = "<?php
|
||||
$url = ui_get_full_url();
|
||||
$url = preg_replace("/&refr=.*&/", "&", $url);
|
||||
echo $url;
|
||||
?>";
|
||||
href = href + "&refr=<?php echo $refr;?>";
|
||||
$(document).attr ("location", href);
|
||||
}
|
||||
href = "<?php
|
||||
$url = ui_get_full_url();
|
||||
$url = preg_replace("/&refr=.*&/", "&", $url);
|
||||
echo $url;
|
||||
?>";
|
||||
href = href + "&refr=<?php echo $refr;?>";
|
||||
$(document).attr ("location", href);
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue