function __construct() { dom_div::__construct(); $this->etype = 'container_resize_postback'; $this->after_id = '_resizeable'; $this->css_style['border'] = '3px solid black'; }
function __construct($qg) { parent::__construct('div'); $this->qg = $qg; $this->css_style['padding'] = '0px'; $this->css_style['margin'] = '0px'; $this->css_style['border'] = '0px'; $this->table = new dom_table(); $this->row = new dom_tr(); $this->hrow = new dom_tr(); $this->hrow->css_class = 'head'; $this->table->css_style['page-break-after'] = 'always'; $this->table->css_style['padding'] = '0px'; $this->table->css_style['margin'] = '0px'; $this->table->css_style['border'] = '0px'; $this->table->css_style['border-collapse'] = 'collapse'; $this->row->css_style['height'] = '8mm'; foreach ($this->qg->what->exprs as $e) { if ($e->alias == '') { print "You should specify an alias for each column."; exit; } $this->txts[$e->alias] = new dom_statictext(); $this->htxts[$e->alias] = new dom_statictext($e->alias); $td = new dom_td(); unset($td->id); $div = new dom_div(); unset($div->id); $div->append_child($this->txts[$e->alias]); $td->append_child($div); $this->row->append_child($td); $td = new dom_td(); unset($td->id); $div = new dom_div(); unset($div->id); $div->append_child($this->htxts[$e->alias]); $td->append_child($div); $this->hrow->append_child($td); } unset($this->row->id); unset($this->table->id); $this->append_child($this->table); $this->table->append_child($this->hrow); $this->table->append_child($this->row); $this->row_height = 16.0; $this->page_height = 270.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 = '<.>'; }
function __construct($name = '') { dom_node::__construct($name); $tmpdiv = new dom_div(); $this->inp = new dom_textinput(); $tmpdiv->append_child($this->inp); $this->sp_inc = new dom_span(); $txt = new dom_statictext(); $txt->text = '[+]'; $this->sp_inc->append_child($txt); $tmpdiv->append_child($this->sp_inc); $this->sp_dec = new dom_span(); $txt = new dom_statictext(); $txt->text = '[-]'; $this->sp_dec->append_child($txt); $tmpdiv->append_child($this->sp_dec); $this->css_style['width'] = '250px'; $this->append_child($tmpdiv); $this->dis = new dom_div(); $this->append_child($this->dis); $this->dis->css_style['width'] = '50px'; }
function html_inner() { $this->btn->attributes['onkeydown'] = "return keyboard_test_btn_key(event,this,0);"; $this->btn->attributes['onkeypress'] = "return keyboard_test_btn_key(event,this,1);"; $this->btn->attributes['onkeyup'] = "return keyboard_test_btn_key(event,this,2);"; parent::html_inner(); $sn = ''; for ($k = 1; $k <= keyboard_test::TEST_NUM; $k++) { $sn .= "btn.result_divs[" . $k . "]=new Array('" . $this->tbl->cells[$k][1]->id_gen() . "',"; $sn .= "'" . $this->tbl->cells[$k][2]->id_gen() . "',"; $sn .= "'" . $this->tbl->cells[$k][3]->id_gen() . "'"; $sn .= ");"; } $this->rootnode->endscripts[] = "(function(){" . "var btn=\$i('" . $this->btn->id_gen() . "');" . "btn.result_struct=new Array();" . "btn.result_divs=new Array();" . $sn . "btn.focus();" . "})();"; }
function html_inner() { foreach ($this->opts as $a) { $a->attributes['onclick'] = "var t=\$i('" . $this->set_htmlid . "');" . "t.focus();" . "t.value='" . $a->val . "';" . 'return false;'; } dom_div::html_inner(); }
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']); }
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); }
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']);*/ }
function __construct() { parent::__construct(); $this->etype = get_class($this); }
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); } }
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(); }
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'; }
function html_inner() { $this->args['isref'] = $this->args[$this->context[$this->long_name]['var']]->isref; $this->args['main'] = $this->args[$this->context[$this->long_name]['var']]->main; $this->args['unit'] = $this->args[$this->context[$this->long_name]['var']]->unit; parent::html_inner(); }
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); }
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); }
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; }