47 $this->values = $a_values;
79 $tpl =
new ilTemplate(
"tpl.prop_randomtestroinput.html",
true,
true,
"Modules/Test");
81 foreach ($this->values as $value)
83 if ($value[
'num_of_q'] > 0)
85 $tpl->setCurrentBlock(
"num_of_q");
86 $tpl->setVariable(
"NUM_OF_Q", $value[
'num_of_q']);
87 $tpl->setVariable(
"TEXT_FROM", $lng->txt(
'questions_from'));
88 $tpl->parseCurrentBlock();
90 $tpl->setCurrentBlock(
"row");
91 $class = ($i % 2 == 0) ?
"even" :
"odd";
92 if ($i == 0) $class .=
" first";
93 if ($i == count($this->values)-1) $class .=
" last";
94 $tpl->setVariable(
"ROW_CLASS", $class);
96 $tpl->setVariable(
"COUNT_VALUE",
"(" . $value[
'count'] .
" " . $lng->txt(
'assQuestions') .
")");
97 $tpl->parseCurrentBlock();
102 $a_tpl->setCurrentBlock(
"prop_generic");
103 $a_tpl->setVariable(
"PROP_GENERIC",
$tpl->get());
104 $a_tpl->parseCurrentBlock();