function userGroups_PrintGroupMembers()
{
    $groups = new userGroups();
    $results = $groups->getGroups();
    $alt = true;
    if (isset($results) && count($results) > 0) {
        echo "\n<table width=\"100%\" border=\"0\" cellspacing=\"3\" cellpadding=\"3\">";
        echo "\n\t<tr class=\"thead\">";
        echo "\n\t\t<th>Group Name</th>\n\t\t<th>Members</th>\n\t\t<th>&nbsp;</th>";
        echo "\n\t</tr>";
        foreach ($results as $result) {
            if ($alt) {
                $style = 'class=\'alternate\'';
            } else {
                $style = '';
            }
            $alt = !$alt;
            echo "<tr " . $style . "><td>" . $result->name . "</td><td>";
            $members = $groups->getGroupMembers($result->id);
            if (isset($members) && count($members) > 0) {
                $number = count($members);
                if ($number == 1) {
                    echo "(1 user)<br />";
                } else {
                    echo "({$number} users)<br />";
                }
                foreach ($members as $member) {
                    echo "- " . $member->name . "<br />";
                }
            } else {
                echo "(no users)";
            }
            echo "</td><td " . $style . "><a class=\"edit\"  href='" . $_SERVER['PHP_SELF'] . "?page=wp-group-restriction/group_members&amp;mode=edit&amp;id=" . $result->id . "'>Edit</a></td></tr>";
        }
        echo "\n</table>";
    } else {
        //No groups available...
        echo "<p><strong>No groups available.</strong></p>";
    }
}