60 $this->suffix = $a_value;
80 $this->value = str_replace(
',',
'.', $a_value);
100 $this->maxlength = $a_maxlength;
160 $this->size = $a_size;
190 $this->minvalue = $a_minvalue;
210 $this->maxvalue = $a_maxvalue;
230 $this->decimals = $a_decimals;
240 return $this->decimals;
255 $this->
setAlert($lng->txt(
"msg_input_is_required"));
263 $this->
setAlert($lng->txt(
"form_msg_numeric_value_required"));
274 $this->
setAlert($lng->txt(
"form_msg_value_too_low"));
285 $this->
setAlert($lng->txt(
"form_msg_value_too_low"));
297 $this->
setAlert($lng->txt(
"form_msg_value_too_high"));
308 $this->
setAlert($lng->txt(
"form_msg_value_too_high"));
328 $a_tpl->setCurrentBlock(
"prop_number_propval");
330 $a_tpl->parseCurrentBlock();
332 $a_tpl->setCurrentBlock(
"prop_number");
334 $a_tpl->setVariable(
"POST_VAR", $this->
getPostVar());
335 $a_tpl->setVariable(
"ID", $this->
getFieldId());
336 $a_tpl->setVariable(
"SIZE", $this->
getSize());
337 $a_tpl->setVariable(
"MAXLENGTH", $this->
getMaxLength());
338 if (strlen($this->
getSuffix())) $a_tpl->setVariable(
"INPUT_SUFFIX", $this->
getSuffix());
341 $a_tpl->setVariable(
"DISABLED",
342 " disabled=\"disabled\"");
348 $constraints = $lng->txt(
"form_format").
": ###.".str_repeat(
"#", $this->
getDecimals());
353 $constraints.= $delim.$lng->txt(
"form_min_value").
": ".(($this->
minvalueShouldBeGreater()) ?
"> " :
"").$this->getMinValue();
358 $constraints.= $delim.$lng->txt(
"form_max_value").
": ".(($this->
maxvalueShouldBeLess()) ?
"< " :
"").$this->getMaxValue();
361 if ($constraints !=
"")
363 $a_tpl->setVariable(
"TXT_NUMBER_CONSTRAINTS", $constraints);
366 $a_tpl->parseCurrentBlock();