24 include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
51 $this->lng->loadLanguageModule(
'sess');
52 $this->lng->loadLanguageModule(
'crs');
53 $this->lng->loadLanguageModule(
'trac');
70 $this->reg_enabled = $a_status;
93 $this->participants = $a_part;
119 $usr_data = $this->session_participants->getUser($participant_id);
121 $tmp_data[
'id'] = $participant_id;
124 $tmp_data[
'name'] = $name[
'lastname'];
125 $tmp_data[
'lastname'] = $name[
'lastname'];
126 $tmp_data[
'firstname'] = $name[
'firstname'];
128 $tmp_data[
'mark'] = $usr_data[
'mark'];
129 $tmp_data[
'comment'] = $usr_data[
'comment'];
130 $tmp_data[
'participated'] = $this->session_participants->hasParticipated($participant_id);
131 $tmp_data[
'registered'] = $this->session_participants->isRegistered($participant_id);
135 $this->
setData($part ? $part : array());
146 $this->tpl->setVariable(
'VAL_ID',$a_set[
'id']);
147 $this->tpl->setVariable(
'LASTNAME',$a_set[
'lastname']);
148 $this->tpl->setVariable(
'FIRSTNAME',$a_set[
'firstname']);
149 $this->tpl->setVariable(
'LOGIN',$a_set[
'login']);
150 $this->tpl->setVariable(
'MARK',$a_set[
'mark']);
151 $this->tpl->setVariable(
'COMMENT',$a_set[
'comment']);
152 $this->tpl->setVariable(
'PART_CHECKED',$a_set[
'participated'] ?
'checked="checked"' :
'');
156 $this->tpl->setCurrentBlock(
'registered_col');
157 if($a_set[
'registered'])
160 $this->tpl->setVariable(
'REGISTERED',$this->lng->txt(
'event_registered'));
165 $this->tpl->setVariable(
'REGISTERED',$this->lng->txt(
'event_not_registered'));
167 $this->tpl->parseCurrentBlock();
182 $this->
setFormAction($this->ctrl->getFormAction($this->getParentObject(),
'members'));
184 $this->
addColumn($this->lng->txt(
'lastname'),
'name',
'30%');
185 $this->
addColumn($this->lng->txt(
'trac_mark'),
'mark');
186 $this->
addColumn($this->lng->txt(
'trac_comment'),
'comment');
189 $this->
addColumn($this->lng->txt(
'event_tbl_registered'),
'registered');
191 $this->
addColumn($this->lng->txt(
'event_tbl_participated'),
'participated');
192 $this->
setRowTemplate(
"tpl.sess_members_row.html",
"Modules/Session");