24 include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
47 parent::__construct($a_parent_obj, $a_parent_cmd);
49 $lng = $DIC->language();
58 $this->
addColumn($this->lng->txt(
"survey_code"),
'code',
'');
59 $this->
addColumn($this->lng->txt(
"email"),
'email',
'');
60 $this->
addColumn($this->lng->txt(
"lastname"),
'last_name',
'');
61 $this->
addColumn($this->lng->txt(
"firstname"),
'first_name',
'');
62 $this->
addColumn($this->lng->txt(
"create_date"),
'date',
'');
63 $this->
addColumn($this->lng->txt(
"survey_code_used"),
'used',
'');
64 $this->
addColumn($this->lng->txt(
"mail_sent_short"),
'sent',
'');
65 $this->
addColumn($this->lng->txt(
"survey_code_url"));
67 $this->
setRowTemplate(
"tpl.il_svy_svy_codes_row.html",
"Modules/Survey");
71 $this->
addMultiCommand(
'deleteCodesConfirm', $this->lng->txt(
'delete'));
73 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj, $a_parent_cmd));
75 include_once
"Services/UIComponent/Button/classes/class.ilSubmitButton.php";
77 $button->setCaption(
"export_all_survey_codes");
78 $button->setCommand(
"exportAllCodes");
79 $button->setOmitPreventDoubleSubmission(
true);
100 $this->tpl->setVariable(
'CB_CODE',
$data[
'id']);
103 if (strlen(
$data[
'href'])) {
104 $this->tpl->setCurrentBlock(
'url');
105 $this->tpl->setVariable(
"URL",
$lng->txt(
"survey_code_url_name"));
106 $this->tpl->setVariable(
"HREF",
$data[
'href']);
107 $this->tpl->parseCurrentBlock();
110 $this->tpl->setVariable(
"USED", (
$data[
'used']) ?
$lng->txt(
"used") :
$lng->txt(
"not_used"));
111 $this->tpl->setVariable(
"SENT", (
$data[
'sent']) ?
'✓' :
'');
112 $this->tpl->setVariable(
"USED_CLASS", (
$data[
'used']) ?
' smallgreen' :
' smallred');
114 $this->tpl->setVariable(
"CODE",
$data[
'code']);
115 $this->tpl->setVariable(
"EMAIL",
$data[
'email']);
116 $this->tpl->setVariable(
"LAST_NAME",
$data[
'last_name']);
117 $this->tpl->setVariable(
"FIRST_NAME",
$data[
'first_name']);
__construct($a_parent_obj, $a_parent_cmd)
Constructor.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
addCommandButtonInstance(ilButtonBase $a_button)
Add Command button instance.
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false, $include_seconds=false)
Format a date public.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
setSelectAllCheckbox($a_select_all_checkbox, $a_select_all_on_top=false)
Set the name of the checkbox that should be toggled with a select all button.
addMultiCommand($a_cmd, $a_text)
Add Command button.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
setFormName($a_formname="")
Set Form name.
addColumn( $a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.