- id = 'node_details';
- $table->width = '100%';
-
- $table->data = [];
- $table->data[0][0] = '
'.__('Agent').'';
- $table->data[0][1] = '';
- $table->data[1][0] = '
'.__('Adresses').'';
- $table->data[1][1] = '';
- $table->data[2][0] = '
'.__('OS type').'';
- $table->data[2][1] = '';
- $table->data[3][0] = '
'.__('Group').'';
- $table->data[3][1] = '';
-
- ui_toggle(
- html_print_table($table, true),
- __('Node Details'),
- __('Node Details'),
- false
- );
-
- $table = new stdClass();
- $table->id = 'interface_information';
- $table->width = '100%';
-
- $table->head['interface_name'] = __('Name');
- $table->head['interface_status'] = __('Status');
- $table->head['interface_graph'] = __('Graph');
- $table->head['interface_ip'] = __('Ip');
- $table->head['interface_mac'] = __('MAC');
- $table->data = [];
- $table->rowstyle['template_row'] = 'display: none;';
- $table->data['template_row']['interface_name'] = '';
- $table->data['template_row']['interface_status'] = '';
- $table->data['template_row']['interface_graph'] = '';
- $table->data['template_row']['interface_ip'] = '';
- $table->data['template_row']['interface_mac'] = '';
-
- ui_toggle(
- html_print_table($table, true),
- __('Interface Information (SNMP)'),
- __('Interface Information (SNMP)'),
- true
- );
-
- $table = new stdClass();
- $table->id = 'node_options';
- $table->width = '100%';
-
- $table->data = [];
- $table->data[0][0] = __('Shape');
- $table->data[0][1] = html_print_select(
- [
- 'circle' => __('Circle'),
- 'square' => __('Square'),
- 'rhombus' => __('Rhombus'),
- ],
- 'shape',
- '',
- 'javascript:',
- '',
- 0,
- true
- );
- $table->data[0][1] .= '
';
- $table->data[0][1] .= html_print_image(
- 'images/spinner.gif',
- true
- );
- $table->data[0][1] .= '';
- $table->data[0][1] .= html_print_image(
- 'images/dot_green.png',
- true
- );
- $table->data[0][1] .= '';
- $table->data[0][1] .= html_print_image(
- 'images/dot_red.png',
- true
- );
- $table->data[0][1] .= '';
-
- $table->data['node_name'][0] = __('Name');
- $table->data['node_name'][1] = html_print_input_text(
- 'edit_name_node',
- '',
- __('name node'),
- '20',
- '50',
- true
- );
- $table->data['node_name'][2] = html_print_button(
- __('Update node'),
- '',
- false,
- '',
- 'class="sub"',
- true
- );
-
- $table->data['fictional_node_name'][0] = __('Name');
- $table->data['fictional_node_name'][1] = html_print_input_text(
- 'edit_name_fictional_node',
- '',
- __('name fictional node'),
- '20',
- '50',
- true
- );
- $table->data['fictional_node_networkmap_link'][0] = __('Networkmap to link');
- $table->data['fictional_node_networkmap_link'][1] = html_print_select(
- $list_networkmaps,
- 'edit_networkmap_to_link',
- '',
- '',
- '',
- 0,
- true
- );
- $table->data['fictional_node_update_button'][0] = '';
- $table->data['fictional_node_update_button'][1] = html_print_button(
- __('Update fictional node'),
- '',
- false,
- 'add_fictional_node();',
- 'class="sub"',
- true
- );
-
- ui_toggle(
- html_print_table($table, true),
- __('Node options'),
- __('Node options'),
- true
- );
-
- $table = new stdClass();
- $table->id = 'relations_table';
- $table->width = '100%';
-
- $table->head = [];
- $table->head['node_source'] = __('Node source');
- $table->head['interface_source'] = __('Interface source');
- $table->head['interface_target'] = __('Interface Target');
-
- $table->head['node_target'] = __('Node target');
- $table->head['edit'] = '
'.__('E.').'';
-
- $table->data = [];
- $table->rowstyle['template_row'] = 'display: none;';
- $table->data['template_row']['node_source'] = '';
- $table->data['template_row']['interface_source'] = html_print_select(
- [],
- 'interface_source',
- '',
- '',
- __('None'),
- 0,
- true
- );
- $table->data['template_row']['interface_target'] = html_print_select(
- [],
- 'interface_target',
- '',
- '',
- __('None'),
- 0,
- true
- );
-
- $table->data['template_row']['node_target'] = '';
- $table->data['template_row']['edit'] = '';
-
- $table->data['template_row']['edit'] .= '
'.html_print_image('images/dot_green.png', true).''.'
'.html_print_image('images/dot_red.png', true).''.'
'.html_print_image('images/spinner.gif', true).''.'
'.html_print_image('images/config.png', true).'';
-
- $table->data['template_row']['edit'] .= '
'.html_print_image('images/delete.png', true).'';
-
- $table->colspan['no_relations']['0'] = 5;
- $table->cellstyle['no_relations']['0'] = 'text-align: center;';
- $table->data['no_relations']['0'] = __('There are not relations');
-
- $table->colspan['loading']['0'] = 5;
- $table->cellstyle['loading']['0'] = 'text-align: center;';
- $table->data['loading']['0'] = html_print_image(
- 'images/wait.gif',
- true
- );
-
- ui_toggle(
- html_print_table($table, true),
- __('Relations'),
- __('Relations'),
- true
- );
- ?>
-