X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/1511bec4a5c54857391cc14fcf942d62e3047a65..06cd54ffd3f4a2641a10db316fb08d42c3b8b5ea:/lib/MECON/HTML/Arbol.php?ds=sidebyside
diff --git a/lib/MECON/HTML/Arbol.php b/lib/MECON/HTML/Arbol.php
index 8154166..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',
@@ -136,8 +137,9 @@ class MECON_HTML_Arbol extends HTML_Table
}
foreach ($dat as $e) {
$titulo = $e['titulo'];
- if(isset($e['activo']) && $e['activo'] != 0) $class = 'menu_activo';
- else $class = $classes[$n];
+ 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,7 +147,7 @@ class MECON_HTML_Arbol extends HTML_Table
}
$titulo = ''.$titulo.'';
}
- $titulo = '
'.$margen.$imagen.' | '.$titulo.' |
';//TODO
+ $titulo = ''.$margen.$imagen.' | '.$titulo.' |
';//TODO
$tabla->addRow(array($titulo), array('class' => $class));
if(isset($e['sub'])) {
$this->expandir($e['sub'], $n+1, $tabla);
@@ -167,7 +169,7 @@ class MECON_HTML_Arbol extends HTML_Table
'border' => '0',
'cellspacing' => '2',
'cellpadding' => '0',
- 'class' => 'bodytext'));
+ 'class' => 'mecon_html_arbol_bodytext'));
$titulo = new HTML_Table(array(
'width' => '132',
'height' => '26',
@@ -178,7 +180,7 @@ class MECON_HTML_Arbol extends HTML_Table
'background' => '/MECON/images/arbol_titulo.gif'));
$titulo->addRow(array($this->titulo), array(
'align' => 'center',
- 'class' => 'arboltitulo'));
+ 'class' => 'mecon_html_arbol_titulo'));
$this->addRow(array($titulo), array('bgcolor' => '#FFFFFF'));
$this->expandir($this->datos, 0, $t_interna);
$this->addRow(array($t_interna->toHTML()));