X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/71acf4950362871b3ad6bc168d08db422edf0509..43fecaabcd18019b0f550977631f031e4fb32f23:/lib/MECON/HTML/Arbol.php?ds=inline diff --git a/lib/MECON/HTML/Arbol.php b/lib/MECON/HTML/Arbol.php index 0ba867c..cf919b0 100644 --- a/lib/MECON/HTML/Arbol.php +++ b/lib/MECON/HTML/Arbol.php @@ -59,17 +59,19 @@ class HTML_Arbol extends HTML_Table function expandir($dat, $n) { $imagen = ''; - $bullets = array('', - '/MECON/images/arbol_bullet_1.gif', - '/MECON/images/arbol_bullet_2.gif', - '/MECON/images/arbol_bullet_3.gif'); - $tabulados = array(0, 7, 13, 20); + $bullets = array( + '', + '/MECON/images/arbol_bullet_1.gif', + '/MECON/images/arbol_bullet_2.gif', + '/MECON/images/arbol_bullet_3.gif' + ); + $tabulados = 7; $classes = array('menu', 'menu1', 'menu1', 'menu2'); $atr = array('border' => '0', - 'width' => $tabulados[$n], + 'width' => $n * $tabulados, 'height' => '10'); - $imagen =& new HTML_Image($bullets[$n], 'bullet', $atr); + $imagen =& new HTML_Image(@$bullets[$n] ? $bullets[$n] : '', 'bullet', $atr); foreach($dat as $e) { $e['titulo'] = $imagen->toHTML().$e['titulo'];