summaryrefslogtreecommitdiff
path: root/UI/menu/expanding.html
blob: 0854d59fcfeaa1451e7f33df94ffe669b4a3b0ed (plain)
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4. <head>
  5. <title>Accounting Menu - LedgerSMB Version 1.2.7 - Chris Travers - metatron_ledger</title>
  6. <meta http-equiv="Pragma" content="no-cache" />
  7. <meta http-equiv="Expires" content="-1" />
  8. <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
  9. <link rel="stylesheet" href="UI/menu/expanding.css" type="text/css" title="LedgerSMB stylesheet" />
  10. <link rel="stylesheet" href="css/<?lsmb stylesheet ?>" type="text/css" title="LedgerSMB stylesheet" />
  11. <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
  12. <meta name="robots" content="noindex,nofollow" />
  13. <script type="text/javascript">
  14. function SwitchMenu(id) {
  15. var obj = "sub_" + id;
  16. if (document.getElementById) {
  17. var element = document.getElementById(obj);
  18. if (element.style.display == "block") {
  19. element.style.display = "none";
  20. } else {
  21. element.style.display = "block"; //display the block of info
  22. }
  23. obj = 'a_' + id;
  24. element = document.getElementById(obj);
  25. if (element.className == 'Menu_Open'){
  26. element.className
  27. = 'Menu_Closed';
  28. } else {
  29. element.className = 'Menu_Open';
  30. }
  31. return false;
  32. }
  33. }
  34. document.onselectstart = new Function("return false");
  35. </script>
  36. </head>
  37. <body class="menu">
  38. <img class="cornderlogo" src="images/ledgersmb_small.png" width="100" height="50" border="1" alt="ledger-smb" />
  39. <?lsmb FOREACH item = menu_items ?>
  40. <?lsmb href = "" ?>
  41. <?lsmb WHILE item.level < old_level ?>
  42. </div><?lsmb old_level = old_level - 1 ?>
  43. <?lsmb END ?>
  44. <div class="Menu" id="menu_<?lsmb item.id ?>">
  45. <a href="<?lsmb IF item.module ?><?lsmb item.module
  46. ?><?lsmb ELSE ?>menu.pl<?lsmb END
  47. ?>?login=<?lsmb login
  48. ?>&<?lsmb FOREACH arg IN item.args
  49. ?><?lsmb arg
  50. ?>&<?lsmb END
  51. ?><?lsmb IF item.menu
  52. ?>id=<?lsmb item.id
  53. ?>&open=<?lsmb open
  54. ?><?lsmb END ?>"
  55. <?lsmb IF (item.module != 'menu.pl') &&
  56. ('login.pl' != item.module) ?>
  57. target = "main_window"
  58. <?lsmb ELSIF ('New Window' == item.label) ?>
  59. target = 'new'
  60. <?lsmb ELSIF ('login.pl' == item.module) ?>
  61. target = '_top'
  62. <?lsmb END ?>
  63. <?lsmb IF item.menu &&
  64. ('New Menu' != item.label) ?>
  65. onclick="return SwitchMenu('<?lsmb item.id ?>')"
  66. <?lsmb END ?>
  67. class = "<?lsmb IF (item.menu && item.open)
  68. ?>Menu_Open<?lsmb ELSIF item.menu
  69. ?>Menu_Closed<?lsmb
  70. ELSE ?>Menu_Item<?lsmb END ?>"
  71. id = "a_<?lsmb item.id ?>"
  72. ><?lsmb text(item.label) ?></a>
  73. </div>
  74. <?lsmb IF item.menu && (item.label != 'New Window') ?>
  75. <div id="sub_<?lsmb item.id ?>" class="submenu"
  76. <?lsmb IF item.open ?>
  77. style="display: block"
  78. <?lsmb END ?>>
  79. <?lsmb END ?>
  80. <?lsmb old_level = item.level ?>
  81. <?lsmb END ?>
  82. </body>
  83. </html>