1: <?php
2:
3: namespace webfilesframework\io\form\formItem;
4:
5: 6: 7: 8: 9: 10:
11: class MTextareaFormItem extends MAbstractFormItem
12: {
13:
14: public function init()
15: {
16: $this->code = "<div style=\"margin-top:4px;\">";
17: if (!empty($this->localizedName)) {
18: $this->code .= $this->localizedName;
19: } else {
20: $this->code .= $this->name;
21: }
22: $this->code .= "<br />" .
23: "<textarea
24: name=\"" . $this->name . "\"
25: style=\"width: 600px;\"
26: dojoType=\"dijit.form.Textarea\">" . $this->value . "</textarea>" .
27: "</div>";
28: }
29:
30: }