5 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
31 $this->
setId(
"tst_eval_all");
37 $this->
setStyle(
'table',
'fullwidth');
38 $this->
addColumn($lng->txt(
"name"),
"name",
"");
39 $this->
addColumn($lng->txt(
"login"),
"login",
"");
44 if (!$this->anonymity)
48 if (strcmp($c,
'gender') == 0) $this->
addColumn($this->lng->txt(
"gender"),
'gender',
'');
49 if (strcmp($c,
'email') == 0) $this->
addColumn($this->lng->txt(
"email"),
'email',
'');
50 if (strcmp($c,
'institution') == 0) $this->
addColumn($this->lng->txt(
"institution"),
'institution',
'');
51 if (strcmp($c,
'street') == 0) $this->
addColumn($this->lng->txt(
"street"),
'street',
'');
52 if (strcmp($c,
'city') == 0) $this->
addColumn($this->lng->txt(
"city"),
'city',
'');
53 if (strcmp($c,
'zipcode') == 0) $this->
addColumn($this->lng->txt(
"zipcode"),
'zipcode',
'');
57 $this->
addColumn($this->lng->txt(
"country"),
'country',
'');
62 $this->
addColumn($this->lng->txt(
"country"),
'sel_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',
'');
70 $this->
addColumn($lng->txt(
"tst_reached_points"),
"reached",
"");
72 if( $this->offeringQuestionHintsEnabled )
74 $this->
addColumn($lng->txt(
"tst_question_hints_requested_hint_count_header"),
"hint_count",
"");
77 $this->
addColumn($lng->txt(
"tst_mark"),
"mark",
"");
79 if ($this->parent_obj->object->getECTSOutput())
83 if (strcmp($c,
'ects_grade') == 0) $this->
addColumn($this->lng->txt(
"ects_grade"),
'ects_grade',
'');
86 $this->
addColumn($lng->txt(
"tst_answered_questions"),
"answered",
"");
87 $this->
addColumn($lng->txt(
"working_time"),
"working_time",
"");
88 $this->
addColumn($lng->txt(
"detailed_evaluation"),
"details",
"");
90 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj, $a_parent_cmd));
91 $this->
setRowTemplate(
"tpl.table_evaluation_all.html",
"Modules/Test");
103 $this->lng->loadLanguageModule(
'meta');
117 if ($this->anonymity)
140 if (!$this->anonymity)
142 $cols[
"gender"] = array(
143 "txt" => $lng->txt(
"gender"),
146 $cols[
"email"] = array(
147 "txt" => $lng->txt(
"email"),
150 $cols[
"institution"] = array(
151 "txt" => $lng->txt(
"institution"),
154 $cols[
"street"] = array(
155 "txt" => $lng->txt(
"street"),
158 $cols[
"city"] = array(
159 "txt" => $lng->txt(
"city"),
162 $cols[
"zipcode"] = array(
163 "txt" => $lng->txt(
"zipcode"),
168 $cols[
"country"] = array(
169 "txt" => $lng->txt(
"country"),
175 $cols[
"sel_country"] = array(
176 "txt" => $lng->txt(
"country"),
180 $cols[
"department"] = array(
181 "txt" => $lng->txt(
"department"),
184 $cols[
"matriculation"] = array(
185 "txt" => $lng->txt(
"matriculation"),
189 if ($this->parent_obj->object->getECTSOutput())
191 $cols[
"ects_grade"] = array(
192 "txt" => $lng->txt(
"ects_grade"),
207 include_once(
"./Services/Form/classes/class.ilTextInputGUI.php");
210 $ti->setValidationRegexp(
'/^[^%]+$/is');
213 $ti->readFromSession();
214 $this->filter[
"name"] = $ti->getValue();
219 $ti->setValidationRegexp(
'/^[^%]+$/is');
222 $ti->readFromSession();
223 $this->filter[
"group"] = $ti->getValue();
229 $ti->setValidationRegexp(
'/^[^%]+$/is');
231 $ti->readFromSession();
232 $this->filter[
"course"] = $ti->getValue();
235 include_once(
"./Services/Form/classes/class.ilCheckboxInputGUI.php");
239 $si->readFromSession();
240 $this->filter[
"passedonly"] =
$si->getValue();
249 $this->tpl->setVariable(
"NAME",
$data[
'name']);
250 $this->tpl->setVariable(
"LOGIN",
$data[
'login']);
253 if (!$this->anonymity)
255 if (strcmp($c,
'gender') == 0)
257 $this->tpl->setCurrentBlock(
'gender');
258 $this->tpl->setVariable(
"GENDER", $this->lng->txt(
'gender_' .
$data[
'gender']));
259 $this->tpl->parseCurrentBlock();
261 if (strcmp($c,
'email') == 0)
263 $this->tpl->setCurrentBlock(
'email');
264 $this->tpl->setVariable(
"EMAIL", strlen(
$data[
'email']) ?
$data[
'email'] :
' ');
265 $this->tpl->parseCurrentBlock();
267 if (strcmp($c,
'institution') == 0)
269 $this->tpl->setCurrentBlock(
'institution');
270 $this->tpl->setVariable(
"INSTITUTION", strlen(
$data[
'institution']) ?
$data[
'institution'] :
' ');
271 $this->tpl->parseCurrentBlock();
273 if (strcmp($c,
'street') == 0)
275 $this->tpl->setCurrentBlock(
'street');
276 $this->tpl->setVariable(
"STREET", strlen(
$data[
'street']) ?
$data[
'street'] :
' ');
277 $this->tpl->parseCurrentBlock();
279 if (strcmp($c,
'city') == 0)
281 $this->tpl->setCurrentBlock(
'city');
282 $this->tpl->setVariable(
"CITY", strlen(
$data[
'city']) ?
$data[
'city'] :
' ');
283 $this->tpl->parseCurrentBlock();
285 if (strcmp($c,
'zipcode') == 0)
287 $this->tpl->setCurrentBlock(
'zipcode');
288 $this->tpl->setVariable(
"ZIPCODE", strlen(
$data[
'zipcode']) ?
$data[
'zipcode'] :
' ');
289 $this->tpl->parseCurrentBlock();
293 $this->tpl->setCurrentBlock(
'country');
294 $this->tpl->setVariable(
"COUNTRY", strlen(
$data[
'country']) ?
$data[
'country'] :
' ');
295 $this->tpl->parseCurrentBlock();
299 $this->tpl->setCurrentBlock(
'country');
301 $this->tpl->parseCurrentBlock();
303 if (strcmp($c,
'department') == 0)
305 $this->tpl->setCurrentBlock(
'department');
306 $this->tpl->setVariable(
"DEPARTMENT", strlen(
$data[
'department']) ?
$data[
'department'] :
' ');
307 $this->tpl->parseCurrentBlock();
309 if (strcmp($c,
'matriculation') == 0)
311 $this->tpl->setCurrentBlock(
'matriculation');
312 $this->tpl->setVariable(
"MATRICULATION", strlen(
$data[
'matriculation']) ?
$data[
'matriculation'] :
' ');
313 $this->tpl->parseCurrentBlock();
316 if ($this->parent_obj->object->getECTSOutput())
318 if (strcmp($c,
'ects_grade') == 0)
320 $this->tpl->setCurrentBlock(
'ects_grade');
321 $this->tpl->setVariable(
"ECTS_GRADE",
$data[
'ects_grade']);
322 $this->tpl->parseCurrentBlock();
326 $this->tpl->setVariable(
"REACHED",
$data[
'reached'] .
" " . strtolower($this->lng->txt(
"of")) .
" " .
$data[
'max']);
328 if( $this->offeringQuestionHintsEnabled )
330 $this->tpl->setVariable(
"HINT_COUNT",
$data[
'hint_count']);
333 $data[
'answered'] =
$data[
'questions_worked_through'] .
" " . strtolower($this->lng->txt(
"of")) .
" " .
$data[
'number_of_questions'] .
" (" . sprintf(
"%2.2f",
$data[
'answered']) .
" %" .
")";
335 $this->tpl->setVariable(
"MARK",
$data[
'mark']);
336 $this->tpl->setVariable(
"ANSWERED",
$data[
'answered']);
337 $this->tpl->setVariable(
"WORKING_TIME",
$data[
'working_time']);
338 $this->tpl->setVariable(
"DETAILED",
$data[
'details']);
346 if (!is_array($cols)) {
350 $fields_to_unset = array_diff(array_keys($scol), array_keys($cols));
352 foreach($fields_to_unset as $key) {
361 return $this->lng->txt(
'meta_c_'.$countryCode);
368 if( $ilSetting->get(
"usr_settings_hide_".$fieldIdentifier) )
373 if( !$ilSetting->get(
'usr_settings_visib_reg_'.$fieldIdentifier) )
378 if( !$ilSetting->get(
'usr_settings_visib_lua_'.$fieldIdentifier) )
383 if ( $ilSetting->get(
"usr_settings_disable_".$fieldIdentifier) )
388 if( !$ilSetting->get(
'usr_settings_changeable_lua_'.$fieldIdentifier) )