* @return void
* @access public
*/
- function MECON_HTML_ArbolDB($dbdata, $titulo, $link_append = '', $expandir = true)
+ function MECON_HTML_ArbolDB($dbdata, $titulo, $link_append = '', $expandir = false)
{
if(isset($dbdata['id_padre']))
$this->padre = $dbdata['id_padre'];
$this->link = $dbdata['link'];
if(isset($dbdata['where']))
$this->where = $dbdata['where'];
+ if(isset($dbdata['habilitado']))
+ $this->habilitado = $dbdata['habilitado'];
if(isset($dbdata['order']))
$this->order = ' ORDER BY '.$dbdata['nombre'].' '.$dbdata['order'];
$this->db = $dbdata['db'];
$sql .= ' AND';
} elseif ($this->where)
$sql .= $this->where;
+ if(isset($this->habilitado))
+ $sql .= " AND ".$this->habilitado." = 1 ";
$sql .= $this->order;
$result = $this->db->query($sql);
if(DB::isError($result))