24 include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
58 $this->
setStyle(
'table',
'fullwidth');
61 $this->
addColumn($this->lng->txt(
"login"),
'login',
'');
62 $this->
addColumn($this->lng->txt(
"name"),
'name',
'');
67 $this->
addColumn($this->lng->txt(
"tst_started"),
'started',
'');
70 $this->
addColumn($this->lng->txt(
"tst_nr_of_tries_of_user"),
'maxpass',
'');
72 $this->
addColumn($this->lng->txt(
"tst_finished"),
'finished',
'');
73 $this->
addColumn($this->lng->txt(
"last_access"),
'access',
'');
76 $this->
setTitle($this->lng->txt(
'tst_participating_users'));
77 $this->
setRowTemplate(
"tpl.il_as_tst_participants_row.html",
"Modules/Test");
79 if (!$this->anonymity)
81 $this->
addMultiCommand(
'showPassOverview', $this->lng->txt(
'show_pass_overview'));
82 $this->
addMultiCommand(
'showUserAnswers', $this->lng->txt(
'show_user_answers'));
83 $this->
addMultiCommand(
'showDetailedResults', $this->lng->txt(
'show_detailed_results'));
85 $this->
addMultiCommand(
'deleteSingleUserResults', $this->lng->txt(
'delete_user_data'));
89 $this->
addCommandButton(
'deleteAllUserResults', $this->lng->txt(
'delete_all_user_data'));
92 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj, $a_parent_cmd));
94 if (!$this->anonymity)
108 $this->
enable(
'select_all');
120 $finished =
"<img border=\"0\" align=\"middle\" src=\"".ilUtil::getImagePath(
"icon_ok.png") .
"\" alt=\"".$this->lng->txt(
"ok").
"\" />";
121 $started =
"<img border=\"0\" align=\"middle\" src=\"".ilUtil::getImagePath(
"icon_ok.png") .
"\" alt=\"".$this->lng->txt(
"ok").
"\" />" ;
122 $passes = (
$data[
'maxpass']) ? ((
$data[
'maxpass'] == 1) ? sprintf($this->lng->txt(
"pass_finished"),
$data[
'maxpass']) : sprintf($this->lng->txt(
"passes_finished"),
$data[
'maxpass'])) :
'';
123 $this->tpl->setVariable(
"USER_ID",
$data[
'usr_id']);
124 $this->tpl->setVariable(
"LOGIN",
$data[
'login']);
125 $this->tpl->setVariable(
"FULLNAME",
$data[
'name']);
130 $this->tpl->setVariable(
"STARTED", (
$data[
'started']) ? $started :
'');
131 $this->tpl->setVariable(
"PASSES", $passes);
132 $this->tpl->setVariable(
"FINISHED", (
$data[
'finished']) ? $finished :
'');
134 if (
$data[
'active_id'] > 0)
136 $this->tpl->setCurrentBlock(
'results');
137 $this->tpl->setVariable(
"RESULTS",
$data[
'result']);
139 $this->tpl->parseCurrentBlock();
151 include_once(
"./Services/Form/classes/class.ilSelectInputGUI.php");
155 'all' => $lng->txt(
'all_participants'),
156 'withSolutions' => $lng->txt(
'with_solutions_participants'),
157 'withoutSolutions' => $lng->txt(
'without_solutions_participants')
161 $ti->readFromSession();
162 $this->filter[
"title"] = $ti->getValue();
170 return in_array($field, array(