24 include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
58 $this->
setStyle(
'table',
'fullwidth');
64 $this->
addColumn($this->lng->txt(
"survey_code"),
'code',
'');
65 $this->
addColumn($this->lng->txt(
"create_date"),
'date',
'');
66 $this->
addColumn($this->lng->txt(
"survey_code_used"),
'used',
'');
67 $this->
addColumn($this->lng->txt(
"survey_code_url"),
'url',
'');
69 $this->
setRowTemplate(
"tpl.il_svy_svy_codes_row.html",
"Modules/Survey");
74 $this->
addCommandButton(
'cancelDeleteExportFile', $this->lng->txt(
'cancel'));
80 $this->
addCommandButton(
'exportAllCodes', $this->lng->txt(
'export_all_survey_codes'));
83 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj, $a_parent_cmd));
98 $this->
enable(
'select_all');
114 if (!$this->confirmdelete)
116 $this->tpl->setCurrentBlock(
'checkbox');
117 $this->tpl->setVariable(
'CB_CODE',
$data[
'code']);
118 $this->tpl->parseCurrentBlock();
122 $this->tpl->setCurrentBlock(
'hidden');
123 $this->tpl->setVariable(
'HIDDEN_CODE',
$data[
"code"]);
124 $this->tpl->parseCurrentBlock();
126 if (strlen(
$data[
'href']))
128 $this->tpl->setCurrentBlock(
'url');
129 $this->tpl->setVariable(
"URL",
$data[
'url']);
130 $this->tpl->setVariable(
"HREF",
$data[
'href']);
131 $this->tpl->parseCurrentBlock();
133 $this->tpl->setVariable(
"USED", (
$data[
'used']) ? $lng->txt(
"used") : $lng->txt(
"not_used"));
134 $this->tpl->setVariable(
"USED_CLASS", (
$data[
'used']) ?
' smallgreen' :
' smallred');
135 $this->tpl->setVariable(
"DATE",
$data[
'date']);
136 $this->tpl->setVariable(
"CODE",
$data[
'code']);