| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace XoopsModules\Smartobject\Form\Elements; |
||
| 43 | public function render() |
||
| 44 | { |
||
| 45 | $ret = "<input type='text' name='" . $this->getName() . "' id='" . $this->getName() . "' size='" . $this->getSize() . "' maxlength='" . $this->getMaxlength() . "' value='" . $this->getValue() . "'" . $this->getExtra() . '>'; |
||
|
|
|||
| 46 | |||
| 47 | $ret .= ' <div class="smartobject_autocomplete_hint" id="smartobject_autocomplete_hint' . $this->getName() . '"></div> |
||
| 48 | |||
| 49 | <script type="text/javascript"> |
||
| 50 | new Ajax.Autocompleter("' . $this->getName() . '","smartobject_autocomplete_hint' . $this->getName() . '","' . $this->_include_file . '?key=' . $this->getName() . '"); |
||
| 51 | </script>'; |
||
| 52 | |||
| 53 | return $ret; |
||
| 54 | } |
||
| 55 | } |
||
| 56 |