echo '<form id="readWrite" name="readWrite" action="' . 'admin.php?page=rs-group_members&amp;mode=update&amp;id=' . $groupID . '" method="post">';
            wp_nonce_field('scoper-edit-group-members_' . $groupID);
            echo '<script type="text/javascript"><!--
			      function select_all(name, value) {
			        formblock = document.getElementById("readWrite");
			        forminputs = formblock.getElementsByTagName("input");
			        for (i = 0; i < forminputs.length; i++) {
			          // regex here to check name attribute
			          var regex = new RegExp(name, "i");
			          if (regex.test(forminputs[i].getAttribute("name"))) {
			            forminputs[i].checked = value;
			          }
			        }
			      }
			      //--></script>';
            UserGroups_tp::group_members_checklist($groupID);
            ?>
 <br />
	<div class="submit">
		<input type="submit" value="Update" />
		<input type="button"
			onclick="javascript:location.href = 'admin.php?page=rs-group_members&amp;cancel=1'"
			value="Cancel" class="button" />
	</div>
</form>
      
<?php 
        }
        break;
    case "update":
        //update groups members
<?php 
        if (scoper_get_option('group_ajax')) {
            ?>
<div style="clear:both;"></div>
<div class="rs-group_admins">
<h3><?php 
            if ($sitewide_groups) {
                printf(__('Group Moderators %1$s(via login to %2$s)%3$s', 'scoper'), '<span style="font-weight: normal">', rtrim($blog_path, '/'), '</span>');
            } else {
                _e('Group Moderators', 'scoper');
            }
            ?>
</h3>
<?php 
            UserGroups_tp::group_members_checklist($group_id, 'moderator', $all_users);
            ?>
</div>
<?php 
        }
        ?>


<div style="clear:both;"></div>

<div class="rs-scoped_role_profile">
<?php 
        do_action('edit_group_profile_rs', $group_id);
        ?>
</div>