diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-07-09 02:21:21 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-07-09 02:21:21 +0000 |
commit | bdff0866f37cded4d1aaabd214ee22209864b0f6 (patch) | |
tree | 41a7e40fd585a8fd7bc044226d551c55348ce303 /UI/menu_expand.html | |
parent | ae39575800beeff17d7b4ef5a188df850939cd82 (diff) |
Moving menu over to new template and stored proc model. THe menu expansion/contraction doesn't quite work yet and there needs to be some additional help on the CSS/Javascript side of this.
Also, this makes a few changes to the lower-level Perl API. Classes calling LedgerSMB::call_procedure() directly may need some editing but I believe I got them all. These changes were necessary to accomodate zero-argument stored procedures.
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1355 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'UI/menu_expand.html')
-rw-r--r-- | UI/menu_expand.html | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/UI/menu_expand.html b/UI/menu_expand.html index 82c82db3..3fe68d04 100644 --- a/UI/menu_expand.html +++ b/UI/menu_expand.html @@ -34,19 +34,12 @@ <body class="menu"> <img class="cornderlogo" src="images/ledgersmb_small.png" width="100" height="50" border="1" alt="ledger-smb" /> - <?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 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 id ?>"> + <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 @@ -59,6 +52,10 @@ ELSE ?>Item<?lsmb END ?>" ><?lsmb text(item.label) ?></a> </div> + <?lsmb IF item.menu ?> + <div id="sub_<?lsmb item.id ?>" class=submenu> + <?lsmb END ?> + <?lsmb old_level = item.level ?> <?lsmb END ?> |