<table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="20%" valign="top"> <div class="normalbox"> <div class="normal"> JavaScript Tree Menu </div> <?php require_once 'lib/PHPLIB.php'; require_once 'PEAR.php'; require_once 'DB.php'; require_once 'lib/layersmenu-common.inc.php'; require_once 'lib/treemenu.inc.php'; $mid = new TreeMenu(); $mid->setDBConnParms('pgsql://*****:*****@localhost/phplayersmenu'); //$mid->setDBConnParms('mysql://*****:*****@localhost/phplayersmenu'); $mid->setIconsize(16, 16); $mid->scanTableForMenu('treemenu1', 'it'); $mid->setSelectedItemById('treemenu1', 10); print $mid->newTreeMenu('treemenu1'); /* alternatively: $mid->newTreeMenu('treemenu1'); $mid->printTreeMenu('treemenu1'); */ /* alternatively: $mid->newTreeMenu('treemenu1'); $tree_menu1 = $mid->getTreeMenu('treemenu1'); print $tree_menu1; */ ?>
<table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="20%" valign="top"> <div class="normalbox"> <div class="normal"> JavaScript Tree Menu </div> <?php require_once 'lib/PHPLIB.php'; require_once 'PEAR.php'; require_once 'DB.php'; require_once 'lib/layersmenu-common.inc.php'; require_once 'lib/treemenu.inc.php'; $mid = new TreeMenu(); $mid->setDBConnParms('mysql://*****:*****@localhost/phplayersmenu'); //$mid->setDBConnParms('pgsql://*****:*****@localhost/phplayersmenu'); //$mid->setDBConnParms('sqlite:///DUMPS/phplayersmenu'); $mid->setIconsize(16, 16); $mid->scanTableForMenu('treemenu1', 'it'); $mid->setSelectedItemById('treemenu1', 10); print $mid->newTreeMenu('treemenu1'); /* alternatively: $mid->newTreeMenu('treemenu1'); $mid->printTreeMenu('treemenu1'); */ /* alternatively: $mid->newTreeMenu('treemenu1'); $tree_menu1 = $mid->getTreeMenu('treemenu1'); print $tree_menu1; */