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>";
    }
}
<table width="100%"  border="0" cellspacing="3" cellpadding="3">
	<tr class="thead">
		<th><?php 
        _e('Group Name');
        ?>
</th>
		<th><?php 
        _e('Pages');
        ?>
</th>
    <th>&nbsp;</th>	
	</tr>
	
	<?php 
        $groups = new userGroups();
        $results = $groups->getGroups();
        $i = 0;
        if (isset($results)) {
            foreach ($results as $result) {
                if ($i % 2 == 0) {
                    $style = 'class=\'alternate\'';
                } else {
                    $style = '';
                }
                echo "<tr {$style}><td>" . $result->name . "</td><td>";
                $paginas = $groups->getGroupPages($result->id);
                if (isset($paginas) && count($paginas) > 0) {
                    foreach ($paginas as $pagina) {
                        $perms = " (";
                        if ($pagina->exc_read) {
                            $perms .= "R";
        }
        break;
}
?>
<div class="wrap">
<h2><?php 
_e('Existing Groups');
if ($mode != "edit") {
    ?>
 (<a href="#new">add new</a>)<?php 
}
?>
</h2>
<?php 
$groups = new userGroups();
$results = $groups->getGroups(true);
$i = 0;
if (isset($results) && count($results) > 0) {
    ?>
 <script type="text/javascript">
function DelConfirm(name){
	var message= 'You are about to delete the group "'+name+'", do you wish to continue?';
	return confirm(message);
}
</script>
<table width="100%" border="0" cellspacing="3" cellpadding="3">
	<tr class="thead">
		<th><?php 
    _e('Name');
    ?>
</th>