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 if ($type == ITEM_TYPE_MODULE_NETWORKMAP) {
$node_name = db_get_value('nombre', 'tagente_modulo', 'id_agente_modulo', $id_node_data);
$table->head['type'] = __('Module');
}
else if ($type == ITEM_TYPE_GROUP_NETWORKMAP) {
$node_name = db_get_value('nombre', 'tgrupo', 'id_grupo', $id_node_data);
$table->head['type'] = __('Group');
}
else if ($type == ITEM_TYPE_POLICY_NETWORKMAP) {
$node_name = db_get_value('name', 'tpolicies', 'id', $id_node_data);
$table->head['type'] = __('Policy');
}
$table->head['name'] = $node_name;
$table->data = array();
$table->data[0][0] = __('Label');
$table->data[0][1] = html_print_input_text('label',
$node_label, '', 12, 255, true);
$table->data[1][0] = __('Shape');
$table->data[1][1] = html_print_select(array(
'circle' => __('Circle'),
'square' => __('Square'),
'rhombus' => __('Rhombus')), 'shape', $node_shape, '', '', 0, true);
html_print_table($table);
echo '
';
echo html_print_button(__('Update'), 'upd', false, '') .
ui_print_help_tip (__('This function is only fix in Enterprise version'));
echo '
';
?>