67 $this->values = $a_values;
99 $tpl =
new ilTemplate(
"tpl.prop_randomtestroinput.html",
true,
true,
"Modules/Test");
101 foreach ($this->values as $value)
103 if ($value[
'num_of_q'] > 0)
105 $tpl->setCurrentBlock(
"num_of_q");
106 $tpl->setVariable(
"NUM_OF_Q", $value[
'num_of_q']);
107 $tpl->setVariable(
"TEXT_FROM", $lng->txt(
'questions_from'));
108 $tpl->parseCurrentBlock();
110 $tpl->setCurrentBlock(
"row");
111 $class = ($i % 2 == 0) ?
"even" :
"odd";
112 if ($i == 0) $class .=
" first";
113 if ($i == count($this->values)-1) $class .=
" last";
114 $tpl->setVariable(
"ROW_CLASS", $class);
116 $tpl->setVariable(
"COUNT_VALUE",
"(" . $value[
'count'] .
" " . $lng->txt(
'assQuestions') .
")");
117 $tpl->parseCurrentBlock();
122 $a_tpl->setCurrentBlock(
"prop_generic");
123 $a_tpl->setVariable(
"PROP_GENERIC",
$tpl->get());
124 $a_tpl->parseCurrentBlock();