+ var $padre = null;
+ var $tabla;
+ var $nombre;
+ var $id;
+ var $link = null;
+ var $prepend_link = null;
+ var $where = '';
+ var $order = '';
+ var $db;
+
+ function HTML_ArbolDB($dbdata, $imagen)
+ {
+ if(isset($dbdata['id_padre']))
+ $this->padre = $dbdata['id_padre'];
+ $this->tabla = $dbdata['tabla'];
+ $this->nombre = $dbdata['nombre'];
+ $this->id = $dbdata['id'];
+ if(isset($dbdata['prepend_link']))
+ $this->prepend_link = $dbdata['prepend_link'];
+ if(isset($dbdata['link']))
+ $this->link = $dbdata['link'];
+ if(isset($dbdata['where']))
+ $this->where = $dbdata['where'];
+ if(isset($dbdata['order']))
+ $this->order = ' ORDER BY '.$dbdata['nombre'].' '.$dbdata['order'];
+ $this->db = $dbdata['db'];
+ $dat = $this->BuscarHijos(0);
+ parent::HTML_Arbol($dat, $imagen);
+ }
+
+ function BuscarHijos($id)