';
/* Layout_data editor form */
$intervals = array ();
$intervals[1] = __('Hour');
$intervals[2] = "2 ".__('Hours');
$intervals[3] = "3 ".__('Hours');
$intervals[6] = "6 ".__('Hours');
$intervals[12] = "12 ".__('Hours');
$intervals[24] = __('Last day');
$intervals[48] = "2 ". __('days');
$intervals[168] = __('Last week');
$intervals[360] = __('15 days');
$intervals[720] = __('Last Month');
$intervals[1440] = __('Two Months');
$intervals[4320] = __('Six Months');
$agents = get_group_agents ($id_group);
echo '
';
echo '
'.__('Map element editor').'
';
echo __('Drag an element here to edit the properties');
$table->data = array ();
$table->id = 'table_layout_data';
$table->rowstyle = array ();
$table->rowstyle[3] = 'display: none';
$table->rowstyle[4] = 'display: none';
$table->data[0][0] = __('Label');
$table->data[0][1] = print_input_text ('label', '', '', 20, 200, true);
$table->data[1][0] = __('Label color');
$table->data[1][1] = print_input_text ('label_color', '#000000', '', 7, 7, true);
$table->data[2][0] = __('Type');
$table->data[2][1] = print_select (get_layout_data_types (), 'type', '', '', '', '', true);
$table->data[3][0] = __('Height');
$table->data[3][1] = print_input_text ('height', '', '', 5, 5, true);
$table->data[4][0] = __('Width');
$table->data[4][1] = print_input_text ('width', '', '', 5, 5, true);
$table->data[5][0] = __('Agent');
$table->data[5][1] = print_select ($agents, 'agent', '', '', '--', 0, true);
$table->data[6][0] = __('Module');
$table->data[6][1] = print_select (array (), 'module', '', '', '--', 0, true);
$table->data[7][0] = __('Period');
$table->data[7][1] = print_select ($intervals, 'period', '', '', '--', 0, true);
$table->data[8][0] = __('Image');
$table->data[8][1] = print_select ($images_list, 'image', '', '', 'None', '', true);
$table->data[8][1] .= '
';
$table->data[9][0] = __('Parent');
$table->data[9][1] = print_select_from_sql ('SELECT id, label FROM tlayout_data WHERE id_layout = '.$id_layout,
'parent_item', '', '', 'None', '', true);
$table->data[10][0] = __('Map linked');
$table->data[10][1] = print_select_from_sql ('SELECT id, name FROM tlayout WHERE id != '.$id_layout,
'map_linked', '', '', 'None', '', true);
echo '
';
echo '