$status,
'color' => $color);
}
echo json_encode($return);
return;
}
if ($getNodeData) {
$id_node_data = (int)get_parameter('id_node_data');
$type = (int)get_parameter('type');
$id_map = (int)get_parameter('id_map');
$data_graph_id = (int)get_parameter('data_graph_id');
$node_id = get_parameter('node_id');
ob_start();
?>
id = 'node_options_' . $node_id;
$table->width = "100%";
$table->head = array();
$node_name = __('No name');
if ($type == ITEM_TYPE_AGENT_NETWORKMAP) {
$node_name = agents_get_name($id_node_data);
$table->head['type'] = __('Agent');
}
else {
$node_name = db_get_all_rows_sql("SELECT nombre
FROM tagente_modulo
WHERE id_agente_modulo = " . $id_node_data);
$node_name = $node_name[0];
$table->head['type'] = __('Module');
}
$table->head['name'] = $node_name;
$node = db_get_all_rows_sql("SELECT style FROM titem WHERE id = " . $id_node_data);
$node = $node[0];
$node_style = json_decode($node);
$table->data = array();
$table->data[0][0] = __('Label');
$table->data[0][1] = html_print_input_text('label',
$node_style['label'], '', 5, 10, true);
$table->data[3][0] = __('Shape');
$table->data[3][1] = html_print_select(array(
'circle' => __('Circle'),
'square' => __('Square'),
'rhombus' => __('Rhombus')), 'shape', '',
'javascript:', '', 0, true) . ' ' .
'' .
html_print_image('images/spinner.gif', true) . '' .
'' .
html_print_image('images/dot_green.png', true) . '' .
'' .
html_print_image('images/dot_red.png', true) . '';
ui_toggle(html_print_table($table, true), __('Node options'),
__('Node options'), true);
?>
id = 'map_options';
$table->width = "100%";
$table->head = array();
$table->head['name'] = __('Nombre del mapa');
$table->head['type'] = __('Tipo del mapa');
$table->data = array();
$table->data[0][0] = __('Capo1');
$table->data[0][1] = __('Capo2');
$table->data[1][0] = __('Capo1');
$table->data[1][1] = __('Capo2');
$table->data[2][0] = __('Capo1');
$table->data[2][1] = __('Capo2');
ui_toggle(html_print_table($table, true), __('Map options'),
__('Map options'), true);
?>