24 include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
48 parent::__construct($a_parent_obj, $a_parent_cmd);
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();
setFormName($a_formname)
Set Form name.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
setStyle($a_element, $a_style)
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
addColumn($a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="")
Add a column to the header.
addMultiCommand($a_cmd, $a_text)
Add Command button.
enable($a_module_name)
enables particular modules of table
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="")
Add Command button.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
__construct($a_parent_obj, $a_parent_cmd, $confirmdelete=false)
Constructor.
disable($a_module_name)
diesables particular modules of table
setFormAction($a_form_action)
Set Form action parameter.
setSelectAllCheckbox($a_select_all_checkbox)
Set the name of the checkbox that should be toggled with a select all button.