24 include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
50 public function __construct($a_parent_obj,$a_type = self::TYPE_ADMIN, $a_show_content =
true)
55 $this->lng->loadLanguageModule(
'sess');
56 $this->lng->loadLanguageModule(
'crs');
57 $this->lng->loadLanguageModule(
'trac');
66 case self::TYPE_ADMIN:
69 case self::TYPE_TUTOR:
72 case self::TYPE_MEMBER:
84 $this->
enable(
'select_all');
107 $this->reg_enabled = $a_status;
130 $this->participants = $a_part;
156 $usr_data = $this->session_participants->getUser($participant_id);
158 $tmp_data[
'id'] = $participant_id;
161 $tmp_data[
'name'] = $name[
'lastname'];
162 $tmp_data[
'lastname'] = $name[
'lastname'];
163 $tmp_data[
'firstname'] = $name[
'firstname'];
165 $tmp_data[
'mark'] = $usr_data[
'mark'];
166 $tmp_data[
'comment'] = $usr_data[
'comment'];
167 $tmp_data[
'participated'] = $this->session_participants->hasParticipated($participant_id);
168 $tmp_data[
'registered'] = $this->session_participants->isRegistered($participant_id);
172 $this->
setData($part ? $part : array());
185 $this->tpl->setCurrentBlock(
'registered_col');
186 $this->tpl->setVariable(
'VAL_ID',$a_set[
'id']);
187 $this->tpl->setVariable(
'REG_CHECKED',$a_set[
'registered'] ?
'checked="checked"' :
'');
188 $this->tpl->parseCurrentBlock();
191 $this->tpl->setVariable(
'VAL_ID',$a_set[
'id']);
192 $this->tpl->setVariable(
'LASTNAME',$a_set[
'lastname']);
193 $this->tpl->setVariable(
'FIRSTNAME',$a_set[
'firstname']);
194 $this->tpl->setVariable(
'LOGIN',$a_set[
'login']);
195 $this->tpl->setVariable(
'MARK',$a_set[
'mark']);
196 $this->tpl->setVariable(
'COMMENT',$a_set[
'comment']);
197 $this->tpl->setVariable(
'PART_CHECKED',$a_set[
'participated'] ?
'checked="checked"' :
'');
211 $this->
setFormAction($this->ctrl->getFormAction($this->getParentObject(),
'members'));
213 $this->
addColumn($this->lng->txt(
'lastname'),
'name',
'30%');
214 $this->
addColumn($this->lng->txt(
'trac_mark'),
'mark');
215 $this->
addColumn($this->lng->txt(
'trac_comment'),
'comment');
218 $this->
addColumn($this->lng->txt(
'event_tbl_registered'),
'registered');
220 $this->
addColumn($this->lng->txt(
'event_tbl_participated'),
'participated');
221 $this->
setRowTemplate(
"tpl.sess_members_row.html",
"Modules/Session");