setMenuStructureFile("layersmenu-horizontal-1.txt"); $mid->parseStructureForMenu("hormenu1"); $mid->setHorizontalMenuTpl("layersmenu-horizontal_menu-full.ihtml"); $mid->newHorizontalMenu("hormenu1"); $menustring = ".|Linus B. Torvalds|http://www.cs.Helsinki.FI/u/torvalds/|The father of Linux||Linus\n" . ".|Linux Kernel Archives|http://www.kernel.org/|Here you can download the Linux kernel sources|www.kernel.org_images_tux16-16.png|kernelorg\n" . ".|Linux Distributions|http://flashnet.linux.tucows.com/distribution.html|Here you can find a list of the major Linux distributions||Linux|1\n" . "..|Debian GNU/Linux|http://www.debian.org/|Enjoy the exciting world of Debian GNU/Linux!|debian-icon-mini.png|Linux|1\n" . "...|About|http://www.debian.org/intro/about|||Linux\n" . "...|News|http://www.debian.org/News/|||Linux\n" . "...|Distribution|http://www.debian.org/distrib/|||Linux\n" . "...|Support|http://www.debian.org/support|||Linux\n" . "...|Development|http://www.debian.org/devel/|||Linux\n" . "...|Search|http://search.debian.org/|||Linux\n" . "...|A Debian Mirror|http://ftp.mirror.ac.uk/sites/ftp.debian.org/|||Linux\n" . "..|Mandrake|http://www.mandrakelinux.com/|Mandrake Linux||Linux\n" . "...|Errata|http://www.mandrakelinux.com/en/errata.php3|||Linux\n" . "...|Download|http://www.mandrakelinux.com/en/ftp.php3|||Linux\n" . "...|Mandrake Expert|http://www.mandrakeexpert.com/index1.php|||Linux\n" . "...|Bugzilla|http://qa.mandrakesoft.com/|||Linux\n" . "..|Slackware|http://www.freesoftware.org/|Slackware Linux||Linux\n"; $mid->setMenuStructureString($menustring); $mid->parseStructureForMenu("vermenu1"); $mid->setDownArrowImg("down-galaxy.png"); $mid->setForwardArrowImg("forward-galaxy.png"); $mid->setVerticalMenuTpl("layersmenu-vertical_menu-galaxy.ihtml"); $mid->setSubMenuTpl("layersmenu-sub_menu-galaxy.ihtml"); $mid->newVerticalMenu("vermenu1"); $mid->setMenuStructureFile("layersmenu-vertical-2.txt"); $mid->parseStructureForMenu("vermenu2"); $mid->setDownArrowImg("down-gtk2.png"); $mid->setForwardArrowImg("forward-gtk2.png"); $mid->setVerticalMenuTpl("layersmenu-vertical_menu.ihtml"); $mid->setSubMenuTpl("layersmenu-sub_menu.ihtml"); $mid->newVerticalMenu("vermenu2"); $mid->setMenuStructureFile("layersmenu-horizontal-2.txt"); $mid->parseStructureForMenu("hormenu2"); $mid->setDownArrowImg("down-keramik.png"); $mid->setForwardArrowImg("forward-keramik.png"); $mid->setHorizontalMenuTpl("layersmenu-horizontal_menu-keramik.ihtml"); $mid->setSubMenuTpl("layersmenu-sub_menu-keramik.ihtml"); $mid->newHorizontalMenu("hormenu2"); $mid->printHeader(); ?> printMenu("hormenu1"); ?>
The PHP Layers Menu System
A vertical menu...
printMenu("vermenu1"); ?>
Tree Menu version
setMenuStructureFile("layersmenu-vertical-1.txt"); $treemid->parseStructureForMenu("treemenu1"); print $treemid->newTreeMenu("treemenu1"); ?>
PHP Tree - No JavaScript
setPHPTreeMenuDefaultExpansion("3|4|18"); $phptreemid->setMenuStructureFile("layersmenu-vertical-1.txt"); $phptreemid->parseStructureForMenu("treemenu1"); print $phptreemid->newPHPTreeMenu("treemenu1"); ?>
Plain - No JavaScript
setMenuStructureFile("layersmenu-vertical-1.txt"); $plainmid->parseStructureForMenu("treemenu1"); print $plainmid->newPlainMenu("treemenu1"); ?>

Another vertical menu...
printMenu("vermenu2"); ?>
PHP Tree - No JavaScript
setMenuStructureFile("layersmenu-vertical-2.txt"); $phptreemid->parseStructureForMenu("treemenu2"); print $phptreemid->newPHPTreeMenu("treemenu2"); ?>

Powered by PHP Layers Menu

Valid XHTML 1.0!

Valid CSS!
Another horizontal menu... and its Menu Structure File
printMenu("hormenu2"); ?>
Tree Menu version setMenuStructureFile("layersmenu-horizontal-2.txt"); $treemid->parseStructureForMenu("treemenu3"); print $treemid->newTreeMenu("treemenu3"); ?> Horizontal Plain version - No JavaScript setMenuStructureFile("layersmenu-horizontal-2.txt"); $pmid->parseStructureForMenu("phormenu"); print $pmid->newHorizontalPlainMenu("phormenu"); ?>
printFooter(); ?>