split in two
[plewww.git] / planetlab / tags / nodegroup.php
index b4d20eb..30a6d51 100644 (file)
@@ -15,9 +15,10 @@ include 'plc_header.php';
 
 // Common functions
 require_once 'plc_functions.php';
-require_once 'plc_minitabs.php';
-require_once 'plc_tables.php';
-require_once 'plc_details.php';
+require_once 'linetabs.php';
+require_once 'table.php';
+require_once 'details.php';
+require_once 'toggle.php';
 
 // -------------------- 
 // recognized URL arguments
@@ -42,12 +43,11 @@ $node_columns = array("hostname","node_id");
 
 $nodes = $api->GetNodes( $node_ids, $node_columns);
 
-$tabs ["All nodegroups"] = array ('url'=>l_nodegroups(),
-                                 'bubble'=>'All nodegroups');
-$tabs ["All tags"] = array ('url'=>l_tags(),
-                           'bubble'=>'All tags');
-$tabs ["Local nodes"] = array ('url'=>l_nodes_peer('local'),
-                            'bubble'=>'All local nodes');
+$tabs = array();
+
+$tabs []= tab_tags();
+$tabs []= tab_nodegroups();
+$tabs []= tab_nodes_local();
 
 drupal_set_title("Details for node group " . $nodegroup['groupname']);
 plc_tabs($tabs);
@@ -61,7 +61,8 @@ $details->th_td("# nodes",count($nodegroup['node_ids']));
 $details->end();
 
 // xxx : add & delete buttons would make sense here too
-plc_section("Nodes");
+$toggle=new PlcToggle('nodes',"Nodes",array('trigger-tagname'=>'h2'));
+$toggle=>start();
 
 $headers["Hostname"]="string";
 
@@ -74,6 +75,10 @@ if ($nodes) foreach ($nodes as $node) {
 }
 
 $table->end ();
+$toggle->end();
+
+//plc_tabs ($tabs,"bottom");
+
 // Print footer
 include 'plc_footer.php';