43 parent::__construct($a_title, $a_postvar);
44 $this->
setType(
"background_image");
54 $this->value = $a_value;
105 $this->
setAlert($lng->txt(
"msg_input_is_required"));
110 if (
$type ==
"external")
127 $tpl =
new ilTemplate(
"tpl.prop_background_image.html",
true,
true,
"Services/Style/Content");
135 if (is_int(strpos(
$value,
"/")))
137 $current_type =
"ext";
138 $tpl->setVariable(
"EXTERNAL_SELECTED",
'checked="checked"');
143 $current_type =
"int";
144 $tpl->setVariable(
"INTERNAL_SELECTED",
'checked="checked"');
147 foreach ($int_options as $option)
149 $tpl->setCurrentBlock(
"int_option");
150 $tpl->setVariable(
"VAL_INT", $option);
151 $tpl->setVariable(
"TXT_INT", $option);
153 if ($current_type ==
"int" &&
$value == $option)
155 $tpl->setVariable(
"INT_SELECTED",
'selected="selected"');
157 $tpl->parseCurrentBlock();
160 $a_tpl->setCurrentBlock(
"prop_generic");
161 $a_tpl->setVariable(
"PROP_GENERIC",
$tpl->get());
162 $a_tpl->parseCurrentBlock();
174 if ($a_values[$this->
getPostVar()][
"type"] ==
"internal")
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms public
Done rendering charts as images
special template class to simplify handling of ITX/PEAR
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
Create styles array
The data for the language used.