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->
addCommandButton(
'exportAllCodes', $this->lng->txt(
'export_all_survey_codes'));
72 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj, $a_parent_cmd));
92 $this->tpl->setVariable(
'CB_CODE',
$data[
'id']);
95 if (strlen(
$data[
'href']))
97 $this->tpl->setCurrentBlock(
'url');
98 $this->tpl->setVariable(
"URL", $lng->txt(
"survey_code_url_name"));
99 $this->tpl->setVariable(
"HREF",
$data[
'href']);
100 $this->tpl->parseCurrentBlock();
103 $this->tpl->setVariable(
"USED", (
$data[
'used']) ? $lng->txt(
"used") : $lng->txt(
"not_used"));
104 $this->tpl->setVariable(
"SENT", (
$data[
'sent']) ?
'✓' :
'');
105 $this->tpl->setVariable(
"USED_CLASS", (
$data[
'used']) ?
' smallgreen' :
' smallred');
107 $this->tpl->setVariable(
"CODE",
$data[
'code']);
108 $this->tpl->setVariable(
"EMAIL",
$data[
'email']);
109 $this->tpl->setVariable(
"LAST_NAME",
$data[
'last_name']);
110 $this->tpl->setVariable(
"FIRST_NAME",
$data[
'first_name']);