Fix tree
This commit is contained in:
parent
8d27ff9350
commit
0c53ff58b2
|
@ -2439,7 +2439,13 @@ function graphic_agentaccess(
|
||||||
if ($return === true) {
|
if ($return === true) {
|
||||||
return vbar_graph($data_array, $options, 1);
|
return vbar_graph($data_array, $options, 1);
|
||||||
} else {
|
} else {
|
||||||
echo vbar_graph($data_array, $options, 1);
|
$options['generals']['pdf']['width'] = 350;
|
||||||
|
$options['generals']['pdf']['height'] = 125;
|
||||||
|
|
||||||
|
$imgbase64 = '<img src="data:image/jpg;base64,';
|
||||||
|
$imgbase64 .= vbar_graph($data_array, $options, 2);
|
||||||
|
$imgbase64 .= '" />';
|
||||||
|
return $imgbase64;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -123,11 +123,11 @@ function treeview_printModuleTable($id_module, $server_data=false, $no_head=fals
|
||||||
$row['data'] = $module_group;
|
$row['data'] = $module_group;
|
||||||
$table->data['module_group'] = $row;
|
$table->data['module_group'] = $row;
|
||||||
|
|
||||||
// Description
|
// Description.
|
||||||
$row = [];
|
$row = [];
|
||||||
$row['title'] = __('Description');
|
$row['title'] = __('Description');
|
||||||
$row['data'] = ui_print_truncate_text(
|
$row['data'] = ui_print_truncate_text(
|
||||||
$module['descripcion'];,
|
$module['descripcion'],
|
||||||
'description',
|
'description',
|
||||||
true,
|
true,
|
||||||
true,
|
true,
|
||||||
|
@ -761,21 +761,25 @@ function treeview_printTable($id_agente, $server_data=[], $no_head=false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// End of table advanced
|
// End of table advanced.
|
||||||
$table_advanced = html_print_table($table, true);
|
$table_advanced = html_print_table($table, true);
|
||||||
$table_advanced .= '<br>';
|
$table_advanced .= '<br>';
|
||||||
|
|
||||||
ui_toggle($table_advanced, __('Advanced information'));
|
ui_toggle($table_advanced, __('Advanced information'));
|
||||||
|
|
||||||
if ($config['agentaccess']) {
|
if ($config['agentaccess']) {
|
||||||
$access_graph = '<div style="width:100%; height:130px;">';
|
$access_graph = '<div style="width:100%; height:130px; text-align:center;">';
|
||||||
$access_graph .= graphic_agentaccess(
|
$access_graph .= graphic_agentaccess(
|
||||||
$id_agente,
|
$id_agente,
|
||||||
SECONDS_1DAY,
|
SECONDS_1DAY,
|
||||||
true
|
false
|
||||||
);
|
);
|
||||||
$access_graph .= '</div>';
|
$access_graph .= '</div>';
|
||||||
ui_toggle($access_graph, __('Agent access rate (24h)'));
|
|
||||||
|
ui_toggle(
|
||||||
|
$access_graph,
|
||||||
|
__('Agent access rate (24h)')
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
$events_graph = '<div style="width: 100%; height: 90px; display: flex; flex-direction: row; justify-content: center;">';
|
$events_graph = '<div style="width: 100%; height: 90px; display: flex; flex-direction: row; justify-content: center;">';
|
||||||
|
|
Loading…
Reference in New Issue