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());
 
  183                 $this->tpl->setVariable(
'VAL_ID',$a_set[
'id']);
 
  184                 $this->tpl->setVariable(
'LASTNAME',$a_set[
'lastname']);
 
  185                 $this->tpl->setVariable(
'FIRSTNAME',$a_set[
'firstname']);
 
  186                 $this->tpl->setVariable(
'LOGIN',$a_set[
'login']);
 
  187                 $this->tpl->setVariable(
'MARK',$a_set[
'mark']);
 
  188                 $this->tpl->setVariable(
'COMMENT',$a_set[
'comment']);
 
  189                 $this->tpl->setVariable(
'PART_CHECKED',$a_set[
'participated'] ? 
'checked="checked"' : 
'');
 
  193                         $this->tpl->setCurrentBlock(
'registered_col');
 
  194                         if($a_set[
'registered'])
 
  197                                 $this->tpl->setVariable(
'REGISTERED',$this->lng->txt(
'event_registered'));                      
 
  202                                 $this->tpl->setVariable(
'REGISTERED',$this->lng->txt(
'event_not_registered'));                  
 
  204                         $this->tpl->parseCurrentBlock();
 
  219                 $this->
setFormAction($this->ctrl->getFormAction($this->getParentObject(),
'members'));
 
  221                 $this->
addColumn($this->lng->txt(
'lastname'),
'name',
'30%');
 
  222                 $this->
addColumn($this->lng->txt(
'trac_mark'),
'mark');
 
  223                 $this->
addColumn($this->lng->txt(
'trac_comment'),
'comment');
 
  226                         $this->
addColumn($this->lng->txt(
'event_tbl_registered'),
'registered');
 
  228                 $this->
addColumn($this->lng->txt(
'event_tbl_participated'),
'participated');
 
  229                 $this->
setRowTemplate(
"tpl.sess_members_row.html",
"Modules/Session");