From b1513dccda2a40beac493ae20cf3985af2e88473 Mon Sep 17 00:00:00 2001 From: Holger Lindemann Date: Wed, 22 Jul 2009 14:18:17 +0200 Subject: [PATCH] =?utf8?q?Altes=20CSS=20men=C3=BC=20wg.=20Probleme=20mit?= =?utf8?q?=20Opera=20wiederhergestellt.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Neues CSS als menuv4 eingefügt. JS alt entfernt. --- bin/mozilla/admin.pl | 0 bin/mozilla/login.pl | 2 +- bin/mozilla/menuv3.pl | 4 - bin/mozilla/menuv4.pl | 132 +++++++++++++++++ css/menuv3.css | 20 +-- css/menuv4.css | 140 ++++++++++++++++++ locale/de/all | 39 ++++- locale/de/menuv4 | 91 ++++++++++++ macscan/bdv.sql | 18 +++ menuv4.pl | 1 + templates/webpages/admin/edit_user_de.html | 2 +- .../webpages/admin/edit_user_master.html | 2 +- templates/webpages/am/config_de.html | 2 +- templates/webpages/am/config_master.html | 2 +- templates/webpages/menu/menuv4_de.html | 45 ++++++ templates/webpages/menu/menuv4_master.html | 45 ++++++ 16 files changed, 520 insertions(+), 25 deletions(-) mode change 100644 => 100755 bin/mozilla/admin.pl create mode 100644 bin/mozilla/menuv4.pl create mode 100644 css/menuv4.css create mode 100644 locale/de/menuv4 create mode 100644 macscan/bdv.sql create mode 120000 menuv4.pl create mode 100644 templates/webpages/menu/menuv4_de.html create mode 100644 templates/webpages/menu/menuv4_master.html diff --git a/bin/mozilla/admin.pl b/bin/mozilla/admin.pl old mode 100644 new mode 100755 diff --git a/bin/mozilla/login.pl b/bin/mozilla/login.pl index 0d49058ae..22c37bf85 100644 --- a/bin/mozilla/login.pl +++ b/bin/mozilla/login.pl @@ -137,7 +137,7 @@ sub login { my %style_to_script_map = ( 'v3' => 'v3', 'neu' => 'new', - 'js' => 'js', + 'v4' => 'v4', 'xml' => 'XML', ); diff --git a/bin/mozilla/menuv3.pl b/bin/mozilla/menuv3.pl index a2b266908..c2fef5df4 100644 --- a/bin/mozilla/menuv3.pl +++ b/bin/mozilla/menuv3.pl @@ -116,11 +116,7 @@ sub print_menu { $html .= qq|
  • ${menu_text}
  • \n|; } } else { - if ($depth>1) { - $html .= qq|
  • |; - } else { $html .= qq|
  • |; - } $html .= $menu->menuitem_v3(\%myconfig, $form, "${parent}$item", { "title" => $menu_title, "target" => $target }); diff --git a/bin/mozilla/menuv4.pl b/bin/mozilla/menuv4.pl new file mode 100644 index 000000000..ffe3e82c9 --- /dev/null +++ b/bin/mozilla/menuv4.pl @@ -0,0 +1,132 @@ +#===================================================================== +# LX-Office ERP +# Copyright (C) 2004 +# Based on SQL-Ledger Version 2.1.9 +# Web http://www.lx-office.org +# +###################################################################### +# SQL-Ledger Accounting +# Copyright (c) 1998-2002 +# +# Author: Dieter Simader +# Email: dsimader@sql-ledger.org +# Web: http://www.sql-ledger.org +# +# Contributors: Christopher Browne +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +####################################################################### +# +# thre frame layout with refractured menu +# +####################################################################### + +$menufile = "menu.ini"; +use SL::Menu; + +1; + +# end of main + +sub display { + $form->header(qq||); + + $form->{date} = clock_line(); + $form->{menu} = acc_menu(); + + print $form->parse_html_template("menu/menuv4"); + +} + +sub clock_line { + my ($Sekunden, $Minuten, $Stunden, $Monatstag, $Monat, + $Jahr, $Wochentag, $Jahrestag, $Sommerzeit) + = localtime(time); + $Monat += 1; + $Jahrestag += 1; + $Monat = $Monat < 10 ? $Monat = "0" . $Monat : $Monat; + $Monatstag = $Monatstag < 10 ? $Monatstag = "0" . $Monatstag : $Monatstag; + $Jahr += 1900; + my @Wochentage = ("Sonntag", "Montag", "Dienstag", "Mittwoch", + "Donnerstag", "Freitag", "Samstag"); + my @Monatsnamen = ("", "Januar", "Februar", "März", + "April", "Mai", "Juni", "Juli", + "August", "September", "Oktober", "November", + "Dezember"); + return + $Wochentage[$Wochentag] . ", der " + . $Monatstag . "." + . $Monat . "." + . $Jahr . " - "; +} + +sub acc_menu { + $locale = Locale->new($language, "menu"); + + $mainlevel = $form->{level}; + $mainlevel =~ s/\Q$mainlevel\E--//g; + my $menu = new Menu "$menufile"; + + $| = 1; + + return print_menu($menu); +} + +sub print_menu { + my ($menu, $parent, $depth) = @_; + my $html; + + die if ($depth * 1 > 5); + + my @menuorder; + + @menuorder = $menu->access_control(\%myconfig, $parent); + + $parent .= "--" if ($parent); + + foreach my $item (@menuorder) { + substr($item, 0, length($parent)) = ""; + next if (($item eq "") || ($item =~ /--/)); + + my $menu_item = $menu->{"${parent}${item}"}; + my $menu_title = $locale->text($item); + my $menu_text = $menu_title; + + my $target = "main_window"; + $target = $menu_item->{"target"} if ($menu_item->{"target"}); + + if ($menu_item->{"submenu"} || !defined($menu_item->{"module"}) || + ($menu_item->{"module"} eq "menu.pl")) { + + my $h = print_menu($menu, "${parent}${item}", $depth * 1 + 1)."\n"; + if (!$parent) { + $html .= qq|\n|; + } else { + $html .= qq|
  • ${menu_text}
  • \n|; + } + } else { + if ($depth>1) { + $html .= qq|
  • |; + } else { + $html .= qq|
  • |; + } + $html .= $menu->menuitem_v3(\%myconfig, $form, "${parent}$item", + { "title" => $menu_title, + "target" => $target }); + $html .= qq|${menu_text}
  • \n|; + } + } + + return $html; +} diff --git a/css/menuv3.css b/css/menuv3.css index 4068de338..ae7ef33ff 100644 --- a/css/menuv3.css +++ b/css/menuv3.css @@ -22,15 +22,9 @@ margin:0; padding:1px 0 1px 3px; } -#menu h2:before { - content:" "; -} -#menu h2:after { - content:" "; -} #menu h2 { color:#fff; -padding:2 15px +padding:0 5px; } #menu a, #menu a:visited, #menu div.x, #menu div.x:visited { @@ -42,6 +36,7 @@ padding-right:10px; #menu a { background:#eee; } + #menu div.x, #menu div.x:visited { background:#eee url(../image/right.gif) no-repeat right; } @@ -61,6 +56,7 @@ list-style:none; margin:0; padding:0; float:left; +min-width:7em; } #menu li { @@ -69,12 +65,6 @@ float:none; border:0; } -li.sub { -position:relativ; -left:-25px; -top:-3px; -} - /* IE6 spacing bug fix,
  • s without a bottom border get spaced to far * correction: the bug will change the height of the parent element! this will also cause the whole menu to grow * so the only method to get this pile of crap going is to add a bottom border to the
  • s, where the enclosing