//$mid->setSubMenuTpl('templates/layersmenu-sub_menu.ihtml'); /* TO USE ABSOLUTE PATHS: */ //$mid->setDirroot($myDirPath); ////$mid->setLibjsdir($myDirPath . 'libjs/'); ////$mid->setImgdir($myDirPath . 'menuimages/'); //$mid->setImgwww($myWwwPath . 'menuimages/'); ////$mid->setIcondir($myDirPath . 'menuicons/'); //$mid->setIconwww($myWwwPath . 'menuicons/'); ////$mid->setTpldir($myDirPath . 'templates/'); //$mid->setHorizontalMenuTpl('layersmenu-horizontal_menu.ihtml'); //$mid->setSubMenuTpl('layersmenu-sub_menu.ihtml'); ////$mid->setHorizontalMenuTpl('layersmenu-horizontal_menu-old.ihtml'); ////$mid->setSubMenuTpl('layersmenu-sub_menu-old.ihtml'); //$mid->setDownArrowImg('down-arrow.png'); //$mid->setForwardArrowImg('forward-arrow.png'); $mid->setMenuStructureFile($myDirPath . 'layersmenu-horizontal-1.txt'); $mid->setIconsize(16, 16); $mid->parseStructureForMenu('menuHorizontal1'); $mid->newHorizontalMenu('menuHorizontal1'); $mid->printHeader(); /* alternatively: $header = $mid->getHeader(); print $header; */ ?> </head> <body> <?php $mid->printMenu('menuHorizontal1');
require_once 'lib/layersmenu-common.inc.php'; require_once 'lib/layersmenu.inc.php'; $mid = new LayersMenu(); //$mid->setDirroot('./'); ////$mid->setLibjsdir('./libjs/'); ////$mid->setImgdir('./menuimages/'); //$mid->setImgwww('menuimages/'); ////$mid->setIcondir('./menuicons/'); //$mid->setIconwww('menuicons/'); ////$mid->setTpldir('./templates/'); //$mid->setHorizontalMenuTpl('layersmenu-horizontal_menu.ihtml'); //$mid->setVerticalMenuTpl('layersmenu-vertical_menu.ihtml'); //$mid->setSubMenuTpl('layersmenu-sub_menu.ihtml'); //$mid->setDownArrowImg('down-arrow.png'); //$mid->setForwardArrowImg('forward-arrow.png'); $mid->setMenuStructureFile('layersmenu-horizontal-1.txt'); $mid->setIconsize(16, 16); $mid->parseStructureForMenu('hormenu1'); $mid->newHorizontalMenu('hormenu1'); $mid->setMenuStructureFile('layersmenu-vertical-2.txt'); $mid->parseStructureForMenu('vermenu1'); $mid->newVerticalMenu('vermenu1'); $mid->printHeader(); /* alternatively: $header = $mid->getHeader(); print $header; */ ?> </head> <body>
<?php include "lib/PHPLIB.php"; include "lib/layersmenu-common.inc.php"; include "lib/layersmenu.inc.php"; $mid = new LayersMenu(); //$mid->setDirroot("./"); ////$mid->setLibjsdir("./libjs/"); ////$mid->setImgdir("./images/"); //$mid->setImgwww("images/"); ////$mid->setTpldir("./templates/"); //$mid->setHorizontalMenuTpl("layersmenu-horizontal_menu.ihtml"); //$mid->setVerticalMenuTpl("layersmenu-vertical_menu.ihtml"); //$mid->setSubMenuTpl("layersmenu-sub_menu.ihtml"); //$mid->setDownArrowImg("down-arrow.png"); //$mid->setForwardArrowImg("forward-arrow.png"); $mid->setMenuStructureFile("layersmenu-horizontal-1.txt"); $mid->parseStructureForMenu("hormenu1"); $mid->newHorizontalMenu("hormenu1"); $mid->setMenuStructureFile("layersmenu-vertical-1.txt"); $mid->parseStructureForMenu("vermenu1"); $mid->newVerticalMenu("vermenu1"); $mid->printHeader(); /* alternatively: $header = $mid->makeHeader(); print $header; */ ?> </head> <body>