Exemple #1
0
 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;
 }
Exemple #2
0
 function __construct($invert = false)
 {
     dom_any::__construct('button');
     $this->etype = 'editor_checkbox';
     $this->image_0 = new dom_any('img');
     $this->image_1 = new dom_any('img');
     if ($invert) {
         $minus =& $this->image_0;
         $plus =& $this->image_1;
     } else {
         $plus =& $this->image_0;
         $minus =& $this->image_1;
     }
     $plus->attributes['src'] = '/i/fold_plus.png';
     $plus->attributes['alt'] = '+';
     $minus->attributes['src'] = '/i/fold_minus.png';
     $minus->attributes['alt'] = '-';
     $this->append_child($this->image_0);
     $this->append_child($this->image_1);
     $this->css_class = 'editor_fold';
     $this->main = $this;
     //$this->keys;
     //$this->args
 }
Exemple #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);
 }
Exemple #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);
 }
Exemple #5
0
 function __construct()
 {
     dom_any::__construct('table');
     //$this->css_style['position']='absolute';
     //$this->css_style['left']='250px';
     //$this->css_style['top']='650px';
     $r = new dom_tr();
     $d = new dom_td();
     $d1 = new dom_div();
     $d2 = new dom_div();
     $this->t1 = new dom_statictext();
     $this->t2 = new dom_statictext();
     $r->append_child($d);
     $d->append_child($d1);
     $d->append_child($d2);
     $d1->append_child($this->t1);
     $d2->append_child($this->t2);
     $this->append_child($r);
 }
 function __construct()
 {
     parent::__construct('button');
     $this->txt = new dom_statictext();
     $this->append_child($this->txt);
     $this->hdiv = new dom_div();
     $this->append_child($this->hdiv);
     $this->css_class = get_class($this);
     for ($k = 0; $k < 5; $k++) {
         $d = new dom_div();
         $b = new dom_any_noterm('input');
         $d->append_child($b);
         $b->attributes['value'] = 'bt' . $k;
         $b->attributes['type'] = 'button';
         $this->hdiv->append_child($d);
     }
     $this->txt->text = 'test';
 }
Exemple #7
0
 function __construct()
 {
     parent::__construct('style');
     $this->attributes['type'] = 'text/css';
 }
 function __construct()
 {
     parent::__construct('div');
     $this->divtxt = new dom_div();
     $this->append_child($this->divtxt);
     $this->qtxt = new dom_statictext();
     $this->divtxt->append_child($this->qtxt);
     $this->tbl = new dom_table();
     $this->append_child($this->tbl);
     $this->row = new dom_tr();
     unset($this->row->id);
     $this->tbl->append_child($this->row);
     $this->col = new dom_td();
     unset($this->col->id);
     $this->row->append_child($this->col);
     $this->tbl->css_class = 'res_table_test';
     $this->txt = new dom_statictext();
     $this->col->append_child($this->txt);
 }
Exemple #9
0
 function __construct()
 {
     dom_any::__construct('a');
     $this->etype = 'progress_cell_viewer_dep';
     $this->node_name = 'a';
     $this->text = new dom_statictext();
     $this->append_child($this->text);
 }
Exemple #10
0
 function __construct()
 {
     dom_any::__construct('span');
     $this->etype = get_class($this);
     $this->txt = new dom_statictext();
     $this->append_child($this->txt);
     $this->main = $this;
 }
Exemple #11
0
 function __construct()
 {
     dom_any::__construct('div');
     $this->etype = 'editor_pick_button_static';
     $this->button = new editor_button();
     $this->button->value = 'editor_pick_button';
     $this->resdiv = new dom_div();
     $this->resdiv->css_style['display'] = 'none';
     $this->resdiv->css_style['position'] = 'absolute';
     $this->resdiv->css_style['border'] = '1px solid gray';
     $this->resdiv->css_style['background'] = '#DDDDDD';
     $this->append_child($this->button);
     $this->append_child($this->resdiv);
     $this->list = new editor_pick_button_static_list();
     editor_generic::addeditor('button', $this->button);
     $this->main = $this->button;
     $this->resdiv->append_child($this->list);
     $this->context = array();
 }
