48 $this->validationRegexp =
"";
74 $this->values = $a_values;
84 $this->values = $a_value;
104 $this->allowMove = $a_allow_move;
127 if (is_array($foundvalues))
129 foreach ($foundvalues as $idx =>
$value)
134 $this->
setAlert($lng->txt(
"msg_input_is_required"));
142 $this->
setAlert($lng->txt(
"msg_wrong_format"));
150 $this->
setAlert($lng->txt(
"msg_input_is_required"));
164 $tpl =
new ilTemplate(
"tpl.prop_textwizardinput.html",
true,
true,
"Modules/TestQuestionPool");
166 foreach ($this->values as
$value)
170 $tpl->setCurrentBlock(
"prop_text_propval");
172 $tpl->parseCurrentBlock();
177 $tpl->setCurrentBlock(
"move");
179 $tpl->setVariable(
"CMD_UP",
"cmd[up" . $this->
getFieldId() .
"][$i]");
180 $tpl->setVariable(
"CMD_DOWN",
"cmd[down" . $this->
getFieldId() .
"][$i]");
184 $tpl->parseCurrentBlock();
186 $tpl->setCurrentBlock(
"row");
187 $class = ($i % 2 == 0) ?
"even" :
"odd";
188 if ($i == 0) $class .=
" first";
189 if ($i == count($this->values)-1) $class .=
" last";
190 $tpl->setVariable(
"ROW_CLASS", $class);
198 $tpl->setVariable(
"DISABLED",
" disabled=\"disabled\"");
201 if(!$this->disable_actions)
204 $tpl->setVariable(
"ID_REMOVE_BUTTON", $this->
getFieldId() .
"[$i]");
205 $tpl->setVariable(
"CMD_ADD",
"cmd[add" . $this->
getFieldId() .
"][$i]");
206 $tpl->setVariable(
"CMD_REMOVE",
"cmd[remove" . $this->
getFieldId() .
"][$i]");
211 if($this->disable_text)
213 $tpl->setVariable(
'DISABLED_TEXT',
' readonly="readonly"');
216 $tpl->parseCurrentBlock();
221 $a_tpl->setCurrentBlock(
"prop_generic");
222 $a_tpl->setVariable(
"PROP_GENERIC",
$tpl->get());
223 $a_tpl->parseCurrentBlock();
226 include_once
"./Services/YUI/classes/class.ilYuiUtil.php";
228 $tpl->addJavascript(
"./Services/Form/templates/default/textwizard.js");