blob: 76a53b7190bdf3c5c1fb86e8cf98b8220b347bfc (
plain)
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <title><?lsmb text('LedgerSMB Accounting Menu')?>
- -- <?lsmb VERSION ?></title>
- <meta http-equiv="Pragma" content="no-cache" />
- <meta http-equiv="Expires" content="-1" />
- <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
- <link rel="stylesheet" href="UI/menu/expanding.css" type="text/css" title="LedgerSMB stylesheet" />
- <link rel="stylesheet" href="css/<?lsmb stylesheet ?>" type="text/css" title="LedgerSMB stylesheet" />
- <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
- <meta name="robots" content="noindex,nofollow" />
-
- <script type="text/javascript">
- function SwitchMenu(id) {
- var obj = "sub_" + id;
- if (document.getElementById) {
- var element = document.getElementById(obj);
-
- if (element.style.display == "block") {
- element.style.display = "none";
- } else {
- element.style.display = "block"; //display the block of info
- }
- obj = 'a_' + id;
- element = document.getElementById(obj);
- if (element.className == 'Menu_Open'){
- element.className
- = 'Menu_Closed';
- } else {
- element.className = 'Menu_Open';
- }
- return false;
- }
- }
- document.onselectstart = new Function("return false");
- </script>
- </head>
- <body class="menu">
- <img class="cornderlogo" src="images/ledgersmb_small.png" width="100" height="50" border="1" alt="LedgerSMB" />
- <?lsmb FOREACH item = menu_items ?>
- <?lsmb href = "" ?>
- <?lsmb WHILE item.level < old_level ?>
- </div><?lsmb old_level = old_level - 1 ?>
- <?lsmb END ?>
- <div class="Menu" id="menu_<?lsmb item.id ?>">
- <a href="<?lsmb IF item.module ?><?lsmb item.module
- ?><?lsmb ELSE ?>menu.pl<?lsmb END
- ?>?login=<?lsmb login
- ?>&<?lsmb FOREACH arg IN item.args
- ?><?lsmb arg
- ?>&<?lsmb END
- ?><?lsmb IF item.menu
- ?>id=<?lsmb item.id
- ?>&open=<?lsmb open
- ?><?lsmb END ?>"
- <?lsmb IF (item.module != 'menu.pl') &&
- ('login.pl' != item.module) ?>
- target = "main_window"
- <?lsmb ELSIF ('New Window' == item.label) ?>
- target = 'new'
- <?lsmb ELSIF ('login.pl' == item.module) ?>
- target = '_top'
- <?lsmb END ?>
- <?lsmb IF item.menu &&
- ('New Menu' != item.label) ?>
- onclick="return SwitchMenu('<?lsmb item.id ?>')"
- <?lsmb END ?>
- class = "<?lsmb IF (item.menu && item.open)
- ?>Menu_Open<?lsmb ELSIF item.menu
- ?>Menu_Closed<?lsmb
- ELSE ?>Menu_Item<?lsmb END ?>"
- id = "a_<?lsmb item.id ?>"
- ><?lsmb text(item.label) ?></a>
- </div>
- <?lsmb IF item.menu && (item.label != 'New Window') ?>
- <div id="sub_<?lsmb item.id ?>" class="submenu"
- <?lsmb IF item.open ?>
- style="display: block"
- <?lsmb END ?>>
- <?lsmb END ?>
- <?lsmb old_level = item.level ?>
- <?lsmb END ?>
-
-
- </body>
- </html>
|