function c_rows($n)
 {
     $rs = array();
     $a = args_level_1(func_get_args());
     if (count($a) && ($s = _drw($a)->fir()) && !isDrw($s[1])) {
         $a = array($a);
     }
     foreach ($a as $v) {
         $rs[] = cEle('tr')->addChild($this->c_cols($v));
     }
     _($this->O)->addChild($rs);
     return $this;
 }
Пример #2
0
 function cItems($n)
 {
     $m = cEle('div');
     $h = array();
     $a = args_level_1(func_get_args());
     foreach ($a as $v) {
         if (!isDrw($v)) {
             $m->addChild(isStr($v) ? cEle('label', $v) : $v);
         } else {
             $h[] = $this->cItems($v);
         }
     }
     return count($h) ? $h : $m;
 }