12 include_once(
'Services/Table/classes/class.ilTable2GUI.php');
36 include_once
"Services/Mail/classes/class.ilMail.php";
38 $this->mailing_allowed = $rbacsystem->checkAccess(
'mail_visible',$mail->getMailObjectReferenceId());
41 $lng->loadLanguageModule(
'crs');
42 $this->parentObject = $a_parent_obj;
46 $mode[
"checkbox"] =
'search_crs';
47 $mode[
"short"] =
'crs';
48 $mode[
"long"] =
'course';
49 $mode[
"lng_type"] = $lng->txt(
'course');
50 $mode[
"view"] =
"crs_members";
51 $mode[
"tableprefix"] =
"crstable_members";
53 else if (
$type ==
'grp')
55 $mode[
"checkbox"] =
'search_grp';
56 $mode[
"short"] =
'grp';
57 $mode[
"long"] =
'group';
58 $mode[
"lng_type"] = $lng->txt(
'group');
59 $mode[
"view"] =
"grp_members";
60 $mode[
"tableprefix"] =
"grptable_members";
62 $this->
setTitle($lng->txt(
'members'));
64 $ilCtrl->setParameter($a_parent_obj,
'view',
$mode[
'view']);
65 if (
$_GET[
'ref'] !=
'')
66 $ilCtrl->setParameter($a_parent_obj,
'ref',
$_GET[
'ref']);
68 $ilCtrl->setParameter($a_parent_obj, $mode[
"checkbox"], implode(
',',
$_POST[$mode[
"checkbox"]]));
71 $ilCtrl->clearParameters($a_parent_obj);
75 $this->
setRowTemplate(
'tpl.mail_search_courses_members_row.html',
'Services/Contact');
79 $this->
addColumn($lng->txt(
'login'),
'USR_LOGIN',
'22%');
80 $this->
addColumn($lng->txt(
'name'),
'USR_NAME',
'22%');
81 $this->
addColumn($lng->txt($mode[
'long']),
'CRS_GRP',
'22%');
82 $this->
addColumn($lng->txt(
'mail_in_addressbook'),
'USR_IN_ADDRESSBOOK',
'23%');
83 $this->
addColumn($lng->txt(
'actions'),
'',
'10%');
85 if ($this->mailing_allowed)
87 $this->
addMultiCommand(
'adoptMembers', $lng->txt(
"mail_into_addressbook"));
102 include_once(
"./Services/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php");
104 $current_selection_list->setListTitle($this->lng->txt(
"actions"));
105 $current_selection_list->setId(
"act_".$a_set[
'MEMBERS_ID']);
107 $ilCtrl->setParameter($this->parentObject,
'search_members', $a_set[
'MEMBERS_ID']);
108 $ilCtrl->setParameter($this->parentObject,
'search_' . $this->mode[
'short'],
109 is_array($_REQUEST[
'search_' . $this->mode[
'short']]) ?
110 implode(
',', $_REQUEST[
'search_' . $this->mode[
'short']]) :
111 $_REQUEST[
'search_' . $this->mode[
'short']]
113 $ilCtrl->setParameter($this->parentObject,
'view', $this->mode[
'view']);
115 if ($this->mailing_allowed)
116 $current_selection_list->addItem($this->lng->txt(
"mail_members"),
'', $ilCtrl->getLinkTarget($this->parentObject,
"mail"));
117 $current_selection_list->addItem($this->lng->txt(
"mail_into_addressbook"),
'', $ilCtrl->getLinkTarget($this->parentObject,
"adoptMembers"));
119 $this->tpl->setVariable(strtoupper(
'CURRENT_ACTION_LIST'), $current_selection_list->getHTML());
121 foreach ($a_set as
$key => $value)
123 $this->tpl->setVariable(strtoupper(
$key), $value);