4 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
5 require_once
'Services/Mail/classes/class.ilMailFormCall.php';
22 function __construct($a_parent_obj, $a_parent_cmd, $a_role_id)
26 $this->
setId(
"rbac_ua_".$a_role_id);
27 $this->role_id = $a_role_id;
33 $this->
addColumn($this->lng->txt(
"login"),
"login",
"29%");
34 $this->
addColumn($this->lng->txt(
"firstname"),
"firstname",
"29%");
35 $this->
addColumn($this->lng->txt(
"lastname"),
"lastname",
"29%");
36 $this->
addColumn($this->lng->txt(
'actions'),
'',
'13%');
41 $this->
setFormAction($ilCtrl->getFormAction($this->parent_obj, $a_parent_cmd));
42 $this->
setRowTemplate(
"tpl.user_assignment_row.html",
"Services/AccessControl");
54 include_once
'./Services/Administration/classes/class.ilAdministrationGUI.php';
55 #$this->topGuiObj = new ilAdministrationGUI();
72 global
$lng,$rbacreview;
76 include_once(
"./Services/User/classes/class.ilUserQuery.php");
92 if($rbacreview->isAssigned(SYSTEM_USER_ID, $this->getRoleId()))
100 $this->
setData($usr_data[
"set"]);
112 $this->tpl->setVariable(
"VAL_FIRSTNAME",
$user[
"firstname"]);
113 $this->tpl->setVariable(
"VAL_LASTNAME",
$user[
"lastname"]);
115 if(
$user[
'usr_id'] != SYSTEM_USER_ID and
116 (
$user[
'usr_id'] != ANONYMOUS_USER_ID or $this->
getRoleId() != ANONYMOUS_ROLE_ID))
118 $this->tpl->setVariable(
"ID",
$user[
"usr_id"]);
121 include_once(
"./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php");
123 $actions->setSelectionHeaderClass(
"small");
124 $actions->setItemLinkClass(
"small");
126 $actions->setListTitle($lng->txt(
'actions'));
127 $actions->setId(
$user[
'usr_id']);
129 #$link_contact = ilMailFormCall::_getLinkTarget(
130 # $this->topGuiObj, 'frameset',
131 # array('fr' => rawurlencode(base64_encode($ilCtrl->getLinkTarget($this->getParentObject(), 'userassignment', '', false, false)))),
132 # array('type' => 'new', 'rcp_to' => urlencode($user['login']))
135 $lng->txt(
'message'),
140 if(strtolower(
$_GET[
"baseClass"]) ==
'iladministrationgui' &&
$_GET[
"admin_mode"] ==
"settings")
142 $ilCtrl->setParameterByClass(
"ilobjusergui",
"ref_id", 7);
143 $ilCtrl->setParameterByClass(
"ilobjusergui",
"obj_id",
$user[
"usr_id"]);
145 $link_change = $ilCtrl->getLinkTargetByClass(array(
"iladministrationgui",
"ilobjusergui"),
"view");
147 $this->tpl->setVariable(
'VAL_LOGIN',
$user[
'login']);
148 $this->tpl->setVariable(
'HREF_LOGIN',$link_change);
150 $this->lng->txt(
"edit"),
157 $this->tpl->setVariable(
'VAL_PLAIN_LOGIN',
$user[
'login']);
160 if(($this->
getRoleId() != SYSTEM_ROLE_ID or
$user[
'usr_id'] != SYSTEM_USER_ID) and
161 ($this->
getRoleId() != ANONYMOUS_ROLE_ID or
$user[
'usr_id'] != ANONYMOUS_USER_ID))
164 $link_leave = $ilCtrl->getLinkTarget($this->
getParentObject(),
"deassignUser");
167 $this->lng->txt(
'remove'),
173 $this->tpl->setVariable(
'VAL_ACTIONS',$actions->getHTML());