require_once 'plc_minitabs.php';
require_once 'plc_tables.php';
require_once 'plc_details.php';
-//require_once 'plc_forms.php';
-//require_once 'plc_peers.php';
// --------------------
// recognized URL arguments
drupal_set_title("Details for node group " . $nodegroup['groupname']);
plc_tabs($tabs);
-plc_details_start();
-plc_details_line ("Node group name",$nodegroup['groupname']);
-plc_details_line ("Based on tag",href(l_tag($nodegroup['tag_type_id']),$tagname));
-plc_details_line("Matching value",$nodegroup['value']);
-plc_details_line("# nodes",count($nodegroup['node_ids']));
-plc_details_end();
+$details=new PlcDetails(false);
+$details->start();
+$details->line ("Node group name",$nodegroup['groupname']);
+$details->line ("Based on tag",href(l_tag($nodegroup['tag_type_id']),$tagname));
+$details->line("Matching value",$nodegroup['value']);
+$details->line("# nodes",count($nodegroup['node_ids']));
+$details->end();
// xxx : add & delete buttons would make sense here too
plc_section("Nodes");
$headers["Hostname"]="string";
-plc_table_start("nodegroup_nodes",$headers,0,array('search_width'=>15));
+$table = new PlcTable("nodegroup_nodes",$headers,0,array('search_width'=>15));
+$table->start();
if ($nodes) foreach ($nodes as $node) {
- plc_table_row_start ();
- plc_table_cell ( href (l_node ($node['node_id']),$node['hostname']));
- plc_table_row_end ();
+ $table->row_start ();
+ $table->cell ( href (l_node ($node['node_id']),$node['hostname']));
+ $table->row_end ();
}
-plc_table_end ("nodegroup_nodes");
+$table->end ();
// Print footer
include 'plc_footer.php';