24 include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
55 $this->
addColumn($this->lng->txt(
"survey_code"),
'code',
'');
56 $this->
addColumn($this->lng->txt(
"email"),
'email',
'');
57 $this->
addColumn($this->lng->txt(
"lastname"),
'last_name',
'');
58 $this->
addColumn($this->lng->txt(
"firstname"),
'first_name',
'');
59 $this->
addColumn($this->lng->txt(
"create_date"),
'date',
'');
60 $this->
addColumn($this->lng->txt(
"survey_code_used"),
'used',
'');
61 $this->
addColumn($this->lng->txt(
"mail_sent_short"),
'sent',
'');
62 $this->
addColumn($this->lng->txt(
"survey_code_url"));
64 $this->
setRowTemplate(
"tpl.il_svy_svy_codes_row.html",
"Modules/Survey");
68 $this->
addMultiCommand(
'deleteCodesConfirm', $this->lng->txt(
'delete'));
70 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj, $a_parent_cmd));
72 include_once
"Services/UIComponent/Button/classes/class.ilSubmitButton.php";
74 $button->setCaption(
"export_all_survey_codes");
75 $button->setCommand(
"exportAllCodes");
76 $button->setOmitPreventDoubleSubmission(
true);
97 $this->tpl->setVariable(
'CB_CODE',
$data[
'id']);
100 if (strlen(
$data[
'href']))
102 $this->tpl->setCurrentBlock(
'url');
103 $this->tpl->setVariable(
"URL", $lng->txt(
"survey_code_url_name"));
104 $this->tpl->setVariable(
"HREF",
$data[
'href']);
105 $this->tpl->parseCurrentBlock();
108 $this->tpl->setVariable(
"USED", (
$data[
'used']) ? $lng->txt(
"used") : $lng->txt(
"not_used"));
109 $this->tpl->setVariable(
"SENT", (
$data[
'sent']) ?
'✓' :
'');
110 $this->tpl->setVariable(
"USED_CLASS", (
$data[
'used']) ?
' smallgreen' :
' smallred');
112 $this->tpl->setVariable(
"CODE",
$data[
'code']);
113 $this->tpl->setVariable(
"EMAIL",
$data[
'email']);
114 $this->tpl->setVariable(
"LAST_NAME",
$data[
'last_name']);
115 $this->tpl->setVariable(
"FIRST_NAME",
$data[
'first_name']);