24 include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
 
   47                 $this->
setId(
"qpl_print");
 
   57                 $this->
setStyle(
'table', 
'fullwidth');
 
   58                 $this->
addColumn($this->lng->txt(
"title"),
'title', 
'');
 
   61                         if (strcmp($c, 
'description') == 0) $this->
addColumn($this->lng->txt(
"description"),
'description', 
'');
 
   62                         if (strcmp($c, 
'author') == 0) $this->
addColumn($this->lng->txt(
"author"),
'author', 
'');
 
   63                         if (strcmp($c, 
'ttype') == 0) $this->
addColumn($this->lng->txt(
"question_type"),
'ttype', 
'');
 
   64                         if (strcmp($c, 
'created') == 0) $this->
addColumn($this->lng->txt(
"create_date"),
'created', 
'');
 
   65                         if (strcmp($c, 
'updated') == 0) $this->
addColumn($this->lng->txt(
"last_update"),
'updated', 
'');
 
   68                 $this->
addCommandButton(
'print', $this->lng->txt(
'print'), 
"javascript:window.print();return false;");
 
   70                 $this->
setRowTemplate(
"tpl.il_as_qpl_printview_row.html", 
"Modules/TestQuestionPool");
 
   72                 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj, $a_parent_cmd));
 
   86                 $cols[
"description"] = array(
 
   87                         "txt" => $lng->txt(
"description"),
 
   90                 $cols[
"author"] = array(
 
   91                         "txt" => $lng->txt(
"author"),
 
   94                 $cols[
"ttype"] = array(
 
   95                         "txt" => $lng->txt(
"question_type"),
 
   98                 $cols[
"created"] = array(
 
   99                         "txt" => $lng->txt(
"create_date"),
 
  102                 $cols[
"updated"] = array(
 
  103                         "txt" => $lng->txt(
"last_update"),
 
  121                         if (strcmp($c, 
'description') == 0)
 
  123                                 $this->tpl->setCurrentBlock(
'description');
 
  125                                 $this->tpl->parseCurrentBlock();
 
  127                         if (strcmp($c, 
'author') == 0)
 
  129                                 $this->tpl->setCurrentBlock(
'author');
 
  131                                 $this->tpl->parseCurrentBlock();
 
  133                         if (strcmp($c, 
'ttype') == 0)
 
  135                                 $this->tpl->setCurrentBlock(
'ttype');
 
  137                                 $this->tpl->parseCurrentBlock();
 
  139                         if (strcmp($c, 
'created') == 0)
 
  141                                 $this->tpl->setCurrentBlock(
'created');
 
  143                                 $this->tpl->parseCurrentBlock();
 
  145                         if (strcmp($c, 
'updated') == 0)
 
  147                                 $this->tpl->setCurrentBlock(
'updated');
 
  149                                 $this->tpl->parseCurrentBlock();
 
  152                 if ((strcmp($this->outputmode, 
"detailed") == 0) || (strcmp($this->outputmode, 
"detailed_printview") == 0))
 
  154                         $this->tpl->setCurrentBlock(
"overview_row_detail");
 
  155                         include_once 
"./Modules/TestQuestionPool/classes/class.assQuestion.php";
 
  157                         if (strcmp($this->outputmode, 
"detailed") == 0)
 
  159                                 $solutionoutput = $question_gui->getSolutionOutput($active_id = 
"", 
$pass = NULL, $graphicalOutput = FALSE, $result_output = FALSE, $show_question_only = FALSE, $show_feedback = FALSE, $show_correct_solution = 
true, $show_manual_scoring = 
false);
 
  160                                 if (strlen($solutionoutput) == 0) $solutionoutput = $question_gui->getPreview();
 
  161                                 $this->tpl->setVariable(
"DETAILS", $solutionoutput);
 
  165                                 $this->tpl->setVariable(
"DETAILS", $question_gui->getPreview());
 
  167                         $this->tpl->parseCurrentBlock();