diff options
author | christopherm <christopherm@4979c152-3d1c-0410-bac9-87ea11338e46> | 2006-09-09 22:44:34 +0000 |
---|---|---|
committer | christopherm <christopherm@4979c152-3d1c-0410-bac9-87ea11338e46> | 2006-09-09 22:44:34 +0000 |
commit | 64b808ddbc840c881257c42c94cc1c801a716099 (patch) | |
tree | 086296f6c1b18f50ac4ead4eac096fadac279c56 /bin | |
parent | d79750581e91b6627d034dc70b7d5bf2946864f2 (diff) |
applying html fixes provided by David Van Ginneken, fixing a typo in his patch and renaming the id="cont" divs to be unique
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@52 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/mozilla/menu.pl | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/bin/mozilla/menu.pl b/bin/mozilla/menu.pl index 848cf14b..715efcfa 100755 --- a/bin/mozilla/menu.pl +++ b/bin/mozilla/menu.pl @@ -29,10 +29,9 @@ sub display { print qq| <frameset cols="$menuwidth,*" border="1"> - <frame name="acc_menu" src="$form->{script}?login=$form->{login}&sessionid=$form->{sessionid}&action=acc_menu&path=$form->{path}&js=$form->{js}" /> - <frame name="main_window" src="am.pl?login=$form->{login}&sessionid=$form->{sessionid}&action=$form->{main}&path=$form->{path}" /> + <frame name="acc_menu" src="$form->{script}?login=$form->{login}&sessionid=$form->{sessionid}&action=acc_menu&path=$form->{path}&js=$form->{js}" /> + <frame name="main_window" src="am.pl?login=$form->{login}&sessionid=$form->{sessionid}&action=$form->{main}&path=$form->{path}" /> </frameset> - </body> </html> |; @@ -48,15 +47,12 @@ sub acc_menu { $form->{title} = $locale->text('Accounting Menu'); - $form->header; - - print q| + my $headeradd = q| <script type="text/javascript"> function SwitchMenu(obj) { if (document.getElementById) { var el = document.getElementById(obj); - var ar = document.getElementById("cont").getElementsByTagName("DIV"); if (el.style.display == "none") { el.style.display = "block"; //display the block of info @@ -73,10 +69,12 @@ sub acc_menu { } document.onselectstart = new Function("return false"); - </script> + </script>|; + $form->header(undef, $headeradd); + print q| <body class="menu"> - <img class="cornderlogo" src="ledger-smb_small.png" width="100" height="50" border="1" /> + <img class="cornderlogo" src="ledger-smb_small.png" width="100" height="50" border="1" alt="ledger-smb" /> |; if ($form->{js}) { @@ -163,7 +161,7 @@ sub js_menu { my ($menu, $level) = @_; - print qq| <div id="cont"> |; + print qq| <div id="div_$menu_$level"> |; # build tiered menus my @menuorder = $menu->access_control(\%myconfig, $level); |