ckp
[plewww.git] / planetlab / tags / nodegroups.php
index 17778b1..2e1bd0c 100644 (file)
@@ -62,18 +62,19 @@ $headers = array ( "Name"=>"string",
                   "Nodes"=>"int");
 
 # initial sort on groupname
-plc_table_start("nodegroups",$headers,0);
+$table=new PlcTable("nodegroups",$headers,0);
+$table->start();
 
 foreach ($nodegroups as $nodegroup) {
-  plc_table_row_start();
-  plc_table_cell (href(l_nodegroup($nodegroup['nodegroup_id']),$nodegroup['groupname']));
-  plc_table_cell ($nodegroup['tagname']);
-  plc_table_cell ($nodegroup['value']);
-  plc_table_cell (count($nodegroup['node_ids']));
-  plc_table_row_end();
+  $table->row_start();
+  $table->cell (href(l_nodegroup($nodegroup['nodegroup_id']),$nodegroup['groupname']));
+  $table->cell ($nodegroup['tagname']);
+  $table->cell ($nodegroup['value']);
+  $table->cell (count($nodegroup['node_ids']));
+  $table->row_end();
 }
 
-plc_table_end("nodegroups");
+$table->end();
 
 // Print footer
 include 'plc_footer.php';