summaryrefslogtreecommitdiff
path: root/UI/menu/expanding.html
blob: 36befa5b4a88291c02d36dd75089a614930ca541 (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" title="Stylesheet" href="css/<?lsmb stylesheet ?>" />
  11. <link rel="stylesheet" title="Stylesheet" href="UI/menu/expanding.css" />
  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 = "menu_" + id;
  17. if (document.getElementById) {
  18. var element = document.getElementById(obj);
  19. element = document.getElementById(obj);
  20. if (element.className == 'menu_open'){
  21. element.className
  22. = 'menu_closed';
  23. } else {
  24. element.className = 'menu_open';
  25. }
  26. return false;
  27. }
  28. }
  29. document.onselectstart = new Function("return false");
  30. </script>
  31. </head>
  32. <body class="menu">
  33. <img class="cornderlogo" src="images/ledgersmb_small.png" width="100" height="50" border="1" alt="LedgerSMB" />
  34. <ul id="top_menu" class="menu_open">
  35. <?lsmb old_level = 0 ?>
  36. <?lsmb FOREACH item = menu_items ?>
  37. <?lsmb href = "" ?>
  38. <!-- <?lsmb item.level ?> :: <?lsmb old_level ?> -->
  39. <?lsmb WHILE item.level < old_level ?>
  40. </li></ul><?lsmb old_level = old_level - 1 ?>
  41. <?lsmb END ?>
  42. <?lsmb IF old_level > 0 && item.level <= old_level ?></li><?lsmb END ?>
  43. <?lsmb old_level = item.level ?>
  44. <li id="menu_<?lsmb item.id ?>"
  45. class = "<?lsmb IF (item.menu && item.open)
  46. ?>menu_open<?lsmb ELSIF item.menu
  47. ?>menu_closed<?lsmb
  48. ELSE ?>menu_item<?lsmb END ?>">
  49. <a href="<?lsmb IF item.module ?><?lsmb item.module
  50. ?><?lsmb ELSE ?>menu.pl<?lsmb END
  51. ?>?login=<?lsmb login
  52. ?>&amp;<?lsmb FOREACH arg IN item.args
  53. ?><?lsmb arg
  54. ?>&amp;<?lsmb END
  55. ?><?lsmb IF item.menu
  56. ?>id=<?lsmb item.id
  57. ?>&amp;open=<?lsmb open
  58. ?><?lsmb END ?>"
  59. <?lsmb IF (item.module != 'menu.pl') &&
  60. ('login.pl' != item.module) ?>
  61. target = "main_window"
  62. <?lsmb ELSIF ('New Window' == item.label) ?>
  63. target = 'new'
  64. <?lsmb ELSIF ('login.pl' == item.module) ?>
  65. target = '_top'
  66. <?lsmb END ?>
  67. <?lsmb IF item.menu &&
  68. ('New Menu' != item.label) ?>
  69. onclick="return SwitchMenu('<?lsmb item.id ?>')"
  70. <?lsmb END ?>
  71. id = "a_<?lsmb item.id ?>"
  72. ><?lsmb text(item.label) ?></a>
  73. <?lsmb IF item.menu && (item.label != 'New Window') ?>
  74. <ul id="sub_<?lsmb item.id ?>" class="submenu">
  75. <?lsmb END ?>
  76. <?lsmb END ?>
  77. <?lsmb WHILE 0 < old_level ?>
  78. </li></ul><?lsmb old_level = old_level - 1 ?>
  79. <?lsmb END ?>
  80. </body>
  81. </html>