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