'132', 'border' => '0', 'cellspacing' => '0', 'cellpadding' => '0', 'bgcolor' => '#003868')); $this->t_interna = new HTML_Table(array ('width'=>'132', 'border' => '0', 'cellspacing' => '2', 'cellpadding' => '0', 'class' => 'bodytext')); $this->addRow(array('')); $this->expandir($dat, 0); } function expandir($dat, $n) { $imagen = ''; $class = 'menu'; $bullets = array('', '/MECON/images/arbol_bullet_1.gif', '/MECON/images/arbol_bullet_2.gif', '/MECON/images/arbol_bullet_3.gif'); $tabulados = array(0, 7, 13, 20); $classes = array('menu', 'menu1', 'menu1', 'menu2'); $imagen = ''; foreach($dat as $e) { if(!is_null($e['link'])) $e['titulo'] = ''.$imagen.$e['titulo'].''; if(isset($e['activado']) && $e['activado'] != 0) $class_a = 'menu_activo'; else $class_a = $classes[$n]; $this->t_interna->addRow(array($e['titulo']), array('class' => $class_a)); if(isset($e['sub'])) $this->expandir($e['sub'], $n+1); } } function toHTML() { echo ''; $this->addRow(array($this->t_interna->toHTML())); return parent::toHTML(); } }; ?>