Esempio n. 1
0
 function __construct()
 {
     parent::__construct();
     $this->etype = get_class($this);
     $this->btn = new dom_any('button');
     $this->append_child($this->btn);
     $this->btn->append_child(new dom_statictext('---'));
     $this->append_child(new dom_statictext("Press and hold 'n',Enter,Shift,Arrow down"));
     $this->tbl = new dom_table_x(4, 5);
     $this->tbl->css_class = 'keyboard_test';
     $this->append_child($this->tbl);
     $this->tbl->cells[0][0]->append_child(new dom_statictext('test'));
     $this->tbl->cells[0][1]->append_child(new dom_statictext('keydown'));
     $this->tbl->cells[0][2]->append_child(new dom_statictext('keypress'));
     $this->tbl->cells[0][3]->append_child(new dom_statictext('keyup'));
     $this->tbl->cells[1][0]->append_child(new dom_statictext('alfa'));
     $this->tbl->cells[2][0]->append_child(new dom_statictext('shift'));
     $this->tbl->cells[3][0]->append_child(new dom_statictext('enter'));
     $this->tbl->cells[4][0]->append_child(new dom_statictext('arrow'));
     for ($y = 1; $y <= keyboard_test::TEST_NUM; $y++) {
         for ($x = 1; $x <= 3; $x++) {
             $this->tbl->cells[$y][$x]->append_child(new dom_statictext('did not fire'));
         }
     }
     editor_generic::addeditor('submit', new editor_button());
     $this->append_child($this->editors['submit']);
     $this->editors['submit']->attributes['value'] = 'store';
 }
Esempio n. 2
0
 function __construct()
 {
     parent::__construct();
     $this->etype = get_class($this);
     editor_generic::addeditor('util_small_pager_test', new util_small_pager());
     $this->append_child($this->editors['util_small_pager_test']);
     $this->resdiv = new dom_div();
     $this->append_child($this->resdiv);
 }
Esempio n. 3
0
 function __construct()
 {
     parent::__construct('div');
     $this->etype = 'editor_sql_select';
     $this->css_class = $this->etype;
     $this->args = array();
     editor_generic::addeditor('clean', new editor_button());
     $this->editors['clean']->attributes['value'] = 'clean';
     $this->append_child($this->editors['clean']);
     $editors_tabs = new container_tab_control();
     //$editors_tabs=new container_tab_control_l;
     editor_generic::addeditor('tabs', $editors_tabs);
     $this->append_child($editors_tabs);
     $wrapper = new wrapper_sql_select($this, 'sql_list', 'what');
     $editors_tabs->add_tab('what', loc_get_val('editor_sql_select', 'sql_what', 'what'));
     $editors_tabs->tabs['what']->div->append_child($wrapper);
     $wrapper = new wrapper_sql_select($this, 'sql_list', 'from');
     $editors_tabs->add_tab('from', loc_get_val('editor_sql_select', 'sql_from', 'from'));
     $editors_tabs->tabs['from']->div->append_child($wrapper);
     $wrapper = new wrapper_sql_select($this, 'sql_joins', 'joins');
     $editors_tabs->add_tab('join', loc_get_val('editor_sql_select', 'sql_joins', 'join'));
     $editors_tabs->tabs['join']->div->append_child($wrapper);
     $wrapper = new wrapper_sql_select($this, 'sql_expression', 'where');
     $editors_tabs->add_tab('where', loc_get_val('editor_sql_select', 'sql_where', 'where'));
     $editors_tabs->tabs['where']->div->append_child($wrapper);
     $wrapper = new wrapper_sql_select($this, 'sql_list', 'group');
     $editors_tabs->add_tab('group', loc_get_val('editor_sql_select', 'sql_group', 'group'));
     $editors_tabs->tabs['group']->div->append_child($wrapper);
     $wrapper = new wrapper_sql_select($this, 'sql_expression', 'having');
     $editors_tabs->add_tab('having', loc_get_val('editor_sql_select', 'sql_having', 'having'));
     $editors_tabs->tabs['having']->div->append_child($wrapper);
     $wrapper = new wrapper_sql_select($this, 'sql_list', 'order');
     $editors_tabs->add_tab('order', loc_get_val('editor_sql_select', 'sql_order', 'order'));
     $editors_tabs->tabs['order']->div->append_child($wrapper);
     $editors_tabs->add_tab('limit', loc_get_val('editor_sql_select', 'sql_limit', 'limit'));
     $tb = new dom_table();
     $tr = new dom_tr();
     $tb->append_child($tr);
     $td = new dom_td();
     $tr->append_child($td);
     $txt = new dom_statictext();
     $td->append_child($txt);
     $txt->text = loc_get_val('editor_sql_select', 'sql_limit_skip', 'skip');
     $td = new dom_td();
     $tr->append_child($td);
     editor_generic::addeditor('limit_skip', new editor_text());
     $td->append_child($this->editors['limit_skip']);
     $this->editors['limit_skip']->add_btn = new dom_any_noterm('input');
     $td->append_child($this->editors['limit_skip']->add_btn);
     $this->editors['limit_skip']->add_btn->attributes['value'] = '+';
     $this->editors['limit_skip']->add_btn->attributes['type'] = 'submit';
     $this->editors['limit_skip']->sub_btn = new dom_any_noterm('input');
     $td->append_child($this->editors['limit_skip']->sub_btn);
     $this->editors['limit_skip']->sub_btn->attributes['value'] = '-';
     $this->editors['limit_skip']->sub_btn->attributes['type'] = 'submit';
     $tr = new dom_tr();
     $tb->append_child($tr);
     $td = new dom_td();
     $tr->append_child($td);
     $txt = new dom_statictext();
     $td->append_child($txt);
     $txt->text = loc_get_val('editor_sql_select', 'sql_limit_count', 'count');
     $td = new dom_td();
     $tr->append_child($td);
     editor_generic::addeditor('limit_count', new editor_text());
     $td->append_child($this->editors['limit_count']);
     $editors_tabs->tabs['limit']->div->append_child($tb);
     $editors_tabs->add_tab('result', loc_get_val('editor_sql_select', 'result_tab', 'result'));
     editor_generic::addeditor('result_button', new editor_button());
     $editors_tabs->tabs['result']->div->append_child($this->editors['result_button']);
     //$this->editors['result_button']->css_style['display']='none';
     $this->result_div = new dom_div();
     $editors_tabs->tabs['result']->div->append_child($this->result_div);
 }
