24include_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'));
 
   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);
 
static formatDate(ilDateTime $date)
Format a date @access public.
@classDescription Date and time handling
__construct($a_parent_obj, $a_parent_cmd, $confirmdelete=false)
Constructor.
numericOrdering($a_field)
@access public
formatTime($timeinseconds)
addColumn($a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="")
Add a column to the header.
setShowRowsSelector($a_value)
Toggle rows-per-page selector.
setPrefix($a_prefix)
set prefix for sort and offset fields (if you have two or more tables on a page that you want to sort...
setRowTemplate($a_template, $a_template_dir="")
Set row template.
addMultiCommand($a_cmd, $a_text)
Add Command button.
setFormName($a_formname)
Set Form name.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
setSelectAllCheckbox($a_select_all_checkbox)
Set the name of the checkbox that should be toggled with a select all button.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
disable($a_module_name)
diesables particular modules of table
setStyle($a_element, $a_style)
enable($a_module_name)
enables particular modules of table