$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 $mid->printMenu('hormenu1'); /* alternatively: $hormenu1 = $mid->getMenu('hormenu1'); print $hormenu1; */ ?> <div class="normalbox"> <div class="normal" align="center"> <b><?php print basename(__FILE__); ?> - a file-based example with a Horizontal and a Vertical Layers Menu</b> </div> </div>
$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'); /* alternatively: $hormenu1 = $mid->getMenu('hormenu1'); print $hormenu1; */ ?> <div class="normalbox"> <div class="normal" align="center"> <b><?php print basename(__FILE__); ?> - a file-based example with a Horizontal Layers Menu</b> <div style="height: 5px"></div> <a href="http://phplayersmenu.sourceforge.net/"><img border="0" src="<?php
$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(); ?> </head> <body> <?php $mid->printMenu("hormenu1"); ?> <div class="normalbox"> <div class="h1">The PHP Layers Menu System</div> </div> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="20%" valign="top"> <div class="normalbox"> <div class="normal"> A vertical menu... </div> </div>
//$mid->setForwardArrowImg("forward-arrow.png"); $mid->setMenuStructureFile($myDirPath . "layersmenu-horizontal-1.txt"); $mid->parseStructureForMenu("hormenu1"); $mid->newHorizontalMenu("hormenu1"); $mid->printHeader(); /* alternatively: $header = $mid->makeHeader(); print $header; */ ?> </head> <body> <?php $mid->printMenu("hormenu1"); /* alternatively: $hormenu1 = $mid->getMenu("hormenu1"); print $hormenu1; */ ?> <div class="normalbox"> <div class="normal" align="center"> <b>A file-based example with a Horizontal Layers Menu</b> <div style="height: 5px"></div> <a href="http://phplayersmenu.sourceforge.net/"><img border="0" src="<?php print $myWwwPath; ?> LOGOS/powered_by_phplm.png" alt="Powered by PHP Layers Menu"
function montaMenu() { $myDirPath = '../includes/menu/phplm320/'; $myWwwPath = '../includes/menu/phplm320/'; ?> <link rel="stylesheet" href="<?php print $myWwwPath; ?> invmon-layersmenu-demo.css" type="text/css"></link> <link rel="stylesheet" href="<?php print $myWwwPath; ?> invmon-layersmenu-gtk2.css" type="text/css"></link> <link rel="shortcut icon" href="<?php print $myWwwPath; ?> LOGOS/shortcut_icon_phplm.png"></link> <script language="JavaScript" type="text/javascript"> <!-- <?php require_once $myDirPath . 'libjs/layersmenu-browser_detection.js'; ?> // --> </script> <script language="JavaScript" type="text/javascript" src="<?php print $myWwwPath; ?> libjs/layersmenu-library.js"></script> <script language="JavaScript" type="text/javascript" src="<?php print $myWwwPath; ?> libjs/layersmenu.js"></script> <?php require_once $myDirPath . 'lib/PHPLIB.php'; require_once $myDirPath . 'lib/layersmenu-common.inc.php'; require_once $myDirPath . 'lib/layersmenu.inc.php'; $mid = new LayersMenu(6, 7, 2, 1); // Gtk2-like $menuInvmon = ".|Iniciar|abertura.php|Tela inicial do Sistema\n" . ".|Cadastrar\n" . "..|Equipamento\n" . "..|Documento\n" . "..|Item de estoque\n" . "..|Local\n" . "..|Usuário\n" . ".|Visualizar\n" . "..|Equipamentos\n" . "..|Documentos\n" . "..|Estoque\n" . ".|Consultar\n" . "..|Consulta rápida\n" . "..|Consulta Especial\n" . "..|Histórico\n" . "...|Por Etiqueta\n" . "...|Localização anterior\n" . ".|Estatíticas e Relatórios\n" . ".|Senha\n" . ".|Admin\n" . "..|Componentes\n" . "...|CD-Rom\n" . "...|DVD\n" . "...|Gravador\n" . "...|HD\n" . "...|Placa mãe\n" . "...|Memória\n" . "...|Placa de modem\n" . "...|Processador\n" . "...|Placa de rede\n" . "...|Placa de som\n" . "...|Vídeo\n" . "..|Fabricantes\n" . "..|Fornecedores\n" . "..|Softwares\n" . "..|Configurações\n" . "..|Estoque\n" . ".|Exemplo\n" . "..|Submenu\n" . "...|submenu\n" . "....|Item|link|Title ou Hint|invmon-favicon.ico|Target\n" . "....|---\n" . "....|Item|link|Title ou Hint|invmon-favicon.ico|Target\n"; /* 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->setDownArrowImg('down-arrow-blue.png'); $mid->setForwardArrowImg('forward-arrow-blue.png'); $mid->setMenuStructureString($menuInvmon); $mid->setIconsize(16, 16); $mid->parseStructureForMenu('menuHorizontal1'); $mid->newHorizontalMenu('menuHorizontal1'); $mid->printHeader(); $mid->printMenu('menuHorizontal1'); $mid->printFooter(); }
</head> <body> <div class="normalbox"> <div class="normal" align="center"> <b>A file-based example with a Vertical Layers Menu</b> </div> </div> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="20%" valign="top"> <div style="height: 3px"></div> <?php $mid->printMenu("vermenu1"); /* alternatively: $vermenu1 = $mid->getMenu("vermenu1"); print $vermenu1; */ ?> <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>