80 $this->top = $a_value;
100 $this->bottom = $a_value;
120 $this->left = $a_value;
140 $this->
right = $a_value;
160 $this->size = $a_size;
170 $this->setValue($a_values[$this->
getPostVar()]);
198 $this->
setAlert($lng->txt(
"msg_input_is_required"));
203 if ((!preg_match(
"/\\d+(cm|mm|in|pt|pc|px|em)/",
$_POST[$this->
getPostVar()][
"left"])) ||
204 (!preg_match(
"/\\d+(cm|mm|in|pt|pc|px|em)/",
$_POST[$this->
getPostVar()][
"right"])) ||
205 (!preg_match(
"/\\d+(cm|mm|in|pt|pc|px|em)/",
$_POST[$this->
getPostVar()][
"bottom"])) ||
206 (!preg_match(
"/\\d+(cm|mm|in|pt|pc|px|em)/",
$_POST[$this->
getPostVar()][
"top"])))
208 $this->
setAlert($lng->txt(
"msg_unit_is_required"));
224 if (strlen($this->
getTop()))
226 $a_tpl->setCurrentBlock(
"cssrect_value_top");
228 $a_tpl->parseCurrentBlock();
232 $a_tpl->setCurrentBlock(
"cssrect_value_bottom");
234 $a_tpl->parseCurrentBlock();
238 $a_tpl->setCurrentBlock(
"cssrect_value_left");
240 $a_tpl->parseCurrentBlock();
244 $a_tpl->setCurrentBlock(
"cssrect_value_right");
246 $a_tpl->parseCurrentBlock();
248 $a_tpl->setCurrentBlock(
"cssrect");
249 $a_tpl->setVariable(
"ID", $this->
getFieldId());
250 $a_tpl->setVariable(
"SIZE", $this->
getSize());
251 $a_tpl->setVariable(
"POST_VAR", $this->
getPostVar());
252 $a_tpl->setVariable(
"TEXT_TOP", $lng->txt(
"pos_top"));
253 $a_tpl->setVariable(
"TEXT_RIGHT", $lng->txt(
"pos_right"));
254 $a_tpl->setVariable(
"TEXT_BOTTOM", $lng->txt(
"pos_bottom"));
255 $a_tpl->setVariable(
"TEXT_LEFT", $lng->txt(
"pos_left"));
258 $a_tpl->setVariable(
"DISABLED",
259 " disabled=\"disabled\"");
261 $a_tpl->parseCurrentBlock();