Example #1
0
">
	<fieldset>
		<legend><?php 
echo Lang::txt('PLG_GROUPS_MEMBERS_ASSIGN_ROLE');
?>
</legend>

		<label for="uid">
			<input type="hidden" name="uid" value="<?php 
echo $this->escape($this->uid);
?>
" id="uid" />
			<?php 
$u = User::getInstance($this->uid);
$current_roles = array();
$roles = Components\Groups\Helpers\Permissions::getGroupMemberRoles($u->get('id'), $this->group->get('gidNumber'));
if ($roles) {
    foreach ($roles as $role) {
        $current_roles[] = $role['name'];
    }
}
?>
			<strong><?php 
echo Lang::txt('PLG_GROUPS_MEMBERS_MEMBER');
?>
: </strong> <?php 
echo $this->escape($u->get('name'));
?>
		</label>

		<label for="roles">