5 include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
31 $this->
setId(
'tst_participants_' . $a_parent_obj->object->getRefId());
44 $this->
setStyle(
'table',
'fullwidth');
47 $this->
addColumn($this->lng->txt(
"login"),
'login',
'');
48 $this->
addColumn($this->lng->txt(
"name"),
'name',
'');
53 $this->
addColumn($this->lng->txt(
"tst_started"),
'started',
'');
56 $this->
addColumn($this->lng->txt(
"tst_nr_of_tries_of_user"),
'maxpass',
'');
58 $this->
addColumn($this->lng->txt(
"tst_finished"),
'finished',
'');
59 $this->
addColumn($this->lng->txt(
"last_access"),
'access',
'');
61 $this->actionsColumnRequired =
false;
62 if( !$this->testQuestionSetDepenciesBroken )
64 $this->actionsColumnRequired =
true;
69 $this->
setTitle($this->lng->txt(
'tst_participating_users'));
70 $this->
setRowTemplate(
"tpl.il_as_tst_participants_row.html",
"Modules/Test");
72 if( !$this->anonymity && !$this->testQuestionSetDepenciesBroken )
74 $this->
addMultiCommand(
'showPassOverview', $this->lng->txt(
'show_pass_overview'));
75 $this->
addMultiCommand(
'showUserAnswers', $this->lng->txt(
'show_user_answers'));
76 $this->
addMultiCommand(
'showDetailedResults', $this->lng->txt(
'show_detailed_results'));
78 $this->
addMultiCommand(
'deleteSingleUserResults', $this->lng->txt(
'delete_user_data'));
82 $this->
addCommandButton(
'deleteAllUserResults', $this->lng->txt(
'delete_all_user_data'));
85 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj, $a_parent_cmd));
87 if (!$this->anonymity)
100 $this->
enable(
'select_all');
114 $finished =
"<img border=\"0\" align=\"middle\" src=\"".ilUtil::getImagePath(
"icon_ok.png") .
"\" alt=\"".$this->lng->txt(
"ok").
"\" />";
115 $started =
"<img border=\"0\" align=\"middle\" src=\"".ilUtil::getImagePath(
"icon_ok.png") .
"\" alt=\"".$this->lng->txt(
"ok").
"\" />" ;
116 $passes = (
$data[
'maxpass']) ? ((
$data[
'maxpass'] == 1) ? sprintf($this->lng->txt(
"pass_finished"),
$data[
'maxpass']) : sprintf($this->lng->txt(
"passes_finished"),
$data[
'maxpass'])) :
'';
117 $this->tpl->setVariable(
"USER_ID",
$data[
'usr_id']);
118 $this->tpl->setVariable(
"LOGIN",
$data[
'login']);
119 $this->tpl->setVariable(
"FULLNAME",
$data[
'name']);
124 $this->tpl->setVariable(
"STARTED", (
$data[
'started']) ? $started :
'');
125 $this->tpl->setVariable(
"PASSES", $passes);
126 $this->tpl->setVariable(
"FINISHED", (
$data[
'finished']) ? $finished :
'');
129 if(
$data[
'active_id'] > 0 && !$this->testQuestionSetDepenciesBroken )
131 $this->tpl->setCurrentBlock(
'action_results');
132 $this->tpl->setVariable(
"RESULTS",
$data[
'result']);
134 $this->tpl->parseCurrentBlock();
137 if( $this->actionsColumnRequired )
139 $this->tpl->setCurrentBlock(
'actions_column');
140 $this->tpl->parseCurrentBlock();
152 include_once(
"./Services/Form/classes/class.ilSelectInputGUI.php");
156 'all' => $lng->txt(
'all_participants'),
157 'withSolutions' => $lng->txt(
'with_solutions_participants'),
158 'withoutSolutions' => $lng->txt(
'without_solutions_participants')
162 $ti->readFromSession();
163 $this->filter[
"title"] = $ti->getValue();
171 return in_array($field, array(