2012-03-20 Sergio Martin <sergio.martin@artica.es>
* godmode/reporting/visual_console_builder.elements.php: Added advanced period select to the elements list in visual console git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5793 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
99a189d468
commit
e2a1aa207f
|
@ -1,3 +1,8 @@
|
||||||
|
2012-03-20 Sergio Martin <sergio.martin@artica.es>
|
||||||
|
|
||||||
|
* godmode/reporting/visual_console_builder.elements.php: Added
|
||||||
|
advanced period select to the elements list in visual console
|
||||||
|
|
||||||
2012-03-20 Sergio Martin <sergio.martin@artica.es>
|
2012-03-20 Sergio Martin <sergio.martin@artica.es>
|
||||||
|
|
||||||
* include/functions_visual_map.php
|
* include/functions_visual_map.php
|
||||||
|
|
|
@ -47,20 +47,6 @@ foreach ($all_images as $image_file) {
|
||||||
|
|
||||||
$layoutDataTypes = visual_map_get_layout_data_types();
|
$layoutDataTypes = visual_map_get_layout_data_types();
|
||||||
|
|
||||||
/* Layout_data editor form */
|
|
||||||
$intervals = array ();
|
|
||||||
$intervals[3600] = "1 ".__('hour');
|
|
||||||
$intervals[7200] = "2 ".__('hours');
|
|
||||||
$intervals[10800] = "3 ".__('hours');
|
|
||||||
$intervals[21600] = "6 ".__('hours');
|
|
||||||
$intervals[43200] = "12 ".__('hours');
|
|
||||||
$intervals[86400] = __('Last day');
|
|
||||||
$intervals[172800] = "2 ". __('days');
|
|
||||||
$intervals[604800] = __('Last week');
|
|
||||||
$intervals[1209600] = "14 ".__('days');
|
|
||||||
$intervals[2592000] = __('Last month');
|
|
||||||
$intervals[5184000] = "2 ".__('months');
|
|
||||||
$intervals[15552000] = "6 ".__('months');
|
|
||||||
|
|
||||||
$table->width = '100%';
|
$table->width = '100%';
|
||||||
$table->head = array ();
|
$table->head = array ();
|
||||||
|
@ -197,7 +183,7 @@ foreach ($layoutDatas as $layoutData) {
|
||||||
|
|
||||||
//Period
|
//Period
|
||||||
if ($layoutData['type'] == MODULE_GRAPH) {
|
if ($layoutData['type'] == MODULE_GRAPH) {
|
||||||
$table->data[$i + 2][3] = html_print_select ($intervals, 'period_' . $idLayoutData, $layoutData['period'], '', '--', 0, true);
|
$table->data[$i + 2][3] = html_print_extended_select_for_time ('period_' . $idLayoutData, $layoutData['period'], '', '--', '0', 10, true);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$table->data[$i + 2][3] = '';
|
$table->data[$i + 2][3] = '';
|
||||||
|
|
Loading…
Reference in New Issue