55 $this->lng = $DIC->language();
56 parent::__construct($a_title, $a_postvar);
63 $this->top = $valueArray[
'top'];
64 $this->
left = $valueArray[
'left'];
65 $this->right = $valueArray[
'right'];
66 $this->bottom = $valueArray[
'bottom'];
96 $this->top = $a_value;
116 $this->bottom = $a_value;
136 $this->
left = $a_value;
156 $this->right = $a_value;
176 $this->
size = $a_size;
189 'top' => $a_values[$postVar .
'_top'],
190 'bottom' => $a_values[$postVar .
'_bottom'],
191 'right' => $a_values[$postVar .
'_right'],
192 'left' => $a_values[$postVar .
'_left'],
236 if ((!preg_match(
'/^(([1-9]+|([1-9]+[0]*[\.,]{0,1}[\d]+))|(0[\.,](0*[1-9]+[\d]*))|0)(cm|mm|in|pt|pc|px|em)$/is',
$_POST[$this->
getPostVar() .
'_top'])) ||
237 (!preg_match(
'/^(([1-9]+|([1-9]+[0]*[\.,]{0,1}[\d]+))|(0[\.,](0*[1-9]+[\d]*))|0)(cm|mm|in|pt|pc|px|em)$/is',
$_POST[$this->
getPostVar() .
'_right'])) ||
238 (!preg_match(
'/^(([1-9]+|([1-9]+[0]*[\.,]{0,1}[\d]+))|(0[\.,](0*[1-9]+[\d]*))|0)(cm|mm|in|pt|pc|px|em)$/is',
$_POST[$this->
getPostVar() .
'_bottom'])) ||
239 (!preg_match(
'/^(([1-9]+|([1-9]+[0]*[\.,]{0,1}[\d]+))|(0[\.,](0*[1-9]+[\d]*))|0)(cm|mm|in|pt|pc|px|em)$/is',
$_POST[$this->
getPostVar() .
'_left']))) {
256 if (strlen($this->
getTop())) {
257 $a_tpl->setCurrentBlock(
"cssrect_value_top");
259 $a_tpl->parseCurrentBlock();
262 $a_tpl->setCurrentBlock(
"cssrect_value_bottom");
264 $a_tpl->parseCurrentBlock();
266 if (strlen($this->
getLeft())) {
267 $a_tpl->setCurrentBlock(
"cssrect_value_left");
269 $a_tpl->parseCurrentBlock();
272 $a_tpl->setCurrentBlock(
"cssrect_value_right");
274 $a_tpl->parseCurrentBlock();
276 $a_tpl->setCurrentBlock(
"cssrect");
277 $a_tpl->setVariable(
"ID", $this->
getFieldId());
278 $a_tpl->setVariable(
"SIZE", $this->
getSize());
279 $a_tpl->setVariable(
"POST_VAR", $this->
getPostVar());
280 $a_tpl->setVariable(
"TEXT_TOP",
$lng->txt(
"pos_top"));
281 $a_tpl->setVariable(
"TEXT_RIGHT",
$lng->txt(
"pos_right"));
282 $a_tpl->setVariable(
"TEXT_BOTTOM",
$lng->txt(
"pos_bottom"));
283 $a_tpl->setVariable(
"TEXT_LEFT",
$lng->txt(
"pos_left"));
287 " disabled=\"disabled\"" 290 $a_tpl->parseCurrentBlock();
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms public
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled