1: <?php
2:
3: namespace webfilesframework\io\form\formItem;
4:
5: 6: 7: 8: 9: 10:
11: class MTimeFormItem extends MAbstractFormItem
12: {
13:
14: public function init()
15: {
16: $this->code = "<div style=\"margin-top:4px;\">" .
17: "<label style=\"width:" . $this->getLabelWidth() . "px;display:block;float:left;\">";
18: if (!empty($this->localizedName)) {
19: $this->code .= $this->localizedName;
20: } else {
21: $this->code .= $this->name;
22: }
23: $this->code .= "</label>
24: <input
25: name=\"" . $this->name . "\"
26: value=\"" . $this->value . "\"
27: dojoType=\"dijit.form.TimeTextBox\"
28: required=\"true\"
29: invalidmessage=\"Required field\"
30: size=\"36\">
31: </div>";
32: }
33:
34:
35: }
36: