"> <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">
<li> <a class="group-edit" href="<?php echo Route::url('index.php?option=com_groups&cn=' . $this->group->get('cn') . '&task=edit'); ?> "> <?php echo Lang::txt('COM_GROUPS_TOOLBAR_EDIT'); ?> </a> </li> <?php } ?> <?php if (!$isManager && Components\Groups\Helpers\Permissions::userHasPermissionForGroupAction($this->group, 'group.pages')) { ?> <li> <a class="group-pages" href="<?php echo Route::url('index.php?option=com_groups&cn=' . $this->group->get('cn') . '&task=pages'); ?> "> <?php echo Lang::txt('COM_GROUPS_TOOLBAR_PAGES'); ?> </a> </li> <?php } ?>
<h3 class="section-header"> <?php echo Lang::txt('PLG_GROUPS_MEMBERS'); ?> </h3> <?php if ($this->membership_control == 1) { ?> <?php //if ($this->authorized == 'manager' || $this->authorized == 'admin') { ?> <ul id="page_options"> <li> <?php if ($this->authorized == 'manager' || $this->authorized == 'admin' || Components\Groups\Helpers\Permissions::userHasPermissionForGroupAction($this->group, 'group.invite')) { ?> <a class="icon-add add btn" href="<?php echo Route::url('index.php?option=' . $option . '&cn=' . $this->group->get('cn') . '&task=invite'); ?> "> <?php echo Lang::txt('PLG_GROUPS_MEMBERS_INVITE_MEMBERS'); ?> </a> <?php } ?> <?php if ($this->membership_control == 1 && $this->authorized == 'manager') { ?>