Beispiel #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';
 }
Beispiel #2
0
 function __construct()
 {
     dom_div::__construct();
     $this->etype = 'container_resize_postback';
     $this->after_id = '_resizeable';
     $this->css_style['border'] = '3px solid black';
 }
Beispiel #3
0
 function __construct()
 {
     dom_div::__construct();
     $this->etype = 'test_controls_hover_buttons';
     $this->indd = new dom_div();
     $this->append_child($this->indd);
     $l = new dom_statictext();
     $this->indd->append_child($l);
     $l->text = '<.>';
 }
Beispiel #4
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);
 }
Beispiel #5
0
 function __construct()
 {
     dom_div::__construct();
     $this->edit = new dom_meta_edit_text();
     $this->append_child($this->edit);
     $this->sugg = new dom_div();
     $this->sugg->css_style['border'] = '1px solid gray';
     $this->sugg->css_style['position'] = 'absolute';
     $this->sugg->css_style['display'] = 'none';
     $this->sugg->css_style['background-color'] = 'white';
     //		$this->sugg->css_style['text-align']='center';
     //		$this->sugg->css_style['max-height']='30px';
     //$this->sugg->css_style['overflow']='auto';
     $this->append_child($this->sugg);
 }
 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']);
 }
Beispiel #7
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);
 }
Beispiel #8
0
 function __construct()
 {
     dom_div::__construct();
     $this->etype = 'progress_cell_editor_dep';
     editor_generic::addeditor('view', new editor_statictext());
     $this->append_child($this->editors['view']);
     editor_generic::addeditor('del', new editor_button());
     $this->editors['del']->attributes['value'] = 's-';
     $this->append_child($this->editors['del']);
     /*editor_generic::addeditor('picker',new editor_pick_button);
     		$this->editors['picker']->list_class='progress_cell_editor_dep_list';
     		$this->append_child($this->editors['picker']);*/
 }
Beispiel #9
0
 function __construct()
 {
     parent::__construct();
     $this->etype = get_class($this);
 }
Beispiel #10
0
 function __construct()
 {
     parent::__construct();
     $this->tbl = new dom_table();
     $this->append_child($this->tbl);
     $this->etype = get_class($this);
     $this->row = new dom_tr();
     $this->tbl->append_child($this->row);
     $this->row_caps = new dom_tr();
     $this->tbl->append_child($this->row_caps);
     $this->cell_caps = new dom_td();
     $this->row_caps->append_child($this->cell_caps);
     $this->text_caps = new dom_statictext();
     $this->cell_caps->append_child($this->text_caps);
     $this->cells = array();
     $this->keys = array();
     $this->args = array();
     $this->colcn = 0;
 }
Beispiel #11
0
 function __construct()
 {
     parent::__construct();
     $this->text = new dom_any_noterm('input');
     $this->main = $this->text;
     $this->text->attributes['type'] = 'text';
     $this->text->attributes['autocomplete'] = 'off';
     $this->etype = get_class($this);
     $this->div = new dom_div();
     $this->div->css_style['display'] = 'none';
     $this->div->css_style['position'] = 'absolute';
     $this->div->css_style['min-width'] = '50px';
     $this->div->css_style['max-height'] = '200px';
     $this->div->css_style['overflow'] = 'auto';
     $this->append_child($this->text);
     $this->append_child($this->div);
     $this->keys = array();
     $this->context = array();
 }
Beispiel #12
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';
 }
Beispiel #13
0
 function __construct()
 {
     parent::__construct();
     $this->etype = get_class($this);
     $this->main = $this;
     $e = new dom_table();
     $tr = new auto_tr();
     $e->append_child($tr);
     $this->append_child($e);
     editor_generic::addeditor('isref', new editor_checkbox());
     $tr->append_child($this->editors['isref']);
     editor_generic::addeditor('main', new editor_txtasg_h0());
     $tr->append_child($this->editors['main']);
     editor_generic::addeditor('unit', new editor_select());
     $tr->append_child($this->editors['unit']);
     $this->editors['unit']->options = array("" => "", "px" => "px", "%" => "%", "em" => "em", "mm" => "mm", "cm" => "cm", "in" => "in", "pt" => "pt", "pc" => "pc", "ex" => "ex");
 }
Beispiel #14
0
 function __construct()
 {
     dom_div::__construct();
     $this->css_style['margin'] = 'auto';
     $this->css_style['width'] = 'auto';
     $this->css_style['text-align'] = 'center';
     $tbl = new dom_table();
     $tbl->css_style['margin-left'] = 'auto';
     $tbl->css_style['margin-right'] = 'auto';
     $tbl->css_style['border'] = '1px solid gray';
     $this->append_child($tbl);
     $tr = new dom_tr();
     $tbl->append_child($tr);
     $td = new dom_td();
     $tr->append_child($td);
     $txt = new dom_statictext();
     $td->append_child($txt);
     $txt->text = 'Вход в систему';
     $td->attributes['colspan'] = 2;
     $tr = new dom_tr();
     $tbl->append_child($tr);
     $td = new dom_td();
     $tr->append_child($td);
     $txt = new dom_statictext();
     $td->append_child($txt);
     $txt->text = 'Пользователь:';
     $td = new dom_td();
     $tr->append_child($td);
     $this->username = new dom_textinput();
     $td->append_child($this->username);
     $tr = new dom_tr();
     $tbl->append_child($tr);
     $td = new dom_td();
     $tr->append_child($td);
     $txt = new dom_statictext();
     $td->append_child($txt);
     $txt->text = 'Пароль:';
     $td = new dom_td();
     $tr->append_child($td);
     $this->pass = new dom_textinput();
     $this->pass->attributes['type'] = 'password';
     $td->append_child($this->pass);
     $tr = new dom_tr();
     $tbl->append_child($tr);
     $td = new dom_td();
     $tr->append_child($td);
     if (preg_match('/^127\\.0\\..*/', $_SERVER['REMOTE_ADDR']) || $_SERVER['REMOTE_ADDR'] === $_SERVER['SERVER_ADDR']) {
         $this->username->attributes['value'] = 'test';
         $this->pass->attributes['value'] = 'password';
         $rootlogin = new dom_textbutton();
         $rootlogin->attributes['value'] = 'Вход';
         $rootlogin->attributes['onclick'] = "chse.send_or_push({uri:'',static:'" . "auth=root&" . "user='******'" . $this->username->id_gen() . "').value) + '&" . "pass='******'" . $this->pass->id_gen() . "').value) + '&" . "',val:'',c_id:this.id});" . "";
         $td->append_child($rootlogin);
     }
     $td = new dom_td();
     $tr->append_child($td);
     $this->submit = new dom_textbutton();
     $this->submit->attributes['value'] = 'Вход';
     $submitnorm = $this->submit->attributes['onclick'] = "chse.send_or_push({uri:'',static:'" . "auth=login&" . "user='******'" . $this->username->id_gen() . "').value) + '&" . "pass='******'" . $this->pass->id_gen() . "').value) + '&" . "',val:'',c_id:this.id});" . "";
     $this->pass->attributes['onkeypress'] = $this->username->attributes['onkeypress'] = 'var k= event.keyCode;' . 'if(k==13){' . $submitnorm . 'return false};return true;';
     $td->append_child($this->submit);
     if (false) {
         $tr = new dom_tr();
         $tbl->append_child($tr);
         $td = new dom_td();
         $tr->append_child($td);
         $td->attributes['colspan'] = '2';
         $txt = new dom_statictext();
         $txt->text = "Login from :" . $_SERVER['REMOTE_ADDR'];
         $td->append_child($txt);
     }
 }