From: Leandro Lucarella Date: Fri, 19 Sep 2003 18:12:46 +0000 (+0000) Subject: Agrego la posibilidad de habilitar en arbolmen X-Git-Tag: svn_import~268 X-Git-Url: https://git.llucax.com/mecon/meconlib.git/commitdiff_plain/7f5a9c827cb6c5e6d9317b7d5953d619f0c9b626 Agrego la posibilidad de habilitar en arbolmen --- diff --git a/lib/MECON/HTML/ArbolDB.php b/lib/MECON/HTML/ArbolDB.php index 9638922..dedf3b9 100644 --- a/lib/MECON/HTML/ArbolDB.php +++ b/lib/MECON/HTML/ArbolDB.php @@ -141,6 +141,8 @@ class MECON_HTML_ArbolDB extends MECON_HTML_Arbol $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']; @@ -188,6 +190,8 @@ class MECON_HTML_ArbolDB extends MECON_HTML_Arbol $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))