Show course members.
401 if (
$_GET[
"search_grp"] !=
"") {
402 $_POST[
"search_grp"] = explode(
",",
$_GET[
"search_grp"]);
405 if (!is_array(
$_POST[
"search_grp"]) ||
406 count(
$_POST[
"search_grp"]) == 0) {
408 $this->showMyGroups();
410 $this->tpl->setTitle($this->lng->txt(
"mail_addressbook"));
411 include_once
'Services/Contact/classes/class.ilMailSearchCoursesMembersTableGUI.php';
414 $this->lng->loadLanguageModule(
'crs');
416 $tableData = array();
417 $searchTpl =
new ilTemplate(
'tpl.mail_search_template.html',
true,
true,
'Services/Contact');
419 foreach (
$_POST[
"search_grp"] as $grp_id) {
421 $ref_id = current($ref_ids);
424 $grp_members = $group_obj->getGroupMemberData($group_obj->getGroupMemberIds());
426 foreach ($grp_members as $member) {
428 if (!$tmp_usr->getActive()) {
434 $fullname = $member[
'lastname'] .
', ' . $member[
'firstname'];
438 'members_id' => $member[
"id"],
439 'members_login' => $member[
"login"],
440 'members_name' => $fullname,
441 'members_crs_grp' => $group_obj->getTitle(),
442 'search_grp' => $grp_id,
448 $rowData[
'status'] =
'';
449 if ($member[
'id'] != $this->
user->getId()) {
450 if ($relation->isOwnedByRequest()) {
451 $rowData[
'status'] = $this->lng->txt(
'buddy_bs_state_' . $state_name .
'_a');
453 $rowData[
'status'] = $this->lng->txt(
'buddy_bs_state_' . $state_name .
'_p');
458 $tableData[] = $rowData;
462 $table->setData($tableData);
463 if (count($tableData)) {
464 $searchTpl->setVariable(
"TXT_MARKED_ENTRIES", $this->lng->txt(
"marked_entries"));
466 $searchTpl->setVariable(
'TABLE',
$table->getHTML());
467 $this->tpl->setContent($searchTpl->get());
469 if (
$_GET[
"ref"] !=
"wsp") {
static convertUpperCamelCaseToUnderscoreCase($value)
Convert a value given in camel case conversion to underscore case conversion (e.g.
static getInstanceByGlobalUser()
static _getAllReferences($a_id)
get all reference ids of object
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
special template class to simplify handling of ITX/PEAR
static _lookupPref($a_usr_id, $a_keyword)
static getInstanceByRefId($a_ref_id, $stop_on_error=true)
get an instance of an Ilias object by reference id
if(empty($password)) $table