57 $this->value = $a_value;
77 $this->maxlength = $a_maxlength;
97 $this->size = $a_size;
127 $this->minvalue = $a_minvalue;
147 $this->maxvalue = $a_maxvalue;
167 $this->decimals = $a_decimals;
177 return $this->decimals;
192 $this->
setAlert($lng->txt(
"msg_input_is_required"));
197 if (trim($_POST[$this->
getPostVar()]) !=
"" &&
200 $this->
setAlert($lng->txt(
"form_msg_numeric_value_required"));
205 if (trim($_POST[$this->
getPostVar()]) !=
"" &&
209 $this->
setAlert($lng->txt(
"form_msg_value_too_low"));
214 if (trim($_POST[$this->
getPostVar()]) !=
"" &&
218 $this->
setAlert($lng->txt(
"form_msg_value_too_high"));
237 $a_tpl->setCurrentBlock(
"prop_number_propval");
239 $a_tpl->parseCurrentBlock();
241 $a_tpl->setCurrentBlock(
"prop_number");
243 $a_tpl->setVariable(
"POST_VAR", $this->
getPostVar());
244 $a_tpl->setVariable(
"ID", $this->
getFieldId());
245 $a_tpl->setVariable(
"SIZE", $this->
getSize());
246 $a_tpl->setVariable(
"MAXLENGTH", $this->
getMaxLength());
249 $a_tpl->setVariable(
"DISABLED",
250 " disabled=\"disabled\"");
256 $constraints = $lng->txt(
"form_format").
": ###.".str_repeat(
"#", $this->
getDecimals());
261 $constraints.= $delim.$lng->txt(
"form_min_value").
": ".$this->
getMinValue();
266 $constraints.= $delim.$lng->txt(
"form_max_value").
": ".$this->
getMaxValue();
269 if ($constraints !=
"")
271 $a_tpl->setVariable(
"TXT_NUMBER_CONSTRAINTS", $constraints);
274 $a_tpl->parseCurrentBlock();