1: <?php
2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13:
14:
15: 16: 17: 18: 19: 20: 21:
22: class Horde_Core_Ui_VarRenderer_whups extends Horde_Core_Ui_VarRenderer_Html {
23:
24: function _renderVarInput_whups_form_type_whupsemail($form, &$var, &$vars)
25: {
26: $name = $var->getVarName();
27:
28: $GLOBALS['injector']->getInstance('Horde_Core_Factory_Imple')->create(array('whups', 'ContactAutoCompleter'), array(
29: 'triggerId' => $name
30: ));
31:
32: return sprintf('<input type="text" name="%s" id="%s" value="%s" autocomplete="off"%s />',
33: $name,
34: $name,
35: @htmlspecialchars($var->getValue($vars)),
36: $this->_getActionScripts($form, $var))
37: . '<span id="' . $name . '_loading_img" style="display:none;">'
38: . Horde::img('loading.gif', _("Loading..."))
39: . '</span>';
40: }
41:
42: }
43: