';
/* 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[1209600] = __('Last week');
$intervals[2419200] = "15 ".__('days');
$intervals[4838400] = __('Last month');
$intervals[9676800] = "2 ".__('months');
$intervals[29030400] = "6 ".__('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->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', '', '', '', 0, true, false, false); // Dont want to be sorted !
$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') . '
' . __("Type two chars at least for search") . '';
// $table->data[5][1] = print_select ($agents, 'agent', '', '', '--', 0, true);
$table->data[5][1] = print_input_text_extended ('agent', '', 'text-agent', '', 30, 100, false, '',
array('style' => 'background: url(images/lightning.png) no-repeat right;'), true);
$table->data[6][0] = __('Module');
$table->data[6][1] = print_select (array (), 'module', '', '', __('Any'), 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 '