예제 #1
0
 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';
 }
예제 #2
0
파일: dom.php 프로젝트: vladisslav2011/nb
 function __construct($text = '')
 {
     parent::__construct();
     if ($text != '') {
         $this->text = $text;
     }
 }