4 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
5 require_once
'Services/Mail/classes/class.ilMailFormCall.php';
25 function __construct($a_parent_obj, $a_parent_cmd, $a_role_id, $a_editable =
true)
29 $this->
setId(
"rbac_ua_".$a_role_id);
30 $this->role_id = $a_role_id;
31 $this->roleAssignmentEditable = $a_editable;
37 $this->
addColumn($this->lng->txt(
"login"),
"login",
"29%");
38 $this->
addColumn($this->lng->txt(
"firstname"),
"firstname",
"29%");
39 $this->
addColumn($this->lng->txt(
"lastname"),
"lastname",
"29%");
40 $this->
addColumn($this->lng->txt(
'actions'),
'',
'13%');
45 $this->
setFormAction($ilCtrl->getFormAction($this->parent_obj, $a_parent_cmd));
46 $this->
setRowTemplate(
"tpl.user_assignment_row.html",
"Services/AccessControl");
52 if($this->roleAssignmentEditable)
61 include_once
'./Services/Administration/classes/class.ilAdministrationGUI.php';
62 #$this->topGuiObj = new ilAdministrationGUI();
88 global
$lng,$rbacreview;
92 include_once(
"./Services/User/classes/class.ilUserQuery.php");
108 if($rbacreview->isAssigned(SYSTEM_USER_ID, $this->getRoleId()))
116 $this->
setData($usr_data[
"set"]);
128 $this->tpl->setVariable(
"VAL_FIRSTNAME", $user[
"firstname"]);
129 $this->tpl->setVariable(
"VAL_LASTNAME", $user[
"lastname"]);
132 $user[
'usr_id'] != SYSTEM_USER_ID and
133 ($user[
'usr_id'] != ANONYMOUS_USER_ID or $this->
getRoleId() != ANONYMOUS_ROLE_ID) and
136 $this->tpl->setVariable(
"ID", $user[
"usr_id"]);
139 include_once(
"./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php");
141 $actions->setSelectionHeaderClass(
"small");
142 $actions->setItemLinkClass(
"small");
144 $actions->setListTitle($lng->txt(
'actions'));
145 $actions->setId($user[
'usr_id']);
147 #$link_contact = ilMailFormCall::getLinkTarget(
148 # $this->topGuiObj, 'frameset',
149 # array('fr' => rawurlencode(base64_encode($ilCtrl->getLinkTarget($this->getParentObject(), 'userassignment', '', false, false)))),
150 # array('type' => 'new', 'rcp_to' => urlencode($user['login']))
153 $lng->txt(
'message'),
158 if(strtolower(
$_GET[
"baseClass"]) ==
'iladministrationgui' &&
$_GET[
"admin_mode"] ==
"settings")
160 $ilCtrl->setParameterByClass(
"ilobjusergui",
"ref_id", 7);
161 $ilCtrl->setParameterByClass(
"ilobjusergui",
"obj_id", $user[
"usr_id"]);
163 $link_change = $ilCtrl->getLinkTargetByClass(array(
"iladministrationgui",
"ilobjusergui"),
"view");
165 $this->tpl->setVariable(
'VAL_LOGIN',$user[
'login']);
166 $this->tpl->setVariable(
'HREF_LOGIN',$link_change);
168 $this->lng->txt(
"edit"),
175 $this->tpl->setVariable(
'VAL_PLAIN_LOGIN',$user[
'login']);
179 ($this->
getRoleId() != SYSTEM_ROLE_ID or $user[
'usr_id'] != SYSTEM_USER_ID) and
180 ($this->
getRoleId() != ANONYMOUS_ROLE_ID or $user[
'usr_id'] != ANONYMOUS_USER_ID) and
183 $ilCtrl->setParameter($this->
getParentObject(),
"user_id", $user[
"usr_id"]);
184 $link_leave = $ilCtrl->getLinkTarget($this->
getParentObject(),
"deassignUser");
187 $this->lng->txt(
'remove'),
193 $this->tpl->setVariable(
'VAL_ACTIONS',$actions->getHTML());