[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb: [52] trunk/bin/mozilla/menu.pl



Revision: 52
          http://svn.sourceforge.net/ledger-smb/?rev=52&view=rev
Author:   christopherm
Date:     2006-09-09 15:44:34 -0700 (Sat, 09 Sep 2006)

Log Message:
-----------
applying html fixes provided by David Van Ginneken, fixing a typo in his patch and renaming the id="cont" divs to be unique

Modified Paths:
--------------
    trunk/bin/mozilla/menu.pl

Modified: trunk/bin/mozilla/menu.pl
===================================================================
--- trunk/bin/mozilla/menu.pl	2006-09-09 21:02:04 UTC (rev 51)
+++ trunk/bin/mozilla/menu.pl	2006-09-09 22:44:34 UTC (rev 52)
@@ -29,10 +29,9 @@
 
 	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}&amp;sessionid=$form->{sessionid}&amp;action=acc_menu&amp;path=$form->{path}&amp;js=$form->{js}" />
+		<frame name="main_window" src="am.pl?login=$form->{login}&amp;sessionid=$form->{sessionid}&amp;action=$form->{main}&amp;path=$form->{path}" />
 	</frameset>
-	</body>
 	</html>
 	|;
 
@@ -48,15 +47,12 @@
 
 	$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 @@
 		}
 
 		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 @@
 
 	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);


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.