function __construct() { parent::__construct(); $this->etype = get_class($this); editor_generic::addeditor('id_doc', new editor_text()); editor_generic::addeditor('clear', new editor_button()); $this->editors['clear']->attributes['value'] = 'Clear'; editor_generic::addeditor('list', new barcode_fill_test_list()); editor_generic::addeditor('codes', new editor_textarea()); $this->append_child($this->editors['id_doc']); $this->append_child($this->editors['clear']); $link = new dom_any('a'); $link->append_child(new dom_statictext(' with groups ')); $this->append_child($link); $this->get_all = $link; $link = new dom_any('a'); $link->append_child(new dom_statictext(' combined ')); $this->append_child($link); $this->get_combined = $link; $link = new dom_any('a'); $link->append_child(new dom_statictext(' special ')); $this->append_child($link); $this->get_special = $link; $link = new dom_any('a'); $link->append_child(new dom_statictext(' place_zone ')); $this->append_child($link); $this->get_place_zone = $link; $this->tbl = new dom_table(); $tr = new dom_tr(); $left = new dom_td(); $right = new dom_td(); $right->css_style['vertical-align'] = 'top'; $this->append_child($this->tbl->append_child($tr->append_child($left))); $tr->append_child($right); $left->append_child($this->editors['list']); $this->rs = new container_resize(); $right->append_child($this->rs); $this->rs->append_child($this->editors['codes']); $this->editors['codes']->main->css_style['width'] = '100%'; $this->editors['codes']->main->css_style['height'] = '100%'; $this->editors['codes']->main->css_style['margin-top'] = '-3px'; $this->editors['codes']->main->css_style['margin-left'] = '-3px'; }
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(); global $ddc_tables; $this->collist =& $ddc_tables[TABLE_META_TREE]->cols; $this->etype = get_class($this); $this->id_stack = array(); $tbl = new dom_table(); $this->append_child($tbl); foreach ($this->collist as $col) { $tr = new dom_tr(); $td_n = new dom_td(); //name $tr->append_child($td_n); $txt_n = new dom_statictext(); $td_n->append_child($txt_n); $td_e = new dom_td(); //editor $tr->append_child($td_e); //add info/action/etc/column?... $tr->css_style['background'] = string_to_color($col['name'], 1); $tr->css_style['color'] = bgcolor_to_color($tr->css_style['background']); $txt_n->text = isset($col['hname']) ? $col['hname'] : $col['name']; $td_n->attributes['title'] = $col['name']; if (isset($col['editor'])) { $ed = new $col['editor']($col); } else { $ed = new editor_text(); } editor_generic::addeditor($col['name'], $ed); $td_e->append_child($ed); $td_e = new dom_td(); //st selection to this button $tr->append_child($td_e); $cont_dd = new container_dropdown_div('div'); $cont_dd->button->attributes['value'] = '...'; $td_e->append_child($cont_dd); $ed = new editor_valbutton(); $cont_dd->append_child($ed); $ed->attributes['value'] = '*>'; $ed->attributes['title'] = 'Propagate value to selection'; editor_generic::addeditor('pr-' . $col['name'], $ed); $ed->name = 'pr'; $ed->value = $col['name']; $ed = new editor_valbutton_image(); $cont_dd->append_child($ed); $ed->attributes['src'] = '/i/mark-eq.png'; $ed->attributes['title'] = 'Mark matching items'; editor_generic::addeditor('mmark-' . $col['name'], $ed); $ed->name = 'mmark'; $ed->value = $col['name']; $ed = new editor_valbutton_image(); $cont_dd->append_child($ed); $ed->attributes['src'] = '/i/unmark-eq.png'; $ed->attributes['title'] = 'Unmark matching items'; editor_generic::addeditor('mumark-' . $col['name'], $ed); $ed->name = 'mumark'; $ed->value = $col['name']; $ed = new editor_valbutton_image(); $cont_dd->append_child($ed); $ed->attributes['src'] = '/i/inv-eq.png'; $ed->attributes['title'] = 'Invert matching items selection'; editor_generic::addeditor('invs-' . $col['name'], $ed); $ed->name = 'invs'; $ed->value = $col['name']; $tbl->append_child($tr); } }