45 $this->validationRegexp =
"";
55 $this->values = $a_values;
65 $this->values = $a_value;
85 $this->allowMove = $a_allow_move;
108 if (is_array($foundvalues))
110 foreach ($foundvalues as $idx =>
$value)
115 $this->
setAlert($lng->txt(
"msg_input_is_required"));
123 $this->
setAlert($lng->txt(
"msg_wrong_format"));
131 $this->
setAlert($lng->txt(
"msg_input_is_required"));
145 $tpl =
new ilTemplate(
"tpl.prop_textwizardinput.html",
true,
true,
"Services/Form");
147 foreach ($this->values as
$value)
151 $tpl->setCurrentBlock(
"prop_text_propval");
153 $tpl->parseCurrentBlock();
157 $tpl->setCurrentBlock(
"move");
158 $tpl->setVariable(
"CMD_UP",
"cmd[up" . $this->
getFieldId() .
"][$i]");
159 $tpl->setVariable(
"CMD_DOWN",
"cmd[down" . $this->
getFieldId() .
"][$i]");
163 $tpl->parseCurrentBlock();
165 $tpl->setCurrentBlock(
"row");
166 $class = ($i % 2 == 0) ?
"even" :
"odd";
167 if ($i == 0) $class .=
" first";
168 if ($i == count($this->values)-1) $class .=
" last";
169 $tpl->setVariable(
"ROW_CLASS", $class);
172 $tpl->setVariable(
"CMD_ADD",
"cmd[add" . $this->
getFieldId() .
"][$i]");
173 $tpl->setVariable(
"CMD_REMOVE",
"cmd[remove" . $this->
getFieldId() .
"][$i]");
178 $tpl->setVariable(
"DISABLED",
179 " disabled=\"disabled\"");
183 $tpl->parseCurrentBlock();
188 $a_tpl->setCurrentBlock(
"prop_generic");
189 $a_tpl->setVariable(
"PROP_GENERIC",
$tpl->get());
190 $a_tpl->parseCurrentBlock();
193 include_once
"./Services/YUI/classes/class.ilYuiUtil.php";
195 $tpl->addJavascript(
"./Services/Form/templates/default/textwizard.js");