l_tags(), 'bubble'=>'Lists all known tag types'); // -------------------- $node_filter=array(); // fetch objs $nodegroup_columns=array("nodegroup_id","groupname","tagname","value","node_ids"); // server-side filtering - set pattern in $_GET for filtering on hostname if ($pattern) { $nodegroup_filter['groupname']=$pattern; $title .= " matching " . $pattern; } else { $nodegroup_filter['groupname']="*"; } // go $nodegroups=$api->GetNodeGroups($nodegroup_filter,$nodegroup_columns); // -------------------- drupal_set_title($title); plc_tabs($tabs); if ( ! $nodegroups ) { drupal_set_message ('No node group found'); return; } $headers = array ( "Name"=>"string", "Tag"=>"string", "Value"=>"string", "Nodes"=>"int"); # initial sort on groupname $table=new PlcTable("nodegroups",$headers,0); $table->start(); foreach ($nodegroups as $nodegroup) { $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(); } $table->end(); // Print footer include 'plc_footer.php'; ?>