24 include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
52 $this->lng->loadLanguageModule(
'grp');
53 $this->lng->loadLanguageModule(
'crs');
59 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj,
'members'));
62 $this->
addColumn($this->lng->txt(
'lastname'),
'name',
'20%');
63 $this->
addColumn($this->lng->txt(
'login'),
'login',
'10%');
64 $this->
addColumn($this->lng->txt(
'application_date'),
'sub_time',
"15%");
65 $this->
addColumn($this->lng->txt(
'subject'),
'subject',
'45%');
70 $this->
addMultiCommand(
'sendMailToSelectedUsers',$this->lng->txt(
'crs_mem_send_mail'));
75 $this->
setRowTemplate(
"tpl.show_subscribers_row.html",
"Services/Membership");
82 $this->
enable(
'select_all');
105 $this->subscribers = $a_sub;
121 include_once
'./Modules/Course/classes/class.ilObjCourseGrouping.php';
126 $this->tpl->setVariable(
'ALERT_MSG',
127 sprintf($this->lng->txt(
$prefix.
'_lim_assigned'),
133 $this->tpl->setVariable(
'VAL_ID',$a_set[
'id']);
134 $this->tpl->setVariable(
'VAL_NAME',$a_set[
'name']);
136 $this->tpl->setVariable(
'VAL_LOGIN',$a_set[
'login']);
138 $this->ctrl->setParameterByClass(get_class($this->
getParentObject()),
'member_id',$a_set[
'id']);
139 $link = $this->ctrl->getLinkTargetByClass(get_class($this->
getParentObject()),
'sendMailToSelectedUsers');
140 $this->tpl->setVariable(
'MAIL_LINK',$link);
141 $this->tpl->setVariable(
'MAIL_TITLE',$this->lng->txt(
'crs_mem_send_mail'));
144 if(strlen($a_set[
'subject']))
146 $this->tpl->setVariable(
'VAL_SUBJECT',
'"'.$a_set[
'subject'].
'"');
160 foreach($this->subscribers as
$usr_id)
163 $data = $this->participants->getSubscriberData($usr_id);
166 $tmp_arr[
'sub_time'] =
$data[
'time'];
167 $tmp_arr[
'subject'] =
$data[
'subject'];
170 $tmp_arr[
'name'] =
$name[
'lastname'].
', '.
$name[
'firstname'];
171 $tmp_arr[
'login'] =
''.ilObjUser::_lookupLogin($usr_id).
'';