diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-06-27 15:19:55 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-06-27 15:19:55 +0000 |
commit | 50be11c3574706cae5e219ba910e8221e50da4e8 (patch) | |
tree | a2b6f050da940fdf1650a42bd5269469e6483467 /UI | |
parent | 80d758a1abf3d2b696fd14521726806236a2c2b6 (diff) |
Moving menu.pl to old-handler.pl and adjusting top level scripts accordingly.
Including also an unfinished and inactive version of the menu system running under the new architecture.
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1334 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'UI')
-rw-r--r-- | UI/menu_expand.html | 56 |
1 files changed, 26 insertions, 30 deletions
diff --git a/UI/menu_expand.html b/UI/menu_expand.html index 7a78e24c..82c82db3 100644 --- a/UI/menu_expand.html +++ b/UI/menu_expand.html @@ -34,38 +34,34 @@ <body class="menu"> <img class="cornderlogo" src="images/ledgersmb_small.png" width="100" height="50" border="1" alt="ledger-smb" /> - <div id="div_0" class="container"> - <?lsmb MACRO menu(section) BLOCK ?> - <?lsmb IF item.id ?> - <div id="menu<?lsmb section.id ?>" class="menuOut" - onclick="SwitchMenu('sub_<?lsmb section.id ?>')"> - <?lsmb text(section.label) ?></div> - <div class="submenu" id="sub<?lsmb item.id ?>"> - <div id="div_<?lsmb item.id ?>"> + <?lsmb FOREACH item = subs ?> + <?lsmb old_id = id ?><?lsmb old_path = path ?> + <?lsmb id = item.id ?><?lsmb path = item.path ?> + <?lsmb IF (id != old_id) AND id ?> + <?lsmb desc_ids = [id, ''] ?> + <?lsmb asc_ids = [old_id, ''] ?> + <?lsmb IF old_id.search(desc_ids.join('--')) ?> + <div id="sub_<?lsmb old_id ?>" class="Submenu"> + <?lsmb ELSIF id.search(asc_ids.join('--')) ?> + </div> <?lsmb END ?> - <?lsmb IF section.subs.size > 0 ?> - <?lsmb FOREACH key = section.subs.keys.sort ?> - <?lsmb item = section.subs.$key ?> - <?lsmb IF item.subs ?> - <?lsmb subs = items.subs ?> - <?lsmb FOREACH subkey = subs.keys.sort ?> - <?lsmb sub = item.sub.$key ?> - <?lsmb menu(item) ?> - <?lsmb END ?> - <?lsmb ELSE ?> - <div class="submenu"> - <a class="submenu" - href="<?lsmb item.module ?>?login=<?lsmb login ?><?lsmb FOREACH key = item.keys ?>&<?lsmb key ?>=<?lsmb item.$key ?><?lsmb END ?>" - target="main_window"><?lsmb text(item.label)?></a> - </div> - <?lsmb END ?> - <?lsmb END ?> - <?lsmb END ?> - </div> - </div> - <?lsmb END ?> - <?lsmb menu(menu_items) ?> + <?lsmb END ?> + <div class="Menu" id="menu_<?lsmb id ?>"> + <a href="<?lsmb IF item.module ?><?lsmb item.module + ?><?lsmb ELSE ?>menu.pl<?lsmb END + ?>?login=<?lsmb login + ?><?lsmb FOREACH key IN item.keys ?>&<?lsmb key + ?>=<?lsmb item.$key ?><?lsmb END ?>" + target = "main_window" + onclick="return <?lsmb IF item.module + ?>SwitchMenu(<?lsmb id ?>)<?lsmb END ?>" + class = "<?lsmb IF item.module ?>Menu<?lsmb + ELSE ?>Item<?lsmb END ?>" + ><?lsmb text(item.label) ?></a> </div> + <?lsmb END ?> + + </body> </html> |