24 include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
46 public function __construct($a_parent_obj,$show_content =
true)
51 $this->lng->loadLanguageModule(
'grp');
52 $this->lng->loadLanguageModule(
'crs');
58 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj,
'members'));
61 $this->
addColumn($this->lng->txt(
'lastname'),
'name',
'20%');
62 $this->
addColumn($this->lng->txt(
'login'),
'login',
'10%');
63 $this->
addColumn($this->lng->txt(
'application_date'),
'sub_time',
"15%");
64 $this->
addColumn($this->lng->txt(
'subject'),
'subject',
'45%');
69 $this->
addMultiCommand(
'sendMailToSelectedUsers',$this->lng->txt(
'crs_mem_send_mail'));
74 $this->
setRowTemplate(
"tpl.show_subscribers_row.html",
"Services/Membership");
81 $this->
enable(
'select_all');
105 include_once
'./Modules/Course/classes/class.ilObjCourseGrouping.php';
110 $this->tpl->setVariable(
'ALERT_MSG',
111 sprintf($this->lng->txt(
$prefix.
'_lim_assigned'),
117 $this->tpl->setVariable(
'VAL_ID',$a_set[
'id']);
118 $this->tpl->setVariable(
'VAL_NAME',$a_set[
'name']);
120 $this->tpl->setVariable(
'VAL_LOGIN',$a_set[
'login']);
122 $this->ctrl->setParameterByClass(get_class($this->
getParentObject()),
'member_id',$a_set[
'id']);
123 $link = $this->ctrl->getLinkTargetByClass(get_class($this->
getParentObject()),
'sendMailToSelectedUsers');
124 $this->tpl->setVariable(
'MAIL_LINK',$link);
125 $this->tpl->setVariable(
'MAIL_TITLE',$this->lng->txt(
'crs_mem_send_mail'));
128 if(strlen($a_set[
'subject']))
130 $this->tpl->setVariable(
'VAL_SUBJECT',
'"'.$a_set[
'subject'].
'"');
144 include_once
'./Services/Membership/classes/class.ilParticipants.php';
150 $tmp_arr[
'sub_time'] =
$data[
'time'];
151 $tmp_arr[
'subject'] =
$data[
'subject'];
154 $tmp_arr[
'name'] = $name[
'lastname'].
', '.$name[
'firstname'];
155 $tmp_arr[
'login'] =
''.ilObjUser::_lookupLogin(
$usr_id).
'';