- $headers['peer']='string';
- $headers['hostname']='string';
- $short="-S-"; $long=Node::status_footnote(); $type='string';
- $headers[$short]=array('type'=>$type,'title'=>$long); $notes []= "$short = $long";
- $short=reservable_mark(); $long=reservable_legend(); $type='string';
- $headers[$short]=array('type'=>$type,'title'=>$long); $notes []= "$short = $long";
- // the extra tags, configured for the UI
- $headers=array_merge($headers,$visibletags->headers());
- $headers['+']="none";
-*/
-
- $add_header = array();
- $add_header['+']="none";
- $headers = array_merge($ConfigureColumns->get_headers(),$add_header);
-
- //$notes=array_merge($notes,$visibletags->notes());
-$notes [] = "For information about the different columns please see the <b>node table layout</b> tab above or <b>mouse over</b> the column headers";
-
- $table=new PlekitTable('add_nodes',$headers,NULL, $table_options);
- $form=new PlekitForm(l_actions(),
- array('slice_id'=>$slice['slice_id']));
- $form->start();
- $table->start();
- if ($potential_nodes) foreach ($potential_nodes as $node) {
- $table->row_start();
-
-$table->cell($node['node_id'], array('display'=>'none'));
-
- $table->cell(l_node_obj($node));
- $peers->cell($table,$node['peer_id']);
- list($label,$class) = Node::status_label_class_($node);
- $table->cell ($label,array('class'=>$class));
- $table->cell( ($node['node_type']=='reservable')?reservable_mark():"" );
-
- //extra columns
- $hostname=$node['hostname'];
- $ip=$interface_hash[$node['node_id']]['ip'];
- $interface_id=$interface_hash[$node['node_id']]['interface_id'];
- $node['domain'] = topdomain($hostname);
- $node['sitename'] = l_site_t($node['site_id'],$site_hash[$node['site_id']]);
- $node['ipaddress'] = l_interface_t($interface_id,$ip);
-
- //foreach ($visiblecolumns as $tagname) $table->cell($node[$tagname]);
- $ConfigureColumns->cells($table, $node);
-
- $table->cell ($form->checkbox_html('node_ids[]',$node['node_id']));
- $table->row_end();
- }
- // add nodes
- $table->tfoot_start();
- $table->row_start();
- $table->cell($form->submit_html ("add-nodes-in-slice","Add selected"),
- array('hfill'=>true,'align'=>'right'));
- $table->row_end();
- $table->end();
- $form->end();
- }
- $toggle_nodes->end();
+$headers['peer']='string';
+$headers['hostname']='string';
+$short="-S-"; $long=Node::status_footnote(); $type='string';
+$headers[$short]=array('type'=>$type,'title'=>$long); $notes []= "$short = $long";
+$short=reservable_mark(); $long=reservable_legend(); $type='string';
+$headers[$short]=array('type'=>$type,'title'=>$long); $notes []= "$short = $long";
+// the extra tags, configured for the UI
+$headers=array_merge($headers,$visibletags->headers());
+$headers['+']="none";
+ */
+
+ $add_header = array();
+ $add_header['+'] = "none";
+ $headers = array_merge($ConfigureColumns->get_headers(), $add_header);
+
+ //$notes=array_merge($notes,$visibletags->notes());
+ $notes[] = "For information about the different columns please see the <b>node table layout</b> tab above or <b>mouse over</b> the column headers";
+
+ $table = new PlekitTable('add_nodes', $headers, null, $table_options);
+ $form = new PlekitForm(l_actions(),
+ array('slice_id' => $slice['slice_id']));
+ $form->start();
+ $table->start();
+ if ($potential_nodes) {
+ foreach ($potential_nodes as $node) {
+ $table->row_start();
+
+ $table->cell($node['node_id'], array('display' => 'none'));
+
+ $table->cell(l_node_obj($node));
+ $peers->cell($table, $node['peer_id']);
+ list($label, $class) = Node::status_label_class_($node);
+ $table->cell($label, array('class' => $class));
+ $table->cell(($node['node_type'] == 'reservable') ? reservable_mark() : "");
+
+ //extra columns
+ $hostname = $node['hostname'];
+ $ip = $interface_hash[$node['node_id']]['ip'];
+ $interface_id = $interface_hash[$node['node_id']]['interface_id'];
+ $node['domain'] = topdomain($hostname);
+ $node['sitename'] = l_site_t($node['site_id'], $site_hash[$node['site_id']]);
+ $node['ipaddress'] = l_interface_t($interface_id, $ip);
+
+ //foreach ($visiblecolumns as $tagname) $table->cell($node[$tagname]);
+ $ConfigureColumns->cells($table, $node);
+
+ $table->cell($form->checkbox_html('node_ids[]', $node['node_id']));
+ $table->row_end();
+ }
+ }
+
+ // add nodes
+ $table->tfoot_start();
+ $table->row_start();
+ $table->cell($form->submit_html("add-nodes-in-slice", "Add selected"),
+ array('hfill' => true, 'align' => 'right'));
+ $table->row_end();
+ $table->end();
+ $form->end();
+ }
+ $toggle_nodes->end();