Esempio n. 4
0
 function __construct()
 {
     dom_any::__construct('div');
     $this->etype = 'locationbar';
     $this->css_style['width'] = '97%';
     $this->css_style['margins'] = 'auto';
     $this->css_style['background'] = '#a0a5b0';
     $this->css_style['border'] = '2px solid #504560';
     $logout_div = new dom_div();
     $logout_div->css_style['float'] = 'right';
     //$logout_btn=new editor_button;
     //editor_generic::addeditor('logout',$logout_btn);
     $this->logout_btn = new dom_textbutton();
     $logout_div->append_child($this->logout_btn);
     $this->append_child($logout_div);
     $this->logout_btn->attributes['value'] = 'logout';
     if ($_SESSION['uid'] == 0) {
         $design_div = new dom_div();
         $design_div->css_style['float'] = 'right';
         $design_sw = new editor_checkbox();
         editor_generic::addeditor('design', $design_sw);
         $design_div->append_child($design_sw);
         $this->append_child($design_div);
         $st = new dom_statictext();
         $st->text = 'DM';
         $design_div->append_child($st);
     }
     $this->pinbtn = $pinbtn = new dom_textbutton();
     $pinbtn->attributes['value'] = '⇕';
     $pinbtn->css_style['float'] = 'left';
     $this->append_child($pinbtn);
     $pk = new path_view_control();
     editor_generic::addeditor('pk', $pk);
     $this->append_child($pk);
 }
Esempio n. 5
0
 function __construct()
 {
     parent::__construct();
     $this->etype = get_class($this);
     editor_generic::addeditor('o_name', new editor_statictext());
     editor_generic::addeditor('m_id', new editor_search_pick());
     editor_generic::addeditor('m_del', new editor_button());
     $this->editors['m_id']->io = new editor_search_pick_sqltest_io();
     $this->xdiv = new dom_div();
     $this->append_child($this->xdiv);
     $tbl = new dom_table();
     $this->xdiv->append_child($tbl);
     $tr = new dom_tr();
     $tr->css_style['background'] = 'gray';
     $tbl->append_child($tr);
     $td = new dom_td();
     $tr->append_child($td);
     $brdiv = new dom_div();
     $brdiv->css_style['width'] = '700px';
     $td->append_child($brdiv);
     $brdiv->append_child($this->editors['o_name']);
     $td = new dom_td();
     $td->attributes['rowspan'] = 2;
     $tr = new dom_tr();
     $tbl->append_child($tr);
     $td = new dom_td();
     $tr->append_child($td);
     #editor_generic::addeditor('m_id',new editor_text);
     $td->append_child($this->editors['m_id']);
     $this->editors['m_id']->css_style['display'] = 'inline-block';
     $this->editors['m_del']->attributes['value'] = '-';
     $this->editors['m_del']->css_style['display'] = 'none';
     $td->append_child($this->editors['m_del']);
 }
