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'));
81 $languages = $lng->getInstalledLanguages();
83 foreach ($languages as
$lang)
88 $this->
addSelectionButton(
'lang',
$data,
'setCodeLanguage', $this->lng->txt(
"survey_codes_lang"), $ilUser->getPref(
"survey_code_language"));
89 $this->
addCommandButton(
'exportAllCodes', $this->lng->txt(
'export_all_survey_codes'));
92 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj, $a_parent_cmd));
107 $this->
enable(
'select_all');
123 if (!$this->confirmdelete)
125 $this->tpl->setCurrentBlock(
'checkbox');
126 $this->tpl->setVariable(
'CB_CODE',
$data[
'code']);
127 $this->tpl->parseCurrentBlock();
131 $this->tpl->setCurrentBlock(
'hidden');
132 $this->tpl->setVariable(
'HIDDEN_CODE',
$data[
"code"]);
133 $this->tpl->parseCurrentBlock();
135 if (strlen(
$data[
'href']))
137 $this->tpl->setCurrentBlock(
'url');
138 $this->tpl->setVariable(
"URL",
$data[
'url']);
139 $this->tpl->setVariable(
"HREF",
$data[
'href']);
140 $this->tpl->parseCurrentBlock();
142 $this->tpl->setVariable(
"USED", (
$data[
'used']) ? $lng->txt(
"used") : $lng->txt(
"not_used"));
143 $this->tpl->setVariable(
"USED_CLASS", (
$data[
'used']) ?
' smallgreen' :
' smallred');
144 $this->tpl->setVariable(
"DATE",
$data[
'date']);
145 $this->tpl->setVariable(
"CODE",
$data[
'code']);