<?
error_reporting(0);
require 'Menulib.php';
?>
<html>
<body bgcolor=white>
<?
$root = new Menu('Root','r');
$m3 = new Menu('Menu 3','3');
$m1 = new Menu('Menu 1','1');
$m2 = new Menu('Menu 2','2');
$m4 = new Menu('Menu 4','4');
$m5 = new Menu('Menu 5','5');
$m6 = new Menu('Menu 6','6');
$l1 = new LeafItem('http://www.kontramarka.ru','Leaf Item');
$l1->setTemplate('* <a href="URL">NAME</a>');
$m1->addItem(&$m3);
$m2->addItem(&$l1);
$m4->addItem(&$m5);
$m2->addItem(&$m4);
$m2->addItem(&$m6);
$ar = array(&$m1,&$m2);
$root->addItem(&$ar);
$root->setOpenedMenuSymbol('- ');
$root->setClosedMenuSymbol('+ ');
$menuid = ($menuid)?$menuid:'';
echo $root->display($menuid,"$PHPSELF?menuid=");
?>
</body>
</html>
|