index.php 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html>
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></meta>
  6. <link rel="stylesheet" href="layersmenu-demo.css" type="text/css"></link>
  7. <?php
  8. require_once 'lib/layersmenu-browser_detection.php';
  9. if ($menuType == 'DOM') {
  10. ?>
  11. <link rel="stylesheet" href="layersmenu-index.css" type="text/css"></link>
  12. <?php
  13. } else {
  14. ?>
  15. <link rel="stylesheet" href="layersmenu-old.css" type="text/css"></link>
  16. <?php
  17. }
  18. ?>
  19. <link rel="shortcut icon" href="LOGOS/shortcut_icon_phplm.png"></link>
  20. <title>The PHP Layers Menu System</title>
  21. <?php
  22. if ($menuType != 'PLAIN') {
  23. ?>
  24. <script language="JavaScript" type="text/javascript">
  25. <!--
  26. <?php
  27. require_once 'libjs/layersmenu-browser_detection.js';
  28. ?>
  29. // -->
  30. </script>
  31. <script language="JavaScript" type="text/javascript" src="libjs/layersmenu-library.js"></script>
  32. <script language="JavaScript" type="text/javascript" src="libjs/layersmenu.js"></script>
  33. <?php
  34. }
  35. ?>
  36. <?php
  37. require_once 'lib/PHPLIB.php';
  38. require_once 'lib/layersmenu-common.inc.php';
  39. if ($menuType == 'DOM' || $menuType == 'OLD') {
  40. require_once 'lib/layersmenu.inc.php';
  41. $mid = new LayersMenu();
  42. } else {
  43. require_once 'lib/plainmenu.inc.php';
  44. $mid = new PlainMenu();
  45. }
  46. $mid->setMenuStructureFile('layersmenu-index.txt');
  47. $mid->setIconsize(16, 16);
  48. $mid->parseStructureForMenu('homemenu');
  49. if ($menuType == 'DOM' || $menuType == 'OLD') {
  50. $mid->setDownArrowImg('down-keramik.png');
  51. $mid->setForwardArrowImg('forward-keramik.png');
  52. }
  53. if ($menuType == 'DOM') {
  54. $mid->setHorizontalMenuTpl('layersmenu-horizontal_menu-keramik-full.ihtml');
  55. $mid->setSubMenuTpl('layersmenu-sub_menu-keramik.ihtml');
  56. } elseif ($menuType == 'OLD') {
  57. $mid->setHorizontalMenuTpl('layersmenu-horizontal_menu-old.ihtml');
  58. $mid->setSubMenuTpl('layersmenu-sub_menu-old.ihtml');
  59. } else {
  60. $mid->setPlainMenuTpl('layersmenu-plain_menu.ihtml');
  61. }
  62. if ($menuType == 'DOM' || $menuType == 'OLD') {
  63. $mid->newHorizontalMenu('homemenu');
  64. $mid->printHeader();
  65. }
  66. ?>
  67. </head>
  68. <body>
  69. <?php
  70. if ($menuType == 'DOM' || $menuType == 'OLD') {
  71. $mid->printMenu('homemenu');
  72. } else {
  73. ?>
  74. <table border="0" cellpadding="0" cellspacing="0" width="100%">
  75. <tr>
  76. <td valign="top">
  77. <?php
  78. print $mid->newPlainMenu('homemenu');
  79. ?>
  80. </td>
  81. <td valign="top">
  82. <?php
  83. }
  84. ?>
  85. <div class="normalbox">
  86. <div class="normal">
  87. <?php require_once 'README.ihtml'; ?>
  88. </div>
  89. </div>
  90. <div class="normalbox">
  91. <div class="normal" align="center">
  92. <a href="http://phplayersmenu.sourceforge.net/"><img border="0"
  93. src="LOGOS/powered_by_phplm.png" alt="Powered by PHP Layers Menu"
  94. height="31" width="88" /></a>&nbsp;<a
  95. href="http://validator.w3.org/check/referer"><img border="0"
  96. src="images/valid-xhtml10.png" alt="Valid XHTML 1.0!"
  97. height="31" width="88" /></a>&nbsp;<a
  98. href="http://jigsaw.w3.org/css-validator/"><img border="0"
  99. src="images/vcss.png" alt="Valid CSS!" height="31" width="88" /></a>
  100. </div>
  101. </div>
  102. <?php
  103. if ($menuType == 'DOM' || $menuType == 'OLD') {
  104. $mid->printFooter();
  105. } else {
  106. ?>
  107. </td>
  108. </tr>
  109. </table>
  110. <?php
  111. }
  112. ?>
  113. </body>
  114. </html>