4 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
31 $this->
addColumn($this->lng->txt(
"login"),
"login",
"17%");
32 $this->
addColumn($this->lng->txt(
"firstname"),
"firstname",
"17%");
33 $this->
addColumn($this->lng->txt(
"lastname"),
"lastname",
"17%");
34 $this->
addColumn($this->lng->txt(
"email"),
"email",
"17%");
35 $this->
addColumn($this->lng->txt(
"access_until"),
"access_until",
"17%");
36 $this->
addColumn($this->lng->txt(
"last_login"),
"last_login",
"17%");
41 $this->
setFormAction($ilCtrl->getFormAction($this->parent_obj,
"applyFilter"));
53 if ($rbacsystem->checkAccess(
'delete', $a_parent_obj->object->getRefId()))
77 include_once(
"./Services/User/classes/class.ilUserQuery.php");
84 $this->filter[
"query"],
85 $this->filter[
"activation"],
86 $this->filter[
"last_login"],
87 $this->filter[
"limited_access"],
88 $this->filter[
"no_courses"],
89 $this->filter[
"course_group"],
90 $this->filter[
"global_role"]
93 if (count($usr_data[
"set"]) == 0 && $this->
getOffset() > 0)
101 $this->filter[
"query"],
102 $this->filter[
"activation"],
103 $this->filter[
"last_login"],
104 $this->filter[
"limited_access"],
105 $this->filter[
"no_courses"],
106 $this->filter[
"course_group"],
107 $this->filter[
"global_role"]
111 foreach ($usr_data[
"set"] as $k =>
$user)
113 $current_time = time();
116 if (
$user[
"time_limit_unlimited"])
118 $txt_access = $lng->txt(
"access_unlimited");
119 $usr_data[
"set"][$k][
"access_class"] =
"smallgreen";
123 $txt_access = $lng->txt(
"access_expired");
124 $usr_data[
"set"][$k][
"access_class"] =
"smallred";
129 $usr_data[
"set"][$k][
"access_class"] =
"small";
134 $txt_access = $lng->txt(
"inactive");
135 $usr_data[
"set"][$k][
"access_class"] =
"smallred";
137 $usr_data[
"set"][$k][
"access_until"] = $txt_access;
141 $this->
setData($usr_data[
"set"]);
150 global
$lng, $rbacreview, $ilUser;
153 include_once(
"./Services/Form/classes/class.ilTextInputGUI.php");
154 $ti =
new ilTextInputGUI($lng->txt(
"login").
"/".$lng->txt(
"email").
"/".$lng->txt(
"name"),
"query");
157 $ti->setSubmitFormOnEnter(
true);
159 $ti->readFromSession();
160 $this->filter[
"query"] = $ti->getValue();
163 include_once(
"./Services/Form/classes/class.ilSelectInputGUI.php");
165 "" => $lng->txt(
"user_all"),
166 "active" => $lng->txt(
"active"),
167 "inactive" => $lng->txt(
"inactive"),
169 $si =
new ilSelectInputGUI($this->lng->txt(
"user_activation"),
"activation");
172 $si->readFromSession();
173 $this->filter[
"activation"] = $si->getValue();
176 include_once(
"./Services/Form/classes/class.ilCheckboxInputGUI.php");
177 $cb =
new ilCheckboxInputGUI($this->lng->txt(
"user_limited_access"),
"limited_access");
179 $cb->readFromSession();
180 $this->filter[
"limited_access"] = $cb->getChecked();
183 include_once(
"./Services/Form/classes/class.ilDateTimeInputGUI.php");
184 $di =
new ilDateTimeInputGUI($this->lng->txt(
"user_last_login_before"),
"last_login");
189 $di->readFromSession();
190 $this->filter[
"last_login"] = $di->getDate();
193 include_once(
"./Services/Form/classes/class.ilCheckboxInputGUI.php");
196 $cb->readFromSession();
197 $this->filter[
"no_courses"] = $cb->getChecked();
200 include_once(
"./Services/Form/classes/class.ilRepositorySelectorInputGUI.php");
203 $rs->setHeaderMessage($lng->txt(
"user_please_select_course_group"));
204 $rs->setClickableTypes(array(
"crs",
"grp"));
206 $rs->readFromSession();
207 $this->filter[
"course_group"] = $rs->getValue();
211 "" => $lng->txt(
"user_any"),
213 $roles = $rbacreview->getRolesByFilter(2, $ilUser->getId());
214 foreach ($roles as $role)
216 $options[$role[
"rol_id"]] = $role[
"title"];
218 $si =
new ilSelectInputGUI($this->lng->txt(
"user_global_role"),
"global_role");
221 $si->readFromSession();
222 $this->filter[
"global_role"] = $si->getValue();
232 if (
$user[
"usr_id"] != 6)
234 $this->tpl->setCurrentBlock(
"checkb");
235 $this->tpl->setVariable(
"ID",
$user[
"usr_id"]);
236 $this->tpl->parseCurrentBlock();
239 $this->tpl->setVariable(
"VAL_LOGIN",
$user[
"login"]);
240 $this->tpl->setVariable(
"VAL_FIRSTNAME",
$user[
"firstname"]);
241 $this->tpl->setVariable(
"VAL_LASTNAME",
$user[
"lastname"]);
242 $this->tpl->setVariable(
"VAL_EMAIL",
$user[
"email"]);
243 $this->tpl->setVariable(
"VAL_LAST_LOGIN",
245 $this->tpl->setVariable(
"VAL_ACCESS_UNTIL",
$user[
"access_until"]);
246 $this->tpl->setVariable(
"CLASS_ACCESS_UNTIL",
$user[
"access_class"]);
247 $ilCtrl->setParameterByClass(
"ilobjusergui",
"obj_id",
$user[
"usr_id"]);
248 $this->tpl->setVariable(
"HREF_LOGIN",
249 $ilCtrl->getLinkTargetByClass(
"ilobjusergui",
"view"));
250 $ilCtrl->setParameterByClass(
"ilobjusergui",
"obj_id",
"");