24 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
43 $this->
setId(
"tst_eval_all");
49 $this->
setStyle(
'table',
'fullwidth');
50 $this->
addColumn($lng->txt(
"name"),
"name",
"");
51 $this->
addColumn($lng->txt(
"login"),
"login",
"");
54 if (!$this->anonymity)
58 if (strcmp($c,
'gender') == 0) $this->
addColumn($this->lng->txt(
"gender"),
'gender',
'');
59 if (strcmp($c,
'email') == 0) $this->
addColumn($this->lng->txt(
"email"),
'email',
'');
60 if (strcmp($c,
'institution') == 0) $this->
addColumn($this->lng->txt(
"institution"),
'institution',
'');
61 if (strcmp($c,
'street') == 0) $this->
addColumn($this->lng->txt(
"street"),
'street',
'');
62 if (strcmp($c,
'city') == 0) $this->
addColumn($this->lng->txt(
"city"),
'city',
'');
63 if (strcmp($c,
'zipcode') == 0) $this->
addColumn($this->lng->txt(
"zipcode"),
'zipcode',
'');
64 if (strcmp($c,
'country') == 0) $this->
addColumn($this->lng->txt(
"country"),
'country',
'');
65 if (strcmp($c,
'department') == 0) $this->
addColumn($this->lng->txt(
"department"),
'department',
'');
66 if (strcmp($c,
'matriculation') == 0) $this->
addColumn($this->lng->txt(
"matriculation"),
'matriculation',
'');
69 $this->
addColumn($lng->txt(
"tst_reached_points"),
"reached",
"");
70 $this->
addColumn($lng->txt(
"tst_mark"),
"mark",
"");
71 if ($this->parent_obj->object->ects_output)
75 if (strcmp($c,
'ects_grade') == 0) $this->
addColumn($this->lng->txt(
"ects_grade"),
'ects_grade',
'');
78 $this->
addColumn($lng->txt(
"tst_answered_questions"),
"answered",
"");
79 $this->
addColumn($lng->txt(
"working_time"),
"working_time",
"");
80 $this->
addColumn($lng->txt(
"detailed_evaluation"),
"details",
"");
82 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj, $a_parent_cmd));
83 $this->
setRowTemplate(
"tpl.table_evaluation_all.html",
"Modules/Test");
104 if ($this->anonymity)
125 if (!$this->anonymity)
127 $cols[
"gender"] = array(
128 "txt" => $lng->txt(
"gender"),
131 $cols[
"email"] = array(
132 "txt" => $lng->txt(
"email"),
135 $cols[
"institution"] = array(
136 "txt" => $lng->txt(
"institution"),
139 $cols[
"street"] = array(
140 "txt" => $lng->txt(
"street"),
143 $cols[
"city"] = array(
144 "txt" => $lng->txt(
"city"),
147 $cols[
"zipcode"] = array(
148 "txt" => $lng->txt(
"zipcode"),
151 $cols[
"country"] = array(
152 "txt" => $lng->txt(
"country"),
155 $cols[
"department"] = array(
156 "txt" => $lng->txt(
"department"),
159 $cols[
"matriculation"] = array(
160 "txt" => $lng->txt(
"matriculation"),
164 if ($this->parent_obj->object->ects_output)
166 $cols[
"ects_grade"] = array(
167 "txt" => $lng->txt(
"ects_grade"),
179 global
$lng, $rbacreview, $ilUser;
182 include_once(
"./Services/Form/classes/class.ilTextInputGUI.php");
185 $ti->setValidationRegexp(
'/^[^%]+$/is');
188 $ti->readFromSession();
189 $this->filter[
"name"] = $ti->getValue();
194 $ti->setValidationRegexp(
'/^[^%]+$/is');
197 $ti->readFromSession();
198 $this->filter[
"group"] = $ti->getValue();
204 $ti->setValidationRegexp(
'/^[^%]+$/is');
206 $ti->readFromSession();
207 $this->filter[
"course"] = $ti->getValue();
210 include_once(
"./Services/Form/classes/class.ilCheckboxInputGUI.php");
214 $si->readFromSession();
215 $this->filter[
"passedonly"] = $si->getValue();
224 $this->tpl->setVariable(
"NAME",
$data[
'name']);
225 $this->tpl->setVariable(
"LOGIN",
$data[
'login']);
228 if (!$this->anonymity)
230 if (strcmp($c,
'gender') == 0)
232 $this->tpl->setCurrentBlock(
'gender');
233 $this->tpl->setVariable(
"GENDER", $this->lng->txt(
'gender_' .
$data[
'gender']));
234 $this->tpl->parseCurrentBlock();
236 if (strcmp($c,
'email') == 0)
238 $this->tpl->setCurrentBlock(
'email');
239 $this->tpl->setVariable(
"EMAIL", strlen(
$data[
'email']) ?
$data[
'email'] :
' ');
240 $this->tpl->parseCurrentBlock();
242 if (strcmp($c,
'institution') == 0)
244 $this->tpl->setCurrentBlock(
'institution');
245 $this->tpl->setVariable(
"INSTITUTION", strlen(
$data[
'institution']) ?
$data[
'institution'] :
' ');
246 $this->tpl->parseCurrentBlock();
248 if (strcmp($c,
'street') == 0)
250 $this->tpl->setCurrentBlock(
'street');
251 $this->tpl->setVariable(
"STREET", strlen(
$data[
'street']) ?
$data[
'street'] :
' ');
252 $this->tpl->parseCurrentBlock();
254 if (strcmp($c,
'city') == 0)
256 $this->tpl->setCurrentBlock(
'city');
257 $this->tpl->setVariable(
"CITY", strlen(
$data[
'city']) ?
$data[
'city'] :
' ');
258 $this->tpl->parseCurrentBlock();
260 if (strcmp($c,
'zipcode') == 0)
262 $this->tpl->setCurrentBlock(
'zipcode');
263 $this->tpl->setVariable(
"ZIPCODE", strlen(
$data[
'zipcode']) ?
$data[
'zipcode'] :
' ');
264 $this->tpl->parseCurrentBlock();
266 if (strcmp($c,
'country') == 0)
268 $this->tpl->setCurrentBlock(
'country');
269 $this->tpl->setVariable(
"COUNTRY", strlen(
$data[
'country']) ?
$data[
'country'] :
' ');
270 $this->tpl->parseCurrentBlock();
272 if (strcmp($c,
'department') == 0)
274 $this->tpl->setCurrentBlock(
'department');
275 $this->tpl->setVariable(
"DEPARTMENT", strlen(
$data[
'department']) ?
$data[
'department'] :
' ');
276 $this->tpl->parseCurrentBlock();
278 if (strcmp($c,
'matriculation') == 0)
280 $this->tpl->setCurrentBlock(
'matriculation');
281 $this->tpl->setVariable(
"MATRICULATION", strlen(
$data[
'matriculation']) ?
$data[
'matriculation'] :
' ');
282 $this->tpl->parseCurrentBlock();
285 if ($this->parent_obj->object->ects_output)
287 if (strcmp($c,
'ects_grade') == 0)
289 $this->tpl->setCurrentBlock(
'ects_grade');
290 $this->tpl->setVariable(
"ECTS_GRADE",
$data[
'ects_grade']);
291 $this->tpl->parseCurrentBlock();
295 $this->tpl->setVariable(
"REACHED",
$data[
'reached'] .
" " . strtolower($this->lng->txt(
"of")) .
" " .
$data[
'max']);
296 $this->tpl->setVariable(
"MARK",
$data[
'mark']);
297 $this->tpl->setVariable(
"ANSWERED",
$data[
'answered']);
298 $this->tpl->setVariable(
"WORKING_TIME",
$data[
'working_time']);
299 $this->tpl->setVariable(
"DETAILED",
$data[
'details']);
307 if (!is_array($cols)) {
311 $fields_to_unset = array_diff(array_keys($scol), array_keys($cols));
313 foreach($fields_to_unset as $key) {