Esempio n. 6
0
 function __construct()
 {
     parent::__construct();
     $this->etype = get_class($this);
     editor_generic::addeditor('start', new editor_button());
     $this->append_child($this->editors['start']);
     $this->editors['start']->attributes['value'] = 'Start/stop';
     $this->status = new dom_div();
     $this->append_child($this->status);
 }
Esempio n. 7
0
 function __construct()
 {
     dom_table::__construct();
     $this->etype = 'editor_pick_button';
     $div = new dom_tr();
     $this->append_child($div);
     editor_generic::addeditor('text', new editor_statictext());
     $td = new dom_td();
     $div->append_child($td);
     $td->append_child($this->editors['text']);
     editor_generic::addeditor('btn', new editor_button());
     $td = new dom_td();
     $div->append_child($td);
     $td->append_child($this->editors['btn']);
     $this->editors['btn']->attributes['value'] = '+';
 }
Esempio n. 8
0
 function __construct()
 {
     parent::__construct();
     global $ddc_tables;
     $this->etype = get_class($this);
     $this->gen_error = new dom_statictext();
     $this->append_child($this->gen_error);
     $this->gen_error->text = "\n!\n";
     $tbl = new dom_table();
     $this->tbl = $tbl;
     $this->append_child($tbl);
     $this->row = new dom_tr();
     $tbl->append_child($this->row);
     $td = new dom_td();
     $this->row->append_child($td);
     editor_generic::addeditor('type', new editor_statictext());
     $td->append_child($this->editors['type']);
     $td = new dom_td();
     $this->row->append_child($td);
     editor_generic::addeditor('href', new editor_href());
     $td->append_child($this->editors['href']);
     $this->editors['href']->href = '?p=' . $_GET['p'] . '&id=%s';
     editor_generic::addeditor('id', new editor_statictext());
     $this->editors['href']->append_child($this->editors['id']);
     $td = new dom_td();
     $this->row->append_child($td);
     //editor_generic::addeditor('change',new editor_statictext);
     //$td->append_child($this->editors['change']);
     editor_generic::addeditor('name', new editor_statictext());
     $td->append_child($this->editors['name']);
     $td = new dom_td();
     $this->row->append_child($td);
     editor_generic::addeditor('change', new editor_statictext());
     $td->append_child($this->editors['change']);
     $td = new dom_td();
     $this->row->append_child($td);
     editor_generic::addeditor('apply', new editor_valbutton());
     $td->append_child($this->editors['apply']);
     $this->editors['apply']->attributes['value'] = 'Exec';
 }
Esempio n. 9
0
 function html_inner()
 {
     $this->fetch_col_info();
     if (is_array($this->t_keys)) {
         foreach ($this->t_keys as $kn => $kv) {
             $col = $this->t_cols[$kn];
             $ed = $col['editor'];
             editor_generic::addeditor('+' . $col['name'], new $ed($col));
             $td = new dom_td();
             $this->row->append_child($td);
             $td->append_child($this->editors['+' . $col['name']]);
             $this->editors['+' . $col['name']]->oid = $this->oid;
             $this->editors['+' . $col['name']]->keys =& $this->keys;
             $this->editors['+' . $col['name']]->args =& $this->args;
             $this->editors['+' . $col['name']]->context =& $this->context;
             $this->context[$this->long_name . '.+' . $col['name']]['var'] = '+' . $col['name'];
             $this->args['+' . $col['name']] = $this->args[$this->context[$this->long_name]['var']]['+' . $col['name']];
         }
     }
     editor_generic::addeditor('insert', new editor_button());
     $td = new dom_td();
     $this->row->append_child($td);
     $td->append_child($this->editors['insert']);
     $this->editors['insert']->oid = $this->oid;
     $this->editors['insert']->keys =& $this->keys;
     $this->editors['insert']->args =& $this->args;
     $this->editors['insert']->context =& $this->context;
     $this->context[$this->long_name . '.insert']['var'] = 'insert';
     $this->tbl->html_head();
     $this->row_caps->html_head();
     $cnt = 0;
     if (is_array($this->t_keys)) {
         foreach ($this->t_keys as $kn => $kv) {
             $this->text_caps->text = $this->t_cols[$kn]['hname'];
             $this->cell_caps->attributes['title'] = $this->t_cols[$kn]['hname'];
             $cnt++;
             $this->cell_caps->html();
             $this->cell_caps->id_alloc();
         }
     }
     $this->row_caps->html_tail();
     if (is_array($this->editors)) {
         foreach ($this->editors as $k => $e) {
             $e->bootstrap();
         }
     }
     $this->row->html();
     $this->tbl->html_tail();
 }
