55 $this->lng = $DIC->language();
56 parent::__construct($a_title, $a_postvar);
88 $this->
top = $a_value;
108 $this->bottom = $a_value;
128 $this->left = $a_value;
148 $this->right = $a_value;
168 $this->
size = $a_size;
178 $this->setValue($a_values[$this->
getPostVar()]);
209 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()][
"left"])) ||
210 (!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"])) ||
211 (!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"])) ||
212 (!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"]))) {
229 if (strlen($this->
getTop())) {
230 $a_tpl->setCurrentBlock(
"cssrect_value_top");
232 $a_tpl->parseCurrentBlock();
235 $a_tpl->setCurrentBlock(
"cssrect_value_bottom");
237 $a_tpl->parseCurrentBlock();
239 if (strlen($this->
getLeft())) {
240 $a_tpl->setCurrentBlock(
"cssrect_value_left");
242 $a_tpl->parseCurrentBlock();
245 $a_tpl->setCurrentBlock(
"cssrect_value_right");
247 $a_tpl->parseCurrentBlock();
249 $a_tpl->setCurrentBlock(
"cssrect");
250 $a_tpl->setVariable(
"ID", $this->
getFieldId());
251 $a_tpl->setVariable(
"SIZE", $this->
getSize());
252 $a_tpl->setVariable(
"POST_VAR", $this->
getPostVar());
253 $a_tpl->setVariable(
"TEXT_TOP",
$lng->txt(
"pos_top"));
254 $a_tpl->setVariable(
"TEXT_RIGHT",
$lng->txt(
"pos_right"));
255 $a_tpl->setVariable(
"TEXT_BOTTOM",
$lng->txt(
"pos_bottom"));
256 $a_tpl->setVariable(
"TEXT_LEFT",
$lng->txt(
"pos_left"));
260 " disabled=\"disabled\"" 263 $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
Set page orientation and size