function html_inner() { global $sql; $r = $sql->fetch1($sql->query("SELECT count(1) FROM `" . TABLE_META_TREE_TMP . "`")); if ($r > 0) { $this->tbl->html_head(); $new = new ddc_key(); $new->attach(TABLE_META_TREE_TMP, $sql); $old = new ddc_key(); $old->attach(TABLE_META_TREE, $sql); $diff = $new->compare($old); foreach ($diff as $d) { $this->args['type'] = $d->type; $this->args['id'] = $d->id; $this->args['href'] = $d->id; //$this->args['change']=count($d->diff); $this->ch->htext = count($d->diff); $this->ch->rows =& $d->diff; $this->row->css_style['background'] = ''; switch ($d->type) { case '-': $this->row->css_style['background'] = 'red'; break; case '+': $this->row->css_style['background'] = 'green'; break; case '*': $this->row->css_style['background'] = 'yellow'; break; } $this->row->html(); $this->row->id_alloc(); } $this->tbl->html_tail(); } else { //working on real !! $this->rootnode->out('nothing to show. Open structure for edit first and make some changes.'); } }