Esempio n. 10
0
 function __construct()
 {
     dom_table::__construct();
     $this->css_style['border'] = '1px solid blue';
     $this->css_style['background'] = 'white';
     $this->tr = new dom_tr();
     $this->tr->css_style['border'] = '1px solid gray';
     $this->td = new dom_td();
     $this->append_child($this->tr);
     $this->tr->append_child($this->td);
     editor_generic::addeditor('text', new editor_statichtml());
     $this->td->append_child($this->editors['text']);
     $this->etype = 'editor_text_autosuggest';
     $this->args = array();
     $this->keys = array();
     $this->list_items = array('this', 'is', 'example', 'of', 'editor_text_autosuggest', 'implementation.', 'you', 'forgot', 'to', 'set', 'editor_text_autosuggest::list_class', 'to', 'editor_text_autosuggest_list_example', 'implementation', 'or', 'set', 'editor_text_autosuggest_list_example::list_items,', 'damn', 'bastard', 'type', 'some', 'letters', 'to', 'see', 'filtered', 'list');
 }
Esempio n. 11
0
 function __construct()
 {
     parent::__construct();
     $this->etype = get_class($this);
     $this->initial = new dom_table();
     $this->append_child($this->initial);
     $this->tr_i = new dom_tr();
     unset($this->tr_i->id);
     $this->initial->append_child($this->tr_i);
     $this->td_i = new dom_td();
     unset($this->td_i->id);
     $this->tr_i->append_child($this->td_i);
     editor_generic::addeditor('lb_initial', new editor_statictext());
     $this->td_i->append_child($this->editors['lb_initial']);
     $this->td_i = new dom_td();
     unset($this->td_i->id);
     $this->tr_i->append_child($this->td_i);
     editor_generic::addeditor('ed_initial', new editor_text());
     $this->td_i->append_child($this->editors['ed_initial']);
     $this->td_i = new dom_td();
     unset($this->td_i->id);
     $this->tr_i->append_child($this->td_i);
     editor_generic::addeditor('ed_map', new editor_select());
     $this->td_i->append_child($this->editors['ed_map']);
     $this->td_i = new dom_td();
     unset($this->td_i->id);
     $this->tr_i->append_child($this->td_i);
     editor_generic::addeditor('ed_search_tbl', new editor_text_autosuggest_query());
     $this->td_i->append_child($this->editors['ed_search_tbl']);
     $this->td_i = new dom_td();
     unset($this->td_i->id);
     $this->tr_i->append_child($this->td_i);
     editor_generic::addeditor('ed_select', new editor_text_autosuggest_query());
     $this->td_i->append_child($this->editors['ed_select']);
     $this->td_i = new dom_td();
     unset($this->td_i->id);
     $this->tr_i->append_child($this->td_i);
     editor_generic::addeditor('ed_search', new editor_text_autosuggest_query());
     $this->td_i->append_child($this->editors['ed_search']);
     $this->td_i = new dom_td();
     unset($this->td_i->id);
     $this->tr_i->append_child($this->td_i);
     editor_generic::addeditor('ed_dict', new editor_text_autosuggest_query());
     $this->td_i->append_child($this->editors['ed_dict']);
     editor_generic::addeditor('default_map', new editor_button());
     $this->append_child($this->editors['default_map']);
     $this->editors['default_map']->attributes['value'] = 'Default map';
     editor_generic::addeditor('direct_map', new editor_button());
     $this->append_child($this->editors['direct_map']);
     $this->editors['direct_map']->attributes['value'] = 'Direct map';
     editor_generic::addeditor('reset_map', new editor_button());
     $this->append_child($this->editors['reset_map']);
     $this->editors['reset_map']->attributes['value'] = 'Reset map';
 }
Esempio n. 12
0
 function __construct()
 {
     parent::__construct();
     $this->etype = get_class($this);
     $this->tr = new dom_tr();
     $this->append_child($this->tr);
     $this->name_cell = new dom_td();
     $this->tr->append_child($this->name_cell);
     $this->value_cell = new dom_td();
     $this->tr->append_child($this->value_cell);
     $this->action_cell = new dom_td();
     $this->tr->append_child($this->action_cell);
     editor_generic::addeditor('name', new editor_txtasg_css_prop());
     $this->name_cell->append_child($this->editors['name']);
     editor_generic::addeditor('value', new ed_immediate_or_var());
     $this->value_cell->append_child($this->editors['value']);
     editor_generic::addeditor('del', new editor_button());
     $this->editors['del']->attributes['value'] = 'X';
     $this->action_cell->append_child($this->editors['del']);
     $this->trl = new dom_tr();
     $this->append_child($this->trl);
     $this->trl->append_child(new dom_td());
     $this->trl->append_child(new dom_td());
     $this->add_cell = new dom_td();
     $this->trl->append_child($this->add_cell);
     editor_generic::addeditor('add', new editor_button());
     $this->editors['add']->attributes['value'] = '+';
     $this->add_cell->append_child($this->editors['add']);
 }