51 $this->parameters = array();
91 $this->width = $a_width;
111 $this->height = $a_height;
131 $this->parameters = $a_parameters;
142 $this->parameters[$name] = $value;
152 unset($this->parameters[$name]);
160 $this->parameters = array();
178 array_push($params, urlencode($name) .
"=" . urlencode($value));
179 $a_tpl->setCurrentBlock(
"applet_param_input");
180 $a_tpl->setVariable(
"TEXT_NAME", $lng->txt(
"name"));
181 $a_tpl->setVariable(
"TEXT_VALUE", $lng->txt(
"value"));
182 $a_tpl->setVariable(
"PARAM_INDEX", $index);
183 $a_tpl->setVariable(
"POST_VAR_P", $this->
getPostVar());
186 $a_tpl->setVariable(
"TEXT_DELETE_PARAM", $lng->txt(
"delete_parameter"));
187 $a_tpl->parseCurrentBlock();
190 $a_tpl->setCurrentBlock(
"applet_parameter");
191 $a_tpl->setVariable(
"PARAM_VALUE", join($params,
"&"));
192 $a_tpl->parseCurrentBlock();
193 $a_tpl->setCurrentBlock(
"flash_vars");
194 $a_tpl->setVariable(
"PARAM_VALUE", join($params,
"&"));
195 $a_tpl->parseCurrentBlock();
197 $a_tpl->setCurrentBlock(
"applet");
198 $a_tpl->setVariable(
"TEXT_ADD_PARAM", $lng->txt(
"add_parameter"));
199 $a_tpl->setVariable(
"APPLET_WIDTH", $this->
getWidth());
200 $a_tpl->setVariable(
"APPLET_HEIGHT", $this->
getHeight());
201 $a_tpl->setVariable(
"POST_VAR_D", $this->
getPostVar());
202 $a_tpl->setVariable(
"TEXT_WIDTH", $lng->txt(
"width"));
203 $a_tpl->setVariable(
"TEXT_HEIGHT", $lng->txt(
"height"));
206 if ($this->
getWidth()) $a_tpl->setVariable(
"VALUE_WIDTH",
"value=\"" . $this->
getWidth() .
"\"");
207 if ($this->
getHeight()) $a_tpl->setVariable(
"VALUE_HEIGHT",
"value=\"" . $this->
getHeight() .
"\"");
208 $a_tpl->setVariable(
"ID", $this->
getFieldId());
209 $a_tpl->setVariable(
"TXT_DELETE_EXISTING",
210 $lng->txt(
"delete_existing_file"));
211 $a_tpl->parseCurrentBlock();
214 $js_tpl =
new ilTemplate(
'tpl.flashAddParam.js',
true,
true,
'Services/Form');
215 $js_tpl->setVariable(
"TEXT_NAME", $lng->txt(
"name"));
216 $js_tpl->setVariable(
"TEXT_VALUE", $lng->txt(
"value"));
217 $js_tpl->setVariable(
"POST_VAR", $this->
getPostVar());
218 $js_tpl->setVariable(
"TEXT_DELETE_PARAM", $lng->txt(
"delete_parameter"));
219 $js_tpl->setVariable(
"TEXT_CONFIRM_DELETE_PARAMETER", $lng->txt(
"confirm_delete_parameter"));
221 $a_tpl->setCurrentBlock(
"prop_flash_file");
222 $a_tpl->setVariable(
"POST_VAR", $this->
getPostVar());
223 $a_tpl->setVariable(
"ID", $this->
getFieldId());
224 $a_tpl->setVariable(
"TXT_MAX_SIZE", $lng->txt(
"file_notice").
" ".
226 $a_tpl->setVariable(
"JAVASCRIPT_FLASH", $js_tpl->get());
227 $a_tpl->parseCurrentBlock();
229 include_once
"./Services/YUI/classes/class.ilYuiUtil.php";