From 7f5a9c827cb6c5e6d9317b7d5953d619f0c9b626 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Fri, 19 Sep 2003 18:12:46 +0000 Subject: [PATCH] Agrego la posibilidad de habilitar en arbolmen --- lib/MECON/HTML/ArbolDB.php | 4 ++++ 1 file changed, 4 insertions(+) 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)) -- 2.43.0