function obj_reload($id) { $textinp = new editor_text(); $checkbox = new editor_checkbox(); $dropdown = new editor_dropdown(); $textarea = new editor_textarea(); switch ($id) { case 'tt': return $textinp->into_div('tt', $_SESSION['tt']); case 'tt1': return $textinp->into_div('tt1', $_SESSION['tt1']); case 'tt4': return $checkbox->into_div('tt4', $_SESSION['tt4']); case 'tt5': $dropdown->options = array("1" => 'option 1', "2" => 'option2', "3" => 'option3', "4" => 'option24'); return print $dropdown->into_div('tt5', $_SESSION['tt5']); case 'tt8': return $textarea->into_div('tt8', $_SESSION['tt8']); } return ''; }
function html() { $this->args[$this->context[$this->long_name]['var']] = ''; parent::html(); }
function handle_event($ev) { #global $sql,$ddc_key_special_types,$ddc_suffixes; $this->oid = $ev->context[$ev->long_name]['oid']; $this->update_bound($ev); parent::handle_event($ev); return; }
function html() { $this->main->attributes['value'] = ''; $this->main->attributes['type'] = 'password'; parent::html(); }
function bootstrap() { parent::bootstrap(); $this->main->attributes['onfocus'] .= "editor_text_ean13_focus(\$i('" . js_escape($this->id_gen()) . "'),this,'" . js_escape($this->keys['-id']) . "');"; $this->main->attributes['onblur'] .= "editor_text_ean13_blur(\$i('" . js_escape($this->id_gen()) . "'),this,'" . js_escape($this->keys['-id']) . "');"; }