';
/* Layout_data editor form */
$intervals = array ();
$intervals[1] = lang_string ('Hour');
$intervals[2] = "2 ".lang_string ('Hours');
$intervals[3] = "3 ".lang_string ('Hours');
$intervals[6] = "6 ".lang_string ('Hours');
$intervals[12] = "12 ".lang_string ('Hours');
$intervals[24] = lang_string ('Last day');
$intervals[48] = "2 ". lang_string ('days');
$intervals[168] = lang_string ('Last week');
$intervals[360] = lang_string ('15 days');
$intervals[720] = lang_string ('Last Month');
$intervals[1440] = lang_string ('Two Months');
$intervals[4320] = lang_string ('Six Months');
$all_agents = get_agents_in_group ($id_group);
$agents = array ();
foreach ($all_agents as $agent) {
$agents[$agent['id_agente']] = $agent['nombre'];
}
asort ($agents);
echo '
';
echo '
'.lang_string ('Map element editor').'
';
echo lang_string ('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] = lang_string ('label');
$table->data[0][1] = print_input_text ('label', '', '', 20, 200, true);
$table->data[1][0] = lang_string ('label_color');
$table->data[1][1] = print_input_text ('label_color', '#000000', '', 7, 7, true);
$table->data[2][0] = lang_string ('type');
$table->data[2][1] = print_select (get_layout_data_types (), 'type', '', '', '', '', true);
$table->data[3][0] = lang_string ('height');
$table->data[3][1] = print_input_text ('height', '', '', 5, 5, true);
$table->data[4][0] = lang_string ('width');
$table->data[4][1] = print_input_text ('width', '', '', 5, 5, true);
$table->data[5][0] = lang_string ('agent');
$table->data[5][1] = print_select ($agents, 'agent', '', '', '--', 0, true);
$table->data[6][0] = lang_string ('module');
$table->data[6][1] = print_select (array (), 'module', '', '', '--', 0, true);
$table->data[7][0] = lang_string ('period');
$table->data[7][1] = print_select ($intervals, 'period', '', '', '--', 0, true);
$table->data[8][0] = lang_string ('image');
$table->data[8][1] = print_select ($images_list, 'image', '', '', 'None', '', true);
$table->data[8][1] .= '
';
$table->data[9][0] = lang_string ('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] = lang_string ('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 '