24 include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
47 $this->
setId(
"svy_usr");
58 $this->
setStyle(
'table',
'fullwidth');
60 $this->
addColumn($this->lng->txt(
"username"),
'username',
'');
67 $this->
addColumn($this->lng->txt(
"question"),
'question',
'');
68 $this->
addColumn($this->lng->txt(
"results"),
'results',
'');
69 $this->
addColumn($this->lng->txt(
"workingtime"),
'workingtime',
'');
71 $this->
setRowTemplate(
"tpl.il_svy_svy_results_user_row.html",
"Modules/Survey");
73 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj, $a_parent_cmd));
82 if (is_null($timeinseconds))
86 else if ($timeinseconds == 0)
88 return $this->lng->txt(
'not_available');
92 return sprintf(
"%02d:%02d:%02d", ($timeinseconds / 3600), ($timeinseconds / 60) % 60, $timeinseconds % 60);
113 $this->tpl->setVariable(
"USERNAME",
$data[
'username']);
114 $this->tpl->setVariable(
"QUESTION",
$data[
'question']);
115 $this->tpl->setVariable(
"RESULTS",
$data[
'results']);
116 $this->tpl->setVariable(
"WORKINGTIME", $this->
formatTime(
$data[
'workingtime']));