X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/5b89506db3b83f20f5c3ddafd35e02a42e690318..8117acde82b62ec80191c2bcfbd7df5045345d21:/lib/MECON/HTML/Arbol.php?ds=sidebyside diff --git a/lib/MECON/HTML/Arbol.php b/lib/MECON/HTML/Arbol.php index e3a1012..cd47b0b 100644 --- a/lib/MECON/HTML/Arbol.php +++ b/lib/MECON/HTML/Arbol.php @@ -26,9 +26,9 @@ $Id$ -----------------------------------------------------------------------------*/ require_once 'HTML/Table.php'; -require_once 'HTML/Image.php'; +require_once 'MECON/HTML/Image.php'; -class HTML_Arbol extends HTML_Table +class MECON_HTML_Arbol extends HTML_Table { var $datos; var $titulo; @@ -41,7 +41,7 @@ class HTML_Arbol extends HTML_Table * @param string $titulo Título. * @param int $raiz Nodo raíz (de donde empezar a dibujar el árbol). */ - function HTML_Arbol($datos, $titulo, $link_append = '') + function MECON_HTML_Arbol($datos, $titulo, $link_append = '') { parent::HTML_Table(array( 'width' => '132', @@ -81,12 +81,12 @@ class HTML_Arbol extends HTML_Table ); $margen = ' '; if ($n) { - $margen = new HTML_Image('/MECON/images/blanco.gif', str_repeat('  ', $n), $atr); + $margen = new MECON_HTML_Image('/MECON/images/blanco.gif', str_repeat('  ', $n), $atr); $margen = $margen->toHtml(); } $imagen = ''; if (@$bullets[$n]) { - $imagen = new HTML_Image($bullets[$n], @$alts[$n]); + $imagen = new MECON_HTML_Image($bullets[$n], @$alts[$n]); $imagen = $imagen->toHtml(); } foreach ($dat as $e) { @@ -130,8 +130,7 @@ class HTML_Arbol extends HTML_Table $this->addRow(array($titulo), array('bgcolor' => '#FFFFFF')); $this->expandir($this->datos, 0, $t_interna); $this->addRow(array($t_interna->toHTML())); - // FIXME - sacar la style sheet de aca. - return ''.parent::toHTML(); + return parent::toHTML(); } function expandirArray($dat, $n, $filtrarActivos)