mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
#8105 Fixed list of elements
This commit is contained in:
parent
9d813b729e
commit
4579d2b8c6
@ -204,6 +204,15 @@ foreach ($layoutDatas as $layoutData) {
|
|||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case CIRCULAR_INTERIOR_PROGRESS_BAR:
|
||||||
|
case CIRCULAR_PROGRESS_BAR:
|
||||||
|
$table->data[($i + 1)]['icon'] = html_print_image(
|
||||||
|
'images/percentile_item.png',
|
||||||
|
true,
|
||||||
|
['title' => __('Percentile')]
|
||||||
|
);
|
||||||
|
break;
|
||||||
|
|
||||||
case MODULE_GRAPH:
|
case MODULE_GRAPH:
|
||||||
$table->data[($i + 1)]['icon'] = html_print_image(
|
$table->data[($i + 1)]['icon'] = html_print_image(
|
||||||
'images/chart_curve.png',
|
'images/chart_curve.png',
|
||||||
@ -325,6 +334,30 @@ foreach ($layoutDatas as $layoutData) {
|
|||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case BASIC_CHART:
|
||||||
|
$table->data[($i + 1)]['icon'] = html_print_image(
|
||||||
|
'images/basic_chart.png',
|
||||||
|
true,
|
||||||
|
['title' => __('Basic chart')]
|
||||||
|
);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case ODOMETER:
|
||||||
|
$table->data[($i + 1)]['icon'] = html_print_image(
|
||||||
|
'images/odometer.png',
|
||||||
|
true,
|
||||||
|
['title' => __('Odometer')]
|
||||||
|
);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case CLOCK:
|
||||||
|
$table->data[($i + 1)]['icon'] = html_print_image(
|
||||||
|
'images/clock-tab.png',
|
||||||
|
true,
|
||||||
|
['title' => __('Clock')]
|
||||||
|
);
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
if (enterprise_installed()) {
|
if (enterprise_installed()) {
|
||||||
$table->data[($i + 1)]['icon'] = enterprise_visual_map_print_list_element('icon', $layoutData);
|
$table->data[($i + 1)]['icon'] = enterprise_visual_map_print_list_element('icon', $layoutData);
|
||||||
@ -394,6 +427,13 @@ foreach ($layoutDatas as $layoutData) {
|
|||||||
$table->data[($i + 1)][2] = html_print_input_text('width_'.$idLayoutData, $layoutData['width'], '', 2, 5, true).' x '.html_print_input_text('height_'.$idLayoutData, $layoutData['width'], '', 2, 5, true);
|
$table->data[($i + 1)][2] = html_print_input_text('width_'.$idLayoutData, $layoutData['width'], '', 2, 5, true).' x '.html_print_input_text('height_'.$idLayoutData, $layoutData['width'], '', 2, 5, true);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case CIRCULAR_PROGRESS_BAR:
|
||||||
|
case CIRCULAR_INTERIOR_PROGRESS_BAR:
|
||||||
|
case PERCENTILE_BUBBLE:
|
||||||
|
case PERCENTILE_BAR:
|
||||||
|
$table->data[($i + 1)][2] = html_print_input_text('width_'.$idLayoutData, $layoutData['width'], '', 2, 5, true);
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
$table->data[($i + 1)][2] = html_print_input_text('width_'.$idLayoutData, $layoutData['width'], '', 2, 5, true).' x '.html_print_input_text('height_'.$idLayoutData, $layoutData['height'], '', 2, 5, true);
|
$table->data[($i + 1)][2] = html_print_input_text('width_'.$idLayoutData, $layoutData['width'], '', 2, 5, true).' x '.html_print_input_text('height_'.$idLayoutData, $layoutData['height'], '', 2, 5, true);
|
||||||
break;
|
break;
|
||||||
@ -478,6 +518,7 @@ foreach ($layoutDatas as $layoutData) {
|
|||||||
case LABEL:
|
case LABEL:
|
||||||
case NETWORK_LINK:
|
case NETWORK_LINK:
|
||||||
case LINE_ITEM:
|
case LINE_ITEM:
|
||||||
|
case CLOCK:
|
||||||
$table->data[($i + 2)][0] = '';
|
$table->data[($i + 2)][0] = '';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -520,7 +561,7 @@ foreach ($layoutDatas as $layoutData) {
|
|||||||
$params['value'] = db_get_value('alias', 'tagente', 'id_agente', $layoutData['id_agent']);
|
$params['value'] = db_get_value('alias', 'tagente', 'id_agente', $layoutData['id_agent']);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($layoutData['id_agent'] == 0 and $layoutData['id_custom_graph'] != 0) {
|
if ($layoutData['id_custom_graph'] != 0) {
|
||||||
$table->data[($i + 2)][0] = __('Custom graph');
|
$table->data[($i + 2)][0] = __('Custom graph');
|
||||||
} else {
|
} else {
|
||||||
$table->data[($i + 2)][0] = ui_print_agent_autocomplete_input($params);
|
$table->data[($i + 2)][0] = ui_print_agent_autocomplete_input($params);
|
||||||
@ -540,6 +581,7 @@ foreach ($layoutDatas as $layoutData) {
|
|||||||
case NETWORK_LINK:
|
case NETWORK_LINK:
|
||||||
case LINE_ITEM:
|
case LINE_ITEM:
|
||||||
case GROUP_ITEM:
|
case GROUP_ITEM:
|
||||||
|
case CLOCK:
|
||||||
$table->data[($i + 2)][1] = '';
|
$table->data[($i + 2)][1] = '';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -569,7 +611,7 @@ foreach ($layoutDatas as $layoutData) {
|
|||||||
|
|
||||||
$modules = io_safe_output($modules);
|
$modules = io_safe_output($modules);
|
||||||
|
|
||||||
if ($layoutData['id_agent'] == 0 and $layoutData['id_custom_graph'] != 0) {
|
if ($layoutData['id_custom_graph'] != 0) {
|
||||||
if (is_metaconsole()) {
|
if (is_metaconsole()) {
|
||||||
$graphs = [];
|
$graphs = [];
|
||||||
$graphs = metaconsole_get_custom_graphs(true);
|
$graphs = metaconsole_get_custom_graphs(true);
|
||||||
|
@ -460,7 +460,13 @@ switch ($activeTab) {
|
|||||||
|
|
||||||
case GROUP_ITEM:
|
case GROUP_ITEM:
|
||||||
$values['id_group'] = get_parameter('group_'.$id, 0);
|
$values['id_group'] = get_parameter('group_'.$id, 0);
|
||||||
$values['show_statistics'] = get_parameter('show_statistics', 0);
|
break;
|
||||||
|
|
||||||
|
case CIRCULAR_PROGRESS_BAR:
|
||||||
|
case CIRCULAR_INTERIOR_PROGRESS_BAR:
|
||||||
|
case PERCENTILE_BUBBLE:
|
||||||
|
case PERCENTILE_BAR:
|
||||||
|
unset($values['height']);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user