X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/33a81970240b498ed10f3ca688ae3578a013dfef..7e98723437f43e3f57736eb50ad0b8d2eb6bd549:/lib/MECON/HTML/Arbol.php?ds=inline
diff --git a/lib/MECON/HTML/Arbol.php b/lib/MECON/HTML/Arbol.php
index 5dcea2b..c64b585 100644
--- a/lib/MECON/HTML/Arbol.php
+++ b/lib/MECON/HTML/Arbol.php
@@ -7,7 +7,7 @@ class HTML_Arbol extends HTML_Table
{
var $t_interna;
- function HTML_Arbol($dat, $imagen)
+ function HTML_Arbol($dat, $titulo_str)
{
parent::HTML_Table(array ('width'=>'132',
'border' => '0',
@@ -19,9 +19,16 @@ class HTML_Arbol extends HTML_Table
'cellspacing' => '2',
'cellpadding' => '0',
'class' => 'bodytext'));
- $this->addRow(array(new HTML_Image($imagen,'',array('width'=>'132',
- 'height'=>'26',
- 'border'=>'0'))));
+ $titulo = new HTML_Table(array('width'=>'132',
+ 'height'=>'26',
+ 'border' => '0',
+ 'cellspacing' => '0',
+ 'cellpadding' => '0',
+ 'align'=>'center',
+ 'background'=>'/MECON/images/arbol_titulo.gif'));
+ $titulo->addRow(array($titulo_str), array('align'=>'center',
+ 'class'=>'arboltitulo'));
+ $this->addRow(array($titulo), array('bgcolor' => '#FFFFFF'));
$this->expandir($dat, 0);
}
@@ -42,10 +49,10 @@ class HTML_Arbol extends HTML_Table
foreach($dat as $e)
{
$e['titulo'] = $imagen->toHTML().$e['titulo'];
- if(!is_null($e['link']))
- $e['titulo'] = ''.$e['titulo'].'';
if(isset($e['activado']) && $e['activado'] != 0) $class = 'menu_activo';
else $class = $classes[$n];
+ if(!is_null($e['link']))
+ $e['titulo'] = ''.$e['titulo'].'';
$this->t_interna->addRow(array($e['titulo']), array('class' => $class));
if(isset($e['sub']))
$this->expandir($e['sub'], $n+1);