menu.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. require_once '../auth.php';
  3. ?>
  4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  5. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  6. <html>
  7. <head>
  8. <!--<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></meta>-->
  9. <link rel="stylesheet" href="layersmenu-demo.css" type="text/css"></link>
  10. <link rel="stylesheet" href="layerstreemenu.css" type="text/css"></link>
  11. <style type="text/css">
  12. <!--
  13. @import url("layerstreemenu-hidden.css");
  14. //-->
  15. </style>
  16. <link rel="shortcut icon" href="LOGOS/shortcut_icon_phplm.png"></link>
  17. <title>The PHP Layers Menu System</title>
  18. <script language="JavaScript" type="text/javascript">
  19. <!--
  20. <?php require_once 'libjs/layersmenu-browser_detection.js'; ?>
  21. // -->
  22. </script>
  23. <script language="JavaScript" type="text/javascript" src="libjs/layerstreemenu-cookies.js"></script>
  24. <base target="bodyframe"></base>
  25. </head>
  26. <body style="background-color: #ffffff; margin: 3px;">
  27. <div class="normal">
  28. <?=__('Tree Menu', 'Tree Menu', __FILE__); ?>
  29. </div>
  30. <?php
  31. require_once 'lib/PHPLIB.php';
  32. require_once 'lib/layersmenu-common.inc.php';
  33. require_once 'lib/treemenu.inc.php';
  34. $mid = new TreeMenu();
  35. //$mid->setMenuStructureFile('layersmenu-index2.txt');
  36. require_once 'menustring.php';
  37. $mid->setMenuStructureString($menuString);
  38. $mid->setIconsize(16, 16);
  39. $mid->parseStructureForMenu('treemenu1');
  40. $mid->newTreeMenu('treemenu1');
  41. $mid->printTreeMenu('treemenu1');
  42. ?>
  43. </body>
  44. </html>