32 $this->formaction = $a_formaction;
52 $this->target = $a_target;
72 $this->multipart = $a_multipart;
112 $this->name = $a_name;
132 $this->keepopen = $a_keepopen;
152 $this->opentag = $a_open;
192 $this->prevent_double_submission = $a_val;
210 $tpl =
new ilTemplate(
"tpl.form.html",
true,
true,
"Services/Form");
215 $opentpl =
new ilTemplate(
'tpl.form_open.html',
true,
true,
"Services/Form");
217 $opentpl->setCurrentBlock(
"form_target");
218 $opentpl->setVariable(
"FORM_TARGET", $this->
getTarget());
219 $opentpl->parseCurrentBlock();
222 $opentpl->setCurrentBlock(
"form_name");
223 $opentpl->setVariable(
"FORM_NAME", $this->
getName());
224 $opentpl->parseCurrentBlock();
227 $opentpl->setVariable(
"FORM_CLASS",
"preventDoubleSubmission");
231 $opentpl->touchBlock(
"multipart");
254 $opentpl->setVariable(
"FORM_ACTION", $this->
getFormAction());
255 if ($this->
getId() !=
"") {
256 $opentpl->setVariable(
"FORM_ID", $this->
getId());
258 $opentpl->parseCurrentBlock();
259 $tpl->setVariable(
'FORM_OPEN_TAG', $opentpl->get());
261 $tpl->setVariable(
"FORM_CONTENT", $content);
263 $tpl->setVariable(
"FORM_CLOSE_TAG",
"</form>");
special template class to simplify handling of ITX/PEAR