X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/3c058d7f8bd76f7e0ec7442afc59ce4617b32b55..3ab26ffcd0c8bfbf08508624c9ea07fbc6b4352a:/bin/mozilla/menu.pl diff --git a/bin/mozilla/menu.pl b/bin/mozilla/menu.pl index af860fd15..7e280ffd5 100644 --- a/bin/mozilla/menu.pl +++ b/bin/mozilla/menu.pl @@ -44,57 +44,24 @@ use URI; use List::MoreUtils qw(apply); -# end of main - -sub display { - $::lxdebug->enter_sub; - - my $callback = $::form->unescape($::form->{callback}); - $callback = URI->new($callback)->rel($callback) if $callback; - $callback = "login.pl?action=company_logo" if $callback =~ /^(\.\/)?$/; - my $framesize = _calc_framesize(); - - $::form->header(doctype => 'frameset'); - - print qq| - - - - - - - - You need a browser that can read frames to see this page. - - - -|; - - $::lxdebug->leave_sub; -} - -sub acc_menu { +sub render { $::lxdebug->enter_sub; - $::form->{stylesheet} = [ qw(css/icons16.css css/icons24.css ) ]; + $::form->use_stylesheet(qw(css/icons16.css css/icons24.css)); - my $framesize = _calc_framesize() - 2; my $menu = Menu->new("menu.ini"); - $::form->{title} = $::locale->text('kivitendo'); - $::form->header; my $sections = [ section_menu($menu) ]; - print $::form->parse_html_template('menu/menu', { - framesize => $framesize, + $::lxdebug->leave_sub; + $::form->parse_html_template('menu/menu', { sections => $sections, + inline => 1, }); - - $::lxdebug->leave_sub; } sub section_menu { - $::lxdebug->enter_sub; + $::lxdebug->enter_sub(2); my ($menu, $level, $id_prefix) = @_; my @menuorder = $menu->access_control(\%::myconfig, $level); my @items; @@ -114,7 +81,6 @@ sub section_menu { $menuitem->{module} ||= $::form->{script}; $menuitem->{action} ||= "section_menu"; - $menuitem->{target} ||= "main_window"; $menuitem->{href} ||= "$menuitem->{module}?action=$menuitem->{action}"; # add other params @@ -131,9 +97,7 @@ sub section_menu { my %common_args = ( l => $label, s => $spacer, - t => $menuitem->{target}, id => "$id_prefix\_$id", - height => 16, ); if (!$level) { # toplevel @@ -159,7 +123,7 @@ sub section_menu { $id++; } - $::lxdebug->leave_sub; + $::lxdebug->leave_sub(2); return @items; }