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"),
'',
'');
68 $this->
addColumn($this->lng->txt(
"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));
85 if (is_null($timeinseconds))
89 else if ($timeinseconds == 0)
91 return $this->lng->txt(
'not_available');
95 return sprintf(
"%02d:%02d:%02d", ($timeinseconds / 3600), ($timeinseconds / 60) % 60, $timeinseconds % 60);
116 $this->tpl->setVariable(
"USERNAME",
$data[
'username']);
117 $this->tpl->setVariable(
"QUESTION",
$data[
'question']);
118 $this->tpl->setVariable(
"RESULTS",
$data[
'results']);
119 $this->tpl->setVariable(
"WORKINGTIME", $this->
formatTime(
$data[
'workingtime']));
121 if(
$data[
"subitems"])
123 $this->tpl->setCurrentBlock(
"tbl_content");
124 $this->tpl->parseCurrentBlock();
126 foreach(
$data[
"subitems"] as $subitem)
130 $this->tpl->setCurrentBlock(
"tbl_content");
131 $this->css_row = ($this->css_row !=
"tblrow1")
134 $this->tpl->setVariable(
"CSS_ROW", $this->css_row);
135 $this->tpl->parseCurrentBlock();