'link' => 'blabla',
'id' => 9,
'sub' => array(//sub2 {{{
- 5 => array(
+ array(
'titulo' => 'Nivel4',
'link' => 'blabla',
'id' => 8,
)
); // }}}
-$arbol = new HTML_Arbol($dat, 'MI TITULO', '?raiz=');
+$arbol = new MECON_HTML_Arbol($dat, 'MI TITULO', '?raiz=');
echo '<link rel="stylesheet" href="'.$arbol->getCSS().'">';
echo $arbol->toHTML();
echo '<SELECT name="id">';
echo '<OPTION value="'.$id.'">'.$val.'</OPTION>';
}
echo '</SELECT>';
-$arbol->setActivado(16);
+$arbol->setActivo(16);
echo $arbol->toHTML();
echo '<SELECT name="id">';
foreach ($arbol->toArray() as $id => $val) {
echo '<OPTION value="'.$id.'">'.$val.'</OPTION>';
}
echo '</SELECT>';
+echo "<PRE>Raiz\n";
+echo $arbol->toString();
+echo '</PRE>';
?>