5 include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
 
   32                 $this->
setStyle(
'table', 
'fullwidth');
 
   36                 $this->
setFormAction($ilCtrl->getFormAction($parentObj, $parentCmd));
 
   38                 $this->
setRowTemplate(
"tpl.il_as_tst_pass_overview_tblrow.html", 
"Modules/Test");
 
   48                 $this->
addColumn($lng->txt(
"scored_pass"),
'', 
'150');
 
   49                 $this->
addColumn($lng->txt(
"pass"),
'pass', 
'');
 
   50                 $this->
addColumn($lng->txt(
"date"),
'finishdate', 
'');
 
   51                 $this->
addColumn($lng->txt(
"tst_answered_questions"),
'answered_questions', 
'');
 
   52                 $this->
addColumn($lng->txt(
"tst_reached_points"),
'reached_points', 
'');
 
   53                 $this->
addColumn($lng->txt(
"tst_percent_solved"),
'percentage', 
'');
 
   76                 $ilCtrl->setParameter($this->parent_obj, 
'active_id', 
$row[
'active_id']);
 
   77                 $ilCtrl->setParameter($this->parent_obj, 
'pass', 
$row[
'pass']);
 
   79                 if( 
$row[
'is_scored_pass'] )
 
   81                         $this->tpl->setCurrentBlock(
'selected_pass');
 
   82                         $this->tpl->touchBlock(
'selected_pass');
 
   83                         $this->tpl->parseCurrentBlock();
 
   84                         $this->tpl->setVariable(
'CSS_ROW', 
'tblrowmarked');
 
   87                 $this->tpl->setVariable(
"PASS_NR", 
$row[
'pass'] + 1);
 
   89                 $this->tpl->setVariable(
"PASS_ANSWERED_QUESTIONS", 
$row[
'answered_questions'].
" ".strtolower($this->lng->txt(
"of")).
" ".
$row[
'total_questions']);
 
   90                 $this->tpl->setVariable(
"PASS_REACHED_POINTS", 
$row[
'reached_points'].
" ".strtolower($this->lng->txt(
"of")).
" ".
$row[
'max_points']);
 
   91                 $this->tpl->setVariable(
"PASS_REACHED_PERCENTAGE", sprintf(
"%.2f%%", 
$row[
'percentage']));
 
   93                 $this->tpl->setVariable(
"TXT_SHOW_PASS", $lng->txt(
'tst_edit_scoring'));
 
   94                 $this->tpl->setVariable(
"HREF_SHOW_PASS", $ilCtrl->getLinkTarget($this->parent_obj, $this->parent_cmd));