24 include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
58 $this->
setStyle(
'table',
'fullwidth');
64 $this->
addColumn($this->lng->txt(
"name"),
'name',
'');
65 $this->
addColumn($this->lng->txt(
"login"),
'login',
'');
66 $this->
addColumn($this->lng->txt(
"last_access"),
'last_access',
'');
67 $this->
addColumn($this->lng->txt(
"workingtime"),
'workingtime',
'');
68 $this->
addColumn($this->lng->txt(
"survey_results_finished"),
'finished',
'');
70 $this->
setRowTemplate(
"tpl.il_svy_svy_maintenance_row.html",
"Modules/Survey");
74 $this->
addCommandButton(
'confirmDeleteSelectedUserData', $this->lng->txt(
'confirm'));
75 $this->
addCommandButton(
'cancelDeleteSelectedUserData', $this->lng->txt(
'cancel'));
79 $this->
addMultiCommand(
'deleteSingleUserResults', $this->lng->txt(
'delete_user_data'));
80 $this->
addCommandButton(
'deleteAllUserData', $this->lng->txt(
'svy_delete_all_user_data'));
83 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj, $a_parent_cmd));
100 $this->
enable(
'select_all');
114 if (!$this->confirmdelete)
116 $this->tpl->setCurrentBlock(
'checkbox');
117 $this->tpl->setVariable(
"CB_USER_ID",
$data[
'id']);
118 $this->tpl->parseCurrentBlock();
122 $this->tpl->setCurrentBlock(
'hidden');
123 $this->tpl->setVariable(
'HIDDEN_USER_ID',
$data[
"id"]);
124 $this->tpl->parseCurrentBlock();
126 $this->tpl->setVariable(
"USER_ID",
$data[
"id"]);
127 $this->tpl->setVariable(
"VALUE_USER_NAME",
$data[
'name']);
128 $this->tpl->setVariable(
"VALUE_USER_LOGIN",
$data[
'login']);
130 $this->tpl->setVariable(
"WORKINGTIME", $this->
formatTime(
$data[
'workingtime']));
132 if(
$data[
"finished"] !== null)
134 if(
$data[
"finished"] !==
false)
142 $this->tpl->setVariable(
"FINISHED", $finished);
146 $this->tpl->setVariable(
"FINISHED",
" ");
152 if (is_null($timeinseconds))
156 else if ($timeinseconds == 0)
158 return $this->lng->txt(
'not_available');
162 return sprintf(
"%02d:%02d:%02d", ($timeinseconds / 3600), ($timeinseconds / 60) % 60, $timeinseconds % 60);