24 include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
48 parent::__construct($a_parent_obj, $a_parent_cmd);
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'));
82 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj, $a_parent_cmd));
99 $this->
enable(
'select_all');
113 if (!$this->confirmdelete)
115 $this->tpl->setCurrentBlock(
'checkbox');
116 $this->tpl->setVariable(
"CB_USER_ID",
$data[
'id']);
117 $this->tpl->parseCurrentBlock();
121 $this->tpl->setCurrentBlock(
'hidden');
122 $this->tpl->setVariable(
'HIDDEN_USER_ID',
$data[
"id"]);
123 $this->tpl->parseCurrentBlock();
125 $this->tpl->setVariable(
"USER_ID",
$data[
"id"]);
126 $this->tpl->setVariable(
"VALUE_USER_NAME",
$data[
'name']);
127 $this->tpl->setVariable(
"VALUE_USER_LOGIN",
$data[
'login']);
129 $this->tpl->setVariable(
"WORKINGTIME", $this->
formatTime(
$data[
'workingtime']));
131 if(
$data[
"finished"] !== null)
133 if(
$data[
"finished"] !==
false)
141 $this->tpl->setVariable(
"FINISHED", $finished);
145 $this->tpl->setVariable(
"FINISHED",
" ");
151 if (is_null($timeinseconds))
155 else if ($timeinseconds == 0)
157 return $this->lng->txt(
'not_available');
161 return sprintf(
"%02d:%02d:%02d", ($timeinseconds / 3600), ($timeinseconds / 60) % 60, $timeinseconds % 60);
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
__construct($a_parent_obj, $a_parent_cmd, $confirmdelete=false)
Constructor.
numericOrdering($a_field)
public
setStyle($a_element, $a_style)
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
addMultiCommand($a_cmd, $a_text)
Add Command button.
enable($a_module_name)
enables particular modules of table
static formatDate(ilDateTime $date)
Format a date public.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
disable($a_module_name)
diesables particular modules of table
setFormName($a_formname="")
Set Form name.
setShowRowsSelector($a_value)
Toggle rows-per-page selector.
setSelectAllCheckbox($a_select_all_checkbox)
Set the name of the checkbox that should be toggled with a select all button.
addColumn($a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
formatTime($timeinseconds)