* @access public
*/
function getCSS() {
- return '/MECON/css/arbol';
+ return '/MECON/css/html/arbol';
}
/**
'-',
'·'
);
- $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',
$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']) {
}
$titulo = '<a href="'.$link.'" class="'.$class.'">'.$titulo.'</a>';
}
+ $titulo = '<table border=0 cellpadding=0 cellspacing=0 align="left"><tr><td valign="top">'.$margen.$imagen.'</td><td>'.$titulo.'</td></tr></table>';//TODO
$tabla->addRow(array($titulo), array('class' => $class));
if(isset($e['sub'])) {
$this->expandir($e['sub'], $n+1, $tabla);
'border' => '0',
'cellspacing' => '2',
'cellpadding' => '0',
- 'class' => 'bodytext'));
+ 'class' => 'mecon_html_arbol_bodytext'));
$titulo = new HTML_Table(array(
'width' => '132',
'height' => '26',
'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()));