function __construct() { parent::__construct(); $this->etype = 'workers_container'; $this->workers['sql_null'] = new editor_sql_null(); $this->workers['sql_immed'] = new editor_sql_immed(); $this->workers['sql_var'] = new editor_sql_var(); $this->workers['sql_list'] = new editor_sql_list(); $this->workers['sql_order'] = $this->workers['sql_list']; $this->workers['sql_expression'] = new editor_sql_expression(); $this->workers['sql_column'] = new editor_sql_column(); $this->workers['sql_subquery'] = new editor_sql_subquery(); $this->workers['sql_select'] = new editor_sql_select(); $this->workers['sql_joins'] = new editor_sql_joins(); $this->workers['query_gen_ext'] = $this->workers['sql_select']; foreach ($this->workers as $n => $e) { editor_generic::addeditor($n, $e); $this->append_child($e); $e->workers =& $this->workers; $e->args =& $this->args; $e->keys =& $this->keys; $e->context =& $this->context; } }
function html_inner() { $this->text->attributes['value'] = $this->args[$this->context[$this->long_name]['var']]; $this->text->attributes['onfocus'] = "chse.activatemon({obj:this,objtype:'editor_text',static:" . $this->send . "});this.selectionStart=0;this.selectionEnd=this.value.length;clearTimeout(this.hide_timeout);var st=" . $this->send . ";st.name+='.fo';st.type+='.editor_hidden';chse.send_or_push({static:st,val:encodeURIComponent(this.value),c_id:this.id});"; $this->text->attributes['onfocus'] .= "\$i('" . js_escape($this->div->id_gen()) . "').tabIndex=1000;"; $this->text->attributes['onblur'] = "chse.latedeactivate(this);if(this.refresh_timeout)clearTimeout(this.refresh_timeout);this.hide_timeout=setTimeout('\$i(\\'" . js_escape($this->div->id_gen()) . "\\').style.display=\\'none\\';',200);"; $this->div->attributes['onmousedown'] = 'event.preventDefault();event.stopPropagation();return false;$i(\'' . js_escape($this->text->id_gen()) . '\').focus();'; $this->text->attributes['onkeypress'] = "editor_text_autosuggest_keypress(this,event,'" . js_escape($this->text->id_gen()) . "','" . js_escape($this->text->id_gen()) . "','" . js_escape($this->div->id_gen()) . "');"; if (!isset($this->no_restore_focus)) { editor_generic::add_focus_restore($this->ed); } dom_void::html_inner(); }
function __construct($q) { parent::__construct(); $this->qu = $q; }