X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/4cf359b26dbb47d985591feb13d4b5a4d6904065..11fc033324d7f8988c422129b6e13f6e3053e05a:/lib/MECON/HTML/Arbol.php?ds=inline diff --git a/lib/MECON/HTML/Arbol.php b/lib/MECON/HTML/Arbol.php index e33e65d..7c39ca2 100644 --- a/lib/MECON/HTML/Arbol.php +++ b/lib/MECON/HTML/Arbol.php @@ -90,7 +90,7 @@ class MECON_HTML_Arbol extends HTML_Table * @access public */ function getCSS() { - return '/MECON/css/arbol'; + return '/MECON/css/html/arbol'; } /** @@ -117,7 +117,8 @@ class MECON_HTML_Arbol extends HTML_Table '-', 'ยท' ); - $classes = array('menu', 'menu1', 'menu1', 'menu2'); + $classes = array('mecon_html_arbol_menu', 'mecon_html_arbol_menu1', + 'mecon_html_arbol_menu1', 'mecon_html_arbol_menu2'); $tabulados = 7; $atr = array( 'border' => '0', @@ -135,9 +136,10 @@ class MECON_HTML_Arbol extends HTML_Table $imagen = $imagen->toHtml(); } foreach ($dat as $e) { - $titulo = $margen.$imagen.$e['titulo']; - if(isset($e['activo']) && $e['activo'] != 0) $class = 'menu_activo'; - else $class = $classes[$n]; + $titulo = $e['titulo']; + if(isset($e['activo']) && $e['activo'] != 0) $class = 'mecon_html_arbol_menu_activo'; + else $class = @$classes[$n] ? $classes[$n] : end($classes); + if(isset($e['bold'])) $class .= '_bold'; if(!is_null($e['link'])) { $link = $e['link']; if ($this->link_append and @$e['id']) { @@ -145,6 +147,7 @@ class MECON_HTML_Arbol extends HTML_Table } $titulo = ''.$titulo.''; } + $titulo = '
'.$margen.$imagen.' | '.$titulo.' |