3 require_once 'HTML/Table.php';
\r
5 class HTML_Arbol extends HTML_Table
\r
11 parent::HTML_Table(array ('width'=>'132',
\r
13 'cellspacing' => '0',
\r
14 'cellpadding' => '0',
\r
15 'bgcolor' => '#003868'));
\r
16 $this->t_interna = new HTML_Table(array ('width'=>'132',
\r
18 'cellspacing' => '2',
\r
19 'cellpadding' => '0',
\r
20 'class' => 'bodytext'));
\r
21 $this->addRow(array('<img name="noticias" src="MECON/images/noticias.gif" width="132" height="26" border="0">'));
\r
22 $this->expandir($dat, 0);
\r
24 function expandir($dat, $n)
\r
29 case 1: $imagen = '<img src="MECON/images/arbol_bullet_1.gif" width="7" height="10">';
\r
32 case 2: $imagen = '<img src="MECON/images/arbol_bullet_2.gif" width="13" height="10">';
\r
35 case 3: $imagen = '<img src="MECON/images/arbol_bullet3.gif" width="20" height="10">';
\r
41 if(!is_null($e['link']))
\r
42 $e['titulo'] = '<a href="'.$e['link'].'">'.$imagen.$e['titulo'].'</a>';
\r
43 if(isset($e['activado']) && $e['activado'] != 0) $class_a = 'menu_activo';
\r
44 else $class_a = $class;
\r
45 $this->t_interna->addRow(array($e['titulo']), array('class' => $class_a));
\r
46 if(isset($e['sub']))
\r
47 $this->expandir($e['sub'], $n+1);
\r
52 echo '<link rel="stylesheet" href="MECON/css/arbol.css">';
\r
53 $this->addRow(array($this->t_interna->toHTML()));
\r
54 return parent::toHTML();
\r