Exemple #12
0
 function __construct()
 {
     parent::__construct('button');
     $this->main = $this;
     $this->etype = get_class($this);
 }
Exemple #13
0
 function __construct()
 {
     dom_any::__construct('div');
     $this->etype = 'query_result_viewer_any';
     $this->sdiv = new dom_div();
     $this->append_child($this->sdiv);
     $autotbl = new container_autotable();
     $this->sdiv->append_child($autotbl);
     editor_generic::addeditor('ed_db', new editor_text_autosuggest_query());
     $autotbl->append_child($this->editors['ed_db']);
     #$this->sdiv->append_child(new dom_any_noterm('br'));
     editor_generic::addeditor('ed_table', new editor_text_autosuggest_query());
     $autotbl->append_child($this->editors['ed_table']);
     $this->link_save_xml = new dom_any('a');
     $autotbl->append_child($this->link_save_xml);
     $txt = new dom_statictext('xml');
     $this->link_save_xml->append_child($txt);
     $this->link_save_csv = new dom_any('a');
     $autotbl->append_child($this->link_save_csv);
     $txt = new dom_statictext('csv');
     $this->link_save_csv->append_child($txt);
     editor_generic::addeditor('ed_filters', new editor_filters_ch());
     $this->sdiv->append_child($this->editors['ed_filters']);
     editor_generic::addeditor('ed_order', new editor_order_ch());
     $this->sdiv->append_child($this->editors['ed_order']);
     $tbl = new dom_any('table');
     $this->sdiv->append_child($tbl);
     $tr = new dom_any('tr');
     $tbl->append_child($tr);
     $td = new dom_any('td');
     $tr->append_child($td);
     $this->ed_zero = new dom_any_noterm('input');
     $this->ed_zero->attributes['type'] = 'button';
     $this->ed_zero->attributes['value'] = '«';
     $this->ed_zero->attributes['title'] = 'В начало';
     $td->append_child($this->ed_zero);
     $td = new dom_any('td');
     $tr->append_child($td);
     $this->ed_less = new dom_any_noterm('input');
     $this->ed_less->attributes['type'] = 'button';
     $this->ed_less->attributes['value'] = '<';
     $this->ed_less->attributes['title'] = 'На страницу назад.';
     $td->append_child($this->ed_less);
     $td = new dom_any('td');
     $tr->append_child($td);
     editor_generic::addeditor('ed_count', new editor_text());
     $td->append_child($this->editors['ed_count']);
     $this->editors['ed_count']->ed->css_style['width'] = '4em';
     $this->editors['ed_count']->attributes['title'] = 'Количество строк.';
     $td = new dom_any('td');
     $tr->append_child($td);
     editor_generic::addeditor('ed_offset', new editor_text());
     $td->append_child($this->editors['ed_offset']);
     $this->editors['ed_offset']->ed->css_style['width'] = '4em';
     $this->editors['ed_offset']->attributes['title'] = 'Пропустить строк.';
     $td = new dom_any('td');
     $tr->append_child($td);
     $this->ed_more = new dom_any_noterm('input');
     $this->ed_more->attributes['type'] = 'button';
     $this->ed_more->attributes['value'] = '>';
     $this->ed_more->attributes['title'] = 'На страницу вперед.';
     $td->append_child($this->ed_more);
     $td = new dom_any('td');
     $tr->append_child($td);
     editor_generic::addeditor('ed_rowcount', new query_result_viewer_single());
     $td->append_child($this->editors['ed_rowcount']);
     $this->rdiv = new dom_div();
     $this->append_child($this->rdiv);
     editor_generic::addeditor('qw', new query_result_viewer_codes());
     $this->rdiv->append_child($this->editors['qw']);
     editor_generic::addeditor('an', new editor_insert_ch());
     $this->append_child($this->editors['an']);
     $this->settings->ed_count = 10;
     $this->settings->ed_offset = 0;
     $this->settings->ed_table = 'barcodes_raw';
     $this->settings->ed_db = '';
     $this->settings->order = serialize(array());
     $this->settings->filters_where = serialize(array());
     $this->settings->insert_args = serialize(array());
     //print(isset($this->settings->ed_table));
     $this->settings_io = new QRVA_settings_io();
     $this->struct_io = new qrva_guess_struct();
 }