24 include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
 
   58                 $this->
setStyle(
'table', 
'fullwidth');
 
   64                 $this->
addColumn($this->lng->txt(
"email"),
'email', 
'');
 
   65                 $this->
addColumn($this->lng->txt(
"mail_sent_short"),
'sent', 
'');
 
   67                 $this->
setRowTemplate(
"tpl.il_svy_svy_codes_mail_row.html", 
"Modules/Survey");
 
   71                         $this->
addCommandButton(
'deleteExternalMailRecipients', $this->lng->txt(
'confirm'));
 
   72                         $this->
addCommandButton(
'cancelDeleteExternalMailRecipients', $this->lng->txt(
'cancel'));
 
   76                         $this->
addMultiCommand(
'deleteInternalMailRecipient', $this->lng->txt(
'delete'));
 
   78                         $this->
addCommandButton(
'importExternalMailRecipients', $this->lng->txt(
'import'));
 
   81                 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj, $a_parent_cmd));
 
   96                         $this->
enable(
'select_all');
 
  103                 if (is_array($this->row_data))
 
  105                         if (array_key_exists(0, $this->row_data) && is_array($this->row_data[0]))
 
  107                                 foreach ($this->row_data[0] as $key => $value)
 
  109                                         if (strcmp($key, 
'email') != 0 && strcmp($key, 
'code') != 0 && strcmp($key, 
'sent') != 0)
 
  129                 if (!$this->confirmdelete)
 
  131                         $this->tpl->setCurrentBlock(
'checkbox');
 
  132                         $this->tpl->setVariable(
'CB_CODE', 
$data[
'code']);
 
  133                         $this->tpl->parseCurrentBlock();
 
  137                         $this->tpl->setCurrentBlock(
'hidden');
 
  138                         $this->tpl->setVariable(
'HIDDEN_CODE', 
$data[
"code"]);
 
  139                         $this->tpl->parseCurrentBlock();
 
  142                 $this->tpl->setVariable(
'EMAIL', 
$data[
'email']);
 
  143                 $this->tpl->setVariable(
'SENT', (
$data[
'sent']) ? 
'✓' : 
'');
 
  144                 $this->tpl->setVariable(
'CB_CODE', 
$data[
'code']);
 
  145                 foreach (
$data as $key => $value)
 
  147                         if (strcmp($key, 
'email') != 0 && strcmp($key, 
'code') != 0 && strcmp($key, 
'sent') != 0)
 
  149                                 $this->tpl->setCurrentBlock(
'column');
 
  150                                 $this->tpl->setVariable(
'COLUMN', $value);
 
  151                                 $this->tpl->parseCurrentBlock();