<div class="normalbox"> <div class="normal"> JavaScript Tree Menu </div> <?php require_once 'phplm320/lib/PHPLIB.php'; require_once 'phplm320/lib/layersmenu-common.inc.php'; require_once 'phplm320/lib/treemenu.inc.php'; $mid = new TreeMenu(); //$mid->setDirroot('./'); $mid->setLibjsdir('./phplm320/libjs/'); $mid->setImgdir('./phplm320/menuimages/'); $mid->setImgwww('phplm320/menuimages/'); $mid->setIcondir('./phplm320/menuicons/'); $mid->setIconwww('phplm320/menuicons/'); $mid->setMenuStructureFile('phplm320/layersmenu-vertical-1.txt'); $mid->setIconsize(16, 16); $mid->parseStructureForMenu('treemenu1'); //$mid->setSelectedItemByCount('treemenu1', 7); $mid->setSelectedItemByUrl('treemenu1', basename(__FILE__)); print $mid->newTreeMenu('treemenu1'); /* alternatively: $mid->newTreeMenu('treemenu1'); $mid->printTreeMenu('treemenu1'); */ /* alternatively: $mid->newTreeMenu('treemenu1'); $tree_menu1 = $mid->getTreeMenu('treemenu1'); print $tree_menu1; */ ?>
<tr> <td width="20%" valign="top"> <div class="normalbox"> <div class="normal"> A JS Tree Menu </div> <?php include "lib/PHPLIB.php"; include "lib/layersmenu-common.inc.php"; include "lib/treemenu.inc.php"; $mid = new TreeMenu(); //$mid->setDirroot("./"); ////$mid->setLibjsdir("./libjs/"); ////$mid->setImgdir("./images/"); //$mid->setImgwww("images/"); $mid->setMenuStructureFile("layersmenu-vertical-1.txt"); $mid->parseStructureForMenu("treemenu1"); print $mid->newTreeMenu("treemenu1"); ?> </div> <div class="normalbox"> <div class="normal"> Another JS Tree Menu </div> <?php $mid->setMenuStructureFile("layersmenu-horizontal-1.txt"); $mid->parseStructureForMenu("treemenu2"); print $mid->newTreeMenu("treemenu2"); ?> </div> <br />
<table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="20%" valign="top"> <div style="height: 3px"></div> <?php $mid->printMenu('vermenu1'); ?> <div class="normalbox"> <div class="normal"> A Tree Menu </div> <?php require_once 'lib/treemenu.inc.php'; $treemid = new TreeMenu(); $treemid->setMenuStructureFile('layersmenu-vertical-3.txt'); $mid->setIconsize(16, 16); $treemid->parseStructureForMenu('treemenu1'); //$treemid->setSelectedItemByCount('treemenu1', 5); $treemid->setSelectedItemByUrl('treemenu1', basename(__FILE__)); print $treemid->newTreeMenu('treemenu1'); ?> </div> <div class="normalbox"> <div class="normal"> Another Tree Menu </div> <?php $treemid->setMenuStructureFile('layersmenu-horizontal-1.txt'); $treemid->parseStructureForMenu('treemenu2'); $treemid->setTreeMenuTheme('kde_');
<div class="normalbox"> <div class="normal"> A JS Tree Menu </div> <?php require_once 'lib/PHPLIB.php'; require_once 'lib/layersmenu-common.inc.php'; require_once 'lib/treemenu.inc.php'; $mid = new TreeMenu(); //$mid->setDirroot('./'); ////$mid->setLibjsdir('./libjs/'); ////$mid->setImgdir('./menuimages/'); //$mid->setImgwww('menuimages/'); ////$mid->setIcondir('./menuicons/'); //$mid->setIconwww('menuicons/'); $mid->setMenuStructureFile('layersmenu-vertical-1.txt'); $mid->setIconsize(16, 16); $mid->parseStructureForMenu('treemenu1'); //$mid->setSelectedItemByCount('treemenu1', 8); $mid->setSelectedItemByUrl('treemenu1', basename(__FILE__)); print $mid->newTreeMenu('treemenu1'); ?> </div> <div class="normalbox"> <div class="normal"> Another JS Tree Menu </div> <?php $mid->setMenuStructureFile('layersmenu-vertical-2.txt'); $mid->parseStructureForMenu('treemenu2'); $mid->setTreeMenuTheme('kde_');
<div class="normal" align="center"> <b>A file-based example with a Horizontal Layers Menu and a JavaScript Tree Menu</b> </div> </div> <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 include "lib/treemenu.inc.php"; $treemid = new TreeMenu(); $treemid->setMenuStructureFile("layersmenu-vertical-1.txt"); $treemid->parseStructureForMenu("treemenu1"); print $treemid->newTreeMenu("treemenu1"); ?> </div> <br /> <center> <a href="http://phplayersmenu.sourceforge.net/"><img border="0" src="LOGOS/powered_by_phplm.png" alt="Powered by PHP Layers Menu" height="31" width="88" /></a> </center> <br /> <center> <a href="http://validator.w3.org/check/referer"><img border="0" src="images/valid-xhtml10.png" alt="Valid XHTML 1.0!" height="31" width="88" /></a> </center> <br />
<title>The PHP Layers Menu System</title> <script language="JavaScript" type="text/javascript"> <!-- <?php require_once 'libjs/layersmenu-browser_detection.js'; ?> // --> </script> <script language="JavaScript" type="text/javascript" src="libjs/layerstreemenu-cookies.js"></script> <base target="bodyframe"></base> </head> <body style="background-color: #ffffff; margin: 3px;"> <div class="normal"> Tree Menu </div> <?php require_once 'lib/PHPLIB.php'; require_once 'lib/layersmenu-common.inc.php'; require_once 'lib/treemenu.inc.php'; $mid = new TreeMenu(); $mid->setMenuStructureFile('layersmenu-horizontal-1.txt'); $mid->setIconsize(16, 16); $mid->parseStructureForMenu('treemenu1'); $mid->newTreeMenu('treemenu1'); $mid->printTreeMenu('treemenu1'); ?> </body> </html>
<div class="normal" align="center"> <b>A file-based example with a Horizontal Layers Menu and a JavaScript Tree Menu</b> </div> </div> <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/treemenu.inc.php'; $treemid = new TreeMenu(); $treemid->setMenuStructureFile('layersmenu-vertical-3.txt'); $treemid->setIconsize(16, 16); $treemid->parseStructureForMenu('treemenu1'); //$treemid->setSelectedItemByCount('treemenu1', 4); $treemid->setSelectedItemByUrl('treemenu1', basename(__FILE__)); print $treemid->newTreeMenu('treemenu1'); ?> </div> <br /> <center> <a href="http://phplayersmenu.sourceforge.net/"><img border="0" src="LOGOS/powered_by_phplm.png" alt="Powered by PHP Layers Menu" height="31" width="88" /></a> </center> <br /> <center> <a href="http://validator.w3.org/check/referer"><img border="0"